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

Replacing an Object. More...

#include <svdundo.hxx>

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

Public Member Functions

 SdrUndoReplaceObj (SdrObject &rOldObj1, SdrObject &rNewObj1)
 
virtual ~SdrUndoReplaceObj () override
 
virtual void Undo () override
 
virtual void Redo () override
 
bool IsNewOwner () const
 
void SetNewOwner (bool bNew)
 
bool IsOldOwner () const
 
void SetOldOwner (bool bNew)
 
- 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 UndoWithContext (SfxUndoContext &i_context)
 
virtual void RedoWithContext (SfxUndoContext &i_context)
 
virtual bool Merge (SfxUndoAction *pNextAction)
 
virtual OUString GetComment () const
 
const DateTimeGetDateTime () const
 
virtual void dumpAsXml (xmlTextWriterPtr pWriter) const
 

Private Attributes

bool bOldOwner
 
bool bNewOwner
 
SdrObjListpObjList
 
SdrObjectpNewObj
 

Additional Inherited Members

- Protected Member Functions inherited from SdrUndoObj
 SdrUndoObj (SdrObject &rNewObj)
 
OUString ImpGetDescriptionStr (const char *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, const char *pStrCacheID, bool bRepeat=false)
 
- Protected Attributes inherited from SdrUndoObj
SdrObjectpObj
 
- Protected Attributes inherited from SdrUndoAction
SdrModelrMod
 
ViewShellId m_nViewShellId
 

Detailed Description

Replacing an Object.

Create Action before Replace in ObjList.

Definition at line 329 of file svdundo.hxx.

Constructor & Destructor Documentation

SdrUndoReplaceObj::SdrUndoReplaceObj ( SdrObject rOldObj1,
SdrObject rNewObj1 
)
SdrUndoReplaceObj::~SdrUndoReplaceObj ( )
overridevirtual

Member Function Documentation

bool SdrUndoReplaceObj::IsNewOwner ( ) const
inline

Definition at line 344 of file svdundo.hxx.

Referenced by Redo(), Undo(), and ~SdrUndoReplaceObj().

bool SdrUndoReplaceObj::IsOldOwner ( ) const
inline

Definition at line 347 of file svdundo.hxx.

Referenced by Redo(), Undo(), and ~SdrUndoReplaceObj().

void SdrUndoReplaceObj::Redo ( )
overridevirtual
void SdrUndoReplaceObj::SetNewOwner ( bool  bNew)

Definition at line 890 of file svdundo.cxx.

References bNewOwner.

Referenced by Redo(), Undo(), and ~SdrUndoReplaceObj().

void SdrUndoReplaceObj::SetOldOwner ( bool  bNew)

Definition at line 895 of file svdundo.cxx.

References bOldOwner.

Referenced by Redo(), SdrUndoReplaceObj(), Undo(), and ~SdrUndoReplaceObj().

void SdrUndoReplaceObj::Undo ( )
overridevirtual

Member Data Documentation

bool SdrUndoReplaceObj::bNewOwner
private

Definition at line 332 of file svdundo.hxx.

Referenced by SetNewOwner().

bool SdrUndoReplaceObj::bOldOwner
private

Definition at line 331 of file svdundo.hxx.

Referenced by SetOldOwner().

SdrObject* SdrUndoReplaceObj::pNewObj
private

Definition at line 335 of file svdundo.hxx.

Referenced by Redo(), Undo(), and ~SdrUndoReplaceObj().

SdrObjList* SdrUndoReplaceObj::pObjList
private

Definition at line 334 of file svdundo.hxx.

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


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