From c7c99f89eeb119ae6062053eb37f5a9a51073a37 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 4 Mar 2021 16:34:18 +0000 Subject: SidebarPanelBase is always created with a PanelLayout MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I825452fbd56435edcc0a2ffb7abe0f834bf10fb0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111976 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- include/sfx2/sidebar/SidebarPanelBase.hxx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'include/sfx2/sidebar') 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 - -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 Create(const OUString& rsResourceURL, const css::uno::Reference& 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& 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 mxFrame; - VclPtr mpControl; + VclPtr mpControl; const OUString msResourceURL; const css::ui::LayoutSize maLayoutSize; }; -- cgit