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

#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 SfxPoolItemClone (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
 
bool operator!= (const SfxPoolItem &rItem) const
 
virtual bool operator< (const SfxPoolItem &) const
 
virtual bool IsSortable () const
 
virtual void ScaleMetrics (long lMult, long lDiv)
 
virtual bool HasMetrics () const
 
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 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

- Protected Member Functions inherited from SfxPoolItem
 SfxPoolItem (sal_uInt16 nWhich=0)
 
 SfxPoolItem (const SfxPoolItem &rCopy)
 

Detailed Description

Definition at line 30 of file fmtline.hxx.

Constructor & Destructor Documentation

SwFormatLineNumber::SwFormatLineNumber ( )

Definition at line 2066 of file atrfrm.cxx.

References m_bCountLines, and m_nStartValue.

Referenced by Clone(), and CreateDefault().

SwFormatLineNumber::~SwFormatLineNumber ( )
overridevirtual

Definition at line 2073 of file atrfrm.cxx.

SwFormatLineNumber::SwFormatLineNumber ( SwFormatLineNumber const &  )
default
SwFormatLineNumber::SwFormatLineNumber ( SwFormatLineNumber &&  )
default

Member Function Documentation

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

Implements SfxPoolItem.

Definition at line 2085 of file atrfrm.cxx.

References SwFormatLineNumber().

SfxPoolItem * SwFormatLineNumber::CreateDefault ( )
static

Definition at line 101 of file atrfrm.cxx.

References SwFormatLineNumber().

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

Reimplemented from SfxPoolItem.

Definition at line 615 of file attrdesc.cxx.

References SwResId().

sal_uLong SwFormatLineNumber::GetStartValue ( ) const
inline
bool SwFormatLineNumber::IsCount ( ) const
inline
SwFormatLineNumber& SwFormatLineNumber::operator= ( SwFormatLineNumber const &  )
delete
SwFormatLineNumber& SwFormatLineNumber::operator= ( SwFormatLineNumber &&  )
delete
bool SwFormatLineNumber::operator== ( const SfxPoolItem rAttr) const
overridevirtual

"Pure virtual methods" of SfxPoolItem.

Implements SfxPoolItem.

Definition at line 2077 of file atrfrm.cxx.

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

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

Reimplemented from SfxPoolItem.

Definition at line 2110 of file atrfrm.cxx.

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

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

Reimplemented from SfxPoolItem.

Definition at line 2090 of file atrfrm.cxx.

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

void SwFormatLineNumber::SetCountLines ( bool  b)
inline
void SwFormatLineNumber::SetStartValue ( sal_uLong  nNew)
inline

Member Data Documentation

bool SwFormatLineNumber::m_bCountLines
private

Also count lines of paragraph.

Definition at line 33 of file fmtline.hxx.

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

sal_uLong SwFormatLineNumber::m_nStartValue
private

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

Definition at line 32 of file fmtline.hxx.

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


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