LibreOffice Module sw (master) 1
|
#include <DocumentListsManager.hxx>
Public Member Functions | |
DocumentListsManager (SwDoc &i_rSwdoc) | |
SwList * | createList (const OUString &rListId, const OUString &rDefaultListStyleName) override |
SwList * | getListByName (const OUString &rListId) const override |
void | createListForListStyle (const OUString &rListStyleName) override |
SwList * | getListForListStyle (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 SwList * | createList (const OUString &rListId, const OUString &rDefaultListStyleName)=0 |
virtual SwList * | getListByName (const OUString &rListId) const =0 |
virtual void | createListForListStyle (const OUString &rListStyleName)=0 |
virtual SwList * | getListForListStyle (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 | |
DocumentListsManager & | operator= (DocumentListsManager const &)=delete |
OUString | CreateUniqueListId () |
OUString | MakeListIdUnique (const OUString &aSuggestedUniqueListId) |
Private Attributes | |
SwDoc & | m_rDoc |
std::unordered_map< OUString, SwListPtr > | maLists |
std::unordered_map< OUString, SwList * > | maListStyleLists |
Additional Inherited Members | |
Protected Member Functions inherited from IDocumentListsAccess | |
virtual | ~IDocumentListsAccess () |
Definition at line 34 of file DocumentListsManager.hxx.
|
private |
Definition at line 60 of file DocumentListsManager.hxx.
sw::DocumentListsManager::DocumentListsManager | ( | SwDoc & | i_rSwdoc | ) |
Definition at line 31 of file DocumentListsManager.cxx.
|
overridevirtual |
Definition at line 176 of file DocumentListsManager.cxx.
|
privatedelete |
|
overridevirtual |
Implements IDocumentListsAccess.
Definition at line 35 of file DocumentListsManager.cxx.
References CreateUniqueListId(), SwDoc::FindNumRulePtr(), getListByName(), SwDoc::GetNodes(), m_rDoc, and maLists.
Referenced by createListForListStyle().
|
overridevirtual |
Implements IDocumentListsAccess.
Definition at line 76 of file DocumentListsManager.cxx.
References createList(), SwDoc::FindNumRulePtr(), SwNumRule::GetDefaultListId(), getListByName(), getListForListStyle(), SwList::GetListId(), m_rDoc, maListStyleLists, and SwNumRule::SetDefaultListId().
|
private |
Definition at line 194 of file DocumentListsManager.cxx.
References MakeListIdUnique(), n, and comphelper::rng::uniform_uint_distribution().
Referenced by createList().
|
overridevirtual |
Implements IDocumentListsAccess.
Definition at line 121 of file DocumentListsManager.cxx.
References getListForListStyle(), SwList::GetListId(), maLists, and maListStyleLists.
|
overridevirtual |
Implements IDocumentListsAccess.
Definition at line 140 of file DocumentListsManager.cxx.
References maLists.
|
overridevirtual |
Implements IDocumentListsAccess.
Definition at line 63 of file DocumentListsManager.cxx.
References maLists.
Referenced by createList(), createListForListStyle(), and MakeListIdUnique().
|
overridevirtual |
Implements IDocumentListsAccess.
Definition at line 107 of file DocumentListsManager.cxx.
References maListStyleLists.
Referenced by createListForListStyle(), deleteListForListStyle(), and trackChangeOfListStyleName().
|
private |
Definition at line 181 of file DocumentListsManager.cxx.
References getListByName().
Referenced by CreateUniqueListId().
|
privatedelete |
|
overridevirtual |
Implements IDocumentListsAccess.
Definition at line 154 of file DocumentListsManager.cxx.
References getListForListStyle(), maLists, maListStyleLists, and SwList::SetDefaultListStyleName().
|
private |
Definition at line 58 of file DocumentListsManager.hxx.
Referenced by createList(), and createListForListStyle().
|
private |
Definition at line 62 of file DocumentListsManager.hxx.
Referenced by createList(), deleteListForListStyle(), deleteListsByDefaultListStyle(), getListByName(), and trackChangeOfListStyleName().
|
private |
Definition at line 64 of file DocumentListsManager.hxx.
Referenced by createListForListStyle(), deleteListForListStyle(), getListForListStyle(), and trackChangeOfListStyleName().