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
- Public Member Functions inherited from SfxUndoManager
 SfxUndoManager (size_t nMaxUndoActionCount=20)
virtual ~SfxUndoManager ()
void SetMaxUndoActionCount (size_t nMaxUndoActionCount)
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 () const
OUString GetRedoActionsInfo () const
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 31 of file textundo.hxx.

Constructor & Destructor Documentation

TextUndoManager::TextUndoManager ( TextEngine pTextEngine)

Definition at line 60 of file textundo.cxx.

References mpTextEngine.

TextUndoManager::~TextUndoManager ( )

Definition at line 65 of file textundo.cxx.

Member Function Documentation

TextView* TextUndoManager::GetView ( ) const

Definition at line 40 of file textundo.hxx.

References TextEngine::GetActiveView().

Referenced by UndoRedoEnd(), and UndoRedoStart().

bool TextUndoManager::Redo ( )
bool TextUndoManager::Undo ( )
void TextUndoManager::UndoRedoEnd ( )
void TextUndoManager::UndoRedoStart ( )

Definition at line 101 of file textundo.cxx.

References GetView(), and SAL_WARN_IF.

Referenced by Redo(), and Undo().

Member Data Documentation

TextEngine* TextUndoManager::mpTextEngine

Definition at line 33 of file textundo.hxx.

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

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