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

#include <svddrgmt.hxx>

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

Public Member Functions

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

Protected Member Functions

void clearSdrDragEntries ()
 
void addSdrDragEntry (std::unique_ptr< SdrDragEntry > pNew)
 
virtual void createSdrDragEntries ()
 
virtual void createSdrDragEntryForSdrObject (const SdrObject &rOriginal)
 
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 Attributes

std::vector< std::unique_ptr< SdrDragEntry > > maSdrDragEntries
 
sdr::overlay::OverlayObjectList maOverlayObjectList
 
SdrDragViewmrSdrDragView
 
bool mbMoveOnly: 1
 
bool mbSolidDraggingActive: 1
 
bool mbShiftPressed: 1
 

Detailed Description

Definition at line 114 of file svddrgmt.hxx.

Constructor & Destructor Documentation

◆ SdrDragMethod()

SdrDragMethod::SdrDragMethod ( SdrDragView rNewView)

Definition at line 630 of file svddrgmt.cxx.

References Application::GetSettings(), and mbSolidDraggingActive.

◆ ~SdrDragMethod()

SdrDragMethod::~SdrDragMethod ( )
virtual

Definition at line 643 of file svddrgmt.cxx.

References clearSdrDragEntries().

Member Function Documentation

◆ AddConnectorOverlays()

drawinglayer::primitive2d::Primitive2DContainer SdrDragMethod::AddConnectorOverlays ( )
protected

◆ addSdrDragEntry()

void SdrDragMethod::addSdrDragEntry ( std::unique_ptr< SdrDragEntry pNew)
protected

◆ AddUndo()

void SdrDragMethod::AddUndo ( std::unique_ptr< SdrUndoAction pUndo)
inlineprotected

Definition at line 167 of file svddrgmt.hxx.

Referenced by SdrDragCrook::EndSdrDrag().

◆ applyCurrentTransformationToPolyPolygon()

void SdrDragMethod::applyCurrentTransformationToPolyPolygon ( basegfx::B2DPolyPolygon rTarget)
virtual

◆ applyCurrentTransformationToSdrObject()

void SdrDragMethod::applyCurrentTransformationToSdrObject ( SdrObject rTarget)
virtual

◆ BeginSdrDrag()

virtual bool SdrDragMethod::BeginSdrDrag ( )
pure virtual

◆ CancelSdrDrag()

void SdrDragMethod::CancelSdrDrag ( )
virtual

Reimplemented in E3dDragMethod, SdrDragMovHdl, and SdrDragGradient.

Definition at line 663 of file svddrgmt.cxx.

References Hide().

◆ clearSdrDragEntries()

void SdrDragMethod::clearSdrDragEntries ( )
protected

Definition at line 285 of file svddrgmt.cxx.

References maSdrDragEntries.

Referenced by SdrDragObjOwn::MoveSdrDrag(), resetSdrDragEntries(), and ~SdrDragMethod().

◆ CreateOverlayGeometry()

void SdrDragMethod::CreateOverlayGeometry ( sdr::overlay::OverlayManager rOverlayManager,
const sdr::contact::ObjectContact rObjectContact 
)
virtual

◆ createSdrDragEntries()

void SdrDragMethod::createSdrDragEntries ( )
protectedvirtual

◆ createSdrDragEntries_GlueDrag()

void SdrDragMethod::createSdrDragEntries_GlueDrag ( )
protected

◆ createSdrDragEntries_PointDrag()

void SdrDragMethod::createSdrDragEntries_PointDrag ( )
protected

◆ createSdrDragEntries_PolygonDrag()

void SdrDragMethod::createSdrDragEntries_PolygonDrag ( )
protected

◆ createSdrDragEntries_SolidDrag()

void SdrDragMethod::createSdrDragEntries_SolidDrag ( )
protected

◆ createSdrDragEntryForSdrObject()

void SdrDragMethod::createSdrDragEntryForSdrObject ( const SdrObject rOriginal)
protectedvirtual

Reimplemented in SdrDragMove.

Definition at line 322 of file svddrgmt.cxx.

References addSdrDragEntry().

Referenced by createSdrDragEntries_SolidDrag().

◆ destroyOverlayGeometry()

void SdrDragMethod::destroyOverlayGeometry ( )

Definition at line 831 of file svddrgmt.cxx.

References sdr::overlay::OverlayObjectList::clear(), and maOverlayObjectList.

◆ DoAddConnectorOverlays()

bool SdrDragMethod::DoAddConnectorOverlays ( )
protected

◆ DragStat() [1/2]

SdrDragStat & SdrDragMethod::DragStat ( )
inlineprotected

Definition at line 162 of file svddrgmt.hxx.

Referenced by SdrDragMove::applyCurrentTransformationToSdrObject(), SdrDragResize::applyCurrentTransformationToSdrObject(), SdrDragRotate::applyCurrentTransformationToSdrObject(), SdrDragShear::applyCurrentTransformationToSdrObject(), SdrDragMirror::applyCurrentTransformationToSdrObject(), SdrDragDistort::applyCurrentTransformationToSdrObject(), SdrDragMove::BeginSdrDrag(), SdrDragResize::BeginSdrDrag(), SdrDragObjOwn::BeginSdrDrag(), E3dDragMethod::BeginSdrDrag(), SdrDragMovHdl::BeginSdrDrag(), SdrDragRotate::BeginSdrDrag(), SdrDragShear::BeginSdrDrag(), SdrDragMirror::BeginSdrDrag(), SdrDragGradient::BeginSdrDrag(), SdrDragCrook::BeginSdrDrag(), SdrDragMovHdl::CancelSdrDrag(), SdrDragGradient::CancelSdrDrag(), SdrDragObjOwn::createSdrDragEntries(), SdrDragMove::EndSdrDrag(), SdrDragResize::EndSdrDrag(), SdrDragObjOwn::EndSdrDrag(), SdrDragMovHdl::EndSdrDrag(), SdrDragRotate::EndSdrDrag(), SdrDragShear::EndSdrDrag(), SdrDragMirror::EndSdrDrag(), SdrDragDistort::EndSdrDrag(), SdrDragCrop::EndSdrDrag(), SdrDragMove::getCurrentTransformation(), SdrDragResize::getCurrentTransformation(), SdrDragRotate::getCurrentTransformation(), SdrDragShear::getCurrentTransformation(), SdrDragMirror::getCurrentTransformation(), SdrDragMove::GetSdrDragComment(), SdrDragResize::GetSdrDragComment(), SdrDragObjOwn::GetSdrDragComment(), SdrDragDistort::GetSdrDragComment(), SdrDragCrop::GetSdrDragComment(), SdrDragMirror::ImpCheckSide(), SdrDragMove::MoveSdrDrag(), SdrDragResize::MoveSdrDrag(), SdrDragObjOwn::MoveSdrDrag(), E3dDragRotate::MoveSdrDrag(), E3dDragMove::MoveSdrDrag(), SdrDragMovHdl::MoveSdrDrag(), SdrDragRotate::MoveSdrDrag(), SdrDragShear::MoveSdrDrag(), SdrDragMirror::MoveSdrDrag(), SdrDragGradient::MoveSdrDrag(), SdrDragCrook::MoveSdrDrag(), and SdrDragDistort::MoveSdrDrag().

◆ DragStat() [2/2]

const SdrDragStat & SdrDragMethod::DragStat ( ) const
inlineprotected

Definition at line 163 of file svddrgmt.hxx.

◆ EndSdrDrag()

virtual bool SdrDragMethod::EndSdrDrag ( bool  bCopy)
pure virtual

◆ getCurrentRange()

basegfx::B2DRange SdrDragMethod::getCurrentRange ( ) const

◆ getCurrentTransformation()

basegfx::B2DHomMatrix SdrDragMethod::getCurrentTransformation ( ) const
virtual

◆ GetDragHdl()

SdrHdl * SdrDragMethod::GetDragHdl ( ) const
inlineprotected

◆ GetDragHdlKind()

SdrHdlKind SdrDragMethod::GetDragHdlKind ( ) const
inlineprotected

◆ GetDragLimitRect()

const tools::Rectangle & SdrDragMethod::GetDragLimitRect ( )
inlineprotected

Definition at line 169 of file svddrgmt.hxx.

Referenced by SdrDragMove::MoveSdrDrag(), and SdrDragResize::MoveSdrDrag().

◆ GetDragObj()

SdrObject * SdrDragMethod::GetDragObj ( ) const
protected

◆ GetDragPV()

SdrPageView * SdrDragMethod::GetDragPV ( ) const
protected

◆ GetHdlList()

const SdrHdlList & SdrDragMethod::GetHdlList ( ) const
inlineprotected

◆ GetMarkedObjectList()

const SdrMarkList & SdrDragMethod::GetMarkedObjectList ( )
inlineprotected

◆ GetMarkedRect()

const tools::Rectangle & SdrDragMethod::GetMarkedRect ( ) const
inlineprotected

◆ getMoveOnly()

bool SdrDragMethod::getMoveOnly ( ) const
inline

◆ GetSdrDragComment()

virtual OUString SdrDragMethod::GetSdrDragComment ( ) const
pure virtual

◆ GetSdrDragPointer()

virtual PointerStyle SdrDragMethod::GetSdrDragPointer ( ) const
pure virtual

◆ getSdrDragView() [1/2]

SdrDragView & SdrDragMethod::getSdrDragView ( )
inlineprotected

Definition at line 145 of file svddrgmt.hxx.

Referenced by AddConnectorOverlays(), SdrDragCrook::applyCurrentTransformationToSdrObject(), SdrDragResize::BeginSdrDrag(), SdrDragRotate::BeginSdrDrag(), SdrDragMirror::BeginSdrDrag(), SdrDragCrook::BeginSdrDrag(), SdrDragDistort::BeginSdrDrag(), SdrDragGradient::CancelSdrDrag(), CreateOverlayGeometry(), E3dDragMethod::CreateOverlayGeometry(), createSdrDragEntries(), SdrDragObjOwn::createSdrDragEntries(), SdrDragCrook::createSdrDragEntries(), SdrDragDistort::createSdrDragEntries(), createSdrDragEntries_GlueDrag(), createSdrDragEntries_PointDrag(), createSdrDragEntries_PolygonDrag(), createSdrDragEntries_SolidDrag(), DoAddConnectorOverlays(), E3dDragMove::E3dDragMove(), SdrDragMove::EndSdrDrag(), SdrDragResize::EndSdrDrag(), SdrDragObjOwn::EndSdrDrag(), E3dDragMethod::EndSdrDrag(), SdrDragRotate::EndSdrDrag(), SdrDragShear::EndSdrDrag(), SdrDragMirror::EndSdrDrag(), SdrDragGradient::EndSdrDrag(), SdrDragCrook::EndSdrDrag(), SdrDragDistort::EndSdrDrag(), SdrDragCrop::EndSdrDrag(), GetDragObj(), GetDragPV(), GetMarkedRect(), SdrDragMove::GetSdrDragComment(), SdrDragResize::GetSdrDragComment(), SdrDragMovHdl::GetSdrDragComment(), SdrDragRotate::GetSdrDragComment(), SdrDragShear::GetSdrDragComment(), SdrDragMirror::GetSdrDragComment(), SdrDragCrook::GetSdrDragComment(), SdrDragDistort::GetSdrDragComment(), SdrDragCrop::GetSdrDragComment(), Hide(), ImpGetDescriptionStr(), SdrDragCrook::MovAllPoints(), SdrDragDistort::MovAllPoints(), SdrDragMove::MoveSdrDrag(), SdrDragResize::MoveSdrDrag(), SdrDragObjOwn::MoveSdrDrag(), E3dDragRotate::MoveSdrDrag(), E3dDragMove::MoveSdrDrag(), SdrDragMovHdl::MoveSdrDrag(), SdrDragRotate::MoveSdrDrag(), SdrDragShear::MoveSdrDrag(), SdrDragGradient::MoveSdrDrag(), SdrDragCrook::MoveSdrDrag(), SdrDragDistort::MoveSdrDrag(), and Show().

◆ getSdrDragView() [2/2]

const SdrDragView & SdrDragMethod::getSdrDragView ( ) const
inlineprotected

Definition at line 146 of file svddrgmt.hxx.

◆ GetSnapPos()

Point SdrDragMethod::GetSnapPos ( const Point rPt) const
inlineprotected

◆ getSolidDraggingActive()

bool SdrDragMethod::getSolidDraggingActive ( ) const
inline

◆ Hide()

void SdrDragMethod::Hide ( )

◆ ImpGetDescriptionStr()

OUString SdrDragMethod::ImpGetDescriptionStr ( TranslateId  pStrCacheID) const
protected

◆ insertNewlyCreatedOverlayObjectForSdrDragMethod()

void SdrDragMethod::insertNewlyCreatedOverlayObjectForSdrDragMethod ( std::unique_ptr< sdr::overlay::OverlayObject pOverlayObject,
const sdr::contact::ObjectContact rObjectContact,
sdr::overlay::OverlayManager rOverlayManager 
)
protected

◆ IsDraggingGluePoints()

bool SdrDragMethod::IsDraggingGluePoints ( ) const
inlineprotected

◆ IsDraggingPoints()

bool SdrDragMethod::IsDraggingPoints ( ) const
inlineprotected

◆ IsDragLimit()

bool SdrDragMethod::IsDragLimit ( )
inlineprotected

Definition at line 168 of file svddrgmt.hxx.

Referenced by SdrDragMove::MoveSdrDrag(), and SdrDragResize::MoveSdrDrag().

◆ IsShiftPressed()

bool SdrDragMethod::IsShiftPressed ( ) const
inline

Definition at line 195 of file svddrgmt.hxx.

Referenced by SdrObjCustomShape::applySpecialDrag().

◆ MoveSdrDrag()

virtual void SdrDragMethod::MoveSdrDrag ( const Point rPnt)
pure virtual

◆ Ref1()

Point & SdrDragMethod::Ref1 ( ) const
inlineprotected

◆ Ref2()

Point & SdrDragMethod::Ref2 ( ) const
inlineprotected

◆ resetSdrDragEntries()

void SdrDragMethod::resetSdrDragEntries ( )

Definition at line 274 of file svddrgmt.cxx.

References clearSdrDragEntries().

◆ setMoveOnly()

void SdrDragMethod::setMoveOnly ( bool  bNew)
inlineprotected

Definition at line 149 of file svddrgmt.hxx.

Referenced by SdrDragCrook::MoveSdrDrag(), and SdrDragMove::SdrDragMove().

◆ SetShiftPressed()

void SdrDragMethod::SetShiftPressed ( bool  bShiftPressed)
inline

Definition at line 196 of file svddrgmt.hxx.

◆ setSolidDraggingActive()

void SdrDragMethod::setSolidDraggingActive ( bool  bNew)
inlineprotected

Definition at line 150 of file svddrgmt.hxx.

Referenced by SdrDragCrop::SdrDragCrop(), and SdrDragObjOwn::SdrDragObjOwn().

◆ Show()

void SdrDragMethod::Show ( )

◆ SnapPos()

SdrSnap SdrDragMethod::SnapPos ( Point rPt) const
inlineprotected

Member Data Documentation

◆ maOverlayObjectList

sdr::overlay::OverlayObjectList SdrDragMethod::maOverlayObjectList
private

◆ maSdrDragEntries

std::vector< std::unique_ptr<SdrDragEntry> > SdrDragMethod::maSdrDragEntries
private

Definition at line 117 of file svddrgmt.hxx.

Referenced by addSdrDragEntry(), clearSdrDragEntries(), and CreateOverlayGeometry().

◆ mbMoveOnly

bool SdrDragMethod::mbMoveOnly
private

Definition at line 121 of file svddrgmt.hxx.

◆ mbShiftPressed

bool SdrDragMethod::mbShiftPressed
private

Definition at line 123 of file svddrgmt.hxx.

◆ mbSolidDraggingActive

bool SdrDragMethod::mbSolidDraggingActive
private

Definition at line 122 of file svddrgmt.hxx.

Referenced by SdrDragMethod().

◆ mrSdrDragView

SdrDragView& SdrDragMethod::mrSdrDragView
private

Definition at line 119 of file svddrgmt.hxx.


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