diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-03-04 16:34:18 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-03-04 20:59:06 +0100 |
commit | c7c99f89eeb119ae6062053eb37f5a9a51073a37 (patch) | |
tree | 7f9b12dacad4ced6756a02e1052117ebc9446161 /include/sfx2/sidebar | |
parent | 82cce8f46d033a887886f1abae1f608d966c5e08 (diff) |
SidebarPanelBase is always created with a PanelLayout
Change-Id: I825452fbd56435edcc0a2ffb7abe0f834bf10fb0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111976
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/sfx2/sidebar')
-rw-r--r-- | include/sfx2/sidebar/SidebarPanelBase.hxx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/include/sfx2/sidebar/SidebarPanelBase.hxx b/include/sfx2/sidebar/SidebarPanelBase.hxx index 015406771c4f..a12727cfafad 100644 --- a/include/sfx2/sidebar/SidebarPanelBase.hxx +++ b/include/sfx2/sidebar/SidebarPanelBase.hxx @@ -31,8 +31,7 @@ #include <vcl/vclptr.hxx> - -namespace vcl { class Window; } +class PanelLayout; namespace sfx2::sidebar { @@ -52,7 +51,7 @@ class SFX2_DLLPUBLIC SidebarPanelBase final : private ::cppu::BaseMutex, public: static css::uno::Reference<css::ui::XUIElement> Create(const OUString& rsResourceURL, const css::uno::Reference<css::frame::XFrame>& rxFrame, - vcl::Window* pControl, + PanelLayout* pControl, const css::ui::LayoutSize& rLayoutSize); // XContextChangeEventListener @@ -81,7 +80,7 @@ public: private: SidebarPanelBase(const OUString& rsResourceURL, const css::uno::Reference<css::frame::XFrame>& rxFrame, - vcl::Window* pWindow, const css::ui::LayoutSize& rLayoutSize); + PanelLayout* pWindow, const css::ui::LayoutSize& rLayoutSize); virtual ~SidebarPanelBase() override; SidebarPanelBase(const SidebarPanelBase&) = delete; SidebarPanelBase& operator=( const SidebarPanelBase& ) = delete; @@ -89,7 +88,7 @@ private: virtual void SAL_CALL disposing() override; css::uno::Reference<css::frame::XFrame> mxFrame; - VclPtr<vcl::Window> mpControl; + VclPtr<PanelLayout> mpControl; const OUString msResourceURL; const css::ui::LayoutSize maLayoutSize; }; |