20 #ifndef INCLUDED_SW_INC_IDOCUMENTUNDOREDO_HXX
21 #define INCLUDED_SW_INC_IDOCUMENTUNDOREDO_HXX
43 virtual void DoUndo(
bool const bDoUndo) = 0;
61 virtual void DoDrawUndo(
bool const bDoUndo) = 0;
69 virtual void DoRepair(
bool bRepair) = 0;
100 virtual bool Undo() = 0;
150 const SwView* pView =
nullptr)
const = 0;
161 virtual bool Redo() = 0;
171 const SwView* pView =
nullptr)
const = 0;
182 sal_uInt16
const nRepeatCnt) = 0;
197 virtual void AppendUndo(std::unique_ptr<SwUndo> pUndo) = 0;
bool UndoWasEnabled() const
bool const m_bUndoWasEnabled
virtual void DoRepair(bool bRepair)=0
Enable repair mode.
virtual void LockUndoNoModifiedPosition()=0
Prevent updates to the "unmodified" state position via SetUndoNoResetModified().
virtual SwUndoId EndUndo(SwUndoId const eUndoId, SwRewriter const *const pRewriter)=0
Closes undo block.
virtual bool Redo()=0
Execute Redo.
DrawUndoGuard(IDocumentUndoRedo &rUndoRedo)
virtual bool UndoWithOffset(size_t nUndoOffset)=0
Zero offset means undoing the top undo action.
virtual SwUndoComments_t GetUndoComments() const =0
Get comments of Undo actions.
Dialog to specify the properties of date form field.
virtual SwUndoComments_t GetRedoComments() const =0
Get comments of Redo actions.
GroupUndoGuard(IDocumentUndoRedo &rUndoRedo)
virtual bool GetFirstRedoInfo(OUString *const o_pStr, SwUndoId *const o_pId, const SwView *pView=nullptr) const =0
Get Id and comment of first Redo action.
virtual void DelAllUndoObj()=0
Delete all Undo actions.
virtual bool IsUndoNodes(SwNodes const &rNodes) const =0
virtual void DoUndo(bool const bDoUndo)=0
Enable/Disable Undo.
virtual ~IDocumentUndoRedo()
virtual bool Undo()=0
Execute Undo.
std::vector< OUString > SwUndoComments_t
virtual bool DoesUndo() const =0
Is Undo enabled?
bool const m_bGroupUndoWasEnabled
virtual SwUndoId GetRepeatInfo(OUString *const o_pStr) const =0
Get Id and comment of last Undo action, if it is Repeat capable.
virtual bool Repeat(::sw::RepeatContext &rContext, sal_uInt16 const nRepeatCnt)=0
Repeat the last Undo action.
virtual void AppendUndo(std::unique_ptr< SwUndo > pUndo)=0
Add new Undo action.
virtual void ClearRedo()=0
Delete all Redo actions.
virtual SwUndoId StartUndo(SwUndoId const eUndoId, SwRewriter const *const pRewriter)=0
Opens undo block.
virtual void SetUndoNoResetModified()=0
Disable (re)setting the document modified flag on Undo/Redo.
virtual bool DoesDrawUndo() const =0
Is Undo for Drawing objects enabled? for Draw-Undo: writer wants to handle actions on Flys on its own...
virtual bool DoesGroupUndo() const =0
Is Group Undo enabled?
virtual bool IsUndoNoResetModified() const =0
Is setting the document modified flag on Undo/Redo disabled?
IDocumentUndoRedo & m_rUndoRedo
IDocumentUndoRedo & m_rUndoRedo
virtual void UnLockUndoNoModifiedPosition()=0
Allow updates to the "unmodified" state position via SetUndoNoResetModified().
virtual void DoGroupUndo(bool const bDoUndo)=0
Enable/Disable Group Undo.
virtual void DoDrawUndo(bool const bDoUndo)=0
Enable/Disable Undo for Drawing objects.
bool const m_bDrawUndoWasEnabled
virtual size_t GetUndoActionCount(const bool bCurrentLevel=true) const =0
Get the number of Undo actions.
IDocumentUndoRedo & m_rUndoRedo
virtual bool GetLastUndoInfo(OUString *const o_pStr, SwUndoId *const o_pId, const SwView *pView=nullptr) const =0
Get Id and comment of last Undo action.
Blocks grouping undo actions together into an SfxListUndoAction.
virtual void SetUndoNoModifiedPosition()=0
Set the position at which the document is in the "unmodified" state to the current position in the Un...
virtual bool DoesRepair() const =0
Is repair mode active?
virtual void SetView(SwView *pView)=0
Return undo/redo info for this view.
UndoGuard(IDocumentUndoRedo &rUndoRedo)