LibreOffice Module vcl (master) 1
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
TextUndoManager Class Reference

#include <textundo.hxx>

Inheritance diagram for TextUndoManager:
Collaboration diagram for TextUndoManager:

Public Member Functions

 TextUndoManager (TextEngine *pTextEngine)
virtual ~TextUndoManager () override
virtual bool Undo () override
virtual bool Redo () override
virtual bool Undo ()
virtual bool Redo ()
- 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

Protected Member Functions

void UndoRedoStart ()
void UndoRedoEnd ()
TextViewGetView () const
- 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 ()

Private Attributes


Additional Inherited Members

- Static Public Attributes inherited from SfxUndoManager
static bool const CurrentLevel
static bool const TopLevel

Detailed Description

Definition at line 30 of file textundo.hxx.

Constructor & Destructor Documentation

◆ TextUndoManager()

TextUndoManager::TextUndoManager ( TextEngine pTextEngine)

Definition at line 61 of file textundo.cxx.

References mpTextEngine, and p.

◆ ~TextUndoManager()

TextUndoManager::~TextUndoManager ( )

Definition at line 66 of file textundo.cxx.

Member Function Documentation

◆ GetView()

TextView * TextUndoManager::GetView ( ) const

Definition at line 39 of file textundo.hxx.

References TextEngine::GetActiveView(), and mpTextEngine.

Referenced by UndoRedoEnd(), and UndoRedoStart().

◆ Redo() [1/2]

virtual bool SfxUndoManager::Redo ( )

Reimplemented from SfxUndoManager.

◆ Redo() [2/2]

bool TextUndoManager::Redo ( )

◆ Undo() [1/2]

virtual bool SfxUndoManager::Undo ( )

Reimplemented from SfxUndoManager.

◆ Undo() [2/2]

bool TextUndoManager::Undo ( )

◆ UndoRedoEnd()

void TextUndoManager::UndoRedoEnd ( )

◆ UndoRedoStart()

void TextUndoManager::UndoRedoStart ( )

Definition at line 102 of file textundo.cxx.

References GetView(), and SAL_WARN_IF.

Referenced by Redo(), and Undo().

Member Data Documentation

◆ mpTextEngine

TextEngine* TextUndoManager::mpTextEngine

Definition at line 32 of file textundo.hxx.

Referenced by GetView(), Redo(), TextUndoManager(), Undo(), and UndoRedoEnd().

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