summaryrefslogtreecommitdiff
path: root/sw/source/uibase/sidebar/PageMarginControl.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-01-14 15:56:36 +0000
committerCaolán McNamara <caolanm@redhat.com>2020-01-14 21:25:50 +0100
commit776797b6a46fa545a661cc81f51a2be555ecd7fe (patch)
tree32a09756b1864297f349852785669bb31f12774e /sw/source/uibase/sidebar/PageMarginControl.hxx
parent2c80cf671ead686300ea0ece491435c0c67dfc77 (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.hxx')
-rw-r--r--sw/source/uibase/sidebar/PageMarginControl.hxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/sw/source/uibase/sidebar/PageMarginControl.hxx b/sw/source/uibase/sidebar/PageMarginControl.hxx
index fe54b4ecf7dd..77f4cdb01593 100644
--- a/sw/source/uibase/sidebar/PageMarginControl.hxx
+++ b/sw/source/uibase/sidebar/PageMarginControl.hxx
@@ -19,7 +19,7 @@
#ifndef INCLUDED_SW_SOURCE_UIBASE_SIDEBAR_PAGEMARGINCONTROL_HXX
#define INCLUDED_SW_SOURCE_UIBASE_SIDEBAR_PAGEMARGINCONTROL_HXX
-#include <sfx2/tbxctrl.hxx>
+#include <svtools/toolbarmenu.hxx>
#include <vcl/fixed.hxx>
#include <vcl/field.hxx>
#include <vcl/layout.hxx>
@@ -33,12 +33,14 @@
// #i19922# - tdf#126051 see cui/source/tabpages/page.cxx and svx/source/dialog/hdft.cxx
static const long MINBODY = 56; // 1mm in twips rounded
+class PageMarginPopup;
+
namespace sw { namespace sidebar {
-class PageMarginControl : public SfxPopupWindow
+class PageMarginControl final : public svtools::ToolbarPopup
{
public:
- explicit PageMarginControl( sal_uInt16 nId, vcl::Window* pParent );
+ explicit PageMarginControl(PageMarginPopup* pControl, vcl::Window* pParent);
virtual ~PageMarginControl() override;
virtual void dispose() override;