20#ifndef INCLUDED_SW_SOURCE_CORE_INC_UNDOMANAGER_HXX
21#define INCLUDED_SW_SOURCE_CORE_INC_UNDOMANAGER_HXX
42 :
public IDocumentUndoRedo
52 virtual void DoUndo(
bool const bDoUndo)
override;
53 virtual bool DoesUndo()
const override;
54 virtual void DoGroupUndo(
bool const bDoUndo)
override;
55 virtual bool DoesGroupUndo()
const override;
56 virtual void DoDrawUndo(
bool const bDoUndo)
override;
57 virtual bool DoesDrawUndo()
const override;
58 void DoRepair(
bool bRepair)
override;
59 bool DoesRepair()
const override;
60 virtual void SetUndoNoModifiedPosition()
override;
61 virtual void LockUndoNoModifiedPosition()
override;
62 virtual void UnLockUndoNoModifiedPosition()
override;
63 virtual void SetUndoNoResetModified()
override;
64 virtual bool IsUndoNoResetModified()
const override;
70 virtual void DelAllUndoObj()
override;
71 virtual bool GetLastUndoInfo(OUString *
const o_pStr,
73 const SwView* pView =
nullptr)
const override;
75 virtual bool GetFirstRedoInfo(OUString *
const o_pStr,
77 const SwView* pView =
nullptr)
const override;
80 sal_uInt16
const nRepeatCnt)
override;
81 virtual SwUndoId GetRepeatInfo(OUString *
const o_pStr)
const override;
82 virtual void AppendUndo(std::unique_ptr<SwUndo> pUndo)
override;
83 virtual void ClearRedo()
override;
84 virtual bool IsUndoNodes(
SwNodes const& rNodes)
const override;
85 virtual size_t GetUndoActionCount(
const bool bCurrentLevel =
true)
const override;
86 size_t GetRedoActionCount(
const bool bCurrentLevel =
true)
const override;
87 void SetView(
SwView* pView)
override;
88 bool UndoWithOffset(
size_t nUndoOffset)
override;
91 virtual void AddUndoAction(std::unique_ptr<SfxUndoAction> pAction,
92 bool bTryMerg =
false)
override;
93 virtual bool Undo()
override;
94 virtual bool Redo()
override;
100 SwNodes const& GetUndoNodes()
const;
108 bool IsViewUndoActionIndependent(
const SwView* pView, sal_uInt16& rOffset)
const;
111 virtual void EmptyActionsChanged()
override;
133 bool impl_DoUndoRedo(UndoOrRedoType undoOrRedo,
size_t nUndoOffset);
136 using SdrUndoManager::Repeat;
static void EndUndo(SwWrtShell &rSh)
Get information about the current document state.
Stores the undo/redo information, implementing the IDocumentUndoRedo interface.
UndoStackMark m_UndoSaveMark
position in Undo-Array at which Doc was saved (and is not modified)
bool m_bLockUndoNoModifiedPosition
std::shared_ptr< SwNodes > m_xUndoNodes
Undo nodes array: content not currently in document, but required for undo/redo.
bool m_bRepair
If true, then repair mode is enabled.
IDocumentRedlineAccess & m_rRedlineAccess
bool m_isAddWithIgnoreRepeat
set the IgnoreRepeat flag on every added action
IDocumentDrawModelAccess & m_rDrawModelAccess
IDocumentState & m_rState
struct _xmlTextWriter * xmlTextWriterPtr
Dialog to specify the properties of date form field.
std::vector< OUString > SwUndoComments_t