LibreOffice Module editeng (master) 1
|
#include <editund2.hxx>
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 |
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 |
Private Member Functions | |
void | SetEditEngine (EditEngine *pNew) |
virtual bool | Undo () |
virtual bool | Redo () |
Private Attributes | |
EditEngine * | mpEditEngine |
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 () |
Definition at line 28 of file editund2.hxx.
EditUndoManager::EditUndoManager | ( | sal_uInt16 | nMaxUndoActionCount = 20 | ) |
Definition at line 38 of file editundo.cxx.
|
privatevirtual |
Reimplemented from SfxUndoManager.
|
overridevirtual |
Reimplemented from SfxUndoManager.
Definition at line 85 of file editundo.cxx.
References DBG_ASSERT, EditSelection::DbgIsBuggy(), ImpEditView::DrawSelectionXOR(), EditEngine::FormatAndLayout(), EditEngine::GetActiveView(), EditEngine::GetEditDoc(), ImpEditView::GetEditSelection(), EditEngine::GetEditViews(), EditView::GetImpEditView(), SfxUndoManager::GetRedoActionCount(), EditSelection::IsInvalid(), EditEngine::IsUpdateLayout(), EditSelection::Max(), EditSelection::Min(), mpEditEngine, SfxUndoManager::Redo(), EditEngine::SetActiveView(), ImpEditView::SetEditSelection(), and EditEngine::SetUndoMode().
|
private |
Definition at line 44 of file editundo.cxx.
References mpEditEngine.
Referenced by ImpEditEngine::GetUndoManager(), and ImpEditEngine::SetUndoManager().
|
privatevirtual |
Reimplemented from SfxUndoManager.
|
overridevirtual |
Reimplemented from SfxUndoManager.
Definition at line 49 of file editundo.cxx.
References DBG_ASSERT, EditSelection::DbgIsBuggy(), ImpEditView::DrawSelectionXOR(), EditEngine::FormatAndLayout(), EditEngine::GetActiveView(), EditEngine::GetEditDoc(), ImpEditView::GetEditSelection(), EditEngine::GetEditViews(), EditView::GetImpEditView(), SfxUndoManager::GetUndoActionCount(), EditSelection::IsInvalid(), EditEngine::IsUpdateLayout(), EditSelection::Max(), EditSelection::Min(), mpEditEngine, EditEngine::SetActiveView(), ImpEditView::SetEditSelection(), EditEngine::SetUndoMode(), and SfxUndoManager::Undo().
|
friend |
Definition at line 32 of file editund2.hxx.
|
private |
Definition at line 34 of file editund2.hxx.
Referenced by Redo(), SetEditEngine(), and Undo().