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

gutter margin - for page styles More...

#include <lrspitem.hxx>

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

Public Member Functions

void SetGutterMargin (const tools::Long nGutterMargin)
 
tools::Long GetGutterMargin () const
 
 SvxGutterLeftMarginItem (const sal_uInt16 nId)
 
 SvxGutterLeftMarginItem (SvxGutterLeftMarginItem 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 SvxGutterLeftMarginItemClone (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_nGutterMargin = 0
 The amount of extra space added to the left margin. More...
 

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

gutter margin - for page styles

Definition at line 217 of file lrspitem.hxx.

Constructor & Destructor Documentation

◆ SvxGutterLeftMarginItem() [1/2]

SvxGutterLeftMarginItem::SvxGutterLeftMarginItem ( const sal_uInt16  nId)
explicit

Definition at line 1276 of file frmitems.cxx.

References nId.

Referenced by Clone().

◆ SvxGutterLeftMarginItem() [2/2]

SvxGutterLeftMarginItem::SvxGutterLeftMarginItem ( SvxGutterLeftMarginItem const &  )
default

Member Function Documentation

◆ Clone()

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

Implements SfxPoolItem.

Definition at line 1335 of file frmitems.cxx.

References SvxGutterLeftMarginItem().

◆ dumpAsJSON()

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

Reimplemented from SfxPoolItem.

Definition at line 1371 of file frmitems.cxx.

References SfxPoolItem::dumpAsJSON().

◆ dumpAsXml()

void SvxGutterLeftMarginItem::dumpAsXml ( xmlTextWriterPtr  pWriter) const
overridevirtual

Reimplemented from SfxPoolItem.

Definition at line 1362 of file frmitems.cxx.

References m_nGutterMargin, and SfxPoolItem::Which().

◆ GetGutterMargin()

tools::Long SvxGutterLeftMarginItem::GetGutterMargin ( ) const
inline

Definition at line 225 of file lrspitem.hxx.

Referenced by operator==().

◆ GetPresentation()

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

Reimplemented from SfxPoolItem.

Definition at line 1340 of file frmitems.cxx.

◆ HasMetrics()

bool SvxGutterLeftMarginItem::HasMetrics ( ) const
overridevirtual

Reimplemented from SfxPoolItem.

Definition at line 1357 of file frmitems.cxx.

◆ operator==()

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

Implements SfxPoolItem.

Definition at line 1326 of file frmitems.cxx.

References GetGutterMargin(), and m_nGutterMargin.

◆ PutValue()

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

Reimplemented from SfxPoolItem.

Definition at line 1301 of file frmitems.cxx.

References CONVERT_TWIPS, MID_GUTTER_MARGIN, o3tl::mm100, SetGutterMargin(), and o3tl::toTwips().

◆ QueryValue()

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

Reimplemented from SfxPoolItem.

Definition at line 1281 of file frmitems.cxx.

References CONVERT_TWIPS, convertTwipToMm100(), m_nGutterMargin, and MID_GUTTER_MARGIN.

◆ ScaleMetrics()

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

Reimplemented from SfxPoolItem.

Definition at line 1352 of file frmitems.cxx.

◆ SetGutterMargin()

void SvxGutterLeftMarginItem::SetGutterMargin ( const tools::Long  nGutterMargin)
inline

Definition at line 224 of file lrspitem.hxx.

Referenced by PutValue().

Member Data Documentation

◆ m_nGutterMargin

tools::Long SvxGutterLeftMarginItem::m_nGutterMargin = 0
private

The amount of extra space added to the left margin.

Definition at line 221 of file lrspitem.hxx.

Referenced by dumpAsXml(), operator==(), and QueryValue().


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