LibreOffice Module svx (master)  1
Public Member Functions | Protected 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)
 
- Public Member Functions inherited from EditUndoManager
 EditUndoManager (sal_uInt16 nMaxUndoActionCount=20)
 

Protected Member Functions

bool isTextEditActive () const
 
virtual void EmptyActionsChanged () override
 

Private Attributes

Link< SdrUndoManager *, voidmaEndTextEditHdl
 
SfxUndoActionmpLastUndoActionBeforeTextEdit
 
bool mbEndTextEditTriggeredFromUndo
 
SfxObjectShellm_pDocSh
 

Detailed Description

Definition at line 28 of file sdrundomanager.hxx.

Constructor & Destructor Documentation

SdrUndoManager::SdrUndoManager ( )

Definition at line 24 of file sdrundomanager.cxx.

SdrUndoManager::~SdrUndoManager ( )
overridevirtual

Definition at line 33 of file sdrundomanager.cxx.

Member Function Documentation

void SdrUndoManager::Clear ( )
overridevirtual

Definition at line 85 of file sdrundomanager.cxx.

References isTextEditActive(), and mpLastUndoActionBeforeTextEdit.

void SdrUndoManager::EmptyActionsChanged ( )
overrideprotectedvirtual

Definition at line 141 of file sdrundomanager.cxx.

References m_pDocSh.

bool SdrUndoManager::isEndTextEditTriggeredFromUndo ( ) const
inline

Definition at line 64 of file sdrundomanager.hxx.

Referenced by SdrObjEditView::SdrEndTextEdit().

bool SdrUndoManager::isTextEditActive ( ) const
protected

Definition at line 131 of file sdrundomanager.cxx.

References Link< class, class >::IsSet(), and maEndTextEditHdl.

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

bool SdrUndoManager::Redo ( )
overridevirtual

Reimplemented from EditUndoManager.

Definition at line 66 of file sdrundomanager.cxx.

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

Referenced by SdrObjEditView::SdrEndTextEdit().

void SdrUndoManager::SetDocShell ( SfxObjectShell pDocShell)

Definition at line 136 of file sdrundomanager.cxx.

References m_pDocSh.

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

react depending on edit mode and if no more undo is possible

Reimplemented from EditUndoManager.

Definition at line 37 of file sdrundomanager.cxx.

References Link< class, class >::Call(), isTextEditActive(), maEndTextEditHdl, mbEndTextEditTriggeredFromUndo, mpLastUndoActionBeforeTextEdit, SfxUndoManager::Undo(), and EditUndoManager::Undo().

Referenced by SdrObjEditView::SdrEndTextEdit().

Member Data Documentation

SfxObjectShell* SdrUndoManager::m_pDocSh
private

Definition at line 38 of file sdrundomanager.hxx.

Referenced by EmptyActionsChanged(), and SetDocShell().

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

Definition at line 34 of file sdrundomanager.hxx.

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

bool SdrUndoManager::mbEndTextEditTriggeredFromUndo
private

Definition at line 36 of file sdrundomanager.hxx.

Referenced by Undo().

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: