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

#include <svddrgmt.hxx>

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

Public Member Functions

 SdrDragMove (SdrDragView &rNewView)
 
virtual OUString GetSdrDragComment () const override
 
virtual bool BeginSdrDrag () override
 
virtual void MoveSdrDrag (const Point &rPnt) override
 
virtual bool EndSdrDrag (bool bCopy) override
 
virtual PointerStyle GetSdrDragPointer () const override
 
virtual basegfx::B2DHomMatrix getCurrentTransformation () override
 
virtual void applyCurrentTransformationToSdrObject (SdrObject &rTarget) override
 
- Public Member Functions inherited from SdrDragMethod
void resetSdrDragEntries ()
 
basegfx::B2DRange getCurrentRange () const
 
 SdrDragMethod (SdrDragView &rNewView)
 
virtual ~SdrDragMethod ()
 
void Show ()
 
void Hide ()
 
bool IsShiftPressed () const
 
void SetShiftPressed (bool bShiftPressed)
 
virtual void CancelSdrDrag ()
 
virtual void CreateOverlayGeometry (sdr::overlay::OverlayManager &rOverlayManager, const sdr::contact::ObjectContact &rObjectContact)
 
void destroyOverlayGeometry ()
 
virtual void applyCurrentTransformationToPolyPolygon (basegfx::B2DPolyPolygon &rTarget)
 
bool getMoveOnly () const
 
bool getSolidDraggingActive () const
 

Protected Member Functions

virtual void createSdrDragEntryForSdrObject (const SdrObject &rOriginal) override
 
- Protected Member Functions inherited from SdrDragMethod
void clearSdrDragEntries ()
 
void addSdrDragEntry (std::unique_ptr< SdrDragEntry > pNew)
 
virtual void createSdrDragEntries ()
 
void insertNewlyCreatedOverlayObjectForSdrDragMethod (std::unique_ptr< sdr::overlay::OverlayObject > pOverlayObject, const sdr::contact::ObjectContact &rObjectContact, sdr::overlay::OverlayManager &rOverlayManager)
 
SdrDragViewgetSdrDragView ()
 
const SdrDragViewgetSdrDragView () const
 
void setMoveOnly (bool bNew)
 
void setSolidDraggingActive (bool bNew)
 
void createSdrDragEntries_SolidDrag ()
 
void createSdrDragEntries_PolygonDrag ()
 
void createSdrDragEntries_PointDrag ()
 
void createSdrDragEntries_GlueDrag ()
 
OUString ImpGetDescriptionStr (TranslateId pStrCacheID) const
 
SdrHdlGetDragHdl () const
 
SdrHdlKind GetDragHdlKind () const
 
SdrDragStatDragStat ()
 
const SdrDragStatDragStat () const
 
PointRef1 () const
 
PointRef2 () const
 
const SdrHdlListGetHdlList () const
 
void AddUndo (std::unique_ptr< SdrUndoAction > pUndo)
 
bool IsDragLimit ()
 
const tools::RectangleGetDragLimitRect ()
 
const SdrMarkListGetMarkedObjectList ()
 
Point GetSnapPos (const Point &rPt) const
 
SdrSnap SnapPos (Point &rPt) const
 
const tools::RectangleGetMarkedRect () const
 
SdrPageViewGetDragPV () const
 
SdrObjectGetDragObj () const
 
bool IsDraggingPoints () const
 
bool IsDraggingGluePoints () const
 
bool DoAddConnectorOverlays ()
 
drawinglayer::primitive2d::Primitive2DContainer AddConnectorOverlays ()
 

Private Member Functions

void ImpCheckSnap (const Point &rPt)
 

Private Attributes

tools::Long nBestXSnap
 
tools::Long nBestYSnap
 
bool bXSnapped
 
bool bYSnapped
 

Detailed Description

Definition at line 228 of file svddrgmt.hxx.

Constructor & Destructor Documentation

SdrDragMove::SdrDragMove ( SdrDragView rNewView)

Definition at line 1457 of file svddrgmt.cxx.

References SdrDragMethod::setMoveOnly().

Member Function Documentation

void SdrDragMove::applyCurrentTransformationToSdrObject ( SdrObject rTarget)
overridevirtual

Reimplemented from SdrDragMethod.

Definition at line 1452 of file svddrgmt.cxx.

References SdrDragMethod::DragStat(), and SdrObject::Move().

bool SdrDragMove::BeginSdrDrag ( )
overridevirtual
void SdrDragMove::createSdrDragEntryForSdrObject ( const SdrObject rOriginal)
overrideprotectedvirtual
bool SdrDragMove::EndSdrDrag ( bool  bCopy)
overridevirtual
basegfx::B2DHomMatrix SdrDragMove::getCurrentTransformation ( )
overridevirtual

Reimplemented from SdrDragMethod.

Definition at line 1494 of file svddrgmt.cxx.

References basegfx::utils::createTranslateB2DHomMatrix(), and SdrDragMethod::DragStat().

OUString SdrDragMove::GetSdrDragComment ( ) const
overridevirtual
PointerStyle SdrDragMove::GetSdrDragPointer ( ) const
overridevirtual
void SdrDragMove::ImpCheckSnap ( const Point rPt)
private

Definition at line 1499 of file svddrgmt.cxx.

References bXSnapped, bYSnapped, nBestXSnap, nBestYSnap, Point, SdrDragMethod::SnapPos(), XSNAPPED, and YSNAPPED.

Referenced by MoveSdrDrag().

void SdrDragMove::MoveSdrDrag ( const Point rPnt)
overridevirtual

Member Data Documentation

bool SdrDragMove::bXSnapped
private

Definition at line 233 of file svddrgmt.hxx.

Referenced by ImpCheckSnap(), and MoveSdrDrag().

bool SdrDragMove::bYSnapped
private

Definition at line 234 of file svddrgmt.hxx.

Referenced by ImpCheckSnap(), and MoveSdrDrag().

tools::Long SdrDragMove::nBestXSnap
private

Definition at line 231 of file svddrgmt.hxx.

Referenced by ImpCheckSnap(), and MoveSdrDrag().

tools::Long SdrDragMove::nBestYSnap
private

Definition at line 232 of file svddrgmt.hxx.

Referenced by ImpCheckSnap(), and MoveSdrDrag().


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