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

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

#include <lrspitem.hxx>

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

Public Member Functions

tools::Long GetLeft (SvxFirstLineIndentItem const &rFirstLine) const
 get left margin without negative first-line indent More...
 
sal_uInt16 GetPropLeft () const
 
void SetTextLeft (const tools::Long nL, const sal_uInt16 nProp=100)
 
tools::Long GetTextLeft () const
 
 SvxTextLeftMarginItem (const sal_uInt16 nId)
 
 SvxTextLeftMarginItem (const tools::Long nLeft, const sal_uInt16 nId)
 
 SvxTextLeftMarginItem (SvxTextLeftMarginItem 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 SvxTextLeftMarginItemClone (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_nTextLeftMargin = 0
 left margin including negative first-line indent More...
 
sal_uInt16 m_nPropLeftMargin = 100
 

Friends

class SvxFirstLineIndentItem
 

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

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

Definition at line 90 of file lrspitem.hxx.

Constructor & Destructor Documentation

◆ SvxTextLeftMarginItem() [1/3]

SvxTextLeftMarginItem::SvxTextLeftMarginItem ( const sal_uInt16  nId)
explicit

Definition at line 743 of file frmitems.cxx.

References nId.

Referenced by Clone().

◆ SvxTextLeftMarginItem() [2/3]

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

Definition at line 748 of file frmitems.cxx.

References nId.

◆ SvxTextLeftMarginItem() [3/3]

SvxTextLeftMarginItem::SvxTextLeftMarginItem ( SvxTextLeftMarginItem const &  )
default

Member Function Documentation

◆ Clone()

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

Implements SfxPoolItem.

Definition at line 833 of file frmitems.cxx.

References SvxTextLeftMarginItem().

◆ dumpAsJSON()

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

Reimplemented from SfxPoolItem.

Definition at line 901 of file frmitems.cxx.

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

◆ dumpAsXml()

void SvxTextLeftMarginItem::dumpAsXml ( xmlTextWriterPtr  pWriter) const
overridevirtual

Reimplemented from SfxPoolItem.

Definition at line 892 of file frmitems.cxx.

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

◆ GetLeft()

tools::Long SvxTextLeftMarginItem::GetLeft ( SvxFirstLineIndentItem const &  rFirstLine) const

get left margin without negative first-line indent

Definition at line 559 of file frmitems.cxx.

References SvxFirstLineIndentItem::GetTextFirstLineOffset(), and m_nTextLeftMargin.

◆ GetPresentation()

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

◆ GetPropLeft()

sal_uInt16 SvxTextLeftMarginItem::GetPropLeft ( ) const
inline

Definition at line 103 of file lrspitem.hxx.

Referenced by operator==().

◆ GetTextLeft()

tools::Long SvxTextLeftMarginItem::GetTextLeft ( ) const

Definition at line 554 of file frmitems.cxx.

References m_nTextLeftMargin.

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

◆ HasMetrics()

bool SvxTextLeftMarginItem::HasMetrics ( ) const
overridevirtual

Reimplemented from SfxPoolItem.

Definition at line 887 of file frmitems.cxx.

◆ operator==()

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

Implements SfxPoolItem.

Definition at line 823 of file frmitems.cxx.

References GetPropLeft(), GetTextLeft(), m_nPropLeftMargin, and m_nTextLeftMargin.

◆ PutValue()

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

◆ QueryValue()

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

◆ ScaleMetrics()

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

Reimplemented from SfxPoolItem.

Definition at line 882 of file frmitems.cxx.

References m_nTextLeftMargin, and BigInt::Scale().

◆ SetTextLeft()

void SvxTextLeftMarginItem::SetTextLeft ( const tools::Long  nL,
const sal_uInt16  nProp = 100 
)

Definition at line 533 of file frmitems.cxx.

References m_nPropLeftMargin, and m_nTextLeftMargin.

Referenced by PutValue().

Friends And Related Function Documentation

◆ SvxFirstLineIndentItem

friend class SvxFirstLineIndentItem
friend

Definition at line 93 of file lrspitem.hxx.

Member Data Documentation

◆ m_nPropLeftMargin

sal_uInt16 SvxTextLeftMarginItem::m_nPropLeftMargin = 100
private

Definition at line 96 of file lrspitem.hxx.

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

◆ m_nTextLeftMargin

tools::Long SvxTextLeftMarginItem::m_nTextLeftMargin = 0
private

left margin including negative first-line indent

Definition at line 95 of file lrspitem.hxx.

Referenced by dumpAsXml(), GetLeft(), GetPresentation(), GetTextLeft(), operator==(), ScaleMetrics(), and SetTextLeft().


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