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 UndoWithContext (SfxUndoContext &i_context)
 
virtual void RedoWithContext (SfxUndoContext &i_context)
 
const DateTimeGetDateTime () const
 
virtual void dumpAsXml (xmlTextWriterPtr pWriter) const
 

Private Attributes

std::unique_ptr< SfxUndoActionpWrappedUndo
 
ViewShellId mnViewShellId
 

Detailed Description

Definition at line 156 of file undobase.hxx.

Constructor & Destructor Documentation

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

Definition at line 546 of file undobase.cxx.

References mnViewShellId, and pWrappedUndo.

ScUndoWrapper::~ScUndoWrapper ( )
overridevirtual

Definition at line 554 of file undobase.cxx.

Member Function Documentation

bool ScUndoWrapper::CanRepeat ( SfxRepeatTarget rTarget) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 608 of file undobase.cxx.

References pWrappedUndo.

void ScUndoWrapper::ForgetWrappedUndo ( )

Definition at line 558 of file undobase.cxx.

References pWrappedUndo.

Referenced by ScUndoInsertCells::Merge().

OUString ScUndoWrapper::GetComment ( ) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 563 of file undobase.cxx.

References pWrappedUndo.

OUString ScUndoWrapper::GetRepeatComment ( SfxRepeatTarget rTarget) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 575 of file undobase.cxx.

References pWrappedUndo.

ViewShellId ScUndoWrapper::GetViewShellId ( ) const
overridevirtual

See SfxUndoAction::GetViewShellId().

Reimplemented from SfxUndoAction.

Definition at line 570 of file undobase.cxx.

References mnViewShellId.

SfxUndoAction* ScUndoWrapper::GetWrappedUndo ( )
inline

Definition at line 165 of file undobase.hxx.

Referenced by ScUndoInsertCells::Merge().

bool ScUndoWrapper::Merge ( SfxUndoAction pNextAction)
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 582 of file undobase.cxx.

References pWrappedUndo.

void ScUndoWrapper::Redo ( )
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 596 of file undobase.cxx.

References pWrappedUndo.

void ScUndoWrapper::Repeat ( SfxRepeatTarget rTarget)
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 602 of file undobase.cxx.

References pWrappedUndo.

void ScUndoWrapper::Undo ( )
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 590 of file undobase.cxx.

References pWrappedUndo.

Member Data Documentation

ViewShellId ScUndoWrapper::mnViewShellId
private

Definition at line 159 of file undobase.hxx.

Referenced by GetViewShellId(), and ScUndoWrapper().

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

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