36#define ShellClass_SwBezierShell
44 GetStaticInterface()->RegisterPopupMenu(
"draw");
46 GetStaticInterface()->RegisterObjectBar(
SFX_OBJECTBAR_OBJECT, SfxVisibilityFlags::Invisible, ToolbarId::Bezier_Toolbox_Sw);
67 sal_uInt16 nSlotId = rReq.
GetSlot();
90 GetView().AttrChangedNotify(
nullptr);
103 GetView().AttrChangedNotify(
nullptr);
109 GetView().AttrChangedNotify(
nullptr);
114 case SID_BEZIER_MOVE:
115 case SID_BEZIER_INSERT:
118 static sal_uInt16 aInva[] =
128 case SID_BEZIER_DELETE:
129 case SID_BEZIER_CUTLINE:
130 case SID_BEZIER_CONVERT:
131 case SID_BEZIER_EDGE:
132 case SID_BEZIER_SMOOTH:
133 case SID_BEZIER_SYMMTR:
134 case SID_BEZIER_CLOSE:
135 case SID_BEZIER_ELIMINATE_POINTS:
143 case SID_BEZIER_DELETE:
147 case SID_BEZIER_CUTLINE:
154 case SID_BEZIER_CONVERT:
160 case SID_BEZIER_EDGE:
161 case SID_BEZIER_SMOOTH:
162 case SID_BEZIER_SYMMTR:
168 case SID_BEZIER_EDGE: eKind = SdrPathSmoothKind::Angular;
break;
169 case SID_BEZIER_SMOOTH: eKind = SdrPathSmoothKind::Asymmetric;
break;
170 case SID_BEZIER_SYMMTR: eKind = SdrPathSmoothKind::Symmetric;
break;
174 if (eKind != eSmooth)
178 static sal_uInt16 aInva[] =
190 case SID_BEZIER_CLOSE:
199 case SID_BEZIER_ELIMINATE_POINTS:
228 case SID_BEZIER_MOVE:
229 case SID_BEZIER_INSERT:
237 case SID_BEZIER_CUTLINE:
244 case SID_BEZIER_DELETE:
251 case SID_BEZIER_CONVERT:
262 case SdrPathSegmentKind::Line :
rSet.
Put(
SfxBoolItem(SID_BEZIER_CONVERT,
false));
break;
263 case SdrPathSegmentKind::Curve :
rSet.
Put(
SfxBoolItem(SID_BEZIER_CONVERT,
true));
break;
269 case SID_BEZIER_EDGE:
270 case SID_BEZIER_SMOOTH:
271 case SID_BEZIER_SYMMTR:
277 bool bEnable =
false;
280 case SdrPathSmoothKind::DontCare :
282 case SdrPathSmoothKind::Angular :
283 bEnable = nWhich == SID_BEZIER_EDGE;
285 case SdrPathSmoothKind::Asymmetric:
286 bEnable = nWhich == SID_BEZIER_SMOOTH;
288 case SdrPathSmoothKind::Symmetric :
289 bEnable = nWhich == SID_BEZIER_SYMMTR;
296 case SID_BEZIER_CLOSE:
314 case SID_BEZIER_ELIMINATE_POINTS:
virtual bool IsAction() const override
SdrMark * GetMark(size_t nNum) const
const SdrMarkList & GetMarkedObjectList() const
virtual bool HasMarkedPoints() const
SdrObject * GetMarkedSdrObj() const
virtual void SetChanged(bool bFlg=true)
SdrModel & GetModel() const
bool IsRipUpAtMarkedPointsPossible() const override
void SetMarkedSegmentsKind(SdrPathSegmentKind eKind) override
void SetMarkedPointsSmooth(SdrPathSmoothKind eKind) override
SdrPathSmoothKind GetMarkedPointsSmooth() const override
bool IsOpenCloseMarkedObjectsPossible() const override
void DeleteMarkedPoints() override
SdrObjClosedKind GetMarkedObjectsClosedState() const override
void RipUpAtMarkedPoints() override
bool IsSetMarkedPointsSmoothPossible() const override
SdrPathSegmentKind GetMarkedSegmentsKind() const override
bool IsDeleteMarkedPointsPossible() const override
bool IsSetMarkedSegmentsKindPossible() const override
void SetEliminatePolyPointLimitAngle(Degree100 nAngle)
void SetEliminatePolyPoints(bool bOn)
bool IsEliminatePolyPoints() const
void Invalidate(sal_uInt16 nId)
const SfxPoolItem * Execute(sal_uInt16 nSlot, SfxCallMode nCall=SfxCallMode::SLOT, const SfxPoolItem **pArgs=nullptr, sal_uInt16 nModi=0, const SfxPoolItem **pInternalArgs=nullptr)
SfxItemState GetItemState(sal_uInt16 nWhich, bool bSrchInParent=true, const SfxPoolItem **ppItem=nullptr) const
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
void DisableItem(sal_uInt16 nWhich)
void InvalidateItem(sal_uInt16 nWhich)
sal_uInt16 GetSlot() const
const SfxItemSet * GetArgs() const
void SetContextName(const OUString &rsContextName)
void SetName(const OUString &rName)
SfxBindings & GetBindings()
SfxDispatcher * GetDispatcher()
SfxViewFrame & GetViewFrame() const
SwBezierShell(SwView &rView)
void Execute(SfxRequest const &)
void GetState(SfxItemSet &)
sal_uInt16 GetBezierMode() const
void SetBezierMode(sal_uInt16 eBezMode)
void CheckUnboundObjects()
Temporary work around for bug.
bool IsDrawCreate() const
size_t IsObjSelected() const
SwDrawBase * GetDrawFuncPtr() const
Used by the UI to modify the document model.
bool IsSelFrameMode() const
void NoEdit(bool bHideCursor=true)
bool HasSelection() const
const SwView & GetView() const
static const OUString & GetContextName(const Context eContext)
#define SFX_OBJECTBAR_OBJECT
#define SFX_IMPL_INTERFACE(Class, SuperClass)