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

#include <DocumentListItemsManager.hxx>

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

Classes

struct  lessThanNodeNum
 

Public Types

typedef std::set< const SwNodeNum *, lessThanNodeNumtImplSortedNodeNumList
 
- Public Types inherited from IDocumentListItems
typedef std::vector< const SwNodeNum * > tSortedNodeNumList
 

Public Member Functions

 DocumentListItemsManager ()
 
void addListItem (const SwNodeNum &rNodeNum) override
 
void removeListItem (const SwNodeNum &rNodeNum) override
 
OUString getListItemText (const SwNodeNum &rNodeNum, SwRootFrame const &rLayout) const override
 
bool isNumberedInLayout (SwNodeNum const &rNodeNum, SwRootFrame const &rLayout) const override
 
void getNumItems (IDocumentListItems::tSortedNodeNumList &orNodeNumList) const override
 get vector of all list items, which are numbered More...
 
virtual ~DocumentListItemsManager () override
 
virtual void addListItem (const SwNodeNum &rNodeNum)=0
 
virtual void removeListItem (const SwNodeNum &rNodeNum)=0
 
virtual OUString getListItemText (const SwNodeNum &rNodeNum, SwRootFrame const &rLayout) const =0
 
virtual bool isNumberedInLayout (SwNodeNum const &rNodeNum, SwRootFrame const &rLayout) const =0
 
virtual void getNumItems (IDocumentListItems::tSortedNodeNumList &orNodeNumList) const =0
 get vector of all list items, which are numbered More...
 

Private Member Functions

 DocumentListItemsManager (DocumentListItemsManager const &)=delete
 
DocumentListItemsManageroperator= (DocumentListItemsManager const &)=delete
 

Private Attributes

std::unique_ptr< tImplSortedNodeNumListmpListItemsList
 

Additional Inherited Members

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

Detailed Description

Definition at line 30 of file DocumentListItemsManager.hxx.

Member Typedef Documentation

◆ tImplSortedNodeNumList

Definition at line 57 of file DocumentListItemsManager.hxx.

Constructor & Destructor Documentation

◆ DocumentListItemsManager() [1/2]

sw::DocumentListItemsManager::DocumentListItemsManager ( )

Definition at line 30 of file DocumentListItemsManager.cxx.

◆ ~DocumentListItemsManager()

sw::DocumentListItemsManager::~DocumentListItemsManager ( )
overridevirtual

Definition at line 97 of file DocumentListItemsManager.cxx.

◆ DocumentListItemsManager() [2/2]

sw::DocumentListItemsManager::DocumentListItemsManager ( DocumentListItemsManager const &  )
privatedelete

Member Function Documentation

◆ addListItem()

void sw::DocumentListItemsManager::addListItem ( const SwNodeNum rNodeNum)
overridevirtual

Implements IDocumentListItems.

Definition at line 40 of file DocumentListItemsManager.cxx.

References mpListItemsList.

◆ getListItemText()

OUString sw::DocumentListItemsManager::getListItemText ( const SwNodeNum rNodeNum,
SwRootFrame const &  rLayout 
) const
overridevirtual

◆ getNumItems()

void sw::DocumentListItemsManager::getNumItems ( IDocumentListItems::tSortedNodeNumList orNodeNumList) const
overridevirtual

get vector of all list items, which are numbered

Implements IDocumentListItems.

Definition at line 82 of file DocumentListItemsManager.cxx.

References mpListItemsList.

◆ isNumberedInLayout()

bool sw::DocumentListItemsManager::isNumberedInLayout ( SwNodeNum const &  rNodeNum,
SwRootFrame const &  rLayout 
) const
overridevirtual

Implements IDocumentListItems.

Definition at line 75 of file DocumentListItemsManager.cxx.

References SwNodeNum::GetTextNode(), and sw::IsParaPropsNode().

◆ operator=()

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

◆ removeListItem()

void sw::DocumentListItemsManager::removeListItem ( const SwNodeNum rNodeNum)
overridevirtual

Implements IDocumentListItems.

Definition at line 53 of file DocumentListItemsManager.cxx.

References mpListItemsList.

Member Data Documentation

◆ mpListItemsList

std::unique_ptr<tImplSortedNodeNumList> sw::DocumentListItemsManager::mpListItemsList
private

Definition at line 64 of file DocumentListItemsManager.hxx.

Referenced by addListItem(), getNumItems(), and removeListItem().


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