36class SlideSorterController;
37class SelectionObserver;
Show previews for all the slides in a document and allow the user to insert or delete slides and modi...
This class is a part of the controller and handles the selection of slides.
void SetInsertionPosition(const sal_Int32 nInsertionPosition)
Store an insertion position temporarily.
SlideSorterController & mrController
void AddSelectionChangeListener(const Link< LinkParamNone *, void > &rListener)
Add a listener that is called when the selection of the slide sorter changes.
sal_Int32 mnInsertionPosition
The insertion position is only temporarily valid.
sal_Int32 GetInsertionPosition() const
Return the position where to insert pasted slides based on the current selection.
void DeleteSelectedMasterPages(const ::std::vector< SdPage * > &rSelectedMasterPages)
Delete the given list of master pages.
void DeleteSelectedPages(const bool bSelectFollowingPage=true)
Delete the currently selected slides.
void SelectionHasChanged()
Call this method after the selection has changed (possible several calls to the PageSelector) to inva...
std::shared_ptr< SelectionObserver > mpSelectionObserver
const std::shared_ptr< SelectionObserver > & GetSelectionObserver() const
void RemoveSelectionChangeListener(const Link< LinkParamNone *, void > &rListener)
Remove a listener that was called when the selection of the slide sorter changes.
::std::vector< Link< LinkParamNone *, void > > maSelectionChangeListeners
SelectionManager(SlideSorter &rSlideSorter)
Create a new SelectionManager for the given slide sorter.
void DeleteSelectedNormalPages(const ::std::vector< SdPage * > &rSelectedNormalPages)
Delete the given list of normal pages.
SlideSorter & mrSlideSorter