LibreOffice Module sc (master) 1
Public Member Functions | Static Private Member Functions | List of all members
ScUndoManager Class Reference

#include <undomanager.hxx>

Inheritance diagram for ScUndoManager:
[legend]
Collaboration diagram for ScUndoManager:
[legend]

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< ScRangegetAffectedRangeFromUndo (const SfxUndoAction *)
 
static const ScSimpleUndogetScSimpleUndo (const SfxUndoAction *)
 

Additional Inherited Members

- Protected Member Functions inherited from SdrUndoManager
bool isTextEditActive () const
 
virtual void EmptyActionsChanged () override
 

Detailed Description

Definition at line 16 of file undomanager.hxx.

Constructor & Destructor Documentation

◆ ~ScUndoManager()

ScUndoManager::~ScUndoManager ( )

Definition at line 619 of file undobase.cxx.

Member Function Documentation

◆ getAffectedRangeFromUndo()

std::optional< ScRange > ScUndoManager::getAffectedRangeFromUndo ( const SfxUndoAction pAction)
staticprivate

Definition at line 693 of file undobase.cxx.

References getScSimpleUndo().

Referenced by IsViewUndoActionIndependent().

◆ getScSimpleUndo()

const ScSimpleUndo * ScUndoManager::getScSimpleUndo ( const SfxUndoAction pAction)
staticprivate

Definition at line 701 of file undobase.cxx.

Referenced by getAffectedRangeFromUndo(), and IsViewUndoActionIndependent().

◆ 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().


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