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

#include <svdundo.hxx>

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

Public Member Functions

 SdrUndoDiagramModelData (SdrObject &rNewObj, std::shared_ptr< svx::diagram::DiagramDataState > &rStartState)
 
virtual ~SdrUndoDiagramModelData () override
 
virtual void Undo () override
 
virtual void Redo () override
 
virtual OUString GetComment () const 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
 

Private Member Functions

void implUndoRedo (bool bUndo)
 

Private Attributes

std::shared_ptr< svx::diagram::DiagramDataStatem_aStartState
 
std::shared_ptr< svx::diagram::DiagramDataStatem_aEndState
 

Additional Inherited Members

- Protected Member Functions inherited from SdrUndoObj
 SdrUndoObj (SdrObject &rNewObj)
 
OUString ImpGetDescriptionStr (TranslateId pStrCacheID, bool bRepeat=false) const
 
void ImpShowPageOfThisObject ()
 
- Protected Member Functions inherited from SdrUndoAction
 SdrUndoAction (SdrModel &rNewMod)
 
- Static Protected Member Functions inherited from SdrUndoObj
static OUString GetDescriptionStringForObject (const SdrObject &_rForObject, TranslateId pStrCacheID, bool bRepeat=false)
 
- Protected Attributes inherited from SdrUndoObj
SdrObjectpObj
 
- Protected Attributes inherited from SdrUndoAction
SdrModelrMod
 
ViewShellId m_nViewShellId
 

Detailed Description

Definition at line 232 of file svdundo.hxx.

Constructor & Destructor Documentation

◆ SdrUndoDiagramModelData()

SdrUndoDiagramModelData::SdrUndoDiagramModelData ( SdrObject rNewObj,
std::shared_ptr< svx::diagram::DiagramDataState > &  rStartState 
)

Definition at line 633 of file svdundo.cxx.

References SdrObject::getDiagramHelper(), SdrObject::isDiagram(), and m_aEndState.

◆ ~SdrUndoDiagramModelData()

SdrUndoDiagramModelData::~SdrUndoDiagramModelData ( )
overridevirtual

Definition at line 642 of file svdundo.cxx.

Member Function Documentation

◆ GetComment()

OUString SdrUndoDiagramModelData::GetComment ( ) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 669 of file svdundo.cxx.

References SdrUndoObj::ImpGetDescriptionStr().

◆ implUndoRedo()

void SdrUndoDiagramModelData::implUndoRedo ( bool  bUndo)
private

Definition at line 646 of file svdundo.cxx.

References SdrObject::getDiagramHelper(), SdrObject::isDiagram(), m_aEndState, m_aStartState, and SdrUndoObj::pObj.

Referenced by Redo(), and Undo().

◆ Redo()

void SdrUndoDiagramModelData::Redo ( )
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 664 of file svdundo.cxx.

References implUndoRedo().

◆ Undo()

void SdrUndoDiagramModelData::Undo ( )
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 659 of file svdundo.cxx.

References implUndoRedo().

Member Data Documentation

◆ m_aEndState

std::shared_ptr< svx::diagram::DiagramDataState > SdrUndoDiagramModelData::m_aEndState
private

Definition at line 235 of file svdundo.hxx.

Referenced by implUndoRedo(), and SdrUndoDiagramModelData().

◆ m_aStartState

std::shared_ptr< svx::diagram::DiagramDataState > SdrUndoDiagramModelData::m_aStartState
private

Definition at line 234 of file svdundo.hxx.

Referenced by implUndoRedo().


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