LibreOffice Module editeng (master) 1
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
EditUndoManager Class Reference

#include <editund2.hxx>

Inheritance diagram for EditUndoManager:
[legend]
Collaboration diagram for EditUndoManager:
[legend]

Public Member Functions

 EditUndoManager (sal_uInt16 nMaxUndoActionCount=20)
 
virtual bool Undo () override
 
virtual bool Redo () override
 
- Public Member Functions inherited from SfxUndoManager
 SfxUndoManager (size_t nMaxUndoActionCount=20)
 
virtual ~SfxUndoManager ()
 
void SetMaxUndoActionCount (size_t nMaxUndoActionCount)
 
size_t GetMaxUndoActionCount () const
 
virtual void AddUndoAction (std::unique_ptr< SfxUndoAction > pAction, bool bTryMerg=false)
 
virtual size_t GetUndoActionCount (bool const i_currentLevel=CurrentLevel) const
 
OUString GetUndoActionComment (size_t nNo=0, bool const i_currentLevel=CurrentLevel) const
 
SfxUndoActionGetUndoAction (size_t nNo=0) const
 
OUString GetUndoActionsInfo () const
 
virtual size_t GetRedoActionCount (bool const i_currentLevel=CurrentLevel) const
 
OUString GetRedoActionComment (size_t nNo=0, bool const i_currentLevel=CurrentLevel) const
 
SfxUndoActionGetRedoAction (size_t nNo=0) const
 
OUString GetRedoActionsInfo () const
 
virtual bool Undo ()
 
virtual bool Redo ()
 
virtual void Clear ()
 
virtual void ClearRedo ()
 
void Reset ()
 
bool IsDoing () const
 
size_t GetRepeatActionCount () const
 
OUString GetRepeatActionComment (SfxRepeatTarget &rTarget) const
 
bool Repeat (SfxRepeatTarget &rTarget)
 
bool CanRepeat (SfxRepeatTarget &rTarget) const
 
virtual void EnterListAction (const OUString &rComment, const OUString &rRepeatComment, sal_uInt16 nId, ViewShellId nViewShellId)
 
size_t LeaveListAction ()
 
size_t LeaveAndMergeListAction ()
 
bool IsInListAction () const
 
size_t GetListActionDepth () const
 
void RemoveLastUndoAction ()
 
void EnableUndo (bool bEnable)
 
bool IsUndoEnabled () const
 
void AddUndoListener (SfxUndoListener &i_listener)
 
void RemoveUndoListener (SfxUndoListener &i_listener)
 
bool IsEmptyActions () const
 
UndoStackMark MarkTopUndoAction ()
 
void RemoveMark (UndoStackMark const i_mark)
 
bool HasTopUndoActionMark (UndoStackMark const i_mark)
 
void RemoveOldestUndoAction ()
 
void dumpAsXml (xmlTextWriterPtr pWriter) const
 

Private Member Functions

void SetEditEngine (EditEngine *pNew)
 
virtual bool Undo ()
 
virtual bool Redo ()
 

Private Attributes

EditEnginempEditEngine
 

Friends

class ImpEditEngine
 

Additional Inherited Members

- Static Public Attributes inherited from SfxUndoManager
static bool const CurrentLevel
 
static bool const TopLevel
 
- Protected Member Functions inherited from SfxUndoManager
bool UndoWithContext (SfxUndoContext &i_context)
 
bool RedoWithContext (SfxUndoContext &i_context)
 
void ImplClearRedo_NoLock (bool const i_currentLevel)
 
void ClearAllLevels ()
 
virtual void EmptyActionsChanged ()
 

Detailed Description

Definition at line 28 of file editund2.hxx.

Constructor & Destructor Documentation

◆ EditUndoManager()

EditUndoManager::EditUndoManager ( sal_uInt16  nMaxUndoActionCount = 20)

Definition at line 38 of file editundo.cxx.

Member Function Documentation

◆ Redo() [1/2]

virtual bool SfxUndoManager::Redo ( )
privatevirtual

Reimplemented from SfxUndoManager.

◆ Redo() [2/2]

bool EditUndoManager::Redo ( )
overridevirtual

◆ SetEditEngine()

void EditUndoManager::SetEditEngine ( EditEngine pNew)
private

Definition at line 44 of file editundo.cxx.

References mpEditEngine.

Referenced by ImpEditEngine::GetUndoManager(), and ImpEditEngine::SetUndoManager().

◆ Undo() [1/2]

virtual bool SfxUndoManager::Undo ( )
privatevirtual

Reimplemented from SfxUndoManager.

◆ Undo() [2/2]

bool EditUndoManager::Undo ( )
overridevirtual

Friends And Related Function Documentation

◆ ImpEditEngine

friend class ImpEditEngine
friend

Definition at line 32 of file editund2.hxx.

Member Data Documentation

◆ mpEditEngine

EditEngine* EditUndoManager::mpEditEngine
private

Definition at line 34 of file editund2.hxx.

Referenced by Redo(), SetEditEngine(), and Undo().


The documentation for this class was generated from the following files: