summaryrefslogtreecommitdiffstats
path: root/include/sfx2
diff options
context:
space:
mode:
authorAshod Nakashian <ashod.nakashian@collabora.co.uk>2018-12-12 03:01:31 -0500
committerMichael Meeks <michael.meeks@collabora.com>2019-08-05 21:06:45 -0400
commita16a86c2a0ef444689fabb104d6b1fe968acb1f2 (patch)
treeae207083d61fcd17c2d0ea90663e33010639a54b /include/sfx2
parentsfx: LOK: don't shrink sidebar height below minimum (diff)
downloadcore-a16a86c2a0ef444689fabb104d6b1fe968acb1f2.tar.gz
core-a16a86c2a0ef444689fabb104d6b1fe968acb1f2.zip
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')
-rw-r--r--include/sfx2/sidebar/SidebarController.hxx13
1 files changed, 6 insertions, 7 deletions
diff --git a/include/sfx2/sidebar/SidebarController.hxx b/include/sfx2/sidebar/SidebarController.hxx
index c81e306736bd..bad4220ce547 100644
--- a/include/sfx2/sidebar/SidebarController.hxx
+++ b/include/sfx2/sidebar/SidebarController.hxx
@@ -28,6 +28,7 @@
#include <sfx2/sidebar/Panel.hxx>
#include <sfx2/sidebar/ResourceManager.hxx>
#include <sfx2/sidebar/TabBar.hxx>
+#include <sfx2/viewfrm.hxx>
#include <vcl/menu.hxx>
@@ -67,9 +68,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;
@@ -171,14 +171,13 @@ public:
css::uno::Reference<css::frame::XFrame> getXFrame() {return mxFrame;}
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;