diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-01-14 15:56:36 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-01-14 21:25:50 +0100 |
commit | 776797b6a46fa545a661cc81f51a2be555ecd7fe (patch) | |
tree | 32a09756b1864297f349852785669bb31f12774e /sw/source/uibase/sidebar/PageMarginControl.cxx | |
parent | 2c80cf671ead686300ea0ece491435c0c67dfc77 (diff) |
rework PageMarginPopup to be a PopupWindowController
Change-Id: I60a66b9be14f79cd2968f4bd3d91740137ee9d85
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86782
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source/uibase/sidebar/PageMarginControl.cxx')
-rw-r--r-- | sw/source/uibase/sidebar/PageMarginControl.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
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 <swtypes.hxx> #include <cmdid.h> +#include <PageMarginPopup.hxx> #include <com/sun/star/document/XUndoManagerSupplier.hpp> #include <com/sun/star/beans/NamedValue.hpp> @@ -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 ) |