diff options
Diffstat (limited to 'include/sfx2')
-rw-r--r-- | include/sfx2/sidebar/DeckTitleBar.hxx | 1 | ||||
-rw-r--r-- | include/sfx2/sidebar/SidebarController.hxx | 2 | ||||
-rw-r--r-- | include/sfx2/sidebar/SidebarDockingWindow.hxx | 4 |
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(); }; |