diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-01-14 16:47:45 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-01-14 21:26:49 +0100 |
commit | 74a6e101927d97aa216b1b1a6d395c56c65cfd32 (patch) | |
tree | 010f1cbdb3e0caf7022fdf32fad7fc879495543b /sw/inc | |
parent | 0b87cacaedf47c49065df284f8d10d40d664f9bd (diff) |
rework PageOrientationPopup to be a PopupWindowController
Change-Id: I5930d6e16b99754a60e3bb22a70fadfc5d673aa5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86786
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/inc')
-rw-r--r-- | sw/inc/PageOrientationPopup.hxx | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/sw/inc/PageOrientationPopup.hxx b/sw/inc/PageOrientationPopup.hxx index b1390e5b544d..5b0f3927b950 100644 --- a/sw/inc/PageOrientationPopup.hxx +++ b/sw/inc/PageOrientationPopup.hxx @@ -19,21 +19,26 @@ #ifndef INCLUDED_SW_INC_PAGEORIENTATIONPOPUP_HXX #define INCLUDED_SW_INC_PAGEORIENTATIONPOPUP_HXX -#include <sfx2/tbxctrl.hxx> +#include <svtools/popupwindowcontroller.hxx> #include "swdllapi.h" -class PageOrientationPopup final : public SfxToolBoxControl +class PageOrientationPopup final : public svt::PopupWindowController { public: - SFX_DECL_TOOLBOX_CONTROL(); - - PageOrientationPopup(sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx); + PageOrientationPopup(const css::uno::Reference<css::uno::XComponentContext>& rContext); virtual ~PageOrientationPopup() 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 - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |