LibreOffice Module svx (master) 1
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
SdrUndoManager Class Reference

#include <sdrundomanager.hxx>

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

Public Member Functions

 SdrUndoManager ()
 
virtual ~SdrUndoManager () override
 
virtual bool Undo () override
 react depending on edit mode and if no more undo is possible More...
 
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
 
- Public Member Functions inherited from EditUndoManager
 EditUndoManager (sal_uInt16 nMaxUndoActionCount=20)
 
virtual bool Undo () override
 
virtual bool Redo () override
 

Protected Member Functions

bool isTextEditActive () const
 
virtual void EmptyActionsChanged () override
 

Private Member Functions

virtual bool Undo () override
 
virtual bool Redo () override
 

Private Attributes

Link< SdrUndoManager *, void > maEndTextEditHdl
 
SfxUndoActionmpLastUndoActionBeforeTextEdit
 
size_t mnRedoActionCountBeforeTextEdit
 
bool mbEndTextEditTriggeredFromUndo
 
SfxObjectShellm_pDocSh
 

Detailed Description

Definition at line 28 of file sdrundomanager.hxx.

Constructor & Destructor Documentation

◆ SdrUndoManager()

SdrUndoManager::SdrUndoManager ( )

Definition at line 25 of file sdrundomanager.cxx.

◆ ~SdrUndoManager()

SdrUndoManager::~SdrUndoManager ( )
overridevirtual

Definition at line 34 of file sdrundomanager.cxx.

Member Function Documentation

◆ Clear()

void SdrUndoManager::Clear ( )
overridevirtual

Definition at line 124 of file sdrundomanager.cxx.

References isTextEditActive(), and mpLastUndoActionBeforeTextEdit.

◆ EmptyActionsChanged()

void SdrUndoManager::EmptyActionsChanged ( )
overrideprotectedvirtual

Definition at line 176 of file sdrundomanager.cxx.

References m_pDocSh.

◆ GetRedoActionCountBeforeTextEdit()

size_t SdrUndoManager::GetRedoActionCountBeforeTextEdit ( ) const
inline

Definition at line 68 of file sdrundomanager.hxx.

Referenced by SdrObjEditView::SdrEndTextEdit().

◆ isEndTextEditTriggeredFromUndo()

bool SdrUndoManager::isEndTextEditTriggeredFromUndo ( ) const
inline

Definition at line 66 of file sdrundomanager.hxx.

Referenced by SdrObjEditView::SdrEndTextEdit().

◆ isTextEditActive()

bool SdrUndoManager::isTextEditActive ( ) const
protected

◆ Redo() [1/2]

virtual bool EditUndoManager::Redo ( )
privatevirtual

Reimplemented from EditUndoManager.

◆ Redo() [2/2]

bool SdrUndoManager::Redo ( )
overridevirtual

Reimplemented from EditUndoManager.

Definition at line 65 of file sdrundomanager.cxx.

References isTextEditActive(), SfxUndoManager::Redo(), and EditUndoManager::Redo().

Referenced by SdrObjEditView::SdrEndTextEdit().

◆ SetDocShell()

void SdrUndoManager::SetDocShell ( SfxObjectShell pDocShell)

Definition at line 174 of file sdrundomanager.cxx.

References m_pDocSh.

◆ SetEndTextEditHdl()

void SdrUndoManager::SetEndTextEditHdl ( const Link< SdrUndoManager *, void > &  rLink)

◆ Undo() [1/2]

virtual bool EditUndoManager::Undo ( )
privatevirtual

Reimplemented from EditUndoManager.

◆ Undo() [2/2]

bool SdrUndoManager::Undo ( )
overridevirtual

Member Data Documentation

◆ m_pDocSh

SfxObjectShell* SdrUndoManager::m_pDocSh
private

Definition at line 39 of file sdrundomanager.hxx.

Referenced by EmptyActionsChanged(), and SetDocShell().

◆ maEndTextEditHdl

Link<SdrUndoManager*, void> SdrUndoManager::maEndTextEditHdl
private

Definition at line 34 of file sdrundomanager.hxx.

Referenced by isTextEditActive(), SetEndTextEditHdl(), and Undo().

◆ mbEndTextEditTriggeredFromUndo

bool SdrUndoManager::mbEndTextEditTriggeredFromUndo
private

Definition at line 37 of file sdrundomanager.hxx.

Referenced by Undo().

◆ mnRedoActionCountBeforeTextEdit

size_t SdrUndoManager::mnRedoActionCountBeforeTextEdit
private

Definition at line 36 of file sdrundomanager.hxx.

Referenced by SetEndTextEditHdl().

◆ mpLastUndoActionBeforeTextEdit

SfxUndoAction* SdrUndoManager::mpLastUndoActionBeforeTextEdit
private

Definition at line 35 of file sdrundomanager.hxx.

Referenced by Clear(), SetEndTextEditHdl(), and Undo().


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