From 776797b6a46fa545a661cc81f51a2be555ecd7fe Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 14 Jan 2020 15:56:36 +0000 Subject: rework PageMarginPopup to be a PopupWindowController MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I60a66b9be14f79cd2968f4bd3d91740137ee9d85 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86782 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- sw/source/uibase/sidebar/PageMarginControl.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'sw/source/uibase/sidebar/PageMarginControl.cxx') diff --git a/sw/source/uibase/sidebar/PageMarginControl.cxx b/sw/source/uibase/sidebar/PageMarginControl.cxx index 69aa012d7340..587f0262ff13 100644 --- a/sw/source/uibase/sidebar/PageMarginControl.cxx +++ b/sw/source/uibase/sidebar/PageMarginControl.cxx @@ -37,6 +37,7 @@ #include #include +#include #include #include @@ -93,8 +94,8 @@ namespace namespace sw { namespace sidebar { -PageMarginControl::PageMarginControl( sal_uInt16 nId, vcl::Window* pParent ) - : SfxPopupWindow( nId, pParent, "PageMarginControl", "modules/swriter/ui/pagemargincontrol.ui" ) +PageMarginControl::PageMarginControl(PageMarginPopup* pControl, vcl::Window* pParent) + : ToolbarPopup(pControl->getFrameInterface(), pParent, "PageMarginControl", "modules/swriter/ui/pagemargincontrol.ui") , m_nPageLeftMargin(0) , m_nPageRightMargin(0) , m_nPageTopMargin(0) @@ -255,7 +256,7 @@ void PageMarginControl::dispose() m_pWidthHeightField.disposeAndClear(); m_pContainer.disposeAndClear(); - SfxPopupWindow::dispose(); + ToolbarPopup::dispose(); } void PageMarginControl::SetMetricFieldMaxValues( const Size& rPageSize ) -- cgit