22#include <core_resource.hxx>
32 using ::com::sun::star::uno::Reference;
33 using ::com::sun::star::uno::Sequence;
34 using ::com::sun::star::uno::XComponentContext;
35 using ::com::sun::star::document::XUndoManager;
36 using ::com::sun::star::beans::PropertyValue;
51 OSingleDocumentController_Base::disposing();
94 OUString sUndo =
DBA_RES(STR_UNDO_COLON) +
" " +
104 OUString sRedo =
DBA_RES(STR_REDO_COLON) +
" " +
110 case SID_GETUNDOSTRINGS:
114 auto aSeqRange = asNonConstRange(
aSeq);
122 case SID_GETREDOSTRINGS:
126 auto aSeqRange = asNonConstRange(
aSeq);
135 aReturn = OSingleDocumentController_Base::GetState(_nId);
147 if (_rArgs.hasElements() && _rArgs[0].Name !=
"KeyModifier")
148 _rArgs[0].Value >>=
nCount;
164 OSingleDocumentController_Base::Execute( _nId, _rArgs );
167 InvalidateFeature(_nId);
OUString GetRedoActionComment(size_t nNo=0, bool const i_currentLevel=CurrentLevel) const
OUString GetUndoActionComment(size_t nNo=0, bool const i_currentLevel=CurrentLevel) const
virtual size_t GetRedoActionCount(bool const i_currentLevel=CurrentLevel) const
virtual void AddUndoAction(std::unique_ptr< SfxUndoAction > pAction, bool bTryMerg=false)
virtual size_t GetUndoActionCount(bool const i_currentLevel=CurrentLevel) const
virtual void SAL_CALL disposing() override
virtual void Execute(sal_uInt16 nId, const css::uno::Sequence< css::beans::PropertyValue > &aArgs) override
std::unique_ptr< UndoManager > m_pUndoManager
OSingleDocumentController(const css::uno::Reference< css::uno::XComponentContext > &_rxORB)
virtual css::uno::Reference< css::document::XUndoManager > SAL_CALL getUndoManager() override
virtual ~OSingleDocumentController() override
SfxUndoManager & GetUndoManager() const
need for undo's and redo's
void addUndoActionAndInvalidate(std::unique_ptr< SfxUndoAction > pAction)
addUndoActionAndInvalidate adds an undo action to the undoManager, additionally invalidates the UNDO ...
virtual FeatureState GetState(sal_uInt16 nId) const override
void ClearUndoManager()
complete clears the Undo/Redo stacks
Sequence< sal_Int8 > aSeq
::cppu::ImplInheritanceHelper< DBSubComponentController, css::document::XUndoManagerSupplier > OSingleDocumentController_Base
::osl::Mutex & getMutex()
describes the state of a feature
std::optional< OUString > sTitle