22#include <com/sun/star/document/XUndoManagerSupplier.hpp>
31 using ::com::sun::star::uno::Reference;
32 using ::com::sun::star::uno::XInterface;
33 using ::com::sun::star::uno::UNO_QUERY;
34 using ::com::sun::star::uno::Exception;
35 using ::com::sun::star::document::XUndoManagerSupplier;
36 using ::com::sun::star::document::XUndoManager;
37 using ::com::sun::star::document::XUndoManagerListener;
38 using ::com::sun::star::document::UndoManagerEvent;
39 using ::com::sun::star::lang::EventObject;
43 typedef ::cppu::WeakImplHelper < XUndoManagerListener
71 while ( nDepth-- > 0 )
79 virtual void SAL_CALL
undoActionAdded(
const UndoManagerEvent& i_event )
override;
80 virtual void SAL_CALL
actionUndone(
const UndoManagerEvent& i_event )
override;
81 virtual void SAL_CALL
actionRedone(
const UndoManagerEvent& i_event )
override;
84 virtual void SAL_CALL
resetAll(
const EventObject& i_event )
override;
85 virtual void SAL_CALL
enteredContext(
const UndoManagerEvent& i_event )
override;
87 virtual void SAL_CALL
leftContext(
const UndoManagerEvent& i_event )
override;
88 virtual void SAL_CALL
leftHiddenContext(
const UndoManagerEvent& i_event )
override;
89 virtual void SAL_CALL
cancelledContext(
const UndoManagerEvent& i_event )
override;
92 virtual void SAL_CALL
disposing(
const EventObject& i_event )
override;
166 Reference< XUndoManagerSupplier > xUndoSupplier( i_undoSupplierComponent, UNO_QUERY );
167 if ( xUndoSupplier.is() )
168 mxUndoManager.set( xUndoSupplier->getUndoManager(), css::uno::UNO_SET_THROW );
DocumentUndoGuard(const css::uno::Reference< css::uno::XInterface > &i_undoSupplierComponent)
::rtl::Reference< UndoManagerContextListener > mxContextListener
css::uno::Reference< css::document::XUndoManager > mxUndoManager
virtual void SAL_CALL leftHiddenContext(const UndoManagerEvent &i_event) override
virtual void SAL_CALL actionRedone(const UndoManagerEvent &i_event) override
virtual void SAL_CALL redoActionsCleared(const EventObject &i_event) override
virtual void SAL_CALL cancelledContext(const UndoManagerEvent &i_event) override
UndoManagerContextListener(const Reference< XUndoManager > &i_undoManager)
virtual void SAL_CALL actionUndone(const UndoManagerEvent &i_event) override
virtual void SAL_CALL disposing(const EventObject &i_event) override
virtual void SAL_CALL resetAll(const EventObject &i_event) override
virtual void SAL_CALL leftContext(const UndoManagerEvent &i_event) override
oslInterlockedCount m_nRelativeContextDepth
virtual void SAL_CALL enteredContext(const UndoManagerEvent &i_event) override
Reference< XUndoManager > const m_xUndoManager
virtual void SAL_CALL allActionsCleared(const EventObject &i_event) override
virtual void SAL_CALL undoActionAdded(const UndoManagerEvent &i_event) override
virtual void SAL_CALL enteredHiddenContext(const UndoManagerEvent &i_event) override
#define DBG_UNHANDLED_EXCEPTION(...)
::cppu::WeakImplHelper< XUndoManagerListener > UndoManagerContextListener_Base