20#include <fuconarc.hxx>
22#include <drawview.hxx>
26#include <svx/svxids.hrc>
28#include <osl/diagnose.h>
80 aObjKind = SdrObjKind::CircleArc;
85 aObjKind = SdrObjKind::CircleSection;
88 case SID_DRAW_CIRCLECUT:
90 aObjKind = SdrObjKind::CircleCut;
95 aObjKind = SdrObjKind::CircleArc;
127 if(
dynamic_cast<const SdrCircObj*
>( pObj.get() ) !=
nullptr)
131 if(SID_DRAW_ARC == nID || SID_DRAW_CIRCLECUT == nID)
137 pObj->SetLogicRect(aRect);
143 pObj->SetMergedItemSet(aAttr);
147 OSL_FAIL(
"Object is NO circle object");
virtual bool MouseButtonDown(const MouseEvent &rMEvt) override
FuConstArc(ScTabViewShell &rViewSh, vcl::Window *pWin, ScDrawView *pView, SdrModel *pDoc, const SfxRequest &rReq)
virtual bool MouseButtonUp(const MouseEvent &rMEvt) override
virtual ~FuConstArc() override
virtual rtl::Reference< SdrObject > CreateDefaultObject(const sal_uInt16 nID, const tools::Rectangle &rRectangle) override
virtual void Activate() override
virtual void Deactivate() override
virtual bool MouseButtonUp(const MouseEvent &rMEvt) override
virtual bool MouseButtonDown(const MouseEvent &rMEvt) override
void SetMouseButtonCode(sal_uInt16 nNew)
static void ImpForceQuadratic(tools::Rectangle &rRect)
virtual void Deactivate()
ScTabViewShell & rViewShell
VclPtr< vcl::Window > pWindow
sal_uInt16 GetButtons() const
const Point & GetPosPixel() const
void SetActivePointer(PointerStyle nPointer)
bool BegCreateObj(const Point &rPnt, OutputDevice *pOut=nullptr, short nMinMov=-3)
bool EndCreateObj(SdrCreateCmd eCmd)
SdrInventor GetCurrentObjInventor() const
SdrObjKind GetCurrentObjIdentifier() const
virtual bool IsAction() const override
void SetCurrentObj(SdrObjKind nIdent, SdrInventor nInvent=SdrInventor::Default)
const SfxItemPool & GetItemPool() const
static rtl::Reference< SdrObject > MakeNewObject(SdrModel &rSdrModel, SdrInventor nInventor, SdrObjKind nObjIdentifier, const tools::Rectangle *pSnapRect=nullptr)
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
sal_uInt16 GetSlot() const
SdrAngleItem makeSdrCircStartAngleItem(Degree100 nAngle)
SdrAngleItem makeSdrCircEndAngleItem(Degree100 nAngle)