summaryrefslogtreecommitdiff
path: root/include/svx/ParaLineSpacingPopup.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-01-07 20:01:32 +0000
committerCaolán McNamara <caolanm@redhat.com>2020-01-08 17:15:23 +0100
commit7e4b2d90f8b877bd954b7549e17c790fa05ea96a (patch)
tree754547bad972acec63292b57651dbdb4eb3dc8f2 /include/svx/ParaLineSpacingPopup.hxx
parentd799e19c0e1ff629fc3c9464c45039f64bdbbf7e (diff)
rework ParaLineSpacingPopup to be a PopupWindowController
Change-Id: I8b43e0345d8d3c38a7ef21f31655b578a8dc8ea2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86384 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/svx/ParaLineSpacingPopup.hxx')
-rw-r--r--include/svx/ParaLineSpacingPopup.hxx18
1 files changed, 12 insertions, 6 deletions
diff --git a/include/svx/ParaLineSpacingPopup.hxx b/include/svx/ParaLineSpacingPopup.hxx
index 0cacabdf072e..835fbb6fca23 100644
--- a/include/svx/ParaLineSpacingPopup.hxx
+++ b/include/svx/ParaLineSpacingPopup.hxx
@@ -19,20 +19,26 @@
#ifndef INCLUDED_SVX_SOURCE_SIDEBAR_PARAGRAPH_PARALINESPACINGPOPUP_HXX
#define INCLUDED_SVX_SOURCE_SIDEBAR_PARAGRAPH_PARALINESPACINGPOPUP_HXX
-#include <sfx2/tbxctrl.hxx>
+#include <svtools/popupwindowcontroller.hxx>
#include <svx/svxdllapi.h>
namespace svx {
-class SVX_DLLPUBLIC ParaLineSpacingPopup final : public SfxToolBoxControl
+class SVX_DLLPUBLIC SvxLineSpacingToolBoxControl final : public svt::PopupWindowController
{
public:
- SFX_DECL_TOOLBOX_CONTROL();
+ explicit SvxLineSpacingToolBoxControl( const css::uno::Reference<css::uno::XComponentContext>& rContext );
+ virtual ~SvxLineSpacingToolBoxControl() override;
- ParaLineSpacingPopup(sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx);
- virtual ~ParaLineSpacingPopup() override;
+ using svt::ToolboxController::createPopupWindow;
+ virtual VclPtr<vcl::Window> createPopupWindow( vcl::Window* pParent ) override;
- virtual VclPtr<SfxPopupWindow> CreatePopupWindow() 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;
};
}