diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-01-14 10:06:30 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-01-14 13:14:36 +0100 |
commit | 3afc718eddcd81232392d46fccc24b8ec626c8df (patch) | |
tree | 9d8a13ba74f8f83c06f418a5f71762d87218d16a /sw/inc | |
parent | 998a9470f1d5728b3f9702ef7aca77aa53bff96b (diff) |
rework PageSizePopup to be a PopupWindowController
Change-Id: Ib8a0acbceca607b0820437d66e18c7cd8c16904e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86748
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/inc')
-rw-r--r-- | sw/inc/PageSizePopup.hxx | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/sw/inc/PageSizePopup.hxx b/sw/inc/PageSizePopup.hxx index 5315863bf2b2..5f7354bb3da1 100644 --- a/sw/inc/PageSizePopup.hxx +++ b/sw/inc/PageSizePopup.hxx @@ -19,18 +19,24 @@ #ifndef INCLUDED_SW_INC_PAGESIZEPOPUP_HXX #define INCLUDED_SW_INC_PAGESIZEPOPUP_HXX -#include <sfx2/tbxctrl.hxx> +#include <svtools/popupwindowcontroller.hxx> #include "swdllapi.h" -class PageSizePopup final : public SfxToolBoxControl +class PageSizePopup final : public svt::PopupWindowController { public: - SFX_DECL_TOOLBOX_CONTROL(); - - PageSizePopup(sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx); + PageSizePopup(const css::uno::Reference<css::uno::XComponentContext>& rContext); virtual ~PageSizePopup() override; - virtual VclPtr<SfxPopupWindow> CreatePopupWindow() override; + using svt::ToolboxController::createPopupWindow; + virtual VclPtr<vcl::Window> createPopupWindow( vcl::Window* pParent ) override; + + // XServiceInfo + virtual OUString SAL_CALL getImplementationName() override; + virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override; + + // XInitialization + virtual void SAL_CALL initialize( const css::uno::Sequence< css::uno::Any >& rArguments ) override; }; #endif |