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

#include <svdundo.hxx>

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

Public Member Functions

 SdrUndoObjectLayerChange (SdrObject &rObj, SdrLayerID aOldLayer, SdrLayerID aNewLayer)
 
virtual void Undo () override
 
virtual void Redo () 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 Attributes

SdrLayerID maOldLayer
 
SdrLayerID maNewLayer
 

Additional Inherited Members

- Protected Member Functions inherited from SdrUndoObj
 SdrUndoObj (SdrObject &rNewObj)
 
virtual ~SdrUndoObj () override
 
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
rtl::Reference< SdrObjectmxObj
 
- Protected Attributes inherited from SdrUndoAction
SdrModelrMod
 
ViewShellId m_nViewShellId
 

Detailed Description

Definition at line 409 of file svdundo.hxx.

Constructor & Destructor Documentation

◆ SdrUndoObjectLayerChange()

SdrUndoObjectLayerChange::SdrUndoObjectLayerChange ( SdrObject rObj,
SdrLayerID  aOldLayer,
SdrLayerID  aNewLayer 
)

Definition at line 883 of file svdundo.cxx.

Member Function Documentation

◆ Redo()

void SdrUndoObjectLayerChange::Redo ( )
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 896 of file svdundo.cxx.

References SdrUndoObj::ImpShowPageOfThisObject(), maNewLayer, and SdrUndoObj::mxObj.

◆ Undo()

void SdrUndoObjectLayerChange::Undo ( )
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 890 of file svdundo.cxx.

References SdrUndoObj::ImpShowPageOfThisObject(), maOldLayer, and SdrUndoObj::mxObj.

Member Data Documentation

◆ maNewLayer

SdrLayerID SdrUndoObjectLayerChange::maNewLayer
private

Definition at line 412 of file svdundo.hxx.

Referenced by Redo().

◆ maOldLayer

SdrLayerID SdrUndoObjectLayerChange::maOldLayer
private

Definition at line 411 of file svdundo.hxx.

Referenced by Undo().


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