LibreOffice Module svx (master) 1
Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
sdr::table::CellUndo Class Reference

#include <tableundo.hxx>

Inheritance diagram for sdr::table::CellUndo:
[legend]
Collaboration diagram for sdr::table::CellUndo:
[legend]

Classes

struct  Data
 

Public Member Functions

 CellUndo (SdrObject *pObj, const CellRef &xCell)
 
virtual ~CellUndo () override
 
virtual void Undo () override
 
virtual void Redo () override
 
virtual bool Merge (SfxUndoAction *pNextAction) override
 
void dispose ()
 
virtual void ObjectInDestruction (const SdrObject &rObject) override
 
- Public Member Functions inherited from SdrUndoAction
virtual ~SdrUndoAction () override
 
virtual bool CanRepeat (SfxRepeatTarget &rView) const override
 
virtual void Repeat (SfxRepeatTarget &rView) override
 
virtual OUString GetRepeatComment (SfxRepeatTarget &rView) const override
 
virtual OUString GetSdrRepeatComment () const
 
virtual bool CanSdrRepeat (SdrView &rView) const
 
virtual void SdrRepeat (SdrView &rView)
 
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
 
virtual void ObjectInDestruction (const SdrObject &rObject)=0
 

Private Member Functions

void setDataToCell (const Data &rData)
 
void getDataFromCell (Data &rData)
 

Private Attributes

unotools::WeakReference< SdrObjectmxObjRef
 
CellRef mxCell
 
Data maUndoData
 
Data maRedoData
 
bool mbUndo
 

Additional Inherited Members

- Protected Member Functions inherited from SdrUndoAction
 SdrUndoAction (SdrModel &rNewMod)
 
- Protected Member Functions inherited from sdr::ObjectUser
 ~ObjectUser ()
 
- Protected Attributes inherited from SdrUndoAction
SdrModelrMod
 
ViewShellId m_nViewShellId
 

Detailed Description

Definition at line 42 of file tableundo.hxx.

Constructor & Destructor Documentation

◆ CellUndo()

sdr::table::CellUndo::CellUndo ( SdrObject pObj,
const CellRef xCell 
)

◆ ~CellUndo()

sdr::table::CellUndo::~CellUndo ( )
overridevirtual

Member Function Documentation

◆ dispose()

void sdr::table::CellUndo::dispose ( void  )

◆ getDataFromCell()

void sdr::table::CellUndo::getDataFromCell ( Data rData)
private

◆ Merge()

bool sdr::table::CellUndo::Merge ( SfxUndoAction pNextAction)
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 92 of file tableundo.cxx.

References mxCell.

◆ ObjectInDestruction()

void sdr::table::CellUndo::ObjectInDestruction ( const SdrObject rObject)
overridevirtual

Implements sdr::ObjectUser.

Definition at line 66 of file tableundo.cxx.

References dispose().

◆ Redo()

void sdr::table::CellUndo::Redo ( )
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 83 of file tableundo.cxx.

References maRedoData, mbUndo, mxCell, and setDataToCell().

◆ setDataToCell()

void sdr::table::CellUndo::setDataToCell ( const Data rData)
private

◆ Undo()

void sdr::table::CellUndo::Undo ( )
overridevirtual

Member Data Documentation

◆ maRedoData

Data sdr::table::CellUndo::maRedoData
private

Definition at line 84 of file tableundo.hxx.

Referenced by dispose(), Redo(), and Undo().

◆ maUndoData

Data sdr::table::CellUndo::maUndoData
private

Definition at line 83 of file tableundo.hxx.

Referenced by CellUndo(), dispose(), and Undo().

◆ mbUndo

bool sdr::table::CellUndo::mbUndo
private

Definition at line 85 of file tableundo.hxx.

Referenced by Redo(), and Undo().

◆ mxCell

CellRef sdr::table::CellUndo::mxCell
private

Definition at line 82 of file tableundo.hxx.

Referenced by CellUndo(), dispose(), getDataFromCell(), Merge(), Redo(), setDataToCell(), and Undo().

◆ mxObjRef

unotools::WeakReference<SdrObject> sdr::table::CellUndo::mxObjRef
private

Definition at line 81 of file tableundo.hxx.

Referenced by getDataFromCell(), setDataToCell(), and ~CellUndo().


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