LibreOffice Module sc (master) 1
|
#include <undomanager.hxx>
Public Member Functions | |
~ScUndoManager () | |
bool | IsViewUndoActionIndependent (const SfxViewShell *pView, sal_uInt16 &rOffset) const |
Checks if the topmost undo action owned by pView is independent from the topmost action undo action. More... | |
Public Member Functions inherited from SdrUndoManager | |
SdrUndoManager () | |
virtual | ~SdrUndoManager () override |
virtual bool | Undo () override |
virtual bool | Redo () override |
virtual void | Clear () override |
void | SetEndTextEditHdl (const Link< SdrUndoManager *, void > &rLink) |
bool | isEndTextEditTriggeredFromUndo () const |
void | SetDocShell (SfxObjectShell *pDocShell) |
size_t | GetRedoActionCountBeforeTextEdit () const |
Static Private Member Functions | |
static std::optional< ScRange > | getAffectedRangeFromUndo (const SfxUndoAction *) |
static const ScSimpleUndo * | getScSimpleUndo (const SfxUndoAction *) |
Additional Inherited Members | |
Protected Member Functions inherited from SdrUndoManager | |
bool | isTextEditActive () const |
virtual void | EmptyActionsChanged () override |
Definition at line 16 of file undomanager.hxx.
ScUndoManager::~ScUndoManager | ( | ) |
Definition at line 619 of file undobase.cxx.
|
staticprivate |
Definition at line 693 of file undobase.cxx.
References getScSimpleUndo().
Referenced by IsViewUndoActionIndependent().
|
staticprivate |
Definition at line 701 of file undobase.cxx.
Referenced by getAffectedRangeFromUndo(), and IsViewUndoActionIndependent().
bool ScUndoManager::IsViewUndoActionIndependent | ( | const SfxViewShell * | pView, |
sal_uInt16 & | rOffset | ||
) | const |
Checks if the topmost undo action owned by pView is independent from the topmost action undo action.
Sets rOffset to the offset of that independent undo action on success.
Definition at line 625 of file undobase.cxx.
References getAffectedRangeFromUndo(), getScSimpleUndo(), SfxUndoAction::GetViewShellId(), SfxViewShell::GetViewShellId(), and i.
Referenced by ScTabViewShell::ExecuteUndo(), and ScTabViewShell::GetUndoState().