20#ifndef INCLUDED_SFX2_SOURCE_INC_DOCUNDOMANAGER_HXX
21#define INCLUDED_SFX2_SOURCE_INC_DOCUNDOMANAGER_HXX
25#include <com/sun/star/document/XUndoManager.hpp>
97 struct DocumentUndoManager_Impl;
118 virtual void SAL_CALL
acquire( ) noexcept override;
119 virtual
void SAL_CALL
release( ) noexcept override;
125 virtual
void SAL_CALL
addUndoAction( const css::
uno::Reference< css::document::XUndoAction >& i_action ) override;
126 virtual
void SAL_CALL
undo( ) override;
127 virtual
void SAL_CALL
redo( ) override;
134 virtual
void SAL_CALL
clear( ) override;
135 virtual
void SAL_CALL
clearRedo( ) override;
136 virtual
void SAL_CALL
reset( ) override;
137 virtual
void SAL_CALL
addUndoManagerListener( const css::
uno::Reference< css::document::XUndoManagerListener >& i_listener ) override;
138 virtual
void SAL_CALL
removeUndoManagerListener( const css::
uno::Reference< css::document::XUndoManagerListener >& i_listener ) override;
141 virtual
void SAL_CALL
lock( ) override;
142 virtual
void SAL_CALL
unlock( ) override;
void MethodEntryCheck(const bool i_mustBeInitialized) const
virtual void SAL_CALL acquire() noexcept override
increment refcount @seealso XInterface @seealso release() @onerror A RuntimeException is thrown.
virtual void SAL_CALL release() noexcept override
decrement refcount @seealso XInterface @seealso acquire() @onerror A RuntimeException is thrown.
SfxModelGuard(SfxModelSubComponent &i_rSubComponent)
SolarMutexClearableGuard m_aGuard
SfxModelGuard(SfxBaseModel const &i_rModel, const AllowedModelState i_eState=E_FULLY_ALIVE)
base class for sub components of an SfxBaseModel, which share their ref count and lifetime with the S...
SfxModelSubComponent(SfxBaseModel &i_model)
void MethodEntryCheck()
checks whether the instance is alive, i.e.
virtual ~SfxModelSubComponent()
const SfxBaseModel & getBaseModel() const
SfxBaseModel & getBaseModel()
virtual sal_Bool SAL_CALL isUndoPossible() override
virtual void SAL_CALL redo() override
virtual void SAL_CALL clear() override
virtual css::uno::Sequence< OUString > SAL_CALL getAllRedoActionTitles() override
DocumentUndoManager & operator=(const DocumentUndoManager &)=delete
virtual void SAL_CALL undo() override
virtual OUString SAL_CALL getCurrentUndoActionTitle() override
virtual void SAL_CALL enterHiddenUndoContext() override
virtual void SAL_CALL clearRedo() override
virtual void SAL_CALL setParent(const css::uno::Reference< css::uno::XInterface > &Parent) override
virtual void SAL_CALL addUndoManagerListener(const css::uno::Reference< css::document::XUndoManagerListener > &i_listener) override
virtual void SAL_CALL release() noexcept override
DocumentUndoManager(const DocumentUndoManager &)=delete
virtual void SAL_CALL leaveUndoContext() override
virtual void SAL_CALL enterUndoContext(const OUString &i_title) override
bool isInContext() const
determines whether we have an open Undo context.
std::unique_ptr< DocumentUndoManager_Impl > m_pImpl
virtual OUString SAL_CALL getCurrentRedoActionTitle() override
virtual void SAL_CALL unlock() override
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL getParent() override
virtual void SAL_CALL removeUndoManagerListener(const css::uno::Reference< css::document::XUndoManagerListener > &i_listener) override
DocumentUndoManager(SfxBaseModel &i_document)
virtual void SAL_CALL reset() override
virtual sal_Bool SAL_CALL isRedoPossible() override
virtual void SAL_CALL lock() override
virtual css::uno::Sequence< OUString > SAL_CALL getAllUndoActionTitles() override
virtual ~DocumentUndoManager() override
virtual void SAL_CALL addUndoAction(const css::uno::Reference< css::document::XUndoAction > &i_action) override
virtual void SAL_CALL acquire() noexcept override
virtual sal_Bool SAL_CALL isLocked() override
called to query another interface of the component @descr Will allow to query for XInteractionHandler...