LibreOffice Module svx (master) 1
ParaSpacingControl.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19#ifndef INCLUDED_SVX_SOURCE_SIDEBAR_PARAGRAPH_PARASPACINGCONTROL_HXX
20#define INCLUDED_SVX_SOURCE_SIDEBAR_PARAGRAPH_PARASPACINGCONTROL_HXX
21
22#include <sfx2/tbxctrl.hxx>
23#include <svx/svxdllapi.h>
24#include <com/sun/star/ui/XContextChangeEventListener.hpp>
25
26namespace com::sun::star::ui
27{
28class XContextChangeEventMultiplexer;
29}
30namespace com::sun::star::ui
31{
32struct ContextChangeEventObject;
33}
34namespace vcl
35{
36class Window;
37}
38
39namespace svx
40{
42{
43public:
44 ParaULSpacingControl(sal_uInt16 nSlotId, ToolBoxItemId nId, ToolBox& rTbx);
45 virtual ~ParaULSpacingControl() override;
46
47 virtual void StateChangedAtToolBoxControl(sal_uInt16 nSID, SfxItemState eState,
48 const SfxPoolItem* pState) override;
50};
51
53{
54public:
56
57 ParaAboveSpacingControl(sal_uInt16 nSlotId, ToolBoxItemId nId, ToolBox& rTbx);
58 virtual VclPtr<InterimItemWindow> CreateItemWindow(vcl::Window* pParent) override;
59};
60
62{
63public:
65
66 ParaBelowSpacingControl(sal_uInt16 nSlotId, ToolBoxItemId nId, ToolBox& rTbx);
67 virtual VclPtr<InterimItemWindow> CreateItemWindow(vcl::Window* pParent) override;
68};
69
70class ParaLRSpacingControl : public SfxToolBoxControl, public css::ui::XContextChangeEventListener
71{
72public:
73 ParaLRSpacingControl(sal_uInt16 nSlotId, ToolBoxItemId nId, ToolBox& rTbx);
74 virtual ~ParaLRSpacingControl() override;
75
76 virtual void SAL_CALL dispose() override;
77
78 virtual void StateChangedAtToolBoxControl(sal_uInt16 nSID, SfxItemState eState,
79 const SfxPoolItem* pState) override;
81
82 // XContextChangeEventListener
83 virtual void SAL_CALL
84 notifyContextChangeEvent(const css::ui::ContextChangeEventObject& rEvent) override;
85
86 virtual ::css::uno::Any SAL_CALL queryInterface(const ::css::uno::Type& aType) override;
87
88 virtual void SAL_CALL acquire() noexcept override;
89
90 virtual void SAL_CALL disposing(const ::css::lang::EventObject&) override;
91
92 virtual void SAL_CALL release() noexcept override;
93
94private:
95 css::uno::Reference<css::ui::XContextChangeEventMultiplexer> m_xMultiplexer;
96};
97
99{
100public:
102
103 ParaLeftSpacingControl(sal_uInt16 nSlotId, ToolBoxItemId nId, ToolBox& rTbx);
104 virtual VclPtr<InterimItemWindow> CreateItemWindow(vcl::Window* pParent) override;
105};
106
108{
109public:
111
112 ParaRightSpacingControl(sal_uInt16 nSlotId, ToolBoxItemId nId, ToolBox& rTbx);
113 virtual VclPtr<InterimItemWindow> CreateItemWindow(vcl::Window* pParent) override;
114};
115
117{
118public:
120
121 ParaFirstLineSpacingControl(sal_uInt16 nSlotId, ToolBoxItemId nId, ToolBox& rTbx);
122 virtual VclPtr<InterimItemWindow> CreateItemWindow(vcl::Window* pParent) override;
123};
124}
125
126#endif
127
128/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual void SAL_CALL acquire() noexcept override
virtual void SAL_CALL notifyContextChangeEvent(const css::ui::ContextChangeEventObject &rEvent) override
virtual ::css::uno::Any SAL_CALL queryInterface(const ::css::uno::Type &aType) override
virtual ~ParaLRSpacingControl() override
virtual void StateChangedAtToolBoxControl(sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem *pState) override
virtual VclPtr< InterimItemWindow > CreateItemWindow(vcl::Window *pParent) override=0
css::uno::Reference< css::ui::XContextChangeEventMultiplexer > m_xMultiplexer
virtual void SAL_CALL release() noexcept override
virtual void SAL_CALL disposing(const ::css::lang::EventObject &) override
virtual void SAL_CALL dispose() override
ParaLRSpacingControl(sal_uInt16 nSlotId, ToolBoxItemId nId, ToolBox &rTbx)
virtual VclPtr< InterimItemWindow > CreateItemWindow(vcl::Window *pParent) override=0
virtual void StateChangedAtToolBoxControl(sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem *pState) override
ParaULSpacingControl(sal_uInt16 nSlotId, ToolBoxItemId nId, ToolBox &rTbx)
virtual ~ParaULSpacingControl() override
sal_Int16 nId
SfxItemState
#define SVX_DLLPUBLIC
Definition: svxdllapi.h:28