LibreOffice Module sd (master) 1
|
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>
Public Member Functions | |
ImpPageListWatcher (const SdrModel &rModel) | |
virtual | ~ImpPageListWatcher () |
void | Invalidate () |
SdPage * | GetSdPage (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 SdPage * | ImpGetPage (sal_uInt32 nIndex) const =0 |
Return the page with the given index. More... | |
Protected Attributes | |
const SdrModel & | mrModel |
SdPageVector | maPageVectorStandard |
SdPageVector | maPageVectorNotes |
SdPage * | mpHandoutPage |
bool | mbPageListValid |
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.
|
protected |
Definition at line 36 of file PageListWatcher.hxx.
|
explicit |
Definition at line 67 of file PageListWatcher.cxx.
References mrModel.
|
virtual |
Definition at line 74 of file PageListWatcher.cxx.
Definition at line 78 of file PageListWatcher.cxx.
References DBG_ASSERT, Handout, ImpRecreateSortedPageListOnDemand(), maPageVectorNotes, maPageVectorStandard, mbPageListValid, mpHandoutPage, Notes, SAL_INFO, and Standard.
sal_uInt32 ImpPageListWatcher::GetSdPageCount | ( | PageKind | ePgKind | ) |
Definition at line 129 of file PageListWatcher.cxx.
References Handout, ImpRecreateSortedPageListOnDemand(), maPageVectorNotes, maPageVectorStandard, mbPageListValid, mpHandoutPage, Notes, and Standard.
sal_uInt32 ImpPageListWatcher::GetVisibleSdPageCount | ( | ) | const |
Definition at line 164 of file PageListWatcher.cxx.
References a, SdPage::GetPageKind(), ImpGetPage(), ImpGetPageCount(), SdPage::IsExcluded(), and Standard.
|
protectedpure virtual |
Return the page with the given index.
nIndex | When given an invalid index then NULL is returned. |
Implemented in ImpDrawPageListWatcher, and ImpMasterPageListWatcher.
Referenced by GetVisibleSdPageCount(), and ImpRecreateSortedPageListOnDemand().
|
protectedpure virtual |
Implemented in ImpDrawPageListWatcher, and ImpMasterPageListWatcher.
Referenced by GetVisibleSdPageCount(), and ImpRecreateSortedPageListOnDemand().
|
protected |
Definition at line 27 of file PageListWatcher.cxx.
References a, DBG_ASSERT, SdPage::GetPageKind(), Handout, ImpGetPage(), ImpGetPageCount(), maPageVectorNotes, maPageVectorStandard, mbPageListValid, mpHandoutPage, Notes, and Standard.
Referenced by GetSdPage(), and GetSdPageCount().
|
inline |
Definition at line 59 of file PageListWatcher.hxx.
References mbPageListValid.
|
protected |
Definition at line 41 of file PageListWatcher.hxx.
Referenced by GetSdPage(), GetSdPageCount(), and ImpRecreateSortedPageListOnDemand().
|
protected |
Definition at line 40 of file PageListWatcher.hxx.
Referenced by GetSdPage(), GetSdPageCount(), and ImpRecreateSortedPageListOnDemand().
|
protected |
Definition at line 44 of file PageListWatcher.hxx.
Referenced by GetSdPage(), GetSdPageCount(), ImpRecreateSortedPageListOnDemand(), and Invalidate().
|
protected |
Definition at line 42 of file PageListWatcher.hxx.
Referenced by GetSdPage(), GetSdPageCount(), and ImpRecreateSortedPageListOnDemand().
|
protected |
Definition at line 38 of file PageListWatcher.hxx.
Referenced by ImpDrawPageListWatcher::ImpGetPage(), ImpMasterPageListWatcher::ImpGetPage(), ImpDrawPageListWatcher::ImpGetPageCount(), and ImpMasterPageListWatcher::ImpGetPageCount().