diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-03-14 12:51:31 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-03-15 09:57:43 +0100 |
commit | 8bddb3c77048814b370351e0eb72c31f289fb34f (patch) | |
tree | 8b081c15b1779301eee613e6f24de1371dd77265 /include/vcl/weld.hxx | |
parent | f5efc3cb9d2bbcaaca95e15a03815e8f8eda7b09 (diff) |
add drop target support to welded widget
refactor the mega-widget dnd drop target to be reused at
mini-widget level
and weld SwInsertBookmarkDlg
Change-Id: I3f36e1cd902ecf166e369d0a05902d3df2b4f791
Reviewed-on: https://gerrit.libreoffice.org/69274
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/vcl/weld.hxx')
-rw-r--r-- | include/vcl/weld.hxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/vcl/weld.hxx b/include/vcl/weld.hxx index a3aeaf223142..75b33607d1dd 100644 --- a/include/vcl/weld.hxx +++ b/include/vcl/weld.hxx @@ -38,6 +38,13 @@ namespace awt { class XWindow; } +namespace datatransfer +{ +namespace dnd +{ +class XDropTarget; +} +} namespace graphic { class XGraphic; @@ -206,6 +213,8 @@ public: virtual VclPtr<VirtualDevice> create_virtual_device() const = 0; + virtual css::uno::Reference<css::datatransfer::dnd::XDropTarget> get_drop_target() = 0; + virtual ~Widget() {} }; @@ -903,6 +912,7 @@ public: // nEndPos can be -1 in order to select all text virtual void select_region(int nStartPos, int nEndPos) = 0; virtual bool get_selection_bounds(int& rStartPos, int& rEndPos) = 0; + // nCursorPos can be -1 to set to the end virtual void set_position(int nCursorPos) = 0; virtual int get_position() const = 0; virtual void set_editable(bool bEditable) = 0; |