20#include <fuconarc.hxx>
28#include <osl/diagnose.h>
30#include <svx/svxids.hrc>
62 xFunc->DoExecute(rReq);
88 pCenterY->GetValue () - pAxisY->GetValue () / 2,
89 pCenterX->
GetValue () + pAxisX->GetValue () / 2,
90 pCenterY->GetValue () + pAxisY->GetValue () / 2);
136 bool bReturn =
false;
137 bool bCreated =
false;
169 case SID_DRAW_CIRCLEARC:
171 aObjKind = SdrObjKind::CircleArc;
176 case SID_DRAW_PIE_NOFILL :
177 case SID_DRAW_CIRCLEPIE :
178 case SID_DRAW_CIRCLEPIE_NOFILL:
180 aObjKind = SdrObjKind::CircleSection;
184 case SID_DRAW_ELLIPSECUT :
185 case SID_DRAW_ELLIPSECUT_NOFILL:
186 case SID_DRAW_CIRCLECUT :
187 case SID_DRAW_CIRCLECUT_NOFILL :
189 aObjKind = SdrObjKind::CircleCut;
195 aObjKind = SdrObjKind::CircleArc;
215 if(
dynamic_cast< const SdrCircObj *
>( pObj.get() ) !=
nullptr)
219 if(SID_DRAW_ARC == nID ||
220 SID_DRAW_CIRCLEARC == nID ||
221 SID_DRAW_CIRCLEPIE == nID ||
222 SID_DRAW_CIRCLEPIE_NOFILL == nID ||
223 SID_DRAW_CIRCLECUT == nID ||
224 SID_DRAW_CIRCLECUT_NOFILL == nID)
230 pObj->SetLogicRect(aRect);
236 if(SID_DRAW_PIE_NOFILL == nID ||
237 SID_DRAW_CIRCLEPIE_NOFILL == nID ||
238 SID_DRAW_ELLIPSECUT_NOFILL == nID ||
239 SID_DRAW_CIRCLECUT_NOFILL == nID)
244 pObj->SetMergedItemSet(aAttr);
248 OSL_FAIL(
"Object is NO circle object");
sal_uInt32 GetValue() const
const Point & GetPosPixel() const
SAL_DLLPRIVATE SfxItemPool & GetPool()
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)
SdrObject * GetCreateObj() const
sal_Int32 GetDragThresholdPixels() const
bool InsertObjectAtView(SdrObject *pObj, SdrPageView &rPV, SdrInsertFlags nOptions=SdrInsertFlags::NONE)
static rtl::Reference< SdrObject > MakeNewObject(SdrModel &rSdrModel, SdrInventor nInventor, SdrObjKind nObjIdentifier, const tools::Rectangle *pSnapRect=nullptr)
size_t GetObjCount() const
void SetMergedItemSet(const SfxItemSet &rSet, bool bClearAllItems=false)
SdrObjList * GetObjList() const
SdrModel & getSdrModelFromSdrView() const
SdrPageView * GetSdrPageView() const
const SfxPoolItem * Execute(sal_uInt16 nSlot, SfxCallMode nCall=SfxCallMode::SLOT, const SfxPoolItem **pArgs=nullptr, sal_uInt16 nModi=0, const SfxPoolItem **pInternalArgs=nullptr)
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
const SfxItemSet * GetArgs() const
const T * GetArg(sal_uInt16 nSlotId) const
SfxDispatcher * GetDispatcher()
virtual void Activate() override
activates the function
virtual void DoExecute(SfxRequest &rReq) override
virtual bool MouseButtonUp(const MouseEvent &rMEvt) override
static rtl::Reference< FuPoor > Create(ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq, bool bPermanent)
FuConstructArc(ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq)
virtual bool MouseButtonDown(const MouseEvent &rMEvt) override
virtual rtl::Reference< SdrObject > CreateDefaultObject(const sal_uInt16 nID, const ::tools::Rectangle &rRectangle) override
virtual bool MouseButtonUp(const MouseEvent &rMEvt) override
virtual bool MouseButtonDown(const MouseEvent &rMEvt) override
virtual void Activate() override
activates the function
void SetStyleSheet(SfxItemSet &rAttr, SdrObject *pObj)
set style sheet for the object to be created
bool IsIgnoreUnexpectedMouseButtonUp()
void SetPermanent(bool bSet)
VclPtr< ::sd::Window > mpWindow
static void ImpForceQuadratic(::tools::Rectangle &rRect)
virtual void DoExecute(SfxRequest &rReq)
std::shared_ptr< ToolBarManager > const & GetToolBarManager() const
Base class of the stacked shell hierarchy.
SD_DLLPUBLIC ViewShellBase & GetViewShellBase() const
SD_DLLPUBLIC SfxViewFrame * GetViewFrame() const
An SdWindow contains the actual working area of ViewShell.
SVXCORE_DLLPUBLIC SdrCircKind ToSdrCircKind(SdrObjKind)
SdrAngleItem makeSdrCircStartAngleItem(Degree100 nAngle)
SdrAngleItem makeSdrCircEndAngleItem(Degree100 nAngle)