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

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...

#include <SlsSelectionObserver.hxx>

Public Member Functions

 Context (SlideSorter const &rSlideSorter)
 
 ~Context () COVERITY_NOEXCEPT_FALSE
 
void Abort ()
 

Private Attributes

std::shared_ptr< SelectionObservermpSelectionObserver
 

Detailed Description

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.

Definition at line 56 of file SlsSelectionObserver.hxx.

Constructor & Destructor Documentation

◆ Context()

sd::slidesorter::controller::SelectionObserver::Context::Context ( SlideSorter const &  rSlideSorter)

Definition at line 31 of file SlsSelectionObserver.cxx.

References GetController(), and mpSelectionObserver.

◆ ~Context()

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

Definition at line 39 of file SlsSelectionObserver.cxx.

Member Function Documentation

◆ Abort()

void sd::slidesorter::controller::SelectionObserver::Context::Abort ( )

Definition at line 45 of file SlsSelectionObserver.cxx.

Member Data Documentation

◆ mpSelectionObserver

std::shared_ptr<SelectionObserver> sd::slidesorter::controller::SelectionObserver::Context::mpSelectionObserver
private

Definition at line 64 of file SlsSelectionObserver.hxx.

Referenced by Context().


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