24 #include <svx/svxids.hrc>
42 addStatusListener(
".uno:MetricUnit");
57 if ( nSID == SID_ATTR_METRIC )
63 if ( eState == SfxItemState::DISABLED )
71 if ( eState == SfxItemState::DEFAULT )
73 DBG_ASSERT( dynamic_cast<const XLineWidthItem*>( pState) !=
nullptr,
"wrong ItemType" );
77 pFld->
Update( static_cast<const XLineWidthItem*>(pState) );
89 sal_uInt16 nWhich = rPool.
GetWhich(SID_ATTR_LINE_WIDTH);
css::uno::Reference< css::lang::XComponent > m_xFrame
static SfxObjectShell * Current()
void set_sensitive(bool bSensitive)
SfxApplication * SfxGetpApp()
virtual MapUnit GetMetric(sal_uInt16 nWhich) const
SfxItemPool & GetPool() const
#define DBG_ASSERT(sCon, aError)
void Update(const XLineWidthItem *pItem)
void SetDestCoreUnit(MapUnit eUnit)
sal_uInt16 GetWhich(sal_uInt16 nSlot, bool bDeep=true) const
static VclPtr< reference_type > Create(Arg &&...arg)
SFX_IMPL_TOOLBOX_CONTROL(SvxLineWidthToolBoxControl, XLineWidthItem)
void Show(bool bVisible=true, ShowFlags nFlags=ShowFlags::NONE)