21 #include <svx/strings.hrc>
32 #include <rtl/ustrbuf.hxx>
37 return std::make_unique<sdr::contact::ViewContactOfE3dSphere>(*this);
42 return std::make_unique<sdr::properties::E3dSphereProperties>(*this);
48 const E3dDefaultAttributes& rDefault,
64 const E3dDefaultAttributes aDefault;
76 aCenter = rDefault.GetDefaultSphereCenter();
77 aSize = rDefault.GetDefaultSphereSize();
94 return CloneHelper< E3dSphereObj >(rTargetModel);
136 if (!aName.isEmpty())
143 return sName.makeStringAndClear();
150 return SvxResId(STR_ObjNamePluralSphere3d);
virtual std::unique_ptr< sdr::contact::ViewContact > CreateObjectSpecificViewContact() override
E3dSphereObj & operator=(const E3dSphereObj &rObj)
virtual SdrObjKind GetObjIdentifier() const override
virtual OUString TakeObjNamePlural() const override
OUString SvxResId(const char *pId)
void SetDefaultAttributes(const E3dDefaultAttributes &rDefault)
void SetCenter(const basegfx::B3DPoint &rNew)
SphereObject with diameter r3DSize.
E3dSphereObj(SdrModel &rSdrModel, const E3dDefaultAttributes &rDefault, const basegfx::B3DPoint &rCenter, const basegfx::B3DVector &r3DSize)
basegfx::B3DPoint aCenter
void SetSize(const basegfx::B3DVector &rNew)
E3dCompoundObject & operator=(const E3dCompoundObject &rObj)
void ActionChanged() const
virtual ~E3dSphereObj() override
virtual SdrObjectUniquePtr DoConvertToPolyObj(bool bBezier, bool bAddText) const override
virtual OUString TakeObjNameSingul() const override
std::unique_ptr< SdrObject, SdrObjectFreeOp > SdrObjectUniquePtr
virtual std::unique_ptr< sdr::properties::BaseProperties > CreateObjectSpecificProperties() override
virtual E3dSphereObj * CloneSdrObject(SdrModel &rTargetModel) const override