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

#include <lrspitem.hxx>

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

Public Member Functions

void SetRight (const tools::Long nR, const sal_uInt16 nProp=100)
 
tools::Long GetRight () const
 
sal_uInt16 GetPropRight () const
 
 SvxRightMarginItem (const sal_uInt16 nId)
 
 SvxRightMarginItem (const tools::Long nRight, const sal_uInt16 nId)
 
 SvxRightMarginItem (SvxRightMarginItem 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 SvxRightMarginItemClone (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_nRightMargin = 0
 right margin: nothing special More...
 
sal_uInt16 m_nPropRightMargin = 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

Definition at line 177 of file lrspitem.hxx.

Constructor & Destructor Documentation

◆ SvxRightMarginItem() [1/3]

SvxRightMarginItem::SvxRightMarginItem ( const sal_uInt16  nId)
explicit

Definition at line 1098 of file frmitems.cxx.

References nId.

Referenced by Clone().

◆ SvxRightMarginItem() [2/3]

SvxRightMarginItem::SvxRightMarginItem ( const tools::Long  nRight,
const sal_uInt16  nId 
)

Definition at line 1103 of file frmitems.cxx.

References nId.

◆ SvxRightMarginItem() [3/3]

SvxRightMarginItem::SvxRightMarginItem ( SvxRightMarginItem const &  )
default

Member Function Documentation

◆ Clone()

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

Implements SfxPoolItem.

Definition at line 1188 of file frmitems.cxx.

References SvxRightMarginItem().

◆ dumpAsJSON()

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

Reimplemented from SfxPoolItem.

Definition at line 1257 of file frmitems.cxx.

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

◆ dumpAsXml()

void SvxRightMarginItem::dumpAsXml ( xmlTextWriterPtr  pWriter) const
overridevirtual

Reimplemented from SfxPoolItem.

Definition at line 1248 of file frmitems.cxx.

References m_nPropRightMargin, m_nRightMargin, and SfxPoolItem::Which().

◆ GetPresentation()

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

◆ GetPropRight()

sal_uInt16 SvxRightMarginItem::GetPropRight ( ) const
inline

Definition at line 191 of file lrspitem.hxx.

Referenced by operator==().

◆ GetRight()

tools::Long SvxRightMarginItem::GetRight ( ) const
inline

Definition at line 189 of file lrspitem.hxx.

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

◆ HasMetrics()

bool SvxRightMarginItem::HasMetrics ( ) const
overridevirtual

Reimplemented from SfxPoolItem.

Definition at line 1243 of file frmitems.cxx.

◆ operator==()

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

Implements SfxPoolItem.

Definition at line 1178 of file frmitems.cxx.

References GetPropRight(), GetRight(), m_nPropRightMargin, and m_nRightMargin.

◆ PutValue()

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

◆ QueryValue()

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

◆ ScaleMetrics()

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

Reimplemented from SfxPoolItem.

Definition at line 1238 of file frmitems.cxx.

References m_nRightMargin, and BigInt::Scale().

◆ SetRight()

void SvxRightMarginItem::SetRight ( const tools::Long  nR,
const sal_uInt16  nProp = 100 
)

Definition at line 481 of file frmitems.cxx.

References m_nPropRightMargin, and m_nRightMargin.

Referenced by PutValue().

Member Data Documentation

◆ m_nPropRightMargin

sal_uInt16 SvxRightMarginItem::m_nPropRightMargin = 100
private

Definition at line 182 of file lrspitem.hxx.

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

◆ m_nRightMargin

tools::Long SvxRightMarginItem::m_nRightMargin = 0
private

right margin: nothing special

Definition at line 181 of file lrspitem.hxx.

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


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