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:
Collaboration diagram for sw::DocumentListsManager:

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

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

Definition at line 176 of file DocumentListsManager.cxx.

◆ DocumentListsManager() [2/2]

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

Member Function Documentation

◆ createList()

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

◆ createListForListStyle()

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

◆ CreateUniqueListId()

OUString sw::DocumentListsManager::CreateUniqueListId ( )

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)

◆ deleteListsByDefaultListStyle()

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

Implements IDocumentListsAccess.

Definition at line 140 of file DocumentListsManager.cxx.

References maLists.

◆ getListByName()

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

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

◆ MakeListIdUnique()

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

Definition at line 181 of file DocumentListsManager.cxx.

References getListByName().

Referenced by CreateUniqueListId().

◆ operator=()

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

◆ trackChangeOfListStyleName()

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

Member Data Documentation

◆ m_rDoc

SwDoc& sw::DocumentListsManager::m_rDoc

Definition at line 58 of file DocumentListsManager.hxx.

Referenced by createList(), and createListForListStyle().

◆ maLists

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

◆ maListStyleLists

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

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