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

#include <undobase.hxx>

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

Public Member Functions

 ScUndoWrapper (std::unique_ptr< SfxUndoAction > pUndo)
 
virtual ~ScUndoWrapper () override
 
SfxUndoActionGetWrappedUndo ()
 
void ForgetWrappedUndo ()
 
virtual void Undo () override
 
virtual void Redo () override
 
virtual void Repeat (SfxRepeatTarget &rTarget) override
 
virtual bool CanRepeat (SfxRepeatTarget &rTarget) const override
 
virtual bool Merge (SfxUndoAction *pNextAction) override
 
virtual OUString GetComment () const override
 
virtual OUString GetRepeatComment (SfxRepeatTarget &) const override
 
ViewShellId GetViewShellId () const override
 See SfxUndoAction::GetViewShellId(). More...
 
- 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

std::unique_ptr< SfxUndoActionpWrappedUndo
 
ViewShellId mnViewShellId
 

Detailed Description

Definition at line 160 of file undobase.hxx.

Constructor & Destructor Documentation

◆ ScUndoWrapper()

ScUndoWrapper::ScUndoWrapper ( std::unique_ptr< SfxUndoAction pUndo)

Definition at line 549 of file undobase.cxx.

References mnViewShellId, and pWrappedUndo.

◆ ~ScUndoWrapper()

ScUndoWrapper::~ScUndoWrapper ( )
overridevirtual

Definition at line 557 of file undobase.cxx.

Member Function Documentation

◆ CanRepeat()

bool ScUndoWrapper::CanRepeat ( SfxRepeatTarget rTarget) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 611 of file undobase.cxx.

References pWrappedUndo, and rTarget.

◆ ForgetWrappedUndo()

void ScUndoWrapper::ForgetWrappedUndo ( )

Definition at line 561 of file undobase.cxx.

References pWrappedUndo.

◆ GetComment()

OUString ScUndoWrapper::GetComment ( ) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 566 of file undobase.cxx.

References pWrappedUndo.

◆ GetRepeatComment()

OUString ScUndoWrapper::GetRepeatComment ( SfxRepeatTarget rTarget) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 578 of file undobase.cxx.

References pWrappedUndo, and rTarget.

◆ GetViewShellId()

ViewShellId ScUndoWrapper::GetViewShellId ( ) const
overridevirtual

See SfxUndoAction::GetViewShellId().

Reimplemented from SfxUndoAction.

Definition at line 573 of file undobase.cxx.

References mnViewShellId.

◆ GetWrappedUndo()

SfxUndoAction * ScUndoWrapper::GetWrappedUndo ( )
inline

Definition at line 169 of file undobase.hxx.

References pWrappedUndo.

◆ Merge()

bool ScUndoWrapper::Merge ( SfxUndoAction pNextAction)
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 585 of file undobase.cxx.

References pWrappedUndo.

◆ Redo()

void ScUndoWrapper::Redo ( )
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 599 of file undobase.cxx.

References pWrappedUndo.

◆ Repeat()

void ScUndoWrapper::Repeat ( SfxRepeatTarget rTarget)
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 605 of file undobase.cxx.

References pWrappedUndo, and rTarget.

◆ Undo()

void ScUndoWrapper::Undo ( )
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 593 of file undobase.cxx.

References pWrappedUndo.

Member Data Documentation

◆ mnViewShellId

ViewShellId ScUndoWrapper::mnViewShellId
private

Definition at line 163 of file undobase.hxx.

Referenced by GetViewShellId(), and ScUndoWrapper().

◆ pWrappedUndo

std::unique_ptr<SfxUndoAction> ScUndoWrapper::pWrappedUndo
private

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