25#include <editeng/editids.hrc>
28#include <sfx2/sfxsids.hrc>
32#include <com/sun/star/frame/XFrame.hpp>
33#include <com/sun/star/ui/ContextChangeEventMultiplexer.hpp>
34#include <com/sun/star/ui/XContextChangeEventMultiplexer.hpp>
48 addStatusListener(
".uno:MetricUnit");
64 if(SfxItemState::DISABLED == eState)
71 if(nSID == SID_ATTR_METRIC && pState && eState >= SfxItemState::DEFAULT)
76 else if((nSID == SID_ATTR_PARA_ULSPACE
77 || nSID == SID_ATTR_PARA_ABOVESPACE
78 || nSID == SID_ATTR_PARA_BELOWSPACE )
79 && pState && eState >= SfxItemState::DEFAULT)
118 addStatusListener(
".uno:MetricUnit");
145 if(SfxItemState::DISABLED == eState)
153 ::comphelper::getProcessComponentContext());
158 if(nSID == SID_ATTR_METRIC && pState && eState >= SfxItemState::DEFAULT)
163 else if(nSID == SID_ATTR_PARA_LRSPACE
164 || nSID == SID_ATTR_PARA_LEFTSPACE
165 || nSID == SID_ATTR_PARA_RIGHTSPACE
166 || nSID == SID_ATTR_PARA_FIRSTLINESPACE
190 ::css::uno::Any
a(SfxToolBoxControl::queryInterface(aType));
194 return ::cppu::queryInterface(aType,
static_cast<css::ui::XContextChangeEventListener*
>(
this));
199 SfxToolBoxControl::acquire();
204 SfxToolBoxControl::disposing();
209 SfxToolBoxControl::release();
SFX_IMPL_TOOLBOX_CONTROL(ParaAboveSpacingControl, SvxULSpaceItem)
css::uno::Reference< css::lang::XComponent > m_xFrame
sal_uInt16 GetValue() const
static VclPtr< reference_type > Create(Arg &&... arg)
virtual VclPtr< InterimItemWindow > CreateItemWindow(vcl::Window *pParent) override
ParaAboveSpacingControl(sal_uInt16 nSlotId, ToolBoxItemId nId, ToolBox &rTbx)
virtual VclPtr< InterimItemWindow > CreateItemWindow(vcl::Window *pParent) override
ParaBelowSpacingControl(sal_uInt16 nSlotId, ToolBoxItemId nId, ToolBox &rTbx)
ParaFirstLineSpacingControl(sal_uInt16 nSlotId, ToolBoxItemId nId, ToolBox &rTbx)
virtual VclPtr< InterimItemWindow > CreateItemWindow(vcl::Window *pParent) override
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
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)
void SetContext(const vcl::EnumContext &eContext)
void SetUnit(FieldUnit eUnit)
void SetValue(SfxItemState eState, const SfxPoolItem *pState)
virtual VclPtr< InterimItemWindow > CreateItemWindow(vcl::Window *pParent) override
ParaLeftSpacingControl(sal_uInt16 nSlotId, ToolBoxItemId nId, ToolBox &rTbx)
virtual VclPtr< InterimItemWindow > CreateItemWindow(vcl::Window *pParent) override
ParaRightSpacingControl(sal_uInt16 nSlotId, ToolBoxItemId nId, ToolBox &rTbx)
virtual void StateChangedAtToolBoxControl(sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem *pState) override
virtual ~ParaULSpacingControl() override
void SetUnit(FieldUnit eUnit)
void SetValue(const SvxULSpaceItem *pItem)
static Application GetApplicationEnum(const OUString &rsApplicationName)
static Context GetContextEnum(const OUString &rsContextName)
void Disable(bool bChild=true)
void Enable(bool bEnable=true, bool bChild=true)
#define DBG_ASSERT(sCon, aError)