LibreOffice Module sd (master) 1
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
ImpPageListWatcher Class Referenceabstract

Maintain a map of page indices to page objects for faster access that remains valid during deletions and insertions of pages (#109538#). More...

#include <PageListWatcher.hxx>

Inheritance diagram for ImpPageListWatcher:
[legend]
Collaboration diagram for ImpPageListWatcher:
[legend]

Public Member Functions

 ImpPageListWatcher (const SdrModel &rModel)
 
virtual ~ImpPageListWatcher ()
 
void Invalidate ()
 
SdPageGetSdPage (PageKind ePgKind, sal_uInt32 nPgNum)
 
sal_uInt32 GetSdPageCount (PageKind ePgKind)
 
sal_uInt32 GetVisibleSdPageCount () const
 

Protected Types

typedef ::std::vector< SdPage * > SdPageVector
 

Protected Member Functions

void ImpRecreateSortedPageListOnDemand ()
 
virtual sal_uInt32 ImpGetPageCount () const =0
 
virtual SdPageImpGetPage (sal_uInt32 nIndex) const =0
 Return the page with the given index. More...
 

Protected Attributes

const SdrModelmrModel
 
SdPageVector maPageVectorStandard
 
SdPageVector maPageVectorNotes
 
SdPagempHandoutPage
 
bool mbPageListValid
 

Detailed Description

Maintain a map of page indices to page objects for faster access that remains valid during deletions and insertions of pages (#109538#).

Definition at line 32 of file PageListWatcher.hxx.

Member Typedef Documentation

◆ SdPageVector

typedef ::std::vector< SdPage* > ImpPageListWatcher::SdPageVector
protected

Definition at line 36 of file PageListWatcher.hxx.

Constructor & Destructor Documentation

◆ ImpPageListWatcher()

ImpPageListWatcher::ImpPageListWatcher ( const SdrModel rModel)
explicit

Definition at line 67 of file PageListWatcher.cxx.

References mrModel.

◆ ~ImpPageListWatcher()

ImpPageListWatcher::~ImpPageListWatcher ( )
virtual

Definition at line 74 of file PageListWatcher.cxx.

Member Function Documentation

◆ GetSdPage()

SdPage * ImpPageListWatcher::GetSdPage ( PageKind  ePgKind,
sal_uInt32  nPgNum 
)

◆ GetSdPageCount()

sal_uInt32 ImpPageListWatcher::GetSdPageCount ( PageKind  ePgKind)

◆ GetVisibleSdPageCount()

sal_uInt32 ImpPageListWatcher::GetVisibleSdPageCount ( ) const

◆ ImpGetPage()

virtual SdPage * ImpPageListWatcher::ImpGetPage ( sal_uInt32  nIndex) const
protectedpure virtual

Return the page with the given index.

Parameters
nIndexWhen given an invalid index then NULL is returned.

Implemented in ImpDrawPageListWatcher, and ImpMasterPageListWatcher.

Referenced by GetVisibleSdPageCount(), and ImpRecreateSortedPageListOnDemand().

◆ ImpGetPageCount()

virtual sal_uInt32 ImpPageListWatcher::ImpGetPageCount ( ) const
protectedpure virtual

◆ ImpRecreateSortedPageListOnDemand()

void ImpPageListWatcher::ImpRecreateSortedPageListOnDemand ( )
protected

◆ Invalidate()

void ImpPageListWatcher::Invalidate ( )
inline

Definition at line 59 of file PageListWatcher.hxx.

References mbPageListValid.

Member Data Documentation

◆ maPageVectorNotes

SdPageVector ImpPageListWatcher::maPageVectorNotes
protected

◆ maPageVectorStandard

SdPageVector ImpPageListWatcher::maPageVectorStandard
protected

◆ mbPageListValid

bool ImpPageListWatcher::mbPageListValid
protected

◆ mpHandoutPage

SdPage* ImpPageListWatcher::mpHandoutPage
protected

◆ mrModel

const SdrModel& ImpPageListWatcher::mrModel
protected

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