22#include <drawview.hxx>
26#include <svx/svxids.hrc>
27#include <osl/diagnose.h>
50 if (aVEvt.
meEvent == SdrEventKind::BeginTextEdit)
53 aVEvt.
meEvent = SdrEventKind::BeginDragObj;
86 if (aVEvt.
meEvent == SdrEventKind::EndCreate)
98 return (bParent || bReturn);
109 case SID_DRAW_POLYGON_NOFILL:
110 case SID_DRAW_XPOLYGON_NOFILL:
112 eKind = SdrObjKind::PolyLine;
116 case SID_DRAW_POLYGON:
117 case SID_DRAW_XPOLYGON:
119 eKind = SdrObjKind::Polygon;
123 case SID_DRAW_BEZIER_NOFILL:
125 eKind = SdrObjKind::PathLine;
129 case SID_DRAW_BEZIER_FILL:
131 eKind = SdrObjKind::PathFill;
135 case SID_DRAW_FREELINE_NOFILL:
137 eKind = SdrObjKind::FreehandLine;
141 case SID_DRAW_FREELINE:
143 eKind = SdrObjKind::FreehandFill;
149 eKind = SdrObjKind::PathLine;
195 if(
dynamic_cast<const SdrPathObj*
>( pObj.get() ) !=
nullptr)
201 case SID_DRAW_BEZIER_FILL:
202 case SID_DRAW_BEZIER_NOFILL:
223 case SID_DRAW_FREELINE:
224 case SID_DRAW_FREELINE_NOFILL:
243 case SID_DRAW_XPOLYGON:
244 case SID_DRAW_XPOLYGON_NOFILL:
245 case SID_DRAW_POLYGON:
246 case SID_DRAW_POLYGON_NOFILL:
249 const sal_Int32 nWdt(rRectangle.
GetWidth());
250 const sal_Int32 nHgt(rRectangle.
GetHeight());
261 if(SID_DRAW_POLYGON_NOFILL == nID)
275 static_cast<SdrPathObj*
>(pObj.get())->SetPathPoly(aPoly);
279 OSL_FAIL(
"Object is NO path object");
282 pObj->SetLogicRect(rRectangle);
virtual rtl::Reference< SdrObject > CreateDefaultObject(const sal_uInt16 nID, const tools::Rectangle &rRectangle) override
virtual bool MouseButtonUp(const MouseEvent &rMEvt) override
virtual void Activate() override
virtual bool MouseMove(const MouseEvent &rMEvt) override
virtual bool MouseButtonDown(const MouseEvent &rMEvt) override
virtual ~FuConstPolygon() override
virtual void Deactivate() override
FuConstPolygon(ScTabViewShell &rViewSh, vcl::Window *pWin, ScDrawView *pView, SdrModel *pDoc, const SfxRequest &rReq)
bool SimpleMouseButtonUp(const MouseEvent &rMEvt)
virtual SC_DLLPUBLIC bool MouseMove(const MouseEvent &rMEvt) override
virtual bool MouseButtonUp(const MouseEvent &rMEvt) override
virtual bool MouseButtonDown(const MouseEvent &rMEvt) override
sal_uInt16 GetSlotID() const
void SetMouseButtonCode(sal_uInt16 nNew)
virtual void Deactivate()
ScTabViewShell & rViewShell
VclPtr< vcl::Window > pWindow
sal_uInt16 GetButtons() const
constexpr tools::Long Y() const
constexpr tools::Long X() const
void SetActivePointer(PointerStyle nPointer)
void SetEditMode(SdrViewEditMode eMode)
SdrInventor GetCurrentObjInventor() const
SdrObjKind GetCurrentObjIdentifier() const
void SetCurrentObj(SdrObjKind nIdent, SdrInventor nInvent=SdrInventor::Default)
static rtl::Reference< SdrObject > MakeNewObject(SdrModel &rSdrModel, SdrInventor nInventor, SdrObjKind nObjIdentifier, const tools::Rectangle *pSnapRect=nullptr)
void EnableExtendedMouseEventDispatcher(bool bOn)
virtual bool MouseButtonUp(const MouseEvent &rMEvt, OutputDevice *pWin) override
SdrHitKind PickAnything(const MouseEvent &rMEvt, SdrMouseEventKind nMouseDownOrMoveOrUp, SdrViewEvent &rVEvt) const
virtual bool MouseMove(const MouseEvent &rMEvt, OutputDevice *pWin) override
void append(const B2DPolygon &rPolygon, sal_uInt32 nCount=1)
void append(const basegfx::B2DPoint &rPoint, sal_uInt32 nCount)
void setClosed(bool bNew)
void appendBezierSegment(const basegfx::B2DPoint &rNextControlPoint, const basegfx::B2DPoint &rPrevControlPoint, const basegfx::B2DPoint &rPoint)