20#ifndef INCLUDED_SW_INC_IDOCUMENTUNDOREDO_HXX
21#define INCLUDED_SW_INC_IDOCUMENTUNDOREDO_HXX
43 virtual void DoUndo(
bool const bDoUndo) = 0;
47 virtual bool DoesUndo()
const = 0;
53 virtual void DoGroupUndo(
bool const bDoUndo) = 0;
57 virtual bool DoesGroupUndo()
const = 0;
61 virtual void DoDrawUndo(
bool const bDoUndo) = 0;
66 virtual bool DoesDrawUndo()
const = 0;
69 virtual void DoRepair(
bool bRepair) = 0;
71 virtual bool DoesRepair()
const = 0;
76 virtual void SetUndoNoModifiedPosition() = 0;
81 virtual void LockUndoNoModifiedPosition() = 0;
86 virtual void UnLockUndoNoModifiedPosition() = 0;
90 virtual void SetUndoNoResetModified() = 0;
94 virtual bool IsUndoNoResetModified()
const = 0;
100 virtual bool Undo() = 0;
140 virtual void DelAllUndoObj() = 0;
148 virtual bool GetLastUndoInfo(OUString *
const o_pStr,
150 const SwView* pView =
nullptr)
const = 0;
161 virtual bool Redo() = 0;
169 virtual bool GetFirstRedoInfo(OUString *
const o_pStr,
171 const SwView* pView =
nullptr)
const = 0;
182 sal_uInt16
const nRepeatCnt) = 0;
190 virtual SwUndoId GetRepeatInfo(OUString *
const o_pStr)
const = 0;
197 virtual void AppendUndo(std::unique_ptr<SwUndo> pUndo) = 0;
201 virtual void ClearRedo() = 0;
205 virtual bool IsUndoNodes(
SwNodes const& rNodes)
const = 0;
209 virtual size_t GetUndoActionCount(
const bool bCurrentLevel =
true)
const = 0;
213 virtual void SetView(
SwView* pView) = 0;
216 virtual bool UndoWithOffset(
size_t nUndoOffset) = 0;
219 virtual ~IDocumentUndoRedo() {};
class SAL_LOPLUGIN_ANNOTATE("crosscast") IDocumentUndoRedo
static void EndUndo(SwWrtShell &rSh)
IDocumentUndoRedo & m_rUndoRedo
DrawUndoGuard(IDocumentUndoRedo &rUndoRedo)
bool const m_bDrawUndoWasEnabled
Blocks grouping undo actions together into an SfxListUndoAction.
GroupUndoGuard(IDocumentUndoRedo &rUndoRedo)
bool const m_bGroupUndoWasEnabled
IDocumentUndoRedo & m_rUndoRedo
IDocumentUndoRedo & m_rUndoRedo
UndoGuard(IDocumentUndoRedo &rUndoRedo)
bool UndoWasEnabled() const
bool const m_bUndoWasEnabled
Dialog to specify the properties of date form field.
std::vector< OUString > SwUndoComments_t