LibreOffice Module sd (master) 1
|
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< SelectionObserver > | mpSelectionObserver |
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.
sd::slidesorter::controller::SelectionObserver::Context::Context | ( | SlideSorter const & | rSlideSorter | ) |
Definition at line 31 of file SlsSelectionObserver.cxx.
References GetController(), and mpSelectionObserver.
sd::slidesorter::controller::SelectionObserver::Context::~Context | ( | ) |
Definition at line 39 of file SlsSelectionObserver.cxx.
void sd::slidesorter::controller::SelectionObserver::Context::Abort | ( | ) |
Definition at line 45 of file SlsSelectionObserver.cxx.
|
private |
Definition at line 64 of file SlsSelectionObserver.hxx.
Referenced by Context().