LibreOffice Module sw (master) 1
Classes | Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
SwNumRulesWithName Class Referencefinal

#include <uinums.hxx>

Classes

class  SwNumFormatGlobal
 

Public Member Functions

 SwNumRulesWithName (const SwNumRule &, const OUString &)
 
 SwNumRulesWithName (const SwNumRulesWithName &)
 
 ~SwNumRulesWithName ()
 
SwNumRulesWithNameoperator= (const SwNumRulesWithName &)
 
const OUString & GetName () const
 
void ResetNumRule (SwWrtShell &rSh, SwNumRule &) const
 
void GetNumFormat (size_t, SwNumFormat const *&, OUString const *&) const
 

Private Member Functions

void SetName (const OUString &rSet)
 
void SetNumFormat (size_t, SwNumFormat const &, OUString const &)
 
 SwNumRulesWithName ()=default
 

Private Attributes

OUString maName
 
std::unique_ptr< SwNumFormatGlobalm_aFormats [MAXLEVEL]
 

Friends

class sw::StoredChapterNumberingRules
 
class SwChapterNumRules
 

Detailed Description

Definition at line 36 of file uinums.hxx.

Constructor & Destructor Documentation

◆ SwNumRulesWithName() [1/3]

SwNumRulesWithName::SwNumRulesWithName ( )
privatedefault

◆ SwNumRulesWithName() [2/3]

SwNumRulesWithName::SwNumRulesWithName ( const SwNumRule rCopy,
const OUString &  rName 
)

Definition at line 106 of file uinums.cxx.

References SwNumRule::GetNumFormat(), m_aFormats, maName, MAXLEVEL, and n.

◆ SwNumRulesWithName() [3/3]

SwNumRulesWithName::SwNumRulesWithName ( const SwNumRulesWithName rCopy)

Definition at line 120 of file uinums.cxx.

◆ ~SwNumRulesWithName()

SwNumRulesWithName::~SwNumRulesWithName ( )

Definition at line 125 of file uinums.cxx.

Member Function Documentation

◆ GetName()

const OUString & SwNumRulesWithName::GetName ( ) const
inline

Definition at line 74 of file uinums.hxx.

References maName.

Referenced by sw::StoredChapterNumberingRules::getName(), IMPL_LINK(), and IMPL_LINK_NOARG().

◆ GetNumFormat()

void SwNumRulesWithName::GetNumFormat ( size_t  nIndex,
SwNumFormat const *&  rpNumFormat,
OUString const *&  rpName 
) const

Definition at line 160 of file uinums.cxx.

References m_aFormats, and nIndex.

Referenced by sw::StoredChapterNumberingRules::getByIndex().

◆ operator=()

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

Definition at line 129 of file uinums.cxx.

References m_aFormats, maName, MAXLEVEL, and n.

◆ ResetNumRule()

void SwNumRulesWithName::ResetNumRule ( SwWrtShell rSh,
SwNumRule rNumRule 
) const

◆ SetName()

void SwNumRulesWithName::SetName ( const OUString &  rSet)
inlineprivate

Definition at line 63 of file uinums.hxx.

References maName, and rSet.

Referenced by sw::StoredChapterNumberingRules::setName().

◆ SetNumFormat()

void SwNumRulesWithName::SetNumFormat ( size_t  nIndex,
SwNumFormat const &  rNumFormat,
OUString const &  rName 
)
private

Definition at line 167 of file uinums.cxx.

References m_aFormats, and nIndex.

Referenced by sw::StoredChapterNumberingRules::replaceByIndex().

Friends And Related Function Documentation

◆ sw::StoredChapterNumberingRules

friend class sw::StoredChapterNumberingRules
friend

Definition at line 61 of file uinums.hxx.

◆ SwChapterNumRules

friend class SwChapterNumRules
friend

Definition at line 62 of file uinums.hxx.

Member Data Documentation

◆ m_aFormats

std::unique_ptr<SwNumFormatGlobal> SwNumRulesWithName::m_aFormats[MAXLEVEL]
private

Definition at line 59 of file uinums.hxx.

Referenced by GetNumFormat(), operator=(), ResetNumRule(), SetNumFormat(), and SwNumRulesWithName().

◆ maName

OUString SwNumRulesWithName::maName
private

Definition at line 38 of file uinums.hxx.

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


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