Version 7.6.3.2-android, tag libreoffice-7.6.3.2-android
[LibreOffice.git] / include / svx / svdobj.hxx
blobed62c1db983f310e30e6c68a60338c653d9733a3
1 /*
2 * This file is part of the LibreOffice project.
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 * This file incorporates work covered by the following license notice:
10 * Licensed to the Apache Software Foundation (ASF) under one or more
11 * contributor license agreements. See the NOTICE file distributed
12 * with this work for additional information regarding copyright
13 * ownership. The ASF licenses this file to you under the Apache
14 * License, Version 2.0 (the "License"); you may not use this file
15 * except in compliance with the License. You may obtain a copy of
16 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #pragma once
21 #include <memory>
22 #include <com/sun/star/uno/Any.hxx>
23 #include <cppuhelper/weakref.hxx>
24 #include <rtl/ustring.hxx>
25 #include <vcl/outdev.hxx>
26 #include <svl/lstner.hxx>
27 #include <svl/poolitem.hxx>
28 #include <svl/typedwhich.hxx>
29 #include <tools/degree.hxx>
30 #include <svx/svdtypes.hxx>
31 #include <svx/svdobjkind.hxx>
32 #include <svx/svxdllapi.h>
33 #include <tools/link.hxx>
34 #include <tools/gen.hxx>
35 #include <unotools/resmgr.hxx>
36 #include <unotools/weakref.hxx>
37 #include <osl/diagnose.h>
38 #include <typeinfo>
40 #include <unordered_set>
42 class SfxBroadcaster;
43 class AutoTimer;
44 class E3dObject;
45 class E3dScene;
46 class OutlinerParaObject;
47 class Outliner;
48 class SdrOutliner;
49 class SdrDragStat;
50 class SdrHdl;
51 class SdrHdlList;
52 class SdrItemPool;
53 class SdrModel;
54 class SdrObjList;
55 class SdrObject;
56 class SdrPage;
57 class SdrPageView;
58 class SdrTextObj;
59 class SdrView;
60 class SfxItemSet;
61 class SfxGrabBagItem;
62 class SfxSetItem;
63 class SfxStyleSheet;
64 class SfxUndoAction;
65 class XFillAttrSetItem;
66 class XLineAttrSetItem;
67 class SfxItemPool;
68 namespace tools { class PolyPolygon; }
69 class SfxPoolItem;
70 class SdrVirtObj;
71 class SdrDragView;
72 class SdrObjUserDataList;
73 class SdrObjPlusData;
74 class SdrGluePoint;
75 class SdrGluePointList;
76 class SdrLayerIDSet;
77 class Fraction;
78 enum class PointerStyle;
79 class Graphic;
80 class SvxShape;
81 namespace svx { enum class ShapePropertyProviderId; }
82 namespace svx { class PropertyValueProvider; }
83 namespace basegfx
85 class B2DPoint;
86 class B2DPolyPolygon;
87 class B2DHomMatrix;
90 namespace sdr { class ObjectUser; }
91 namespace sdr::properties { class BaseProperties; }
92 namespace sdr::contact { class ViewContact; }
94 namespace com::sun::star::drawing { class XShape; }
95 namespace svx::diagram { class IDiagramHelper; }
98 enum class SdrInventor : sal_uInt32 {
99 Unknown = 0,
100 BasicDialog = sal_uInt32( 'D' | ('L' << 8) | ('G' << 16) | ('1' << 24) ),
101 Default = sal_uInt32( 'S' | ('V' << 8) | ('D' << 16) | ('r' << 24) ),
102 E3d = sal_uInt32( 'E' | ('3' << 8) | ('D' << 16) | ('1' << 24) ),
103 FmForm = sal_uInt32( 'F' | ('M' << 8) | ('0' << 16) | ('1' << 24) ),
104 IMap = sal_uInt32( 'I' | ('M' << 8) | ('A' << 16) | ('P' << 24) ),
105 ReportDesign = sal_uInt32( 'R' | ('P' << 8) | ('T' << 16) | ('1' << 24) ),
106 ScOrSwDraw = sal_uInt32( 'S' | ('C' << 8) | ('3' << 16) | ('0' << 24) ), // Used in sc/ and sw/
107 SgaImap = sal_uInt32( 'S' | ('D' << 8) | ('U' << 16) | ('D' << 24) ),
108 StarDrawUserData = sal_uInt32( 'S' | ('D' << 8) | ('U' << 16) | ('D' << 24) ),
109 Swg = sal_uInt32( 'S' | ('W' << 8) | ('G' << 16) ),
112 enum class SdrUserCallType {
113 MoveOnly, // only moved, size unchanged
114 Resize, // size and maybe position changed
115 ChangeAttr, // attribute changed. Eventually new size, because of line width
116 Delete, // object is going to be deleted soon, no attributes anymore
117 Inserted, // inserted into an object list (e.g. Page)
118 Removed, // removed from an object list
119 ChildMoveOnly, // a child within a group has changed
120 ChildResize, // a child within a group has changed
121 ChildChangeAttr, // a child within a group has changed
122 ChildDelete, // a child within a group has changed
123 ChildInserted, // a child within a group has changed
124 ChildRemoved // a child within a group has changed
127 class SVXCORE_DLLPUBLIC SdrObjUserCall
129 public:
130 virtual ~SdrObjUserCall();
131 virtual void Changed(const SdrObject& rObj, SdrUserCallType eType, const tools::Rectangle& rOldBoundRect);
132 virtual void const* GetPDFAnchorStructureElementKey(SdrObject const& rObj);
135 class SVXCORE_DLLPUBLIC SdrObjMacroHitRec
137 public:
138 Point aPos;
139 const SdrLayerIDSet* pVisiLayer;
140 const SdrPageView* pPageView;
141 sal_uInt16 nTol;
143 SdrObjMacroHitRec();
147 * User data of a drawing object, e.g. application specific data.
148 * Every drawing object can have an arbitrary amount of such records (SV list).
149 * Whoever wants to save data here, must inherit from this and set a corresponding link in the factory.
151 class SVXCORE_DLLPUBLIC SdrObjUserData
153 SdrInventor nInventor;
154 sal_uInt16 nIdentifier;
156 void operator=(const SdrObjUserData& rData) = delete;
157 bool operator==(const SdrObjUserData& rData) const = delete;
158 bool operator!=(const SdrObjUserData& rData) const = delete;
160 public:
161 SdrObjUserData(SdrInventor nInv, sal_uInt16 nId);
162 SdrObjUserData(const SdrObjUserData& rData);
163 virtual ~SdrObjUserData();
165 virtual std::unique_ptr<SdrObjUserData> Clone(SdrObject* pObj1) const = 0; // #i71039# NULL -> 0
166 SdrInventor GetInventor() const { return nInventor;}
167 sal_uInt16 GetId() const { return nIdentifier;}
171 * All geometrical data of an arbitrary object for use in undo/redo
173 class SVXCORE_DLLPUBLIC SdrObjGeoData
175 public:
176 tools::Rectangle aBoundRect;
177 Point aAnchor;
178 std::unique_ptr<SdrGluePointList>
179 pGPL;
180 bool bMovProt;
181 bool bSizProt;
182 bool bNoPrint;
183 bool bClosedObj;
184 bool mbVisible;
185 SdrLayerID mnLayerID;
187 public:
188 SdrObjGeoData();
189 virtual ~SdrObjGeoData();
193 * Provides information about various ZObject properties
195 class SVXCORE_DLLPUBLIC SdrObjTransformInfoRec
197 public:
198 bool bMoveAllowed : 1; // if false, object cannot be moved
199 bool bResizeFreeAllowed : 1; // if false, object cannot be resized freely
200 bool bResizePropAllowed : 1; // if false, object cannot even be resized proportionally
201 bool bRotateFreeAllowed : 1; // if false, object cannot be rotated freely
202 bool bRotate90Allowed : 1; // if false, object cannot even be rotated in 90 degree steps
203 bool bMirrorFreeAllowed : 1; // if false, object cannot be mirrored freely
204 bool bMirror45Allowed : 1; // if false, object cannot even be mirrored over axes in a 45 degree raster
205 bool bMirror90Allowed : 1; // if false, object cannot even be mirrored over axes in a 90 degree raster
206 bool bTransparenceAllowed : 1; // if false, object does not have an interactive transparence control
207 bool bShearAllowed : 1; // if false, object cannot be sheared
208 bool bEdgeRadiusAllowed : 1;
209 bool bNoOrthoDesired : 1; // is true for Rect; is false for BMP, MTF
210 bool bNoContortion : 1; // if false, contortion not possible (for crook, only true for PathObj and grouped PathObjs)
211 bool bCanConvToPath : 1; // if false, no conversion into PathObj possible
212 bool bCanConvToPoly : 1; // if false, no conversion into PolyObj possible
213 bool bCanConvToContour : 1; // if false, no conversion down to whole contour possible
214 bool bCanConvToPathLineToArea : 1; // if false, no conversion into PathObj with transformation from LineToArea possible
215 bool bCanConvToPolyLineToArea : 1; // if false, no conversion into PolyObj with transformation from LineToArea possible
217 SdrObjTransformInfoRec();
220 ////////////////////////////////////////////////////////////////////////////////////////////////////
222 // SdrObject
223 // SdrAttrObj
224 // E3dObject
225 // E3dCompoundObject
226 // E3dCubeObj
227 // E3dExtrudeObj
228 // E3dLatheObj
229 // E3dPolygonObj
230 // E3dSphereObj
231 // E3dScene
232 // SdrTextObj
233 // SdrObjCustomShape
234 // OCustomShape
235 // SdrEdgeObj
236 // SdrMeasureObj
237 // SdrPathObj
238 // SdrRectObj
239 // SdrCaptionObj
240 // SdrCircObj
241 // SdrGrafObj
242 // SdrMediaObj
243 // SdrOle2Obj
244 // OOle2Obj
245 // SdrUnoObj
246 // DlgEdObj
247 // DlgEdForm
248 // OUnoObject
249 // FmFormObj
250 // SdrTableObj
251 // SdrObjGroup
252 // SdrPageObj
253 // SdrVirtObj
254 // SwDrawVirtObj
255 // SwVirtFlyDrawObj
256 // SwFlyDrawObj
258 /// Abstract DrawObject
259 class SVXCORE_DLLPUBLIC SdrObject : public SfxListener, public cppu::OWeakObject
261 public:
262 // Basic DiagramHelper support
263 virtual const std::shared_ptr< svx::diagram::IDiagramHelper >& getDiagramHelper() const;
264 bool isDiagram() const { return bool(getDiagramHelper()); }
266 private:
267 friend class SdrObjListIter;
268 friend class SdrObjList;
269 friend class SdrVirtObj;
270 friend class SdrRectObj;
272 // OperationSmiley: Allow at each SdrObject to set a FillGeometryDefiningShape,
273 // so that for SdrObjects where this is set, the definition of a defined FillStyle
274 // will use this, but the local geometry will be filled. This allows to fill
275 // multiple shapes with a unified fill, e.g think about CustomShapes.
276 // Currently this is *only* used for CustomShapes, but may be developed to get a
277 // common mechanism - usages for it are easy to be found. The current limitation
278 // to CustomShapes allows to think about these SdrObjects to 'vanish' during the
279 // lifetime of 'this' - the SdrObjects without SdrPage and SdrModel are used as helper
280 // objects for SdrObjCustomShape and thus their lifetime is limited to the lifetime
281 // of this local object. For unifying this mechanism, some weak reference of
282 // SdrObjects would have to be thought about (not easy with the current implementation).
283 // So - allow *only* EnhancedCustomShape2d (which creates the visualizations for
284 // SdrObjCustomShape) to set this. Already allow unified read to use it - thus already
285 // allowing to implement as standard case for all kinds of SdrObjects.
286 friend class EnhancedCustomShape2d;
287 const SdrObject* mpFillGeometryDefiningShape;
288 void setFillGeometryDefiningShape(const SdrObject* pNew) { mpFillGeometryDefiningShape = pNew; }
289 public:
290 const SdrObject* getFillGeometryDefiningShape() const { return mpFillGeometryDefiningShape; }
292 private:
293 // the SdrModel this objects was created with, unchanged during SdrObject lifetime
294 SdrModel& mrSdrModelFromSdrObject;
296 public:
297 // A SdrObject always needs a SdrModel for lifetime (Pool, ...)
298 SdrObject(SdrModel& rSdrModel);
299 // Copy constructor
300 SdrObject(SdrModel& rSdrModel, SdrObject const & rSource);
302 virtual void SAL_CALL acquire() noexcept override final;
303 virtual void SAL_CALL release() noexcept override final;
305 // SdrModel/SdrPage access on SdrObject level
306 SdrPage* getSdrPageFromSdrObject() const;
307 SdrModel& getSdrModelFromSdrObject() const;
309 // access to possible children (SdrObjGroup/E3dScene)
310 virtual SdrObjList* getChildrenOfSdrObject() const;
312 // access to parent
313 SdrObjList* getParentSdrObjListFromSdrObject() const;
314 SdrObject* getParentSdrObjectFromSdrObject() const;
316 private:
317 SVX_DLLPRIVATE void setParentOfSdrObject(SdrObjList* pNew);
319 public:
320 // react on model/page change
321 virtual void handlePageChange(SdrPage* pOldPage, SdrPage* pNewPage);
323 void AddObjectUser(sdr::ObjectUser& rNewUser);
324 void RemoveObjectUser(sdr::ObjectUser& rOldUser);
326 sdr::contact::ViewContact& GetViewContact() const;
328 virtual sdr::properties::BaseProperties& GetProperties() const;
330 // DrawContact support: Methods for handling Object changes
331 void ActionChanged() const;
333 static SdrItemPool& GetGlobalDrawObjectItemPool();
334 void SetRelativeWidth( double nValue );
335 void SetRelativeWidthRelation( sal_Int16 eValue );
336 void SetRelativeHeight( double nValue );
337 void SetRelativeHeightRelation( sal_Int16 eValue );
338 const double* GetRelativeWidth() const;
339 sal_Int16 GetRelativeWidthRelation() const;
340 const double* GetRelativeHeight() const;
341 sal_Int16 GetRelativeHeightRelation() const;
343 /// @param bNotMyself = true: set only ObjList to dirty, don't mark this object as dirty.
345 /// This is needed for instance for NbcMove, because usually one moves SnapRect and aOutRect
346 /// at the same time to avoid recomputation.
347 virtual void SetBoundAndSnapRectsDirty(bool bNotMyself = false, bool bRecursive = true);
349 // this method is only for access from Property objects
350 virtual void SetBoundRectDirty();
352 SfxItemPool & GetObjectItemPool() const;
354 void AddListener(SfxListener& rListener);
355 void RemoveListener(SfxListener& rListener);
357 void AddReference(SdrVirtObj& rVrtObj);
358 void DelReference(SdrVirtObj& rVrtObj);
359 virtual SdrInventor GetObjInventor() const;
360 virtual SdrObjKind GetObjIdentifier() const;
361 virtual void TakeObjInfo(SdrObjTransformInfoRec& rInfo) const;
363 // Layer interface
364 virtual SdrLayerID GetLayer() const;
365 virtual void NbcSetLayer(SdrLayerID nLayer);
366 virtual void SetLayer(SdrLayerID nLayer);
367 bool isVisibleOnAnyOfTheseLayers(const SdrLayerIDSet& rSet) const;
369 void SendUserCall(SdrUserCallType eUserCall, const tools::Rectangle& rBoundRect) const;
371 // #i68101#
372 // An object may have a user-set Name (Get/SetName()), e.g SdrGrafObj, SdrObjGroup
373 // or SdrOle2Obj.
374 // It may also have a Title and a Description for accessibility purposes.
375 virtual void SetName(const OUString& rStr, const bool bSetChanged = true);
376 virtual const OUString & GetName() const;
377 void MakeNameUnique();
378 void MakeNameUnique(std::unordered_set<OUString>& rNameSet);
379 virtual void SetTitle(const OUString& rStr);
380 virtual OUString GetTitle() const;
381 virtual void SetDescription(const OUString& rStr);
382 virtual OUString GetDescription() const;
383 virtual void SetDecorative(bool isDecorative);
384 virtual bool IsDecorative() const;
386 // for group objects
387 bool IsGroupObject() const;
388 virtual SdrObjList* GetSubList() const;
390 /// The order number (aka ZOrder, aka z-index) determines whether a
391 /// SdrObject is located above or below another. Objects are painted from
392 /// lowest to highest order number. If the order of SdrObjects in the
393 /// SdrObjList is changed, the bObjOrdNumsDirty flag is set on the SdrPage
394 /// and the next GetOrdNum() call recalculates the order number of all
395 /// SdrObjects in the SdrObjList.
396 sal_uInt32 GetOrdNum() const;
398 // setting the order number should only happen from the model or from the page
399 void SetOrdNum(sal_uInt32 nNum);
401 // GrabBagItem for interim interop purposes
402 void GetGrabBagItem(css::uno::Any& rVal) const;
404 virtual void SetGrabBagItem(const css::uno::Any& rVal);
406 // Return the position in the navigation order for the called object.
407 // Note that this method may update the navigation position of the
408 // called and of other SdrObjects. Therefore this method can not be
409 // const.
410 // @return
411 // If no navigation position has been explicitly defined then the
412 // result of GetOrdNum() is returned.
413 sal_uInt32 GetNavigationPosition() const;
415 // To make clearer that this method may trigger RecalcBoundRect and thus may be
416 // expensive and sometimes problematic (inside a bigger object change You will get
417 // non-useful BoundRects sometimes) i rename that method from GetBoundRect() to
418 // GetCurrentBoundRect().
419 virtual const tools::Rectangle& GetCurrentBoundRect() const;
421 // To have a possibility to get the last calculated BoundRect e.g for producing
422 // the first rectangle for repaints (old and new need to be used) without forcing
423 // a RecalcBoundRect (which may be problematical and expensive sometimes) i add here
424 // a new method for accessing the last BoundRect.
425 virtual const tools::Rectangle& GetLastBoundRect() const;
427 virtual void RecalcBoundRect();
429 void BroadcastObjectChange() const;
431 const SfxBroadcaster* GetBroadcaster() const;
433 // set modified-flag in the model
434 virtual void SetChanged();
436 // Tooling for painting a single object to an OutputDevice. This will be needed as long
437 // as not all painting is changed to use DrawContact objects.
438 void SingleObjectPainter(OutputDevice& rOut) const;
439 bool LineGeometryUsageIsNecessary() const;
441 // RotGrfFlyFrame: If true, this SdrObject supports only limited rotation, that
442 // means no change of the rotation point (only centered) and no shear allowed
443 virtual bool HasLimitedRotation() const;
445 // Returns a copy of the object. Every inherited class must reimplement this.
446 virtual rtl::Reference<SdrObject> CloneSdrObject(SdrModel& rTargetModel) const = 0;
447 // helper, since Clone always return the type of the current subclass
448 template<class T>
449 static rtl::Reference<T> Clone(T const & rObj, SdrModel& rTargetModel)
451 rtl::Reference<SdrObject> newObj = rObj.CloneSdrObject(rTargetModel);
452 return static_cast<T*>(newObj.get());
455 // Overwriting this object makes no sense, it is too complicated for that
456 SdrObject& operator=(const SdrObject& rObj) = delete;
457 SdrObject& operator=(SdrObject&& rObj) = delete;
459 // TakeObjName...() is for the display in the UI, e.g. "3 frames selected"
460 virtual OUString TakeObjNameSingul() const;
461 virtual OUString TakeObjNamePlural() const;
463 /// The Xor-Polygon is required by the View to drag the object.
464 /// All polygons within the PolyPolygon are interpreted as PolyLine.
465 /// To get a closed Polygon, close it explicitly.
466 virtual basegfx::B2DPolyPolygon TakeXorPoly() const;
468 /// contour for TextToContour
469 virtual basegfx::B2DPolyPolygon TakeContour() const;
471 /// Via GetHdlCount the number of Handles can be retrieved.
472 /// Normally 8, if it's a line 2.
473 /// For Polygon objects (Polygon/Spline/Bezier) the number may be much
474 /// larger. Polygon objects are also allowed to select a point of a
475 /// selected object. The handle of that point will then be replaced by
476 /// a new set of handles (PlusHdl). For a Polygon this would be a simple
477 /// selection Handle, for a Bezier curve this may be up to 3 Handles
478 /// (including Weights).
479 /// GetHdl() and GetPlusHdl() must create Handle instances with new!
480 /// An object that returns true from HasSpacialDrag() must provide these
481 /// methods (incl. FillHdlList()).
482 virtual sal_uInt32 GetHdlCount() const;
483 virtual void AddToPlusHdlList(SdrHdlList& rHdlList, SdrHdl& rHdl) const;
484 virtual void AddToHdlList(SdrHdlList& rHdlList) const;
485 virtual void addCropHandles(SdrHdlList& rTarget) const;
487 /// The standard transformations (Move,Resize,Rotate,Mirror,Shear) are
488 /// taken over by the View (TakeXorPoly(),...).
489 /// Object type specific dragging like corner radius of Rectangle,
490 /// control points of Splines, weights of Bezier curves, pointer of
491 /// Label objects must be handled by the object itself.
492 /// To keep the Model free of state, the state is kept in the View
493 /// and then passed to the object. EndDrag usually returns true for success,
494 /// false may be returned if the dragging did not modify the object,
495 /// where the View already handles the case that the pointer was not
496 /// moved at all.
497 virtual bool hasSpecialDrag() const;
498 virtual bool beginSpecialDrag(SdrDragStat& rDrag) const;
499 virtual bool applySpecialDrag(SdrDragStat& rDrag);
500 virtual OUString getSpecialDragComment(const SdrDragStat& rDrag) const;
501 virtual basegfx::B2DPolyPolygon getSpecialDragPoly(const SdrDragStat& rDrag) const;
503 // FullDrag support. This is for standard interactions and for SdrObjOwn
504 // support. If supportsFullDrag() returns true, getFullDragClone has to
505 // return a cloned SdrObject (who's ownership it loses) at which modifications
506 // like Move(), Scale(), etc or applySpecialDrag() will be executed. That
507 // object will be visualized on overlay for full drag, but should not be
508 // part of the model, thus not changing anything since it's only a temporary
509 // helper object for interaction
510 virtual bool supportsFullDrag() const;
511 virtual rtl::Reference<SdrObject> getFullDragClone() const;
513 /// Every object must be able to create itself interactively.
514 /// On MouseDown first an object is created, and its BegCreate() method
515 /// is called. On every MouseMove, MovCreate() is called. BrkCreate()
516 /// is called if the user cancels the interactive object creation.
517 /// EndCreate() is called on the MouseUp event. If EndCreate() returns
518 /// true, the creation is finished; the object is inserted into the
519 /// corresponding list. Otherwise it is assumed that further points
520 /// are necessary to create the object (Polygon, ...). The parameter
521 /// eCmd contains the number of mouse clicks (if the application
522 /// provides it).
523 /// BckCreate() will undo the previous EndCreate(), e.g. to delete the
524 /// last point of the Polygon. If BckCreate() returns false, creation
525 /// is cancelled.
526 virtual bool BegCreate(SdrDragStat& rStat);
527 virtual bool MovCreate(SdrDragStat& rStat); // if true, Xor needs to be repainted
528 virtual bool EndCreate(SdrDragStat& rStat, SdrCreateCmd eCmd);
529 virtual bool BckCreate(SdrDragStat& rStat);
530 virtual void BrkCreate(SdrDragStat& rStat);
532 /// get the cursor/pointer that signals creating this object
533 virtual PointerStyle GetCreatePointer() const;
535 /// Polygon dragged by the user when creating the object
536 virtual basegfx::B2DPolyPolygon TakeCreatePoly(const SdrDragStat& rDrag) const;
538 /// The methods Move, Resize, Rotate, Mirror, Shear, SetSnapRect and
539 /// SetLogicRect call the corresponding Nbc-methods, send a Repaint
540 /// broadcast and set the Modified state on the Model.
541 /// Derived classes should usually only override the Nbc methods.
542 /// Nbc means "no broadcast".
543 virtual void NbcMove (const Size& rSiz);
544 virtual void NbcResize(const Point& rRef, const Fraction& xFact, const Fraction& yFact);
545 virtual void NbcCrop (const basegfx::B2DPoint& rRef, double fxFact, double fyFact);
546 virtual void NbcRotate(const Point& rRef, Degree100 nAngle, double sn, double cs) = 0;
547 // Utility for call sites that don't have sin and cos handy
548 void NbcRotate(const Point& rRef, Degree100 nAngle);
549 virtual void NbcMirror(const Point& rRef1, const Point& rRef2);
550 virtual void NbcShear (const Point& rRef, Degree100 nAngle, double tn, bool bVShear);
552 virtual void Move (const Size& rSiz);
553 virtual void Resize(const Point& rRef, const Fraction& xFact, const Fraction& yFact, bool bUnsetRelative = true);
554 virtual void Crop (const basegfx::B2DPoint& rRef, double fxFact, double fyFact);
555 virtual void Rotate(const Point& rRef, Degree100 nAngle, double sn, double cs);
556 virtual void Mirror(const Point& rRef1, const Point& rRef2);
557 virtual void Shear (const Point& rRef, Degree100 nAngle, double tn, bool bVShear);
559 /// The relative position of a SdrObject is the distance of the upper
560 /// left corner of the logic bounding rectangle (SnapRect) to the anchor.
561 virtual void NbcSetRelativePos(const Point& rPnt);
562 virtual void SetRelativePos(const Point& rPnt);
563 virtual Point GetRelativePos() const;
564 void ImpSetAnchorPos(const Point& rPnt);
565 virtual void NbcSetAnchorPos(const Point& rPnt);
566 virtual void SetAnchorPos(const Point& rPnt);
568 /// Snap is not done on the BoundRect but if possible on logic coordinates
569 /// (i.e. without considering stroke width, ...)
570 /// SetSnapRect() tries to size the Object so that it fits into the
571 /// passed Rect (without stroke width, ...)
572 virtual void RecalcSnapRect();
573 virtual const tools::Rectangle& GetSnapRect() const;
574 virtual void SetSnapRect(const tools::Rectangle& rRect);
575 virtual void NbcSetSnapRect(const tools::Rectangle& rRect);
577 // Logic Rect: for the Rect for instance without regard to rotation angle, shear, ...
578 virtual const tools::Rectangle& GetLogicRect() const;
579 virtual void SetLogicRect(const tools::Rectangle& rRect);
580 virtual void NbcSetLogicRect(const tools::Rectangle& rRect);
582 // the default is to set the logic rect to the given rectangle rMaxRect. If the shape
583 // has an intrinsic aspect ratio it may set the logic rect so the aspect
584 // ratio is kept but still inside the rectangle rMaxRect.
585 // If bShrinkOnly is set to true, the size of the current logic rect will not
586 // be changed if it is smaller than the given rectangle rMaxRect.
587 virtual void AdjustToMaxRect( const tools::Rectangle& rMaxRect, bool bShrinkOnly = false );
589 // rotation and shear angle
590 virtual Degree100 GetRotateAngle() const;
591 virtual Degree100 GetShearAngle(bool bVertical = false) const;
593 /// snap to special points of an Object (polygon points, center of circle)
594 virtual sal_uInt32 GetSnapPointCount() const;
595 virtual Point GetSnapPoint(sal_uInt32 i) const;
597 // For objects, whose points can be moved individually.
598 // (e.g. polygons, polylines, lines)
599 // The points of those objects are selected (if necessary multiselection),
600 // deleted, inserted, or as a multiselection moved or rotated...
601 // Only such objects can have PlusHandles (e.g. the weights of a Bezier curve).
602 virtual bool IsPolyObj() const;
603 virtual sal_uInt32 GetPointCount() const;
604 virtual Point GetPoint(sal_uInt32 i) const;
605 void SetPoint(const Point& rPnt, sal_uInt32 i);
606 virtual void NbcSetPoint(const Point& rPnt, sal_uInt32 i);
608 // get all geometrical data for undo/redo
609 virtual std::unique_ptr<SdrObjGeoData> GetGeoData() const;
610 virtual void SetGeoData(const SdrObjGeoData& rGeo);
612 // ItemSet access
613 const SfxItemSet& GetMergedItemSet() const;
614 void SetMergedItem(const SfxPoolItem& rItem);
615 void ClearMergedItem(const sal_uInt16 nWhich = 0);
616 void SetMergedItemSet(const SfxItemSet& rSet, bool bClearAllItems = false);
617 const SfxPoolItem& GetMergedItem(const sal_uInt16 nWhich) const;
618 template<class T>
619 const T& GetMergedItem( TypedWhichId<T> nWhich ) const
621 return static_cast<const T&>(GetMergedItem(sal_uInt16(nWhich)));
624 // syntactical sugar for ItemSet accesses
625 void SetMergedItemSetAndBroadcast(const SfxItemSet& rSet, bool bClearAllItems = false);
627 // NotPersistAttr for Layer, ObjName, geometrical transformations etc.
628 void TakeNotPersistAttr(SfxItemSet& rAttr) const;
629 void ApplyNotPersistAttr(const SfxItemSet& rAttr);
630 void NbcApplyNotPersistAttr(const SfxItemSet& rAttr);
632 // if bDontRemoveHardAttr is false, set all attributes, which were set in the style sheet, to their default value
633 // if true, all hard attributes keep their values
634 void SetStyleSheet(SfxStyleSheet* pNewStyleSheet, bool bDontRemoveHardAttr);
635 void NbcSetStyleSheet(SfxStyleSheet* pNewStyleSheet, bool bDontRemoveHardAttr);
636 SfxStyleSheet* GetStyleSheet() const;
638 virtual bool HasTextEdit() const;
640 // keep text in outliner's format
641 // SetOutlinerParaObject: transfer ownership of *pTextObject!
642 void SetOutlinerParaObject(std::optional<OutlinerParaObject> pTextObject);
643 virtual void NbcSetOutlinerParaObject(std::optional<OutlinerParaObject> pTextObject);
644 virtual OutlinerParaObject* GetOutlinerParaObject() const;
645 virtual void NbcReformatText();
647 void BurnInStyleSheetAttributes();
649 // macro abilities, e.g. a rectangle as PushButton.
650 virtual bool HasMacro() const;
651 virtual SdrObject* CheckMacroHit (const SdrObjMacroHitRec& rRec) const;
652 virtual PointerStyle GetMacroPointer (const SdrObjMacroHitRec& rRec) const;
653 virtual void PaintMacro (OutputDevice& rOut, const tools::Rectangle& rDirtyRect, const SdrObjMacroHitRec& rRec) const;
654 virtual bool DoMacro (const SdrObjMacroHitRec& rRec);
655 bool IsMacroHit(const SdrObjMacroHitRec& rRec) const;
657 // Connectors
658 // (see also documentation in SvdoEdge.hxx, SdrEdgeObj, as well as SvdGlue.hxx and SvdGlEV.hxx)
660 // There are nodes and edges. In theory an edge can also be a node, but this isn't implemented yet.
661 // A node has a number of gluepoints, onto which edges can glued to
662 // An edge can be either
663 // - without any connection to any node,
664 // - or connected on one end to a node, while the other end is not connected,
665 // - or connected on both ends with exactly one node each.
666 // The edge is listener for its up to two nodes.
667 // Whenever a node is moved or resized, all its connected edges follow.
668 // This is also true for SetGluePoint()... on the node.
669 // On the other hand, moving/resizing an edge breaks the connection.
671 // automatic gluepoints:
672 // a node object must provide four vertex and corner positions
673 // usually 0: top, 1: right, 2: bottom, 3: left
674 virtual SdrGluePoint GetVertexGluePoint(sal_uInt16 nNum) const;
676 // usually:
677 // 0: top-left, 1: top-right, 2: bottom-right, 3: bottom-left
678 virtual SdrGluePoint GetCornerGluePoint(sal_uInt16 nNum) const;
680 // list of all gluepoints, can be NULL
681 virtual const SdrGluePointList* GetGluePointList() const;
683 // after changing the GluePointList, one has to call the object's SendRepaintBroadcast!
684 virtual SdrGluePointList* ForceGluePointList();
686 // to be set temporarily when transforming related object(?)
687 void SetGlueReallyAbsolute(bool bOn);
688 void NbcRotateGluePoints(const Point& rRef, Degree100 nAngle, double sn, double cs);
689 void NbcMirrorGluePoints(const Point& rRef1, const Point& rRef2);
690 void NbcShearGluePoints (const Point& rRef, double tn, bool bVShear);
692 // if bTail1 is true, line start, otherwise line end
693 // if pObj is null disconnect
694 virtual void ConnectToNode(bool bTail1, SdrObject* pObj);
695 virtual void DisconnectFromNode(bool bTail1);
696 virtual SdrObject* GetConnectedNode(bool bTail1) const;
698 // sets the writing mode of the object's context
699 // Objects which itself do not support different writing modes will ignore this call.
700 // Objects which support different writing modes, but have an own, explicit writing mode set,
701 // will also ignore this call.
702 // Objects which support different writing modes, and whose own mode is set to css.text.WritingMode2.CONTEXT,
703 // will use the given writing mode to calculate their "effective writing mode".
704 // The behaviour of this method is undefined if you pass css.text.WritingMode2.CONTEXT.
705 // @param _nContextWritingMode
706 // the effective writing mode of the context of the object
707 virtual void SetContextWritingMode( const sal_Int16 _nContextWritingMode );
709 // If an object is able to convert itself into a polygon or into a Bezier curve (or into both),
710 // then the following methods should be overridden.
711 // E.g., convert a RectObj with line width 10, SOLID_PEN into a polygon:
712 // In the bLineToArea=false mode a PolyObj with four supporting points,
713 // line width 10 and SOLID_PEN shall be created.
714 // On the contrary in the bLineToArea=true mode the generated object should
715 // still have a line attribute NULL_PEN, and the line (also line pattern)
716 // itself should be emulated by the polygon area, which thereby can be
717 // manipulated by the user afterwards.
718 // The RectObj therefore can only convert correctly if it has an area attribute NULL_BRUSH.
719 // In this case it would have to:
720 // - set SOLID_BRUSH with the color of the given pen,
721 // - set NULL_PEN, and
722 // - generate tools::PolyPolygon with two polygons with four supporting points each.
723 // In each case the return value is a SdrObject*, because it is also
724 // allowed to return group objects (e.g. for SdrTextObj).
725 // In the case of the conversion from TextObj to PathObj,
726 // both modi (bLineToArea=true/false) would be identical.
727 // The methods' default implementations report "I'm unable to do this" (false/null).
728 virtual rtl::Reference<SdrObject> DoConvertToPolyObj(bool bBezier, bool bAddText) const;
729 rtl::Reference<SdrObject> ConvertToPolyObj(bool bBezier, bool bLineToArea) const;
731 // convert this path object to contour object; bForceLineDash converts even
732 // when there is no filled new polygon created from line-to-polygon conversion,
733 // specially used for XLINE_DASH and 3D conversion
734 rtl::Reference<SdrObject> ConvertToContourObj(SdrObject* pRet, bool bForceLineDash = false) const;
735 private:
736 rtl::Reference<SdrObject> ImpConvertToContourObj(bool bForceLineDash);
737 public:
739 // if true, reference onto an object
740 bool IsVirtualObj() const { return m_bVirtObj;}
742 // is true, if object can probably be filled
743 // is false, if object has probably line ends
744 // is invalid, if this is a group object
745 bool IsClosedObj() const { return m_bClosedObj;}
747 // tdf#118662 reorganize inserted state, no local bool needed anymore,
748 // it depends on being a member of a SdrObjList
749 void InsertedStateChange();
750 bool IsInserted() const { return nullptr != getParentSdrObjListFromSdrObject(); }
752 bool IsEdgeObj() const { return m_bIsEdge;}
753 bool Is3DObj() const { return m_bIs3DObj;}
754 bool IsUnoObj() const { return m_bIsUnoObj;}
755 void SetMoveProtect(bool bProt);
756 bool IsMoveProtect() const { return m_bMovProt;}
757 void SetResizeProtect(bool bProt);
758 bool IsResizeProtect() const { return m_bSizProt;}
759 void SetPrintable(bool bPrn);
760 bool IsPrintable() const { return !m_bNoPrint;}
761 void SetVisible(bool bVisible);
762 bool IsVisible() const { return mbVisible;}
763 void SetMarkProtect(bool bProt);
764 bool IsMarkProtect() const { return m_bMarkProt;}
765 virtual bool IsSdrTextObj() const { return false; }
766 virtual bool IsTextPath() const { return false ; }
768 /// Whether the aspect ratio should be kept by default when resizing.
769 virtual bool shouldKeepAspectRatio() const { return false; }
771 // application specific data
772 sal_uInt16 GetUserDataCount() const;
773 SdrObjUserData* GetUserData(sal_uInt16 nNum) const;
775 void AppendUserData(std::unique_ptr<SdrObjUserData> pData);
777 // removes the record from the list and performs delete (FreeMem+Dtor).
778 void DeleteUserData(sal_uInt16 nNum);
780 // access to the UNO representation of the shape
781 virtual css::uno::Reference< css::drawing::XShape > getUnoShape();
783 static SdrObject* getSdrObjectFromXShape( const css::uno::Reference< css::uno::XInterface >& xInt );
785 // notifies a change in the given property, to all applicable listeners registered at the associated SvxShape
787 // This method is equivalent to calling getShapePropertyChangeNotifier().notifyPropertyChange( _eProperty ),
788 // exception that it is allowed to be called when there does not yet exist an associated SvxShape - in which
789 // case the method will silently return without doing anything.
790 void notifyShapePropertyChange( const svx::ShapePropertyProviderId _eProperty ) const;
792 void registerProvider( const svx::ShapePropertyProviderId _eProperty, std::unique_ptr<svx::PropertyValueProvider> propProvider );
794 // transformation interface for StarOfficeAPI. This implements support for
795 // homogen 3x3 matrices containing the transformation of the SdrObject. At the
796 // moment it contains a shearX, rotation and translation, but for setting all linear
797 // transforms like Scale, ShearX, ShearY, Rotate and Translate are supported.
799 // gets base transformation and rectangle of object. If it's an SdrPathObj it fills the PolyPolygon
800 // with the base geometry and returns TRUE. Otherwise it returns FALSE.
801 virtual bool TRGetBaseGeometry(basegfx::B2DHomMatrix& rMatrix, basegfx::B2DPolyPolygon& rPolyPolygon) const;
803 // sets the base geometry of the object using infos contained in the homogen 3x3 matrix.
804 // If it's an SdrPathObj it will use the provided geometry information. The Polygon has
805 // to use (0,0) as upper left and will be scaled to the given size in the matrix.
806 virtual void TRSetBaseGeometry(const basegfx::B2DHomMatrix& rMatrix, const basegfx::B2DPolyPolygon& rPolyPolygon);
808 // give info if object is in destruction
809 bool IsInDestruction() const;
811 // return if fill is != XFILL_NONE
812 bool HasFillStyle() const;
813 bool HasLineStyle() const;
815 // on import of OLE object from MS documents the BLIP size might be retrieved,
816 // the following methods are used to control it;
817 // usually this data makes no sense after the import is finished, since the object
818 // might be resized
819 const tools::Rectangle& GetBLIPSizeRectangle() const { return maBLIPSizeRectangle;}
820 void SetBLIPSizeRectangle( const tools::Rectangle& aRect );
822 // #i121917#
823 virtual bool HasText() const;
825 bool Equals(const SdrObject&) const;
827 virtual void dumpAsXml(xmlTextWriterPtr pWriter) const;
829 /// Is this a textbox of a drawinglayer shape?
830 virtual bool IsTextBox() const;
832 void SetEmptyPresObj(bool bEpt);
833 bool IsEmptyPresObj() const { return m_bEmptyPresObj;}
834 void SetNotVisibleAsMaster(bool bFlg);
835 bool IsNotVisibleAsMaster() const { return m_bNotVisibleAsMaster;}
836 void SetUserCall(SdrObjUserCall* pUser);
837 SdrObjUserCall* GetUserCall() const { return m_pUserCall;}
838 /// @see mbDoNotInsertIntoPageAutomatically
839 void SetDoNotInsertIntoPageAutomatically(bool bSet);
840 /// @see mbDoNotInsertIntoPageAutomatically
841 bool IsDoNotInsertIntoPageAutomatically() const { return mbDoNotInsertIntoPageAutomatically;}
843 // Warning: this method should only be used if you really know what you're doing
844 sal_uInt32 GetOrdNumDirect() const { return m_nOrdNum;}
846 // #i25616#
847 bool DoesSupportTextIndentingOnLineWidthChange() const { return mbSupportTextIndentingOnLineWidthChange;}
849 const Point& GetAnchorPos() const;
851 // #i25616#
852 bool LineIsOutsideGeometry() const { return mbLineIsOutsideGeometry;}
854 // Set the position in the navigation position to the given value.
855 // This method is typically used only by the model after a change to
856 // the navigation order.
857 // This method does not change the navigation position of other
858 // objects.
859 // Use SdrObjList::SetObjectNavigationPosition() instead.
860 void SetNavigationPosition (const sal_uInt32 nPosition);
862 /// Sets a new UNO representation of the shape
864 /// Calling this function is only allowed for the UNO representation
865 /// itself!
867 /// The default implementation of this function sets the new UNO
868 /// shape. Derived classes should override the function to handle
869 /// any other actions that are needed when the shape is being
870 /// changed.
872 /// The implementation _must_ call the same method of its parent
873 /// class (preferably as the first step)!
874 virtual void setUnoShape( const css::uno::Reference< css::drawing::XShape >& _rxUnoShape );
876 const css::uno::WeakReference< css::drawing::XShape >& getWeakUnoShape() const { return maWeakUnoShape; }
878 // return true if a bg was set, false otherwise
879 bool setSuitableOutlinerBg(Outliner& rOutliner) const;
880 // If fillstyle is drawing::FillStyle_BITMAP, returns the graphic.
881 const Graphic* getFillGraphic() const;
883 const OUString& getHyperlink() const { return msHyperlink; }
884 void setHyperlink(const OUString& sHyperlink) { msHyperlink = sHyperlink; }
886 void ForceMetricToItemPoolMetric(basegfx::B2DPolyPolygon& rPolyPolygon) const noexcept;
888 protected:
889 const tools::Rectangle& getOutRectangle() const;
890 void setOutRectangleConst(tools::Rectangle const& rRectangle) const; // need to do something about this
891 void setOutRectangle(tools::Rectangle const& rRectangle);
892 void resetOutRectangle();
893 void moveOutRectangle(sal_Int32 nXDelta, sal_Int32 nYDelta);
895 mutable tools::Rectangle m_aOutRect; // surrounding rectangle for Paint (incl. LineWidth, ...)
896 Point m_aAnchor; // anchor position (Writer)
897 SdrObjUserCall* m_pUserCall;
898 std::unique_ptr<SdrObjPlusData>
899 m_pPlusData; // Broadcaster, UserData, connectors, ... (this is the Bitsack)
900 // object is only pointing to another one
901 bool m_bVirtObj : 1;
902 bool m_bSnapRectDirty : 1;
903 // the following flags will be streamed
904 bool m_bMovProt : 1; // if true, the position is protected
905 bool m_bSizProt : 1; // if true, the size is protected
906 // If bEmptyPresObj is true, it is a presentation object that has no content yet.
907 // The flag's default value is false.
908 // The management is done by the application.
909 // Neither assign operator nor cloning copies the flag!
910 // The flag is persistent.
911 bool m_bEmptyPresObj : 1; // empty presentation object (Draw)
912 // if true, object is invisible as object of the MasterPage
913 bool m_bNotVisibleAsMaster : 1;
914 // if true, the object is closed, i.e. no line, arc...
915 bool m_bClosedObj : 1;
916 bool m_bIsEdge : 1;
917 bool m_bIs3DObj : 1;
918 bool m_bIsUnoObj : 1;
919 // #i25616#
920 bool mbLineIsOutsideGeometry : 1;
921 // #i25616#
922 bool mbSupportTextIndentingOnLineWidthChange : 1;
924 virtual ~SdrObject() override;
926 virtual std::unique_ptr<sdr::properties::BaseProperties> CreateObjectSpecificProperties();
928 virtual std::unique_ptr<sdr::contact::ViewContact> CreateObjectSpecificViewContact();
930 tools::Rectangle ImpDragCalcRect(const SdrDragStat& rDrag) const;
932 // for GetDragComment
933 OUString ImpGetDescriptionStr(TranslateId pStrCacheID) const;
935 void ImpForcePlusData();
937 OUString GetMetrStr(tools::Long nVal) const;
939 /// A derived class must override these 3 methods if it has own geometric
940 /// data that must be saved for Undo.
941 /// NewGeoData() creates an empty instance of a class derived from
942 /// SdrObjGeoData.
943 virtual std::unique_ptr<SdrObjGeoData> NewGeoData() const;
944 virtual void SaveGeoData(SdrObjGeoData& rGeo) const;
945 virtual void RestoreGeoData(const SdrObjGeoData& rGeo);
947 // internal versions
948 const SfxItemSet& GetObjectItemSet() const;
949 void SetObjectItem(const SfxPoolItem& rItem);
950 void SetObjectItemSet(const SfxItemSet& rSet);
951 const SfxPoolItem& GetObjectItem(const sal_uInt16 nWhich) const;
952 template<class T> const T& GetObjectItem( TypedWhichId<T> nWhich ) const
954 return static_cast<const T&>(GetObjectItem(sal_uInt16(nWhich)));
957 const SfxItemSet* getBackgroundFillSet() const;
959 virtual void InternalSetStyleSheet(SfxStyleSheet* pNewStyleSheet, bool bDontRemoveHardAttr, bool bBroadcast);
961 private:
962 struct Impl;
963 std::unique_ptr<Impl> mpImpl;
964 SdrObjList* mpParentOfSdrObject; // list that includes this object
965 sal_uInt32 m_nOrdNum; // order number of the object in the list
966 std::unique_ptr<SfxGrabBagItem> m_pGrabBagItem; // holds the GrabBagItem property
967 // Position in the navigation order. SAL_MAX_UINT32 when not used.
968 sal_uInt32 mnNavigationPosition;
969 SdrLayerID mnLayerID;
970 bool m_bNoPrint : 1; // if true, the object is not printed.
971 bool mbVisible : 1; // if false, the object is not visible on screen (but maybe on printer, depending on bNoprint
972 bool m_bMarkProt : 1; // marking forbidden, persistent
973 // on import of OLE object from MS documents the BLIP size might be retrieved,
974 // in this case the following member is initialized as nonempty rectangle
975 tools::Rectangle maBLIPSizeRectangle;
976 std::unique_ptr<sdr::properties::BaseProperties>
977 mpProperties;
978 std::unique_ptr<sdr::contact::ViewContact>
979 mpViewContact;
981 // do not use directly, always use getSvxShape() if you have to, because not all
982 // SdrObjects have an associated SvxShape subclass (e.g. reportdesign)
983 SvxShape* mpSvxShape;
984 css::uno::WeakReference< css::drawing::XShape >
985 maWeakUnoShape;
987 // HACK: Do not automatically insert newly created object into a page.
988 // The user needs to do it manually later.
989 bool mbDoNotInsertIntoPageAutomatically;
990 // Hyperlink for the whole shape
991 OUString msHyperlink;
993 // only for internal use!
994 SvxShape* getSvxShape();
996 SdrObject( const SdrObject& ) = delete;
999 SVXCORE_DLLPUBLIC E3dScene* DynCastE3dScene(SdrObject*);
1000 inline const E3dScene* DynCastE3dScene(const SdrObject* p) { return DynCastE3dScene(const_cast<SdrObject*>(p)); }
1001 SVXCORE_DLLPUBLIC E3dObject* DynCastE3dObject(SdrObject*);
1002 inline const E3dObject* DynCastE3dObject(const SdrObject* p) { return DynCastE3dObject(const_cast<SdrObject*>(p)); }
1003 SVXCORE_DLLPUBLIC SdrTextObj* DynCastSdrTextObj(SdrObject*);
1004 inline const SdrTextObj* DynCastSdrTextObj(const SdrObject* p) { return DynCastSdrTextObj(const_cast<SdrObject*>(p)); }
1007 struct SdrObjCreatorParams
1009 SdrInventor nInventor;
1010 SdrObjKind nObjIdentifier;
1011 SdrModel& rSdrModel;
1015 * Whoever creates his own objects must set a link in the SdrObjFactory class.
1016 * The handler must have the following signature:
1017 * void Hdl(SdrObjFactory*)
1018 * He must take a look at the referenced instance's nInventor and nIdentifier values,
1019 * and must create a new drawing object instance accordingly.
1020 * He must also make the pNewObj pointer reference to this instance.
1022 class SVXCORE_DLLPUBLIC SdrObjFactory
1024 public:
1025 static rtl::Reference<SdrObject> MakeNewObject(
1026 SdrModel& rSdrModel,
1027 SdrInventor nInventor,
1028 SdrObjKind nObjIdentifier,
1029 const tools::Rectangle* pSnapRect = nullptr);
1031 static void InsertMakeObjectHdl(Link<SdrObjCreatorParams, rtl::Reference<SdrObject>> const & rLink);
1032 static void RemoveMakeObjectHdl(Link<SdrObjCreatorParams, rtl::Reference<SdrObject>> const & rLink);
1034 private:
1035 static SVX_DLLPRIVATE rtl::Reference<SdrObject> CreateObjectFromFactory(
1036 SdrModel& rSdrModel,
1037 SdrInventor nInventor,
1038 SdrObjKind nIdentifier);
1040 SdrObjFactory() = delete;
1043 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */