From 152faedebbfed3d0c3b5e465a25ef4dba030072c Mon Sep 17 00:00:00 2001 From: Katarina Behrens Date: Mon, 19 Mar 2018 15:18:50 +0100 Subject: Prep mouse event handler to indicate dragging started Change-Id: Icdb865e511047b166767ca9e87e808c308ad7643 Reviewed-on: https://gerrit.libreoffice.org/53324 Tested-by: Jenkins Reviewed-by: Katarina Behrens --- include/sfx2/sidebar/DeckTitleBar.hxx | 1 + include/sfx2/sidebar/SidebarController.hxx | 2 ++ include/sfx2/sidebar/SidebarDockingWindow.hxx | 4 ++++ 3 files changed, 7 insertions(+) (limited to 'include/sfx2') 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& 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 mpSidebarController; + bool mbIsReadyToDrag; void DoDispose(); }; -- cgit