37class SlideSorterModel;
42class SlideSorterController;
108 const bool bUpdateCurrentPage =
true);
151 const bool bUpdateCurrentPage);
Show previews for all the slides in a document and allow the user to insert or delete slides and modi...
BroadcastLock(SlideSorter const &rSlideSorter)
PageSelector & mrSelector
Use the UpdateLock whenever you do a complex selection, i.e.
UpdateLock(SlideSorter const &rSlideSorter)
PageSelector * mpSelector
A sub-controller that handles page selection of the slide browser.
void DisableBroadcasting()
Disable the broadcasting of selection change events.
PageSelector(const PageSelector &)=delete
::std::vector< SdPage * > PageSelection
bool mbSelectionChangeBroadcastPending
SD_DLLPUBLIC void SelectAllPages()
model::SlideSorterModel & mrModel
void EnableBroadcasting()
Enable the broadcasting of selection change events.
SlideSorterController & mrController
SD_DLLPUBLIC bool IsPageExcluded(int nPageIndex)
Return whether the specified page is excluded.
SlideSorter & mrSlideSorter
void DeselectPage(int nPageIndex)
Deselect the descriptor that is associated with the given page.
int GetSelectedPageCount() const
void UpdateCurrentPage(const bool bUpdateOnlyWhenPending=false)
void SetCoreSelection()
Update the selection state of the SdPage objects to be the same as that of the corresponding page des...
sal_Int32 mnUpdateLockCount
void CheckConsistency() const
void DeselectPage(const model::SharedPageDescriptor &rpDescriptor, const bool bUpdateCurrentPage=true)
bool mbIsUpdateCurrentPagePending
SD_DLLPUBLIC bool IsPageSelected(int nPageIndex)
Return whether the specified page is selected.
const model::SharedPageDescriptor & GetSelectionAnchor() const
Return the anchor for a range selection.
void SelectPage(const model::SharedPageDescriptor &rpDescriptor)
Select the specified descriptor.
PageSelector(SlideSorter &rSlideSorter)
SD_DLLPUBLIC void DeselectAllPages()
int mnBroadcastDisableLevel
model::SharedPageDescriptor mpSelectionAnchor
Anchor for a range selection.
model::SharedPageDescriptor mpMostRecentlySelectedPage
void GetCoreSelection()
Update the selection state of all page descriptors to be the same as that of the corresponding pages ...
void SetPageSelection(const std::shared_ptr< PageSelection > &rSelection, const bool bUpdateCurrentPage)
Restore a page selection according to the given selection object.
std::shared_ptr< PageSelection > GetPageSelection() const
Return an object that describes the current selection.
void CountSelectedPages()
Call this method after the model has changed to set the number of selected pages.
int GetPageCount() const
This convenience method returns the same number of pages that SlideSorterModel.GetPageCount() returns...
PageSelector & operator=(const PageSelector &)=delete
void SelectPage(int nPageIndex)
Select the specified descriptor.
The model of the slide sorter gives access to the slides that are to be displayed in the slide sorter...
std::shared_ptr< PageDescriptor > SharedPageDescriptor