LibreOffice Module editeng (master) 1
Public Member Functions | Private Attributes | List of all members
EditUndo Class Referenceabstract

#include <editund2.hxx>

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

Public Member Functions

 EditUndo (sal_uInt16 nI, EditEngine *pEE)
 
virtual ~EditUndo () override
 
EditEngineGetEditEngine ()
 
virtual void Undo () override=0
 
virtual void Redo () override=0
 
virtual bool CanRepeat (SfxRepeatTarget &) const override
 
virtual OUString GetComment () const override
 
ViewShellId GetViewShellId () const override
 See SfxUndoAction::GetViewShellId(). More...
 
sal_uInt16 GetId () const
 
- Public Member Functions inherited from SfxUndoAction
 SfxUndoAction ()
 
virtual ~SfxUndoAction () COVERITY_NOEXCEPT_FALSE
 
virtual void Undo ()
 
virtual void UndoWithContext (SfxUndoContext &i_context)
 
virtual void Redo ()
 
virtual void RedoWithContext (SfxUndoContext &i_context)
 
virtual void Repeat (SfxRepeatTarget &)
 
virtual bool CanRepeat (SfxRepeatTarget &) const
 
virtual bool Merge (SfxUndoAction *pNextAction)
 
virtual OUString GetComment () const
 
virtual OUString GetRepeatComment (SfxRepeatTarget &) const
 
virtual ViewShellId GetViewShellId () const
 
const DateTimeGetDateTime () const
 
virtual void dumpAsXml (xmlTextWriterPtr pWriter) const
 

Private Attributes

sal_uInt16 nId
 
ViewShellId mnViewShellId
 
EditEnginempEditEngine
 

Detailed Description

Definition at line 46 of file editund2.hxx.

Constructor & Destructor Documentation

◆ EditUndo()

EditUndo::EditUndo ( sal_uInt16  nI,
EditEngine pEE 
)

◆ ~EditUndo()

EditUndo::~EditUndo ( )
overridevirtual

Definition at line 130 of file editundo.cxx.

Member Function Documentation

◆ CanRepeat()

bool EditUndo::CanRepeat ( SfxRepeatTarget &  ) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 140 of file editundo.cxx.

◆ GetComment()

OUString EditUndo::GetComment ( ) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 145 of file editundo.cxx.

References GetId(), EditEngine::GetUndoComment(), and mpEditEngine.

◆ GetEditEngine()

EditEngine * EditUndo::GetEditEngine ( )
inline

◆ GetId()

sal_uInt16 EditUndo::GetId ( ) const

Definition at line 135 of file editundo.cxx.

References nId.

Referenced by GetComment(), and OLUndoExpand::Restore().

◆ GetViewShellId()

ViewShellId EditUndo::GetViewShellId ( ) const
overridevirtual

See SfxUndoAction::GetViewShellId().

Reimplemented from SfxUndoAction.

Definition at line 155 of file editundo.cxx.

References mnViewShellId.

◆ Redo()

virtual void EditUndo::Redo ( )
overridepure virtual

◆ Undo()

virtual void EditUndo::Undo ( )
overridepure virtual

Member Data Documentation

◆ mnViewShellId

ViewShellId EditUndo::mnViewShellId
private

Definition at line 50 of file editund2.hxx.

Referenced by EditUndo(), and GetViewShellId().

◆ mpEditEngine

EditEngine* EditUndo::mpEditEngine
private

Definition at line 51 of file editund2.hxx.

Referenced by EditUndo(), and GetComment().

◆ nId

sal_uInt16 EditUndo::nId
private

Definition at line 49 of file editund2.hxx.

Referenced by GetId().


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