summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-04-27 20:35:55 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-04-28 09:42:31 +0200
commit00e90218fd912525f8bfb6592cd235336e8f5496 (patch)
treef17923ffaab842c6768a38a08616b94627ab76b0 /include
parent4ba1909f12b49f020195b5e767045340717ce6df (diff)
add a get_drop_index for dnd interaction with toolbars
Change-Id: I4c7c5cfa36d43a15509498dc4f28c10bf3fd7344 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92991 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/vcl/weld.hxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/vcl/weld.hxx b/include/vcl/weld.hxx
index d059e9cd455d..da1522787258 100644
--- a/include/vcl/weld.hxx
+++ b/include/vcl/weld.hxx
@@ -2154,6 +2154,10 @@ public:
// return what modifiers are held
virtual sal_uInt16 get_modifier_state() const = 0;
+ // This function returns the position a new item should be inserted if dnd
+ // is dropped at rPoint
+ virtual int get_drop_index(const Point& rPoint) const = 0;
+
void connect_clicked(const Link<const OString&, void>& rLink) { m_aClickHdl = rLink; }
void connect_menu_toggled(const Link<const OString&, void>& rLink) { m_aToggleMenuHdl = rLink; }
};