diff options
author | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2018-12-12 03:01:31 -0500 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-26 20:22:05 +0200 |
commit | 80eb913d5944e88297b0734991bcf6c1cfb34463 (patch) | |
tree | 3704aa389a6912d07ffda9bf4ad0b63f1568ebcf /include/sfx2/sidebar/SidebarController.hxx | |
parent | a6f6a76d6018fd342646982f6e252c8562ebd254 (diff) |
sfx: LOK: notify clients of the sidebar state
Change-Id: I35b174c3a5e302ce52ee4063fa71d47feffab624
Reviewed-on: https://gerrit.libreoffice.org/73520
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/sfx2/sidebar/SidebarController.hxx')
-rw-r--r-- | include/sfx2/sidebar/SidebarController.hxx | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/include/sfx2/sidebar/SidebarController.hxx b/include/sfx2/sidebar/SidebarController.hxx index d6c8d54f7e8a..286036b6f141 100644 --- a/include/sfx2/sidebar/SidebarController.hxx +++ b/include/sfx2/sidebar/SidebarController.hxx @@ -28,6 +28,7 @@ #include <sfx2/sidebar/FocusManager.hxx> #include <sfx2/sidebar/ResourceManager.hxx> #include <sfx2/sidebar/TabBar.hxx> +#include <sfx2/viewfrm.hxx> #include <com/sun/star/beans/XPropertyChangeListener.hpp> #include <com/sun/star/frame/XStatusListener.hpp> @@ -63,9 +64,8 @@ class SFX2_DLLPUBLIC SidebarController public SidebarControllerInterfaceBase { public: - static rtl::Reference<SidebarController> create( - SidebarDockingWindow* pParentWindow, - const css::uno::Reference<css::frame::XFrame>& rxFrame); + static rtl::Reference<SidebarController> create(SidebarDockingWindow* pParentWindow, + const SfxViewFrame* pViewFrame); virtual ~SidebarController() override; SidebarController(const SidebarController&) = delete; SidebarController& operator=( const SidebarController& ) = delete; @@ -168,14 +168,13 @@ public: void setMaximumWidth(sal_Int32 nMaximumWidth) { mnMaximumSidebarWidth = nMaximumWidth; } private: - SidebarController( - SidebarDockingWindow* pParentWindow, - const css::uno::Reference<css::frame::XFrame>& rxFrame); + SidebarController(SidebarDockingWindow* pParentWindow, const SfxViewFrame* pViewFrame); VclPtr<Deck> mpCurrentDeck; VclPtr<SidebarDockingWindow> mpParentWindow; - VclPtr<TabBar> mpTabBar; + const SfxViewFrame* mpViewFrame; css::uno::Reference<css::frame::XFrame> mxFrame; + VclPtr<TabBar> mpTabBar; Context maCurrentContext; Context maRequestedContext; css::uno::Reference<css::frame::XController> mxCurrentController; |