LibreOffice Module sw (master) 1
Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
sw::DocumentListsManager Class Referencefinal

#include <DocumentListsManager.hxx>

Inheritance diagram for sw::DocumentListsManager:
[legend]
Collaboration diagram for sw::DocumentListsManager:
[legend]

Public Member Functions

 DocumentListsManager (SwDoc &i_rSwdoc)
 
SwListcreateList (const OUString &rListId, const OUString &rDefaultListStyleName) override
 
SwListgetListByName (const OUString &rListId) const override
 
void createListForListStyle (const OUString &rListStyleName) override
 
SwListgetListForListStyle (const OUString &rListStyleName) const override
 
void deleteListForListStyle (const OUString &rListStyleName) override
 
void deleteListsByDefaultListStyle (const OUString &rListStyleName) override
 
void trackChangeOfListStyleName (const OUString &rListStyleName, const OUString &rNewListStyleName) override
 
virtual ~DocumentListsManager () override
 
virtual SwListcreateList (const OUString &rListId, const OUString &rDefaultListStyleName)=0
 
virtual SwListgetListByName (const OUString &rListId) const =0
 
virtual void createListForListStyle (const OUString &rListStyleName)=0
 
virtual SwListgetListForListStyle (const OUString &rListStyleName) const =0
 
virtual void deleteListForListStyle (const OUString &rListStyleName)=0
 
virtual void deleteListsByDefaultListStyle (const OUString &rListStyleName)=0
 
virtual void trackChangeOfListStyleName (const OUString &rListStyleName, const OUString &rNewListStyleName)=0
 

Private Types

typedef std::unique_ptr< SwList, o3tl::default_delete< SwList > > SwListPtr
 

Private Member Functions

 DocumentListsManager (DocumentListsManager const &)=delete
 
DocumentListsManageroperator= (DocumentListsManager const &)=delete
 
OUString CreateUniqueListId ()
 
OUString MakeListIdUnique (const OUString &aSuggestedUniqueListId)
 

Private Attributes

SwDocm_rDoc
 
std::unordered_map< OUString, SwListPtrmaLists
 
std::unordered_map< OUString, SwList * > maListStyleLists
 

Additional Inherited Members

- Protected Member Functions inherited from IDocumentListsAccess
virtual ~IDocumentListsAccess ()
 

Detailed Description

Definition at line 34 of file DocumentListsManager.hxx.

Member Typedef Documentation

◆ SwListPtr

Definition at line 60 of file DocumentListsManager.hxx.

Constructor & Destructor Documentation

◆ DocumentListsManager() [1/2]

sw::DocumentListsManager::DocumentListsManager ( SwDoc i_rSwdoc)

Definition at line 31 of file DocumentListsManager.cxx.

◆ ~DocumentListsManager()

sw::DocumentListsManager::~DocumentListsManager ( )
overridevirtual

Definition at line 176 of file DocumentListsManager.cxx.

◆ DocumentListsManager() [2/2]

sw::DocumentListsManager::DocumentListsManager ( DocumentListsManager const &  )
privatedelete

Member Function Documentation

◆ createList()

SwList * sw::DocumentListsManager::createList ( const OUString &  rListId,
const OUString &  rDefaultListStyleName 
)
overridevirtual

◆ createListForListStyle()

void sw::DocumentListsManager::createListForListStyle ( const OUString &  rListStyleName)
overridevirtual

◆ CreateUniqueListId()

OUString sw::DocumentListsManager::CreateUniqueListId ( )
private

Definition at line 194 of file DocumentListsManager.cxx.

References MakeListIdUnique(), n, and comphelper::rng::uniform_uint_distribution().

Referenced by createList().

◆ deleteListForListStyle()

void sw::DocumentListsManager::deleteListForListStyle ( const OUString &  rListStyleName)
overridevirtual

◆ deleteListsByDefaultListStyle()

void sw::DocumentListsManager::deleteListsByDefaultListStyle ( const OUString &  rListStyleName)
overridevirtual

Implements IDocumentListsAccess.

Definition at line 140 of file DocumentListsManager.cxx.

References maLists.

◆ getListByName()

SwList * sw::DocumentListsManager::getListByName ( const OUString &  rListId) const
overridevirtual

Implements IDocumentListsAccess.

Definition at line 63 of file DocumentListsManager.cxx.

References maLists.

Referenced by createList(), createListForListStyle(), and MakeListIdUnique().

◆ getListForListStyle()

SwList * sw::DocumentListsManager::getListForListStyle ( const OUString &  rListStyleName) const
overridevirtual

◆ MakeListIdUnique()

OUString sw::DocumentListsManager::MakeListIdUnique ( const OUString &  aSuggestedUniqueListId)
private

Definition at line 181 of file DocumentListsManager.cxx.

References getListByName().

Referenced by CreateUniqueListId().

◆ operator=()

DocumentListsManager & sw::DocumentListsManager::operator= ( DocumentListsManager const &  )
privatedelete

◆ trackChangeOfListStyleName()

void sw::DocumentListsManager::trackChangeOfListStyleName ( const OUString &  rListStyleName,
const OUString &  rNewListStyleName 
)
overridevirtual

Member Data Documentation

◆ m_rDoc

SwDoc& sw::DocumentListsManager::m_rDoc
private

Definition at line 58 of file DocumentListsManager.hxx.

Referenced by createList(), and createListForListStyle().

◆ maLists

std::unordered_map<OUString, SwListPtr> sw::DocumentListsManager::maLists
private

◆ maListStyleLists

std::unordered_map<OUString, SwList*> sw::DocumentListsManager::maListStyleLists
private

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