summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKatarina Behrens <Katarina.Behrens@cib.de>2018-03-19 15:18:50 +0100
committerKatarina Behrens <Katarina.Behrens@cib.de>2018-04-24 12:28:56 +0200
commit152faedebbfed3d0c3b5e465a25ef4dba030072c (patch)
tree39d0db55371259ffbf4c284e8649cb1890ce7578 /include
parent0252a39a95a8ab457ded651956dee99f08e6ca69 (diff)
Prep mouse event handler to indicate dragging started
Change-Id: Icdb865e511047b166767ca9e87e808c308ad7643 Reviewed-on: https://gerrit.libreoffice.org/53324 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
Diffstat (limited to 'include')
-rw-r--r--include/sfx2/sidebar/DeckTitleBar.hxx1
-rw-r--r--include/sfx2/sidebar/SidebarController.hxx2
-rw-r--r--include/sfx2/sidebar/SidebarDockingWindow.hxx4
3 files changed, 7 insertions, 0 deletions
diff --git a/include/sfx2/sidebar/DeckTitleBar.hxx b/include/sfx2/sidebar/DeckTitleBar.hxx
index 3542cd45e0fb..59f15bf1ef93 100644
--- a/include/sfx2/sidebar/DeckTitleBar.hxx
+++ b/include/sfx2/sidebar/DeckTitleBar.hxx
@@ -31,6 +31,7 @@ public:
const std::function<void()>& rCloserAction);
void SetCloserVisible(const bool bIsCloserVisible);
+ tools::Rectangle GetDragArea() const;
virtual void DataChanged(const DataChangedEvent& rEvent) override;
diff --git a/include/sfx2/sidebar/SidebarController.hxx b/include/sfx2/sidebar/SidebarController.hxx
index 50e91097ca67..33cdfc395200 100644
--- a/include/sfx2/sidebar/SidebarController.hxx
+++ b/include/sfx2/sidebar/SidebarController.hxx
@@ -164,6 +164,8 @@ public:
void FadeIn();
void FadeOut();
+ tools::Rectangle GetDeckDragArea() const;
+
private:
SidebarController(
SidebarDockingWindow* pParentWindow,
diff --git a/include/sfx2/sidebar/SidebarDockingWindow.hxx b/include/sfx2/sidebar/SidebarDockingWindow.hxx
index 2bff73a3eb77..2df114e1c585 100644
--- a/include/sfx2/sidebar/SidebarDockingWindow.hxx
+++ b/include/sfx2/sidebar/SidebarDockingWindow.hxx
@@ -39,6 +39,9 @@ public:
virtual bool EventNotify(NotifyEvent& rEvent) override;
virtual bool Close() override;
+ void SetReadyToDrag( bool bStartDrag ) { mbIsReadyToDrag = bStartDrag; }
+ bool IsReadyToDrag() const { return mbIsReadyToDrag; }
+
using SfxDockingWindow::Close;
protected:
@@ -51,6 +54,7 @@ protected:
private:
::rtl::Reference<sfx2::sidebar::SidebarController> mpSidebarController;
+ bool mbIsReadyToDrag;
void DoDispose();
};