27#include <osl/diagnose.h>
32 : mpSelectionObserver(
33 rSlideSorter.
GetController().GetSelectionManager()->GetSelectionObserver())
41 if (mpSelectionObserver)
42 mpSelectionObserver->EndObservation();
47 if (mpSelectionObserver)
49 mpSelectionObserver->AbortObservation();
50 mpSelectionObserver.reset();
72 const SdPage* pPage =
dynamic_cast<const SdPage*
>(pSdrPage);
79 std::vector<const SdPage*>::iterator iPage(
Show previews for all the slides in a document and allow the user to insert or delete slides and modi...
SD_DLLPUBLIC controller::SlideSorterController & GetController() const
This class manages the focus of the slide sorter.
model::SharedPageDescriptor GetFocusedPageDescriptor() const
Return the descriptor of the page that currently has the focus.
bool SetFocusedPageFromCurrentPage()
Set the focused page to the one that is the current slide of the Slide Manager.
Use the UpdateLock whenever you do a complex selection, i.e.
A sub-controller that handles page selection of the slide browser.
int GetSelectedPageCount() const
SD_DLLPUBLIC void DeselectAllPages()
int GetPageCount() const
This convenience method returns the same number of pages that SlideSorterModel.GetPageCount() returns...
void SelectPage(int nPageIndex)
Select the specified descriptor.
std::shared_ptr< SelectionObserver > mpSelectionObserver
~Context() COVERITY_NOEXCEPT_FALSE
Context(SlideSorter const &rSlideSorter)
SelectionObserver(SlideSorter &rSlideSorter)
SlideSorter & mrSlideSorter
::std::vector< const SdPage * > maInsertedPages
bool mbIsObservationActive
void NotifyPageEvent(const SdrPage *pPage)
FocusManager & GetFocusManager()
SD_DLLPUBLIC PageSelector & GetPageSelector()
virtual std::shared_ptr< SfxDialogController > GetController() override