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 ()
 
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 ( SdrDragView rNewView)

Definition at line 626 of file svddrgmt.cxx.

References Application::GetSettings(), and mbSolidDraggingActive.

SdrDragMethod::~SdrDragMethod ( )
virtual

Definition at line 639 of file svddrgmt.cxx.

References clearSdrDragEntries().

Member Function Documentation

drawinglayer::primitive2d::Primitive2DContainer SdrDragMethod::AddConnectorOverlays ( )
protected
void SdrDragMethod::addSdrDragEntry ( std::unique_ptr< SdrDragEntry pNew)
protected
void SdrDragMethod::AddUndo ( std::unique_ptr< SdrUndoAction pUndo)
inlineprotected
void SdrDragMethod::applyCurrentTransformationToPolyPolygon ( basegfx::B2DPolyPolygon rTarget)
virtual
void SdrDragMethod::applyCurrentTransformationToSdrObject ( SdrObject rTarget)
virtual
virtual bool SdrDragMethod::BeginSdrDrag ( )
pure virtual
void SdrDragMethod::CancelSdrDrag ( )
virtual

Reimplemented in SdrDragGradient, E3dDragMethod, and SdrDragMovHdl.

Definition at line 659 of file svddrgmt.cxx.

References Hide().

void SdrDragMethod::clearSdrDragEntries ( )
protected

Definition at line 281 of file svddrgmt.cxx.

References maSdrDragEntries.

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

void SdrDragMethod::CreateOverlayGeometry ( sdr::overlay::OverlayManager rOverlayManager,
const sdr::contact::ObjectContact rObjectContact 
)
virtual
void SdrDragMethod::createSdrDragEntries ( )
protectedvirtual
void SdrDragMethod::createSdrDragEntries_GlueDrag ( )
protected
void SdrDragMethod::createSdrDragEntries_PointDrag ( )
protected
void SdrDragMethod::createSdrDragEntries_PolygonDrag ( )
protected
void SdrDragMethod::createSdrDragEntries_SolidDrag ( )
protected
void SdrDragMethod::createSdrDragEntryForSdrObject ( const SdrObject rOriginal)
protectedvirtual

Reimplemented in SdrDragMove.

Definition at line 318 of file svddrgmt.cxx.

References addSdrDragEntry().

Referenced by createSdrDragEntries_SolidDrag().

void SdrDragMethod::destroyOverlayGeometry ( )

Definition at line 827 of file svddrgmt.cxx.

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

bool SdrDragMethod::DoAddConnectorOverlays ( )
protected
SdrDragStat& SdrDragMethod::DragStat ( )
inlineprotected

Definition at line 162 of file svddrgmt.hxx.

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

const SdrDragStat& SdrDragMethod::DragStat ( ) const
inlineprotected

Definition at line 163 of file svddrgmt.hxx.

virtual bool SdrDragMethod::EndSdrDrag ( bool  bCopy)
pure virtual
basegfx::B2DRange SdrDragMethod::getCurrentRange ( ) const
basegfx::B2DHomMatrix SdrDragMethod::getCurrentTransformation ( )
virtual
SdrHdl* SdrDragMethod::GetDragHdl ( ) const
inlineprotected
SdrHdlKind SdrDragMethod::GetDragHdlKind ( ) const
inlineprotected
const tools::Rectangle& SdrDragMethod::GetDragLimitRect ( )
inlineprotected

Definition at line 169 of file svddrgmt.hxx.

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

SdrObject * SdrDragMethod::GetDragObj ( ) const
protected
SdrPageView * SdrDragMethod::GetDragPV ( ) const
protected
const SdrHdlList& SdrDragMethod::GetHdlList ( ) const
inlineprotected
const SdrMarkList& SdrDragMethod::GetMarkedObjectList ( )
inlineprotected
const tools::Rectangle & SdrDragMethod::GetMarkedRect ( ) const
inlineprotected
bool SdrDragMethod::getMoveOnly ( ) const
inline
virtual OUString SdrDragMethod::GetSdrDragComment ( ) const
pure virtual
virtual PointerStyle SdrDragMethod::GetSdrDragPointer ( ) const
pure virtual
SdrDragView& SdrDragMethod::getSdrDragView ( )
inlineprotected

Definition at line 145 of file svddrgmt.hxx.

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

const SdrDragView& SdrDragMethod::getSdrDragView ( ) const
inlineprotected

Definition at line 146 of file svddrgmt.hxx.

Point SdrDragMethod::GetSnapPos ( const Point rPt) const
inlineprotected
bool SdrDragMethod::getSolidDraggingActive ( ) const
inline
void SdrDragMethod::Hide ( )
OUString SdrDragMethod::ImpGetDescriptionStr ( TranslateId  pStrCacheID) const
protected
void SdrDragMethod::insertNewlyCreatedOverlayObjectForSdrDragMethod ( std::unique_ptr< sdr::overlay::OverlayObject pOverlayObject,
const sdr::contact::ObjectContact rObjectContact,
sdr::overlay::OverlayManager rOverlayManager 
)
protected
bool SdrDragMethod::IsDraggingGluePoints ( ) const
inlineprotected
bool SdrDragMethod::IsDraggingPoints ( ) const
inlineprotected
bool SdrDragMethod::IsDragLimit ( )
inlineprotected

Definition at line 168 of file svddrgmt.hxx.

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

bool SdrDragMethod::IsShiftPressed ( ) const
inline

Definition at line 195 of file svddrgmt.hxx.

Referenced by SdrObjCustomShape::applySpecialDrag().

virtual void SdrDragMethod::MoveSdrDrag ( const Point rPnt)
pure virtual
Point& SdrDragMethod::Ref1 ( ) const
inlineprotected
Point& SdrDragMethod::Ref2 ( ) const
inlineprotected
void SdrDragMethod::resetSdrDragEntries ( )

Definition at line 270 of file svddrgmt.cxx.

References clearSdrDragEntries().

void SdrDragMethod::setMoveOnly ( bool  bNew)
inlineprotected

Definition at line 149 of file svddrgmt.hxx.

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

void SdrDragMethod::SetShiftPressed ( bool  bShiftPressed)
inline

Definition at line 196 of file svddrgmt.hxx.

void SdrDragMethod::setSolidDraggingActive ( bool  bNew)
inlineprotected

Definition at line 150 of file svddrgmt.hxx.

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

void SdrDragMethod::Show ( )
SdrSnap SdrDragMethod::SnapPos ( Point rPt) const
inlineprotected

Member Data Documentation

sdr::overlay::OverlayObjectList SdrDragMethod::maOverlayObjectList
private
std::vector< std::unique_ptr<SdrDragEntry> > SdrDragMethod::maSdrDragEntries
private

Definition at line 117 of file svddrgmt.hxx.

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

bool SdrDragMethod::mbMoveOnly
private

Definition at line 121 of file svddrgmt.hxx.

bool SdrDragMethod::mbShiftPressed
private

Definition at line 123 of file svddrgmt.hxx.

bool SdrDragMethod::mbSolidDraggingActive
private

Definition at line 122 of file svddrgmt.hxx.

Referenced by SdrDragMethod().

SdrDragView& SdrDragMethod::mrSdrDragView
private

Definition at line 119 of file svddrgmt.hxx.


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