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

#include <numitem.hxx>

Public Member Functions

 SvxNumRule (SvxNumRuleFlags nFeatures, sal_uInt16 nLevels, bool bCont, SvxNumRuleType eType=SvxNumRuleType::NUMBERING, SvxNumberFormat::SvxNumPositionAndSpaceMode eDefaultNumberFormatPositionAndSpaceMode=SvxNumberFormat::LABEL_WIDTH_AND_POSITION)
 
 SvxNumRule (const SvxNumRule &rCopy)
 
 SvxNumRule (SvxNumRule &&) noexcept
 
 SvxNumRule (SvStream &rStream)
 
 ~SvxNumRule ()
 
bool operator== (const SvxNumRule &) const
 
bool operator!= (const SvxNumRule &rRule) const
 
SvxNumRuleoperator= (const SvxNumRule &)
 
SvxNumRuleoperator= (SvxNumRule &&) noexcept
 
void Store (SvStream &rStream)
 
void dumpAsXml (xmlTextWriterPtr pWriter) const
 
const SvxNumberFormatGet (sal_uInt16 nLevel) const
 
const SvxNumberFormatGetLevel (sal_uInt16 nLevel) const
 
void SetLevel (sal_uInt16 nLevel, const SvxNumberFormat &rFmt, bool bIsValid=true)
 
void SetLevel (sal_uInt16 nLevel, const SvxNumberFormat *pFmt)
 
bool IsContinuousNumbering () const
 
void SetContinuousNumbering (bool bSet)
 
sal_uInt16 GetLevelCount () const
 
bool IsFeatureSupported (SvxNumRuleFlags nFeature) const
 
SvxNumRuleFlags GetFeatureFlags () const
 
void SetFeatureFlag (SvxNumRuleFlags nFlag, bool bSet=true)
 
OUString MakeNumString (const SvxNodeNum &) const
 
SvxNumRuleType GetNumRuleType () const
 
void UnLinkGraphics ()
 

Private Attributes

std::unique_ptr< SvxNumberFormataFmts [SVX_MAX_NUM]
 
sal_uInt16 nLevelCount
 
SvxNumRuleFlags nFeatureFlags
 
SvxNumRuleType eNumberingType
 
bool bContinuousNumbering
 
bool aFmtsSet [SVX_MAX_NUM]
 

Static Private Attributes

static sal_Int32 nRefCount = 0
 

Detailed Description

Definition at line 257 of file numitem.hxx.

Constructor & Destructor Documentation

◆ SvxNumRule() [1/4]

SvxNumRule::SvxNumRule ( SvxNumRuleFlags  nFeatures,
sal_uInt16  nLevels,
bool  bCont,
SvxNumRuleType  eType = SvxNumRuleType::NUMBERING,
SvxNumberFormat::SvxNumPositionAndSpaceMode  eDefaultNumberFormatPositionAndSpaceMode = SvxNumberFormat::LABEL_WIDTH_AND_POSITION 
)

◆ SvxNumRule() [2/4]

SvxNumRule::SvxNumRule ( const SvxNumRule rCopy)

◆ SvxNumRule() [3/4]

SvxNumRule::SvxNumRule ( SvxNumRule &&  rCopy)
noexcept

Definition at line 743 of file numitem.cxx.

References i, nRefCount, and SVX_MAX_NUM.

◆ SvxNumRule() [4/4]

SvxNumRule::SvxNumRule ( SvStream rStream)

◆ ~SvxNumRule()

SvxNumRule::~SvxNumRule ( )

Definition at line 848 of file numitem.cxx.

References nRefCount, pStdNumFmt, and pStdOutlineNumFmt.

Member Function Documentation

◆ dumpAsXml()

void SvxNumRule::dumpAsXml ( xmlTextWriterPtr  pWriter) const

◆ Get()

const SvxNumberFormat * SvxNumRule::Get ( sal_uInt16  nLevel) const

◆ GetFeatureFlags()

SvxNumRuleFlags SvxNumRule::GetFeatureFlags ( ) const
inline

Definition at line 301 of file numitem.hxx.

Referenced by SvxConvertNumRule().

◆ GetLevel()

const SvxNumberFormat & SvxNumRule::GetLevel ( sal_uInt16  nLevel) const

◆ GetLevelCount()

sal_uInt16 SvxNumRule::GetLevelCount ( ) const
inline

◆ GetNumRuleType()

SvxNumRuleType SvxNumRule::GetNumRuleType ( ) const
inline

Definition at line 306 of file numitem.hxx.

Referenced by SvxNumBulletItem::PutValue().

◆ IsContinuousNumbering()

bool SvxNumRule::IsContinuousNumbering ( ) const
inline

Definition at line 293 of file numitem.hxx.

Referenced by MakeNumString(), and SvxConvertNumRule().

◆ IsFeatureSupported()

bool SvxNumRule::IsFeatureSupported ( SvxNumRuleFlags  nFeature) const
inline

Definition at line 299 of file numitem.hxx.

◆ MakeNumString()

OUString SvxNumRule::MakeNumString ( const SvxNodeNum rNum) const

◆ operator!=()

bool SvxNumRule::operator!= ( const SvxNumRule rRule) const
inline

Definition at line 281 of file numitem.hxx.

◆ operator=() [1/2]

SvxNumRule & SvxNumRule::operator= ( const SvxNumRule rCopy)

◆ operator=() [2/2]

SvxNumRule & SvxNumRule::operator= ( SvxNumRule &&  rCopy)
noexcept

Definition at line 879 of file numitem.cxx.

References i, nLevelCount, and SVX_MAX_NUM.

◆ operator==()

bool SvxNumRule::operator== ( const SvxNumRule rCopy) const

Definition at line 897 of file numitem.cxx.

References aFmts, aFmtsSet, bContinuousNumbering, eNumberingType, i, nFeatureFlags, and nLevelCount.

◆ SetContinuousNumbering()

void SvxNumRule::SetContinuousNumbering ( bool  bSet)
inline

Definition at line 295 of file numitem.hxx.

◆ SetFeatureFlag()

void SvxNumRule::SetFeatureFlag ( SvxNumRuleFlags  nFlag,
bool  bSet = true 
)
inline

Definition at line 302 of file numitem.hxx.

◆ SetLevel() [1/2]

void SvxNumRule::SetLevel ( sal_uInt16  nLevel,
const SvxNumberFormat rFmt,
bool  bIsValid = true 
)

◆ SetLevel() [2/2]

void SvxNumRule::SetLevel ( sal_uInt16  nLevel,
const SvxNumberFormat pFmt 
)

Definition at line 964 of file numitem.cxx.

References aFmts, aFmtsSet, DBG_ASSERT, SetLevel(), and SVX_MAX_NUM.

◆ Store()

void SvxNumRule::Store ( SvStream rStream)

◆ UnLinkGraphics()

void SvxNumRule::UnLinkGraphics ( )

Member Data Documentation

◆ aFmts

std::unique_ptr<SvxNumberFormat> SvxNumRule::aFmts[SVX_MAX_NUM]
private

Definition at line 259 of file numitem.hxx.

Referenced by dumpAsXml(), Get(), GetLevel(), operator=(), operator==(), SetLevel(), Store(), and SvxNumRule().

◆ aFmtsSet

bool SvxNumRule::aFmtsSet[SVX_MAX_NUM]
private

Definition at line 264 of file numitem.hxx.

Referenced by Get(), operator=(), operator==(), SetLevel(), Store(), and SvxNumRule().

◆ bContinuousNumbering

bool SvxNumRule::bContinuousNumbering
private

Definition at line 263 of file numitem.hxx.

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

◆ eNumberingType

SvxNumRuleType SvxNumRule::eNumberingType
private

Definition at line 262 of file numitem.hxx.

Referenced by dumpAsXml(), GetLevel(), operator=(), operator==(), Store(), and SvxNumRule().

◆ nFeatureFlags

SvxNumRuleFlags SvxNumRule::nFeatureFlags
private

Definition at line 261 of file numitem.hxx.

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

◆ nLevelCount

sal_uInt16 SvxNumRule::nLevelCount
private

Definition at line 260 of file numitem.hxx.

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

◆ nRefCount

sal_Int32 SvxNumRule::nRefCount = 0
staticprivate

Definition at line 266 of file numitem.hxx.

Referenced by SvxNumRule(), and ~SvxNumRule().


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