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

first line indent that may be applied to paragraphs More...

#include <lrspitem.hxx>

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

Public Member Functions

bool IsAutoFirst () const
 
void SetAutoFirst (const bool bNew)
 
void SetTextFirstLineOffset (const short nF, const sal_uInt16 nProp=100)
 
short GetTextFirstLineOffset () const
 
void SetPropTextFirstLineOffset (const sal_uInt16 nProp)
 
sal_uInt16 GetPropTextFirstLineOffset () const
 
void SetTextFirstLineOffsetValue (const short nValue)
 
 SvxFirstLineIndentItem (const sal_uInt16 nId)
 
 SvxFirstLineIndentItem (const short nOffset, const sal_uInt16 nId)
 
 SvxFirstLineIndentItem (SvxFirstLineIndentItem 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 SvxFirstLineIndentItemClone (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

short m_nFirstLineOffset = 0
 First-line indent always relative to GetTextLeft() More...
 
sal_uInt16 m_nPropFirstLineOffset = 100
 
bool m_bAutoFirst = false
 Automatic calculation of the first line indent. 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

first line indent that may be applied to paragraphs

Definition at line 132 of file lrspitem.hxx.

Constructor & Destructor Documentation

◆ SvxFirstLineIndentItem() [1/3]

SvxFirstLineIndentItem::SvxFirstLineIndentItem ( const sal_uInt16  nId)
explicit

Definition at line 920 of file frmitems.cxx.

References nId.

Referenced by Clone().

◆ SvxFirstLineIndentItem() [2/3]

SvxFirstLineIndentItem::SvxFirstLineIndentItem ( const short  nOffset,
const sal_uInt16  nId 
)

Definition at line 925 of file frmitems.cxx.

References nId.

◆ SvxFirstLineIndentItem() [3/3]

SvxFirstLineIndentItem::SvxFirstLineIndentItem ( SvxFirstLineIndentItem const &  )
default

Member Function Documentation

◆ Clone()

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

Implements SfxPoolItem.

Definition at line 1009 of file frmitems.cxx.

References SvxFirstLineIndentItem().

◆ dumpAsJSON()

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

Reimplemented from SfxPoolItem.

Definition at line 1079 of file frmitems.cxx.

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

◆ dumpAsXml()

void SvxFirstLineIndentItem::dumpAsXml ( xmlTextWriterPtr  pWriter) const
overridevirtual

Reimplemented from SfxPoolItem.

Definition at line 1069 of file frmitems.cxx.

References m_bAutoFirst, m_nFirstLineOffset, m_nPropFirstLineOffset, and SfxPoolItem::Which().

◆ GetPresentation()

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

◆ GetPropTextFirstLineOffset()

sal_uInt16 SvxFirstLineIndentItem::GetPropTextFirstLineOffset ( ) const
inline

Definition at line 149 of file lrspitem.hxx.

Referenced by operator==().

◆ GetTextFirstLineOffset()

short SvxFirstLineIndentItem::GetTextFirstLineOffset ( ) const
inline

Definition at line 146 of file lrspitem.hxx.

Referenced by dumpAsJSON(), SvxTextLeftMarginItem::GetLeft(), and operator==().

◆ HasMetrics()

bool SvxFirstLineIndentItem::HasMetrics ( ) const
overridevirtual

Reimplemented from SfxPoolItem.

Definition at line 1064 of file frmitems.cxx.

◆ IsAutoFirst()

bool SvxFirstLineIndentItem::IsAutoFirst ( ) const
inline

Definition at line 142 of file lrspitem.hxx.

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

◆ operator==()

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

◆ PutValue()

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

◆ QueryValue()

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

◆ ScaleMetrics()

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

Reimplemented from SfxPoolItem.

Definition at line 1059 of file frmitems.cxx.

References m_nFirstLineOffset, and BigInt::Scale().

◆ SetAutoFirst()

void SvxFirstLineIndentItem::SetAutoFirst ( const bool  bNew)
inline

Definition at line 143 of file lrspitem.hxx.

Referenced by PutValue().

◆ SetPropTextFirstLineOffset()

void SvxFirstLineIndentItem::SetPropTextFirstLineOffset ( const sal_uInt16  nProp)
inline

Definition at line 147 of file lrspitem.hxx.

Referenced by PutValue().

◆ SetTextFirstLineOffset()

void SvxFirstLineIndentItem::SetTextFirstLineOffset ( const short  nF,
const sal_uInt16  nProp = 100 
)

Definition at line 497 of file frmitems.cxx.

References m_nFirstLineOffset, and m_nPropFirstLineOffset.

◆ SetTextFirstLineOffsetValue()

void SvxFirstLineIndentItem::SetTextFirstLineOffsetValue ( const short  nValue)
inline

Definition at line 151 of file lrspitem.hxx.

References nValue.

Member Data Documentation

◆ m_bAutoFirst

bool SvxFirstLineIndentItem::m_bAutoFirst = false
private

Automatic calculation of the first line indent.

Definition at line 139 of file lrspitem.hxx.

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

◆ m_nFirstLineOffset

short SvxFirstLineIndentItem::m_nFirstLineOffset = 0
private

First-line indent always relative to GetTextLeft()

Definition at line 136 of file lrspitem.hxx.

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

◆ m_nPropFirstLineOffset

sal_uInt16 SvxFirstLineIndentItem::m_nPropFirstLineOffset = 100
private

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