LibreOffice Module sd (master) 1
Classes | Public Member Functions | Private Attributes | List of all members
sd::slidesorter::controller::SelectionObserver Class Referencefinal

Observe insertions and deletions of pages between calls to StartObservation() and EndObservation(). More...

#include <SlsSelectionObserver.hxx>

Collaboration diagram for sd::slidesorter::controller::SelectionObserver:
[legend]

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

SlideSortermrSlideSorter
 
bool mbIsObservationActive
 
bool mbPageEventOccurred
 
::std::vector< const SdPage * > maInsertedPages
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ SelectionObserver()

sd::slidesorter::controller::SelectionObserver::SelectionObserver ( SlideSorter rSlideSorter)

Definition at line 56 of file SlsSelectionObserver.cxx.

◆ ~SelectionObserver()

sd::slidesorter::controller::SelectionObserver::~SelectionObserver ( )

Definition at line 63 of file SlsSelectionObserver.cxx.

Member Function Documentation

◆ AbortObservation()

void sd::slidesorter::controller::SelectionObserver::AbortObservation ( )

Definition at line 95 of file SlsSelectionObserver.cxx.

References maInsertedPages, and mbIsObservationActive.

◆ EndObservation()

void sd::slidesorter::controller::SelectionObserver::EndObservation ( )

◆ NotifyPageEvent()

void sd::slidesorter::controller::SelectionObserver::NotifyPageEvent ( const SdrPage pPage)

◆ StartObservation()

void sd::slidesorter::controller::SelectionObserver::StartObservation ( )

Definition at line 88 of file SlsSelectionObserver.cxx.

References maInsertedPages, and mbIsObservationActive.

Member Data Documentation

◆ maInsertedPages

::std::vector<const SdPage*> sd::slidesorter::controller::SelectionObserver::maInsertedPages
private

◆ mbIsObservationActive

bool sd::slidesorter::controller::SelectionObserver::mbIsObservationActive
private

◆ mbPageEventOccurred

bool sd::slidesorter::controller::SelectionObserver::mbPageEventOccurred
private

Definition at line 70 of file SlsSelectionObserver.hxx.

Referenced by EndObservation(), and NotifyPageEvent().

◆ mrSlideSorter

SlideSorter& sd::slidesorter::controller::SelectionObserver::mrSlideSorter
private

Definition at line 68 of file SlsSelectionObserver.hxx.

Referenced by EndObservation().


The documentation for this class was generated from the following files: