52 bool can_undo()
const override {
return false; }
53 bool can_redo()
const override {
return false; }
54 bool can_cut()
const override {
return false; }
55 bool can_copy()
const override {
return false; }
75 struct no_active_sink : std::logic_error { no_active_sink() : std::logic_error(
"neogfx::i_clipboard::no_active_sink") {} };
90 virtual void cut() = 0;
96 static uuid const&
iid() {
static uuid const sIid{ 0x441eee78, 0x6c80, 0x464b, 0xb733, { 0x18, 0x91, 0x90, 0xa8, 0x39, 0xb9 } };
return sIid; }
105 service<i_clipboard>().
activate(aSink);
109 if (iPreviousSink !=
nullptr)
111 service<i_clipboard>().activate(*iPreviousSink);
bool can_copy() const override
void select_all() override
bool can_cut() const override
bool can_delete_selected() const override
void paste(i_clipboard &aClipboard) override
bool can_paste() const override
bool can_undo() const override
bool can_select_all() const override
void redo(i_clipboard &aClipboard) override
bool can_redo() const override
void cut(i_clipboard &aClipboard) override
void undo(i_clipboard &aClipboard) override
void delete_selected() override
void copy(i_clipboard &aClipboard) override
virtual void paste(i_clipboard &aClipboard)=0
virtual void delete_selected()=0
virtual bool can_select_all() const =0
virtual void cut(i_clipboard &aClipboard)=0
virtual void copy(i_clipboard &aClipboard)=0
virtual bool can_paste() const =0
virtual void undo(i_clipboard &aClipboard)=0
virtual bool can_copy() const =0
virtual bool can_undo() const =0
virtual bool can_delete_selected() const =0
virtual bool can_cut() const =0
virtual void select_all()=0
virtual void redo(i_clipboard &aClipboard)=0
virtual bool can_redo() const =0
virtual i_clipboard_sink & active_sink()=0
virtual bool has_text() const =0
virtual void set_image(const neogfx::image &aImage)=0
virtual void activate(i_clipboard_sink &aSink)=0
virtual neogfx::image image() const =0
virtual void set_text(i_string const &aText)=0
virtual void delete_selected()=0
virtual void deactivate(i_clipboard_sink &aSink)=0
virtual void select_all()=0
virtual const i_string & text() const =0
virtual bool has_image() const =0
virtual bool sink_active() const =0
static uuid const & iid()
scoped_clipboard_sink(i_clipboard_sink &aSink)
#define declare_event(declName,...)