20#ifndef INCLUDED_SVX_SVDDRGMT_HXX
21#define INCLUDED_SVX_SVDDRGMT_HXX
127 void clearSdrDragEntries();
128 void addSdrDragEntry(std::unique_ptr<SdrDragEntry> pNew);
129 virtual void createSdrDragEntries();
130 virtual void createSdrDragEntryForSdrObject(
const SdrObject& rOriginal);
139 void insertNewlyCreatedOverlayObjectForSdrDragMethod(
140 std::unique_ptr<sdr::overlay::OverlayObject> pOverlayObject,
153 void createSdrDragEntries_SolidDrag();
154 void createSdrDragEntries_PolygonDrag();
155 void createSdrDragEntries_PointDrag();
156 void createSdrDragEntries_GlueDrag();
159 OUString ImpGetDescriptionStr(
TranslateId pStrCacheID)
const;
167 void AddUndo(std::unique_ptr<SdrUndoAction> pUndo) { getSdrDragView().AddUndo(std::move(pUndo)); }
171 Point GetSnapPos(
const Point& rPt)
const {
return getSdrDragView().GetSnapPos(rPt,getSdrDragView().mpMarkedPV); }
179 bool DoAddConnectorOverlays();
184 void resetSdrDragEntries();
201 virtual void CancelSdrDrag();
204 virtual void CreateOverlayGeometry(
207 void destroyOverlayGeometry();
210 virtual void applyCurrentTransformationToSdrObject(
SdrObject& rTarget);
236 void ImpCheckSnap(
const Point& rPt);
239 virtual void createSdrDragEntryForSdrObject(
const SdrObject& rOriginal)
override;
244 virtual OUString GetSdrDragComment()
const override;
245 virtual bool BeginSdrDrag()
override;
246 virtual void MoveSdrDrag(
const Point& rPnt)
override;
247 virtual bool EndSdrDrag(
bool bCopy)
override;
248 virtual PointerStyle GetSdrDragPointer()
const override;
251 virtual void applyCurrentTransformationToSdrObject(
SdrObject& rTarget)
override;
266 virtual OUString GetSdrDragComment()
const override;
267 virtual bool BeginSdrDrag()
override;
268 virtual void MoveSdrDrag(
const Point& rPnt)
override;
269 virtual bool EndSdrDrag(
bool bCopy)
override;
270 virtual PointerStyle GetSdrDragPointer()
const override;
273 virtual void applyCurrentTransformationToSdrObject(
SdrObject& rTarget)
override;
289 virtual void createSdrDragEntries()
override;
295 virtual OUString GetSdrDragComment()
const override;
296 virtual bool BeginSdrDrag()
override;
297 virtual void MoveSdrDrag(
const Point& rPnt)
override;
298 virtual bool EndSdrDrag(
bool bCopy)
override;
299 virtual PointerStyle GetSdrDragPointer()
const override;
std::vector< basegfx::B2DPoint > maPositions
virtual ~SdrDragEntryPointGlueDrag() override
virtual drawinglayer::primitive2d::Primitive2DContainer createPrimitive2DSequenceInCurrentState(SdrDragMethod &rDragMethod) override
SdrDragEntryPointGlueDrag(std::vector< basegfx::B2DPoint > &&rPositions, bool bIsPointDrag)
basegfx::B2DPolyPolygon maOriginalPolyPolygon
virtual drawinglayer::primitive2d::Primitive2DContainer createPrimitive2DSequenceInCurrentState(SdrDragMethod &rDragMethod) override
drawinglayer::primitive2d::Primitive2DContainer maPrimitive2DSequence
SdrDragEntryPrimitive2DSequence(drawinglayer::primitive2d::Primitive2DContainer &&rSequence)
virtual ~SdrDragEntryPrimitive2DSequence() override
const SdrObject & maOriginal
void prepareCurrentState(SdrDragMethod &rDragMethod)
rtl::Reference< SdrObject > mxClone
virtual drawinglayer::primitive2d::Primitive2DContainer createPrimitive2DSequenceInCurrentState(SdrDragMethod &rDragMethod) override
virtual ~SdrDragEntrySdrObject() override
const SdrObject & getOriginal() const
SdrDragEntrySdrObject(const SdrObject &rOriginal, bool bModify)
bool getAddToTransparent() const
void setAddToTransparent(bool bNew)
virtual drawinglayer::primitive2d::Primitive2DContainer createPrimitive2DSequenceInCurrentState(SdrDragMethod &rDragMethod)=0
const SdrMarkList & GetMarkedObjectList()
void SetShiftPressed(bool bShiftPressed)
virtual void MoveSdrDrag(const Point &rPnt)=0
SdrHdl * GetDragHdl() const
SdrDragView & mrSdrDragView
SdrHdlKind GetDragHdlKind() const
std::vector< std::unique_ptr< SdrDragEntry > > maSdrDragEntries
virtual bool BeginSdrDrag()=0
bool IsDraggingPoints() const
SdrSnap SnapPos(Point &rPt) const
const SdrDragStat & DragStat() const
void AddUndo(std::unique_ptr< SdrUndoAction > pUndo)
Point GetSnapPos(const Point &rPt) const
virtual bool EndSdrDrag(bool bCopy)=0
bool mbSolidDraggingActive
SdrDragView & getSdrDragView()
void setMoveOnly(bool bNew)
const tools::Rectangle & GetMarkedRect() const
sdr::overlay::OverlayObjectList maOverlayObjectList
bool IsShiftPressed() const
bool IsDraggingGluePoints() const
const SdrDragView & getSdrDragView() const
const SdrHdlList & GetHdlList() const
virtual OUString GetSdrDragComment() const =0
void setSolidDraggingActive(bool bNew)
const tools::Rectangle & GetDragLimitRect()
virtual PointerStyle GetSdrDragPointer() const =0
bool getSolidDraggingActive() const
rtl::Reference< SdrObject > mxClone
const tools::Rectangle & GetMarkedGluePointsRect() const
const tools::Rectangle & GetMarkedPointsRect() const
const tools::Rectangle & GetMarkedObjRect() const
#define SVXCORE_DLLPUBLIC