LibreOffice Module editeng (master) 1
Public Member Functions | Private Attributes | List of all members
SvxLeftMarginItem Class Referencefinal

GetLeft() - for everything that's not applied to a paragraph. More...

#include <lrspitem.hxx>

Inheritance diagram for SvxLeftMarginItem:
[legend]
Collaboration diagram for SvxLeftMarginItem:
[legend]

Public Member Functions

void SetLeft (const tools::Long nL, const sal_uInt16 nProp=100)
 
tools::Long GetLeft () const
 
sal_uInt16 GetPropLeft () const
 
 SvxLeftMarginItem (const sal_uInt16 nId)
 
 SvxLeftMarginItem (const tools::Long nLeft, const sal_uInt16 nId)
 
 SvxLeftMarginItem (SvxLeftMarginItem const &)=default
 
virtual bool operator== (const SfxPoolItem &) const override
 
virtual bool QueryValue (css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
 
virtual bool PutValue (const css::uno::Any &rVal, sal_uInt8 nMemberId) override
 
virtual bool GetPresentation (SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
 
virtual SvxLeftMarginItemClone (SfxItemPool *pPool=nullptr) const override
 
virtual void ScaleMetrics (tools::Long nMult, tools::Long nDiv) override
 
virtual bool HasMetrics () const override
 
void dumpAsXml (xmlTextWriterPtr pWriter) const override
 
virtual boost::property_tree::ptree dumpAsJSON () const override
 
- Public Member Functions inherited from SfxPoolItem
void AddRef (sal_uInt32 n=1) const
 
virtual ~SfxPoolItem ()
 
void SetWhich (sal_uInt16 nId)
 
sal_uInt16 Which () const
 
T & StaticWhichCast (TypedWhichId< T > nId)
 
const T & StaticWhichCast (TypedWhichId< T > nId) const
 
T * DynamicWhichCast (TypedWhichId< T > nId)
 
const T * DynamicWhichCast (TypedWhichId< T > nId) const
 
virtual bool operator== (const SfxPoolItem &) const=0
 
bool operator!= (const SfxPoolItem &rItem) const
 
virtual bool operator< (const SfxPoolItem &) const
 
virtual bool IsSortable () const
 
virtual bool HasLookup () const
 
virtual lookup_iterator Lookup (lookup_iterator, lookup_iterator end) const
 
virtual bool GetPresentation (SfxItemPresentation ePresentation, MapUnit eCoreMetric, MapUnit ePresentationMetric, OUString &rText, const IntlWrapper &rIntlWrapper) const
 
virtual void ScaleMetrics (tools::Long lMult, tools::Long lDiv)
 
virtual bool HasMetrics () const
 
virtual bool QueryValue (css::uno::Any &rVal, sal_uInt8 nMemberId=0) const
 
virtual bool PutValue (const css::uno::Any &rVal, sal_uInt8 nMemberId)
 
virtual SfxPoolItemClone (SfxItemPool *pPool=nullptr) const=0
 
std::unique_ptr< SfxPoolItemCloneSetWhich (sal_uInt16 nNewWhich) const
 
std::unique_ptr< T > CloneSetWhich (TypedWhichId< T > nId) const
 
sal_uInt32 GetRefCount () const
 
SfxItemKind GetKind () const
 
virtual void dumpAsXml (xmlTextWriterPtr pWriter) const
 
virtual boost::property_tree::ptree dumpAsJSON () const
 
virtual bool IsVoidItem () const
 

Private Attributes

tools::Long m_nLeftMargin = 0
 left margin: nothing special More...
 
sal_uInt16 m_nPropLeftMargin = 100
 

Additional Inherited Members

- Public Types inherited from SfxPoolItem
typedef std::vector< SfxPoolItem * >::const_iterator lookup_iterator
 
- Protected Member Functions inherited from SfxPoolItem
 SfxPoolItem (sal_uInt16 nWhich=0)
 
 SfxPoolItem (const SfxPoolItem &rCopy)
 

Detailed Description

GetLeft() - for everything that's not applied to a paragraph.

Definition at line 50 of file lrspitem.hxx.

Constructor & Destructor Documentation

◆ SvxLeftMarginItem() [1/3]

SvxLeftMarginItem::SvxLeftMarginItem ( const sal_uInt16  nId)
explicit

Definition at line 575 of file frmitems.cxx.

References nId.

Referenced by Clone().

◆ SvxLeftMarginItem() [2/3]

SvxLeftMarginItem::SvxLeftMarginItem ( const tools::Long  nLeft,
const sal_uInt16  nId 
)

Definition at line 580 of file frmitems.cxx.

References nId.

◆ SvxLeftMarginItem() [3/3]

SvxLeftMarginItem::SvxLeftMarginItem ( SvxLeftMarginItem const &  )
default

Member Function Documentation

◆ Clone()

SvxLeftMarginItem * SvxLeftMarginItem::Clone ( SfxItemPool pPool = nullptr) const
overridevirtual

Implements SfxPoolItem.

Definition at line 656 of file frmitems.cxx.

References SvxLeftMarginItem().

◆ dumpAsJSON()

boost::property_tree::ptree SvxLeftMarginItem::dumpAsJSON ( ) const
overridevirtual

Reimplemented from SfxPoolItem.

Definition at line 724 of file frmitems.cxx.

References SfxPoolItem::dumpAsJSON(), GetLeft(), and GetMetricText().

◆ dumpAsXml()

void SvxLeftMarginItem::dumpAsXml ( xmlTextWriterPtr  pWriter) const
overridevirtual

Reimplemented from SfxPoolItem.

Definition at line 715 of file frmitems.cxx.

References m_nLeftMargin, m_nPropLeftMargin, and SfxPoolItem::Which().

◆ GetLeft()

tools::Long SvxLeftMarginItem::GetLeft ( ) const
inline

Definition at line 62 of file lrspitem.hxx.

Referenced by dumpAsJSON(), and operator==().

◆ GetPresentation()

bool SvxLeftMarginItem::GetPresentation ( SfxItemPresentation  ePres,
MapUnit  eCoreMetric,
MapUnit  ePresMetric,
OUString &  rText,
const IntlWrapper rIntl 
) const
overridevirtual

◆ GetPropLeft()

sal_uInt16 SvxLeftMarginItem::GetPropLeft ( ) const
inline

Definition at line 64 of file lrspitem.hxx.

Referenced by operator==().

◆ HasMetrics()

bool SvxLeftMarginItem::HasMetrics ( ) const
overridevirtual

Reimplemented from SfxPoolItem.

Definition at line 710 of file frmitems.cxx.

◆ operator==()

bool SvxLeftMarginItem::operator== ( const SfxPoolItem rAttr) const
overridevirtual

Implements SfxPoolItem.

Definition at line 646 of file frmitems.cxx.

References GetLeft(), GetPropLeft(), m_nLeftMargin, and m_nPropLeftMargin.

◆ PutValue()

bool SvxLeftMarginItem::PutValue ( const css::uno::Any &  rVal,
sal_uInt8  nMemberId 
)
overridevirtual

◆ QueryValue()

bool SvxLeftMarginItem::QueryValue ( css::uno::Any &  rVal,
sal_uInt8  nMemberId = 0 
) const
overridevirtual

Reimplemented from SfxPoolItem.

Definition at line 586 of file frmitems.cxx.

References CONVERT_TWIPS, convertTwipToMm100(), m_nLeftMargin, m_nPropLeftMargin, MID_L_MARGIN, and MID_L_REL_MARGIN.

◆ ScaleMetrics()

void SvxLeftMarginItem::ScaleMetrics ( tools::Long  nMult,
tools::Long  nDiv 
)
overridevirtual

Reimplemented from SfxPoolItem.

Definition at line 705 of file frmitems.cxx.

References m_nLeftMargin, and BigInt::Scale().

◆ SetLeft()

void SvxLeftMarginItem::SetLeft ( const tools::Long  nL,
const sal_uInt16  nProp = 100 
)

Definition at line 468 of file frmitems.cxx.

References m_nLeftMargin, and m_nPropLeftMargin.

Referenced by PutValue().

Member Data Documentation

◆ m_nLeftMargin

tools::Long SvxLeftMarginItem::m_nLeftMargin = 0
private

left margin: nothing special

Definition at line 54 of file lrspitem.hxx.

Referenced by dumpAsXml(), GetPresentation(), operator==(), QueryValue(), ScaleMetrics(), and SetLeft().

◆ m_nPropLeftMargin

sal_uInt16 SvxLeftMarginItem::m_nPropLeftMargin = 100
private

Definition at line 55 of file lrspitem.hxx.

Referenced by dumpAsXml(), GetPresentation(), operator==(), PutValue(), QueryValue(), and SetLeft().


The documentation for this class was generated from the following files: