LibreOffice Module framework (master) 1
|
a helper class guarding the Undo manager of a document More...
#include <documentundoguard.hxx>
Public Member Functions | |
DocumentUndoGuard (const css::uno::Reference< css::uno::XInterface > &i_undoSupplierComponent) | |
~DocumentUndoGuard () | |
Private Attributes | |
css::uno::Reference< css::document::XUndoManager > | mxUndoManager |
::rtl::Reference< UndoManagerContextListener > | mxContextListener |
a helper class guarding the Undo manager of a document
This class guards, within a given scope, the Undo Manager of a document (or another component supporting the XUndoManagerSupplier interface). When entering the scope (i.e. when the DocumentUndoGuard
instances is constructed), the current state of the undo contexts of the undo manager is examined. Upon leaving the scope (i.e. when the DocumentUndoGuard
is destructed), the guard will execute as many calls to <member scope="css::document">XUndoManager::leaveUndoContext</member> as are necessary to restore the manager's initial state.
Definition at line 45 of file documentundoguard.hxx.
framework::DocumentUndoGuard::DocumentUndoGuard | ( | const css::uno::Reference< css::uno::XInterface > & | i_undoSupplierComponent | ) |
Definition at line 162 of file documentundoguard.cxx.
References DBG_UNHANDLED_EXCEPTION, Exception, mxContextListener, and mxUndoManager.
framework::DocumentUndoGuard::~DocumentUndoGuard | ( | ) |
Definition at line 179 of file documentundoguard.cxx.
References DBG_UNHANDLED_EXCEPTION, Exception, and mxContextListener.
|
private |
Definition at line 53 of file documentundoguard.hxx.
Referenced by DocumentUndoGuard(), and ~DocumentUndoGuard().
|
private |
Definition at line 52 of file documentundoguard.hxx.
Referenced by DocumentUndoGuard().