LibreOffice Module sw (master) 1
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
SwFormatLineNumber Class Referencefinal

Contains the line numbering properties of this paragraph. More...

#include <fmtline.hxx>

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

Public Member Functions

 SwFormatLineNumber ()
 
virtual ~SwFormatLineNumber () override
 
 SwFormatLineNumber (SwFormatLineNumber const &)=default
 
 SwFormatLineNumber (SwFormatLineNumber &&)=default
 
SwFormatLineNumberoperator= (SwFormatLineNumber const &)=delete
 
SwFormatLineNumberoperator= (SwFormatLineNumber &&)=delete
 
virtual bool operator== (const SfxPoolItem &) const override
 "Pure virtual methods" of SfxPoolItem. More...
 
virtual SwFormatLineNumberClone (SfxItemPool *pPool=nullptr) const override
 
virtual bool GetPresentation (SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &rIntl) 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
 
sal_uLong GetStartValue () const
 
bool IsCount () const
 
void SetStartValue (sal_uLong nNew)
 
void SetCountLines (bool b)
 
- 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
 

Static Public Member Functions

static SfxPoolItemCreateDefault ()
 

Private Attributes

sal_uLong m_nStartValue:24
 Starting value for the paragraph. 0 == no starting value. More...
 
bool m_bCountLines:1
 Also count lines of paragraph. 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

Contains the line numbering properties of this paragraph.

Format -> Paragraph -> Outline & List tab, Line Numbering section is the UI for this.

Definition at line 32 of file fmtline.hxx.

Constructor & Destructor Documentation

◆ SwFormatLineNumber() [1/3]

SwFormatLineNumber::SwFormatLineNumber ( )

Definition at line 2211 of file atrfrm.cxx.

References m_bCountLines, and m_nStartValue.

Referenced by Clone(), and CreateDefault().

◆ ~SwFormatLineNumber()

SwFormatLineNumber::~SwFormatLineNumber ( )
overridevirtual

Definition at line 2218 of file atrfrm.cxx.

◆ SwFormatLineNumber() [2/3]

SwFormatLineNumber::SwFormatLineNumber ( SwFormatLineNumber const &  )
default

◆ SwFormatLineNumber() [3/3]

SwFormatLineNumber::SwFormatLineNumber ( SwFormatLineNumber &&  )
default

Member Function Documentation

◆ Clone()

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

Implements SfxPoolItem.

Definition at line 2230 of file atrfrm.cxx.

References SwFormatLineNumber().

◆ CreateDefault()

SfxPoolItem * SwFormatLineNumber::CreateDefault ( )
static

Definition at line 139 of file atrfrm.cxx.

References SwFormatLineNumber().

◆ GetPresentation()

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

Reimplemented from SfxPoolItem.

Definition at line 614 of file attrdesc.cxx.

References GetStartValue(), IsCount(), and SwResId().

◆ GetStartValue()

sal_uLong SwFormatLineNumber::GetStartValue ( ) const
inline

◆ IsCount()

bool SwFormatLineNumber::IsCount ( ) const
inline

◆ operator=() [1/2]

SwFormatLineNumber & SwFormatLineNumber::operator= ( SwFormatLineNumber &&  )
delete

◆ operator=() [2/2]

SwFormatLineNumber & SwFormatLineNumber::operator= ( SwFormatLineNumber const &  )
delete

◆ operator==()

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

"Pure virtual methods" of SfxPoolItem.

Implements SfxPoolItem.

Definition at line 2222 of file atrfrm.cxx.

References GetStartValue(), IsCount(), m_bCountLines, and m_nStartValue.

◆ PutValue()

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

Reimplemented from SfxPoolItem.

Definition at line 2255 of file atrfrm.cxx.

References MID_LINENUMBER_COUNT, MID_LINENUMBER_STARTVALUE, SetCountLines(), and SetStartValue().

◆ QueryValue()

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

Reimplemented from SfxPoolItem.

Definition at line 2235 of file atrfrm.cxx.

References GetStartValue(), IsCount(), MID_LINENUMBER_COUNT, and MID_LINENUMBER_STARTVALUE.

◆ SetCountLines()

void SwFormatLineNumber::SetCountLines ( bool  b)
inline

◆ SetStartValue()

void SwFormatLineNumber::SetStartValue ( sal_uLong  nNew)
inline

Member Data Documentation

◆ m_bCountLines

bool SwFormatLineNumber::m_bCountLines
private

Also count lines of paragraph.

Definition at line 35 of file fmtline.hxx.

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

◆ m_nStartValue

sal_uLong SwFormatLineNumber::m_nStartValue
private

Starting value for the paragraph. 0 == no starting value.

Definition at line 34 of file fmtline.hxx.

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


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