bump product version to 6.3.0.0.beta1
[LibreOffice.git] / include / svx / ParaSpacingControl.hxx
blob382c0e48bdedde471b63fc28ef771a6c0a33b181
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef INCLUDED_SVX_SOURCE_SIDEBAR_PARAGRAPH_PARASPACINGCONTROL_HXX
20 #define INCLUDED_SVX_SOURCE_SIDEBAR_PARAGRAPH_PARASPACINGCONTROL_HXX
22 #include <sfx2/tbxctrl.hxx>
23 #include <svx/svxdllapi.h>
24 #include <com/sun/star/ui/XContextChangeEventListener.hpp>
26 namespace com::sun::star::ui { class XContextChangeEventMultiplexer; }
27 namespace com::sun::star::ui { struct ContextChangeEventObject; }
28 namespace vcl { class Window; }
30 namespace svx {
32 class SVX_DLLPUBLIC ParaULSpacingControl : public SfxToolBoxControl
34 public:
35 SFX_DECL_TOOLBOX_CONTROL();
37 ParaULSpacingControl(sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx);
38 virtual ~ParaULSpacingControl() override;
40 virtual void StateChanged(sal_uInt16 nSID, SfxItemState eState,
41 const SfxPoolItem* pState) override;
42 virtual VclPtr<vcl::Window> CreateItemWindow(vcl::Window* pParent) override = 0;
45 class SVX_DLLPUBLIC ParaAboveSpacingControl : public ParaULSpacingControl
47 public:
48 SFX_DECL_TOOLBOX_CONTROL();
50 ParaAboveSpacingControl(sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx);
51 virtual VclPtr<vcl::Window> CreateItemWindow(vcl::Window* pParent) override;
54 class SVX_DLLPUBLIC ParaBelowSpacingControl : public ParaULSpacingControl
56 public:
57 SFX_DECL_TOOLBOX_CONTROL();
59 ParaBelowSpacingControl(sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx);
60 virtual VclPtr<vcl::Window> CreateItemWindow(vcl::Window* pParent) override;
63 class SVX_DLLPUBLIC ParaLRSpacingControl : public SfxToolBoxControl,
64 public css::ui::XContextChangeEventListener
66 public:
67 SFX_DECL_TOOLBOX_CONTROL();
69 ParaLRSpacingControl(sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx);
70 virtual ~ParaLRSpacingControl() override;
72 virtual void SAL_CALL dispose() override;
74 virtual void StateChanged(sal_uInt16 nSID, SfxItemState eState,
75 const SfxPoolItem* pState) override;
76 virtual VclPtr<vcl::Window> CreateItemWindow(vcl::Window* pParent) override = 0;
78 // XContextChangeEventListener
79 virtual void SAL_CALL notifyContextChangeEvent(const css::ui::ContextChangeEventObject& rEvent) override;
81 virtual ::css::uno::Any SAL_CALL queryInterface(const ::css::uno::Type& aType) override;
83 virtual void SAL_CALL acquire() throw () override;
85 virtual void SAL_CALL disposing(const ::css::lang::EventObject&) override;
87 virtual void SAL_CALL release() throw () override;
89 private:
90 css::uno::Reference<css::ui::XContextChangeEventMultiplexer> m_xMultiplexer;
93 class SVX_DLLPUBLIC ParaLeftSpacingControl : public ParaLRSpacingControl
95 public:
96 SFX_DECL_TOOLBOX_CONTROL();
98 ParaLeftSpacingControl(sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx);
99 virtual VclPtr<vcl::Window> CreateItemWindow(vcl::Window* pParent) override;
102 class SVX_DLLPUBLIC ParaRightSpacingControl : public ParaLRSpacingControl
104 public:
105 SFX_DECL_TOOLBOX_CONTROL();
107 ParaRightSpacingControl(sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx);
108 virtual VclPtr<vcl::Window> CreateItemWindow(vcl::Window* pParent) override;
111 class SVX_DLLPUBLIC ParaFirstLineSpacingControl : public ParaLRSpacingControl
113 public:
114 SFX_DECL_TOOLBOX_CONTROL();
116 ParaFirstLineSpacingControl(sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx);
117 virtual VclPtr<vcl::Window> CreateItemWindow(vcl::Window* pParent) override;
122 #endif
125 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */