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

#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
 

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, std::unique_ptr< SwList > > maLists
 
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.

Constructor & Destructor Documentation

sw::DocumentListsManager::DocumentListsManager ( SwDoc i_rSwdoc)

Definition at line 31 of file DocumentListsManager.cxx.

sw::DocumentListsManager::~DocumentListsManager ( )
overridevirtual

Definition at line 176 of file DocumentListsManager.cxx.

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

Member Function Documentation

SwList * sw::DocumentListsManager::createList ( const OUString &  rListId,
const OUString &  rDefaultListStyleName 
)
overridevirtual
void sw::DocumentListsManager::createListForListStyle ( const OUString &  rListStyleName)
overridevirtual
OUString sw::DocumentListsManager::CreateUniqueListId ( )
private
void sw::DocumentListsManager::deleteListForListStyle ( const OUString &  rListStyleName)
overridevirtual
void sw::DocumentListsManager::deleteListsByDefaultListStyle ( const OUString &  rListStyleName)
overridevirtual

Implements IDocumentListsAccess.

Definition at line 140 of file DocumentListsManager.cxx.

References maLists.

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().

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

Definition at line 181 of file DocumentListsManager.cxx.

References getListByName().

Referenced by CreateUniqueListId().

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

Member Data Documentation

SwDoc& sw::DocumentListsManager::m_rDoc
private

Definition at line 58 of file DocumentListsManager.hxx.

Referenced by createList(), and createListForListStyle().

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

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