|
LibreOffice Module vcl (master) 1
|
#include <textundo.hxx>
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 |
| SfxUndoAction * | GetUndoAction (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 |
| SfxUndoAction * | GetRedoAction (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 () |
| TextView * | GetView () 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 | |
| TextEngine * | mpTextEngine |
Additional Inherited Members | |
Static Public Attributes inherited from SfxUndoManager | |
| static bool const | CurrentLevel |
| static bool const | TopLevel |
Definition at line 30 of file textundo.hxx.
|
explicit |
Definition at line 61 of file textundo.cxx.
References mpTextEngine, and p.
|
overridevirtual |
Definition at line 66 of file textundo.cxx.
|
inlineprotected |
Definition at line 39 of file textundo.hxx.
References TextEngine::GetActiveView(), and mpTextEngine.
Referenced by UndoRedoEnd(), and UndoRedoStart().
|
virtual |
Reimplemented from SfxUndoManager.
|
overridevirtual |
Reimplemented from SfxUndoManager.
Definition at line 86 of file textundo.cxx.
References SfxUndoManager::GetRedoActionCount(), mpTextEngine, SfxUndoManager::Redo(), TextEngine::SetIsInUndo(), UndoRedoEnd(), and UndoRedoStart().
|
virtual |
Reimplemented from SfxUndoManager.
|
overridevirtual |
Reimplemented from SfxUndoManager.
Definition at line 70 of file textundo.cxx.
References SfxUndoManager::GetUndoActionCount(), mpTextEngine, TextEngine::SetIsInUndo(), SfxUndoManager::Undo(), UndoRedoEnd(), and UndoRedoStart().
|
protected |
Definition at line 107 of file textundo.cxx.
References TextEngine::FormatAndUpdate(), TextSelection::GetEnd(), GetSelection(), TextSelection::GetStart(), GetView(), TextView::ImpSetSelection(), and mpTextEngine.
|
protected |
Definition at line 102 of file textundo.cxx.
References GetView(), and SAL_WARN_IF.
|
private |
Definition at line 32 of file textundo.hxx.
Referenced by GetView(), Redo(), TextUndoManager(), Undo(), and UndoRedoEnd().