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

Only moving of an object. More...

#include <svdundo.hxx>

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

Public Member Functions

 SdrUndoMoveObj (SdrObject &rNewObj, const Size &rDist)
 
virtual ~SdrUndoMoveObj () override
 
virtual void Undo () override
 
virtual void Redo () override
 
virtual OUString GetComment () const override
 
virtual OUString GetSdrRepeatComment () const override
 
virtual void SdrRepeat (SdrView &rView) override
 
virtual bool CanSdrRepeat (SdrView &rView) 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
 
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)
 
const DateTimeGetDateTime () const
 
virtual void dumpAsXml (xmlTextWriterPtr pWriter) const
 

Private Attributes

Size const aDistance
 

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

Only moving of an object.

Create Action right before moving.

Definition at line 183 of file svdundo.hxx.

Constructor & Destructor Documentation

SdrUndoMoveObj::SdrUndoMoveObj ( SdrObject rNewObj,
const Size rDist 
)
inline

Definition at line 188 of file svdundo.hxx.

SdrUndoMoveObj::~SdrUndoMoveObj ( )
overridevirtual

Definition at line 518 of file svdundo.cxx.

Member Function Documentation

bool SdrUndoMoveObj::CanSdrRepeat ( SdrView rView) const
overridevirtual

Reimplemented from SdrUndoAction.

Definition at line 546 of file svdundo.cxx.

References SdrMarkView::AreObjectsMarked().

OUString SdrUndoMoveObj::GetComment ( ) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 536 of file svdundo.cxx.

References SdrUndoObj::ImpGetDescriptionStr().

OUString SdrUndoMoveObj::GetSdrRepeatComment ( ) const
overridevirtual

Reimplemented from SdrUndoAction.

Definition at line 551 of file svdundo.cxx.

References SdrUndoObj::ImpGetDescriptionStr().

void SdrUndoMoveObj::Redo ( )
overridevirtual
void SdrUndoMoveObj::SdrRepeat ( SdrView rView)
overridevirtual

Reimplemented from SdrUndoAction.

Definition at line 541 of file svdundo.cxx.

References aDistance, and SdrEditView::MoveMarkedObj().

void SdrUndoMoveObj::Undo ( )
overridevirtual

Member Data Documentation

Size const SdrUndoMoveObj::aDistance
private

Definition at line 185 of file svdundo.hxx.

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


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