LibreOffice Module sd (master) 1
|
Observe insertions and deletions of pages between calls to StartObservation() and EndObservation(). More...
#include <SlsSelectionObserver.hxx>
Classes | |
class | Context |
Use this little class instead of calling StartObservation and EndObservation directly so that EndObservation is not forgotten or omitted due to an exception or some break or return in the middle of code. More... | |
Public Member Functions | |
SelectionObserver (SlideSorter &rSlideSorter) | |
~SelectionObserver () | |
void | NotifyPageEvent (const SdrPage *pPage) |
void | StartObservation () |
void | AbortObservation () |
void | EndObservation () |
Private Attributes | |
SlideSorter & | mrSlideSorter |
bool | mbIsObservationActive |
bool | mbPageEventOccurred |
::std::vector< const SdPage * > | maInsertedPages |
Observe insertions and deletions of pages between calls to StartObservation() and EndObservation().
When the later is called the selection is set to just the newly inserted pages.
Definition at line 40 of file SlsSelectionObserver.hxx.
sd::slidesorter::controller::SelectionObserver::SelectionObserver | ( | SlideSorter & | rSlideSorter | ) |
Definition at line 56 of file SlsSelectionObserver.cxx.
sd::slidesorter::controller::SelectionObserver::~SelectionObserver | ( | ) |
Definition at line 63 of file SlsSelectionObserver.cxx.
void sd::slidesorter::controller::SelectionObserver::AbortObservation | ( | ) |
Definition at line 95 of file SlsSelectionObserver.cxx.
References maInsertedPages, and mbIsObservationActive.
void sd::slidesorter::controller::SelectionObserver::EndObservation | ( | ) |
Definition at line 102 of file SlsSelectionObserver.cxx.
References sd::slidesorter::controller::PageSelector::DeselectAllPages(), sd::slidesorter::SlideSorter::GetController(), sd::slidesorter::controller::FocusManager::GetFocusedPageDescriptor(), sd::slidesorter::controller::SlideSorterController::GetFocusManager(), sd::slidesorter::controller::PageSelector::GetPageCount(), sd::slidesorter::controller::SlideSorterController::GetPageSelector(), sd::slidesorter::controller::PageSelector::GetSelectedPageCount(), maInsertedPages, mbIsObservationActive, mbPageEventOccurred, mrSlideSorter, sd::slidesorter::controller::PageSelector::UpdateLock::Release(), sd::slidesorter::controller::PageSelector::SelectPage(), and sd::slidesorter::controller::FocusManager::SetFocusedPageFromCurrentPage().
void sd::slidesorter::controller::SelectionObserver::NotifyPageEvent | ( | const SdrPage * | pPage | ) |
Definition at line 65 of file SlsSelectionObserver.cxx.
References SdrPage::IsInserted(), maInsertedPages, mbIsObservationActive, and mbPageEventOccurred.
void sd::slidesorter::controller::SelectionObserver::StartObservation | ( | ) |
Definition at line 88 of file SlsSelectionObserver.cxx.
References maInsertedPages, and mbIsObservationActive.
|
private |
Definition at line 72 of file SlsSelectionObserver.hxx.
Referenced by AbortObservation(), EndObservation(), NotifyPageEvent(), and StartObservation().
|
private |
Definition at line 69 of file SlsSelectionObserver.hxx.
Referenced by AbortObservation(), EndObservation(), NotifyPageEvent(), and StartObservation().
|
private |
Definition at line 70 of file SlsSelectionObserver.hxx.
Referenced by EndObservation(), and NotifyPageEvent().
|
private |
Definition at line 68 of file SlsSelectionObserver.hxx.
Referenced by EndObservation().