LibreOffice Module svx (master)  1
svdobj.hxx
Go to the documentation of this file.
1 /*
2  * This file is part of the LibreOffice project.
3  *
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/.
7  *
8  * This file incorporates work covered by the following license notice:
9  *
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 .
17  */
18 
19 #pragma once
20 
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/weakbase.h>
35 #include <tools/gen.hxx>
36 #include <unotools/resmgr.hxx>
37 
38 #include <unordered_set>
39 
40 class SfxBroadcaster;
41 class AutoTimer;
42 class OutlinerParaObject;
43 class Outliner;
44 class SdrOutliner;
45 class SdrDragStat;
46 class SdrHdl;
47 class SdrHdlList;
48 class SdrItemPool;
49 class SdrModel;
50 class SdrObjList;
51 class SdrObject;
52 class SdrPage;
53 class SdrPageView;
54 class SdrView;
55 class SfxItemSet;
56 class SfxGrabBagItem;
57 class SfxSetItem;
58 class SfxStyleSheet;
59 class SfxUndoAction;
60 class XFillAttrSetItem;
61 class XLineAttrSetItem;
62 class SfxItemPool;
63 namespace tools { class PolyPolygon; }
64 class SfxPoolItem;
65 class SdrVirtObj;
66 class SdrDragView;
67 class SdrObjUserDataList;
68 class SdrObjPlusData;
69 class SdrGluePoint;
70 class SdrGluePointList;
71 class SdrLayerIDSet;
72 class Fraction;
73 enum class PointerStyle;
74 class Graphic;
75 class SvxShape;
76 namespace svx { enum class ShapePropertyProviderId; }
77 
78 namespace basegfx
79 {
80  class B2DPoint;
81  class B2DPolyPolygon;
82  class B2DHomMatrix;
83 }
84 
85 namespace sdr { class ObjectUser; }
86 namespace sdr::properties { class BaseProperties; }
87 namespace sdr::contact { class ViewContact; }
88 
89 namespace svx { class PropertyChangeNotifier; }
90 namespace com::sun::star::drawing { class XShape; }
91 
92 
94 
95 // helper for constructing std::unique_ptr for SdrObjects where a
96 // deleter is needed - here, SdrObject::Free needs to be used.
97 typedef std::unique_ptr< SdrObject, SdrObjectFreeOp > SdrObjectUniquePtr;
98 
99 enum class SdrInventor : sal_uInt32 {
100  Unknown = 0,
101  BasicDialog = sal_uInt32( 'D' | ('L' << 8) | ('G' << 16) | ('1' << 24) ),
102  Default = sal_uInt32( 'S' | ('V' << 8) | ('D' << 16) | ('r' << 24) ),
103  E3d = sal_uInt32( 'E' | ('3' << 8) | ('D' << 16) | ('1' << 24) ),
104  FmForm = sal_uInt32( 'F' | ('M' << 8) | ('0' << 16) | ('1' << 24) ),
105  IMap = sal_uInt32( 'I' | ('M' << 8) | ('A' << 16) | ('P' << 24) ),
106  ReportDesign = sal_uInt32( 'R' | ('P' << 8) | ('T' << 16) | ('1' << 24) ),
107  ScOrSwDraw = sal_uInt32( 'S' | ('C' << 8) | ('3' << 16) | ('0' << 24) ), // Used in sc/ and sw/
108  SgaImap = sal_uInt32( 'S' | ('D' << 8) | ('U' << 16) | ('D' << 24) ),
109  StarDrawUserData = sal_uInt32( 'S' | ('D' << 8) | ('U' << 16) | ('D' << 24) ),
110  Swg = sal_uInt32( 'S' | ('W' << 8) | ('G' << 16) ),
111 };
112 
113 enum class SdrUserCallType {
114  MoveOnly, // only moved, size unchanged
115  Resize, // size and maybe position changed
116  ChangeAttr, // attribute changed. Eventually new size, because of line width
117  Delete, // object is going to be deleted soon, no attributes anymore
118  Inserted, // inserted into an object list (e.g. Page)
119  Removed, // removed from an object list
120  ChildMoveOnly, // a child within a group has changed
121  ChildResize, // a child within a group has changed
122  ChildChangeAttr, // a child within a group has changed
123  ChildDelete, // a child within a group has changed
124  ChildInserted, // a child within a group has changed
125  ChildRemoved // a child within a group has changed
126 };
127 
129 {
130 public:
131  virtual ~SdrObjUserCall();
132  virtual void Changed(const SdrObject& rObj, SdrUserCallType eType, const tools::Rectangle& rOldBoundRect);
133 };
134 
136 {
137 public:
141  sal_uInt16 nTol;
142 
144 };
145 
152 {
154  sal_uInt16 nIdentifier;
155 
156  void operator=(const SdrObjUserData& rData) = delete;
157  bool operator==(const SdrObjUserData& rData) const = delete;
158  bool operator!=(const SdrObjUserData& rData) const = delete;
159 
160 public:
161  SdrObjUserData(SdrInventor nInv, sal_uInt16 nId);
162  SdrObjUserData(const SdrObjUserData& rData);
163  virtual ~SdrObjUserData();
164 
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;}
168 };
169 
174 {
175 public:
178  std::unique_ptr<SdrGluePointList>
180  bool bMovProt;
181  bool bSizProt;
182  bool bNoPrint;
184  bool mbVisible;
186 
187 public:
188  SdrObjGeoData();
189  virtual ~SdrObjGeoData();
190 };
191 
196 {
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
216 
218 };
219 
221 //
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
257 
260 {
261 private:
262  friend class SdrObjListIter;
263  friend class SdrObjList;
264  friend class SdrVirtObj;
265  friend class SdrRectObj;
266 
267  // OperationSmiley: Allow at each SdrObject to set a FillGeometryDefiningShape,
268  // so that for SdrObjects where this is set, the definition of a defined FillStyle
269  // will use this, but the local geometry will be filled. This allows to fill
270  // multiple shapes with a unified fill, e.g think about CustomShapes.
271  // Currently this is *only* used for CustomShapes, but may be developed to get a
272  // common mechanism - usages for it are easy to be found. The current limitation
273  // to CustomShapes allows to think about these SdrObjects to 'vanish' during the
274  // lifetime of 'this' - the SdrObjects without SdrPage and SdrModel are used as helper
275  // objects for SdrObjCustomShape and thus their lifetime is limited to the lifetime
276  // of this local object. For unifying this mechanism, some weak reference of
277  // SdrObjects would have to be thought about (not easy with the current implementation).
278  // So - allow *only* EnhancedCustomShape2d (which creates the visualizations for
279  // SdrObjCustomShape) to set this. Already allow unified read to use it - thus already
280  // allowing to implement as standard case for all kinds of SdrObjects.
281  friend class EnhancedCustomShape2d;
283  void setFillGeometryDefiningShape(const SdrObject* pNew) { mpFillGeometryDefiningShape = pNew; }
284 public:
285  const SdrObject* getFillGeometryDefiningShape() const { return mpFillGeometryDefiningShape; }
286 
287 private:
288  // the SdrModel this objects was created with, unchanged during SdrObject lifetime
290 
291 public:
292  // A SdrObject always needs a SdrModel for lifetime (Pool, ...)
293  SdrObject(SdrModel& rSdrModel);
294  // Copy constructor
295  SdrObject(SdrModel& rSdrModel, SdrObject const & rSource);
296 
297  // SdrModel/SdrPage access on SdrObject level
298  SdrPage* getSdrPageFromSdrObject() const;
299  SdrModel& getSdrModelFromSdrObject() const;
300 
301  // access to possible children (SdrObjGroup/E3dScene)
302  virtual SdrObjList* getChildrenOfSdrObject() const;
303 
304  // access to parent
305  SdrObjList* getParentSdrObjListFromSdrObject() const;
306  SdrObject* getParentSdrObjectFromSdrObject() const;
307 
308 private:
309  SVX_DLLPRIVATE void setParentOfSdrObject(SdrObjList* pNew);
310 
311 public:
312  // react on model/page change
313  virtual void handlePageChange(SdrPage* pOldPage, SdrPage* pNewPage);
314 
315  void AddObjectUser(sdr::ObjectUser& rNewUser);
316  void RemoveObjectUser(sdr::ObjectUser& rOldUser);
317 
318  sdr::contact::ViewContact& GetViewContact() const;
319 
320  virtual sdr::properties::BaseProperties& GetProperties() const;
321 
322  // DrawContact support: Methods for handling Object changes
323  void ActionChanged() const;
324 
325  static SdrItemPool& GetGlobalDrawObjectItemPool();
326  void SetRelativeWidth( double nValue );
327  void SetRelativeWidthRelation( sal_Int16 eValue );
328  void SetRelativeHeight( double nValue );
329  void SetRelativeHeightRelation( sal_Int16 eValue );
330  const double* GetRelativeWidth() const;
331  sal_Int16 GetRelativeWidthRelation() const;
332  const double* GetRelativeHeight() const;
333  sal_Int16 GetRelativeHeightRelation() const;
334 
339  virtual void SetBoundAndSnapRectsDirty(bool bNotMyself = false, bool bRecursive = true);
340 
341  // frees the SdrObject pointed to by the argument
342  // In case the object has an SvxShape, which has the ownership of the object, it
343  // is actually *not* deleted.
344  static void Free( SdrObject*& _rpObject );
345 
346  // this method is only for access from Property objects
347  virtual void SetBoundRectDirty();
348 
349  SfxItemPool & GetObjectItemPool() const;
350 
351  void AddListener(SfxListener& rListener);
352  void RemoveListener(SfxListener& rListener);
353 
354  void AddReference(SdrVirtObj& rVrtObj);
355  void DelReference(SdrVirtObj& rVrtObj);
356  virtual SdrInventor GetObjInventor() const;
357  virtual SdrObjKind GetObjIdentifier() const;
358  virtual void TakeObjInfo(SdrObjTransformInfoRec& rInfo) const;
359 
360  // Layer interface
361  virtual SdrLayerID GetLayer() const;
362  virtual void NbcSetLayer(SdrLayerID nLayer);
363  virtual void SetLayer(SdrLayerID nLayer);
364  // renaming GetSdrLayerIDSet -> getMergedHierarchySdrLayerIDSet to make clear what happens here. rSet needs to be empty.
365  void getMergedHierarchySdrLayerIDSet(SdrLayerIDSet& rSet) const;
366 
367  void SendUserCall(SdrUserCallType eUserCall, const tools::Rectangle& rBoundRect) const;
368 
369  // #i68101#
370  // An object may have a user-set Name (Get/SetName()), e.g SdrGrafObj, SdrObjGroup
371  // or SdrOle2Obj.
372  // It may also have a Title and a Description for accessibility purposes.
373  void SetName(const OUString& rStr, const bool bSetChanged = true);
374  const OUString & GetName() const;
375  void MakeNameUnique();
376  void MakeNameUnique(std::unordered_set<OUString>& rNameSet);
377  void SetTitle(const OUString& rStr);
378  OUString GetTitle() const;
379  void SetDescription(const OUString& rStr);
380  OUString GetDescription() const;
381 
382  // for group objects
383  bool IsGroupObject() const;
384  virtual SdrObjList* GetSubList() const;
385 
392  sal_uInt32 GetOrdNum() const;
393 
394  // setting the order number should only happen from the model or from the page
395  void SetOrdNum(sal_uInt32 nNum);
396 
397  // GrabBagItem for interim interop purposes
398  void GetGrabBagItem(css::uno::Any& rVal) const;
399 
400  virtual void SetGrabBagItem(const css::uno::Any& rVal);
401 
402  // Return the position in the navigation order for the called object.
403  // Note that this method may update the navigation position of the
404  // called and of other SdrObjects. Therefore this method can not be
405  // const.
406  // @return
407  // If no navigation position has been explicitly defined then the
408  // result of GetOrdNum() is returned.
409  sal_uInt32 GetNavigationPosition() const;
410 
411  // To make clearer that this method may trigger RecalcBoundRect and thus may be
412  // expensive and sometimes problematic (inside a bigger object change You will get
413  // non-useful BoundRects sometimes) i rename that method from GetBoundRect() to
414  // GetCurrentBoundRect().
415  virtual const tools::Rectangle& GetCurrentBoundRect() const;
416 
417  // To have a possibility to get the last calculated BoundRect e.g for producing
418  // the first rectangle for repaints (old and new need to be used) without forcing
419  // a RecalcBoundRect (which may be problematical and expensive sometimes) i add here
420  // a new method for accessing the last BoundRect.
421  virtual const tools::Rectangle& GetLastBoundRect() const;
422 
423  virtual void RecalcBoundRect();
424 
425  void BroadcastObjectChange() const;
426 
427  const SfxBroadcaster* GetBroadcaster() const;
428 
429  // set modified-flag in the model
430  virtual void SetChanged();
431 
432  // Tooling for painting a single object to an OutputDevice. This will be needed as long
433  // as not all painting is changed to use DrawContact objects.
434  void SingleObjectPainter(OutputDevice& rOut) const;
435  bool LineGeometryUsageIsNecessary() const;
436 
437  // RotGrfFlyFrame: If true, this SdrObject supports only limited rotation, that
438  // means no change of the rotation point (only centered) and no shear allowed
439  virtual bool HasLimitedRotation() const;
440 
441  // Returns a copy of the object. Every inherited class must reimplement this.
442  virtual SdrObject* CloneSdrObject(SdrModel& rTargetModel) const;
443 
444  // Overwriting this object makes no sense, it is too complicated for that
445  SdrObject& operator=(const SdrObject& rObj) = delete;
446  SdrObject& operator=(SdrObject&& rObj) = delete;
447 
448  // TakeObjName...() is for the display in the UI, e.g. "3 frames selected"
449  virtual OUString TakeObjNameSingul() const;
450  virtual OUString TakeObjNamePlural() const;
451 
455  virtual basegfx::B2DPolyPolygon TakeXorPoly() const;
456 
458  virtual basegfx::B2DPolyPolygon TakeContour() const;
459 
471  virtual sal_uInt32 GetHdlCount() const;
472  virtual void AddToPlusHdlList(SdrHdlList& rHdlList, SdrHdl& rHdl) const;
473  virtual void AddToHdlList(SdrHdlList& rHdlList) const;
474  virtual void addCropHandles(SdrHdlList& rTarget) const;
475 
486  virtual bool hasSpecialDrag() const;
487  virtual bool beginSpecialDrag(SdrDragStat& rDrag) const;
488  virtual bool applySpecialDrag(SdrDragStat& rDrag);
489  virtual OUString getSpecialDragComment(const SdrDragStat& rDrag) const;
490  virtual basegfx::B2DPolyPolygon getSpecialDragPoly(const SdrDragStat& rDrag) const;
491 
492  // FullDrag support. This is for standard interactions and for SdrObjOwn
493  // support. If supportsFullDrag() returns true, getFullDragClone has to
494  // return a cloned SdrObject (who's ownership it loses) at which modifications
495  // like Move(), Scale(), etc or applySpecialDrag() will be executed. That
496  // object will be visualized on overlay for full drag, but should not be
497  // part of the model, thus not changing anything since it's only a temporary
498  // helper object for interaction
499  virtual bool supportsFullDrag() const;
500  virtual SdrObjectUniquePtr getFullDragClone() const;
501 
515  virtual bool BegCreate(SdrDragStat& rStat);
516  virtual bool MovCreate(SdrDragStat& rStat); // if true, Xor needs to be repainted
517  virtual bool EndCreate(SdrDragStat& rStat, SdrCreateCmd eCmd);
518  virtual bool BckCreate(SdrDragStat& rStat);
519  virtual void BrkCreate(SdrDragStat& rStat);
520 
522  virtual PointerStyle GetCreatePointer() const;
523 
525  virtual basegfx::B2DPolyPolygon TakeCreatePoly(const SdrDragStat& rDrag) const;
526 
532  virtual void NbcMove (const Size& rSiz);
533  virtual void NbcResize(const Point& rRef, const Fraction& xFact, const Fraction& yFact);
534  virtual void NbcCrop (const basegfx::B2DPoint& rRef, double fxFact, double fyFact);
535  virtual void NbcRotate(const Point& rRef, Degree100 nAngle, double sn, double cs);
536  // Utility for call sites that don't have sin and cos handy
537  void NbcRotate(const Point& rRef, Degree100 nAngle);
538  virtual void NbcMirror(const Point& rRef1, const Point& rRef2);
539  virtual void NbcShear (const Point& rRef, Degree100 nAngle, double tn, bool bVShear);
540 
541  virtual void Move (const Size& rSiz);
542  virtual void Resize(const Point& rRef, const Fraction& xFact, const Fraction& yFact, bool bUnsetRelative = true);
543  virtual void Crop (const basegfx::B2DPoint& rRef, double fxFact, double fyFact);
544  virtual void Rotate(const Point& rRef, Degree100 nAngle, double sn, double cs);
545  virtual void Mirror(const Point& rRef1, const Point& rRef2);
546  virtual void Shear (const Point& rRef, Degree100 nAngle, double tn, bool bVShear);
547 
550  virtual void NbcSetRelativePos(const Point& rPnt);
551  virtual void SetRelativePos(const Point& rPnt);
552  virtual Point GetRelativePos() const;
553  void ImpSetAnchorPos(const Point& rPnt);
554  virtual void NbcSetAnchorPos(const Point& rPnt);
555  virtual void SetAnchorPos(const Point& rPnt);
556 
561  virtual void RecalcSnapRect();
562  virtual const tools::Rectangle& GetSnapRect() const;
563  virtual void SetSnapRect(const tools::Rectangle& rRect);
564  virtual void NbcSetSnapRect(const tools::Rectangle& rRect);
565 
566  // Logic Rect: for the Rect for instance without regard to rotation angle, shear, ...
567  virtual const tools::Rectangle& GetLogicRect() const;
568  virtual void SetLogicRect(const tools::Rectangle& rRect);
569  virtual void NbcSetLogicRect(const tools::Rectangle& rRect);
570 
571  // the default is to set the logic rect to the given rectangle rMaxRect. If the shape
572  // has an intrinsic aspect ratio it may set the logic rect so the aspect
573  // ratio is kept but still inside the rectangle rMaxRect.
574  // If bShrinkOnly is set to true, the size of the current logic rect will not
575  // be changed if it is smaller than the given rectangle rMaxRect.
576  virtual void AdjustToMaxRect( const tools::Rectangle& rMaxRect, bool bShrinkOnly = false );
577 
578  // rotation and shear angle
579  virtual Degree100 GetRotateAngle() const;
580  virtual Degree100 GetShearAngle(bool bVertical = false) const;
581 
583  virtual sal_uInt32 GetSnapPointCount() const;
584  virtual Point GetSnapPoint(sal_uInt32 i) const;
585 
586  // For objects, whose points can be moved individually.
587  // (e.g. polygons, polylines, lines)
588  // The points of those objects are selected (if necessary multiselection),
589  // deleted, inserted, or as a multiselection moved or rotated...
590  // Only such objects can have PlusHandles (e.g. the weights of a Bezier curve).
591  virtual bool IsPolyObj() const;
592  virtual sal_uInt32 GetPointCount() const;
593  virtual Point GetPoint(sal_uInt32 i) const;
594  void SetPoint(const Point& rPnt, sal_uInt32 i);
595  virtual void NbcSetPoint(const Point& rPnt, sal_uInt32 i);
596 
597  // get all geometrical data for undo/redo
598  virtual std::unique_ptr<SdrObjGeoData> GetGeoData() const;
599  virtual void SetGeoData(const SdrObjGeoData& rGeo);
600 
601  // ItemSet access
602  const SfxItemSet& GetMergedItemSet() const;
603  void SetMergedItem(const SfxPoolItem& rItem);
604  void ClearMergedItem(const sal_uInt16 nWhich = 0);
605  void SetMergedItemSet(const SfxItemSet& rSet, bool bClearAllItems = false);
606  const SfxPoolItem& GetMergedItem(const sal_uInt16 nWhich) const;
607  template<class T>
608  const T& GetMergedItem( TypedWhichId<T> nWhich ) const
609  {
610  return static_cast<const T&>(GetMergedItem(sal_uInt16(nWhich)));
611  }
612 
613  // syntactical sugar for ItemSet accesses
614  void SetMergedItemSetAndBroadcast(const SfxItemSet& rSet, bool bClearAllItems = false);
615 
616  // NotPersistAttr for Layer, ObjName, geometrical transformations etc.
617  void TakeNotPersistAttr(SfxItemSet& rAttr) const;
618  void ApplyNotPersistAttr(const SfxItemSet& rAttr);
619  void NbcApplyNotPersistAttr(const SfxItemSet& rAttr);
620 
621  // if bDontRemoveHardAttr is false, set all attributes, which were set in the style sheet, to their default value
622  // if true, all hard attributes keep their values
623  void SetStyleSheet(SfxStyleSheet* pNewStyleSheet, bool bDontRemoveHardAttr);
624  void NbcSetStyleSheet(SfxStyleSheet* pNewStyleSheet, bool bDontRemoveHardAttr);
625  SfxStyleSheet* GetStyleSheet() const;
626 
627  virtual bool HasTextEdit() const;
628 
629  // keep text in outliner's format
630  // SetOutlinerParaObject: transfer ownership of *pTextObject!
631  void SetOutlinerParaObject(std::optional<OutlinerParaObject> pTextObject);
632  virtual void NbcSetOutlinerParaObject(std::optional<OutlinerParaObject> pTextObject);
633  virtual OutlinerParaObject* GetOutlinerParaObject() const;
634  virtual void NbcReformatText();
635 
636  void BurnInStyleSheetAttributes();
637 
638  // macro abilities, e.g. a rectangle as PushButton.
639  virtual bool HasMacro() const;
640  virtual SdrObject* CheckMacroHit (const SdrObjMacroHitRec& rRec) const;
641  virtual PointerStyle GetMacroPointer (const SdrObjMacroHitRec& rRec) const;
642  virtual void PaintMacro (OutputDevice& rOut, const tools::Rectangle& rDirtyRect, const SdrObjMacroHitRec& rRec) const;
643  virtual bool DoMacro (const SdrObjMacroHitRec& rRec);
644  bool IsMacroHit(const SdrObjMacroHitRec& rRec) const;
645 
646  // Connectors
647  // (see also documentation in SvdoEdge.hxx, SdrEdgeObj, as well as SvdGlue.hxx and SvdGlEV.hxx)
648  //
649  // There are nodes and edges. In theory an edge can also be a node, but this isn't implemented yet.
650  // A node has a number of gluepoints, onto which edges can glued to
651  // An edge can be either
652  // - without any connection to any node,
653  // - or connected on one end to a node, while the other end is not connected,
654  // - or connected on both ends with exactly one node each.
655  // The edge is listener for its up to two nodes.
656  // Whenever a node is moved or resized, all its connected edges follow.
657  // This is also true for SetGluePoint()... on the node.
658  // On the other hand, moving/resizing an edge breaks the connection.
659 
660  // automatic gluepoints:
661  // a node object must provide four vertex and corner positions
662  // usually 0: top, 1: right, 2: bottom, 3: left
663  virtual SdrGluePoint GetVertexGluePoint(sal_uInt16 nNum) const;
664 
665  // usually:
666  // 0: top-left, 1: top-right, 2: bottom-right, 3: bottom-left
667  virtual SdrGluePoint GetCornerGluePoint(sal_uInt16 nNum) const;
668 
669  // list of all gluepoints, can be NULL
670  virtual const SdrGluePointList* GetGluePointList() const;
671 
672  // after changing the GluePointList, one has to call the object's SendRepaintBroadcast!
673  virtual SdrGluePointList* ForceGluePointList();
674 
675  // to be set temporarily when transforming related object(?)
676  void SetGlueReallyAbsolute(bool bOn);
677  void NbcRotateGluePoints(const Point& rRef, Degree100 nAngle, double sn, double cs);
678  void NbcMirrorGluePoints(const Point& rRef1, const Point& rRef2);
679  void NbcShearGluePoints (const Point& rRef, double tn, bool bVShear);
680 
681  // if bTail1 is true, line start, otherwise line end
682  // if pObj is null disconnect
683  virtual void ConnectToNode(bool bTail1, SdrObject* pObj);
684  virtual void DisconnectFromNode(bool bTail1);
685  virtual SdrObject* GetConnectedNode(bool bTail1) const;
686 
687  // sets the writing mode of the object's context
688  // Objects which itself do not support different writing modes will ignore this call.
689  // Objects which support different writing modes, but have an own, explicit writing mode set,
690  // will also ignore this call.
691  // Objects which support different writing modes, and whose own mode is set to css.text.WritingMode2.CONTEXT,
692  // will use the given writing mode to calculate their "effective writing mode".
693  // The behaviour of this method is undefined if you pass css.text.WritingMode2.CONTEXT.
694  // @param _nContextWritingMode
695  // the effective writing mode of the context of the object
696  virtual void SetContextWritingMode( const sal_Int16 _nContextWritingMode );
697 
698  // If an object is able to convert itself into a polygon or into a Bezier curve (or into both),
699  // then the following methods should be overridden.
700  // E.g., convert a RectObj with line width 10, SOLID_PEN into a polygon:
701  // In the bLineToArea=false mode a PolyObj with four supporting points,
702  // line width 10 and SOLID_PEN shall be created.
703  // On the contrary in the bLineToArea=true mode the generated object should
704  // still have a line attribute NULL_PEN, and the line (also line pattern)
705  // itself should be emulated by the polygon area, which thereby can be
706  // manipulated by the user afterwards.
707  // The RectObj therefore can only convert correctly if it has an area attribute NULL_BRUSH.
708  // In this case it would have to:
709  // - set SOLID_BRUSH with the color of the given pen,
710  // - set NULL_PEN, and
711  // - generate tools::PolyPolygon with two polygons with four supporting points each.
712  // In each case the return value is a SdrObject*, because it is also
713  // allowed to return group objects (e.g. for SdrTextObj).
714  // In the case of the conversion from TextObj to PathObj,
715  // both modi (bLineToArea=true/false) would be identical.
716  // The methods' default implementations report "I'm unable to do this" (false/null).
717  virtual SdrObjectUniquePtr DoConvertToPolyObj(bool bBezier, bool bAddText) const;
718  SdrObjectUniquePtr ConvertToPolyObj(bool bBezier, bool bLineToArea) const;
719 
720  // convert this path object to contour object; bForceLineDash converts even
721  // when there is no filled new polygon created from line-to-polygon conversion,
722  // specially used for XLINE_DASH and 3D conversion
723  SdrObject* ConvertToContourObj(SdrObject* pRet, bool bForceLineDash = false) const;
724 private:
725  SdrObject* ImpConvertToContourObj(bool bForceLineDash);
726 public:
727 
728  // if true, reference onto an object
729  bool IsVirtualObj() const { return m_bVirtObj;}
730 
731  // is true, if object can probably be filled
732  // is false, if object has probably line ends
733  // is invalid, if this is a group object
734  bool IsClosedObj() const { return m_bClosedObj;}
735 
736  // tdf#118662 reorganize inserted state, no local bool needed anymore,
737  // it depends on being a member of a SdrObjList
738  void InsertedStateChange();
739  bool IsInserted() const { return nullptr != getParentSdrObjListFromSdrObject(); }
740 
741  bool IsEdgeObj() const { return m_bIsEdge;}
742  bool Is3DObj() const { return m_bIs3DObj;}
743  bool IsUnoObj() const { return m_bIsUnoObj;}
744  void SetMoveProtect(bool bProt);
745  bool IsMoveProtect() const { return m_bMovProt;}
746  void SetResizeProtect(bool bProt);
747  bool IsResizeProtect() const { return m_bSizProt;}
748  void SetPrintable(bool bPrn);
749  bool IsPrintable() const { return !m_bNoPrint;}
750  void SetVisible(bool bVisible);
751  bool IsVisible() const { return mbVisible;}
752  void SetMarkProtect(bool bProt);
753  bool IsMarkProtect() const { return m_bMarkProt;}
754 
756  virtual bool shouldKeepAspectRatio() const { return false; }
757 
758  // application specific data
759  sal_uInt16 GetUserDataCount() const;
760  SdrObjUserData* GetUserData(sal_uInt16 nNum) const;
761 
762  void AppendUserData(std::unique_ptr<SdrObjUserData> pData);
763 
764  // removes the record from the list and performs delete (FreeMem+Dtor).
765  void DeleteUserData(sal_uInt16 nNum);
766 
767  // access to the UNO representation of the shape
768  virtual css::uno::Reference< css::drawing::XShape > getUnoShape();
769 
770  static SdrObject* getSdrObjectFromXShape( const css::uno::Reference< css::uno::XInterface >& xInt );
771 
772  // retrieves the instance responsible for notifying changes in the properties of the shape associated with
773  // the SdrObject
774  //
775  // @precond
776  // There already exists an SvxShape instance associated with the SdrObject
777  // @throws css::uno::RuntimeException
778  // if there does nt yet exists an SvxShape instance associated with the SdrObject.
779  svx::PropertyChangeNotifier& getShapePropertyChangeNotifier();
780 
781  // notifies a change in the given property, to all applicable listeners registered at the associated SvxShape
782  //
783  // This method is equivalent to calling getShapePropertyChangeNotifier().notifyPropertyChange( _eProperty ),
784  // exception that it is allowed to be called when there does not yet exist an associated SvxShape - in which
785  // case the method will silently return without doing anything.
786  void notifyShapePropertyChange( const svx::ShapePropertyProviderId _eProperty ) const;
787 
788  // transformation interface for StarOfficeAPI. This implements support for
789  // homogen 3x3 matrices containing the transformation of the SdrObject. At the
790  // moment it contains a shearX, rotation and translation, but for setting all linear
791  // transforms like Scale, ShearX, ShearY, Rotate and Translate are supported.
792  //
793  // gets base transformation and rectangle of object. If it's an SdrPathObj it fills the PolyPolygon
794  // with the base geometry and returns TRUE. Otherwise it returns FALSE.
795  virtual bool TRGetBaseGeometry(basegfx::B2DHomMatrix& rMatrix, basegfx::B2DPolyPolygon& rPolyPolygon) const;
796 
797  // sets the base geometry of the object using infos contained in the homogen 3x3 matrix.
798  // If it's an SdrPathObj it will use the provided geometry information. The Polygon has
799  // to use (0,0) as upper left and will be scaled to the given size in the matrix.
800  virtual void TRSetBaseGeometry(const basegfx::B2DHomMatrix& rMatrix, const basegfx::B2DPolyPolygon& rPolyPolygon);
801 
802  // give info if object is in destruction
803  bool IsInDestruction() const;
804 
805  // return if fill is != XFILL_NONE
806  bool HasFillStyle() const;
807  bool HasLineStyle() const;
808 
809  // on import of OLE object from MS documents the BLIP size might be retrieved,
810  // the following methods are used to control it;
811  // usually this data makes no sense after the import is finished, since the object
812  // might be resized
813  const tools::Rectangle& GetBLIPSizeRectangle() const { return maBLIPSizeRectangle;}
814  void SetBLIPSizeRectangle( const tools::Rectangle& aRect );
815 
816  // #i121917#
817  virtual bool HasText() const;
818 
819  bool Equals(const SdrObject&) const;
820 
821  virtual void dumpAsXml(xmlTextWriterPtr pWriter) const;
822 
824  virtual bool IsTextBox() const;
825 
826  void SetEmptyPresObj(bool bEpt);
827  bool IsEmptyPresObj() const { return m_bEmptyPresObj;}
828  void SetNotVisibleAsMaster(bool bFlg);
829  bool IsNotVisibleAsMaster() const { return m_bNotVisibleAsMaster;}
830  void SetUserCall(SdrObjUserCall* pUser);
831  SdrObjUserCall* GetUserCall() const { return m_pUserCall;}
833  void SetDoNotInsertIntoPageAutomatically(bool bSet);
835  bool IsDoNotInsertIntoPageAutomatically() const { return mbDoNotInsertIntoPageAutomatically;}
836 
837  // Warning: this method should only be used if you really know what you're doing
838  sal_uInt32 GetOrdNumDirect() const { return m_nOrdNum;}
839 
840  // #i25616#
841  bool DoesSupportTextIndentingOnLineWidthChange() const { return mbSupportTextIndentingOnLineWidthChange;}
842 
843  const Point& GetAnchorPos() const;
844 
845  // #i25616#
846  bool LineIsOutsideGeometry() const { return mbLineIsOutsideGeometry;}
847 
848  // Set the position in the navigation position to the given value.
849  // This method is typically used only by the model after a change to
850  // the navigation order.
851  // This method does not change the navigation position of other
852  // objects.
853  // Use SdrObjList::SetObjectNavigationPosition() instead.
854  void SetNavigationPosition (const sal_uInt32 nPosition);
855 
868  virtual void setUnoShape( const css::uno::Reference< css::drawing::XShape >& _rxUnoShape );
869 
870  const css::uno::WeakReference< css::drawing::XShape >& getWeakUnoShape() const { return maWeakUnoShape; }
871 
872  void setSuitableOutlinerBg(Outliner& rOutliner) const;
873  // If fillstyle is drawing::FillStyle_BITMAP, returns the graphic.
874  const Graphic* getFillGraphic() const;
875 
876  const OUString& getHyperlink() const { return msHyperlink; }
877  void setHyperlink(const OUString& sHyperlink) { msHyperlink = sHyperlink; }
878 
879  void ForceMetricToItemPoolMetric(basegfx::B2DPolyPolygon& rPolyPolygon) const noexcept;
880 
881 protected:
882  mutable tools::Rectangle m_aOutRect; // surrounding rectangle for Paint (incl. LineWidth, ...)
883  Point m_aAnchor; // anchor position (Writer)
885  std::unique_ptr<SdrObjPlusData>
886  m_pPlusData; // Broadcaster, UserData, connectors, ... (this is the Bitsack)
887  // object is only pointing to another one
888  bool m_bVirtObj : 1;
889  bool m_bSnapRectDirty : 1;
890  // the following flags will be streamed
891  bool m_bMovProt : 1; // if true, the position is protected
892  bool m_bSizProt : 1; // if true, the size is protected
893  // If bEmptyPresObj is true, it is a presentation object that has no content yet.
894  // The flag's default value is false.
895  // The management is done by the application.
896  // Neither assign operator nor cloning copies the flag!
897  // The flag is persistent.
898  bool m_bEmptyPresObj : 1; // empty presentation object (Draw)
899  // if true, object is invisible as object of the MasterPage
900  bool m_bNotVisibleAsMaster : 1;
901  // if true, the object is closed, i.e. no line, arc...
902  bool m_bClosedObj : 1;
903  bool m_bIsEdge : 1;
904  bool m_bIs3DObj : 1;
905  bool m_bIsUnoObj : 1;
906  // #i25616#
907  bool mbLineIsOutsideGeometry : 1;
908  // #i25616#
909  bool mbSupportTextIndentingOnLineWidthChange : 1;
910 
911  virtual ~SdrObject() override;
912 
913  virtual std::unique_ptr<sdr::properties::BaseProperties> CreateObjectSpecificProperties();
914 
915  virtual std::unique_ptr<sdr::contact::ViewContact> CreateObjectSpecificViewContact();
916 
917  tools::Rectangle ImpDragCalcRect(const SdrDragStat& rDrag) const;
918 
919  // for GetDragComment
920  OUString ImpGetDescriptionStr(TranslateId pStrCacheID) const;
921 
922  void ImpForcePlusData();
923 
924  OUString GetMetrStr(tools::Long nVal) const;
925 
930  virtual std::unique_ptr<SdrObjGeoData> NewGeoData() const;
931  virtual void SaveGeoData(SdrObjGeoData& rGeo) const;
932  virtual void RestoreGeoData(const SdrObjGeoData& rGeo);
933 
934  // internal versions
935  const SfxItemSet& GetObjectItemSet() const;
936  void SetObjectItem(const SfxPoolItem& rItem);
937  void SetObjectItemSet(const SfxItemSet& rSet);
938  const SfxPoolItem& GetObjectItem(const sal_uInt16 nWhich) const;
939  template<class T> const T& GetObjectItem( TypedWhichId<T> nWhich ) const
940  {
941  return static_cast<const T&>(GetObjectItem(sal_uInt16(nWhich)));
942  }
943 
944  const SfxItemSet* getBackgroundFillSet() const;
945 
946  virtual void InternalSetStyleSheet(SfxStyleSheet* pNewStyleSheet, bool bDontRemoveHardAttr, bool bBroadcast);
947 
948 private:
949  struct Impl;
950  std::unique_ptr<Impl> mpImpl;
951  SdrObjList* mpParentOfSdrObject; // list that includes this object
952  sal_uInt32 m_nOrdNum; // order number of the object in the list
953  std::unique_ptr<SfxGrabBagItem> m_pGrabBagItem; // holds the GrabBagItem property
954  // Position in the navigation order. SAL_MAX_UINT32 when not used.
957  bool m_bNoPrint : 1; // if true, the object is not printed.
958  bool mbVisible : 1; // if false, the object is not visible on screen (but maybe on printer, depending on bNoprint
959  bool m_bMarkProt : 1; // marking forbidden, persistent
960  // on import of OLE object from MS documents the BLIP size might be retrieved,
961  // in this case the following member is initialized as nonempty rectangle
963  std::unique_ptr<sdr::properties::BaseProperties>
965  std::unique_ptr<sdr::contact::ViewContact>
967 
968  // do not use directly, always use getSvxShape() if you have to!
970  css::uno::WeakReference< css::drawing::XShape >
972  // HACK: Do not automatically insert newly created object into a page.
973  // The user needs to do it manually later.
975  // Hyperlink for the whole shape
976  OUString msHyperlink;
977 
978  // only for internal use!
979  SvxShape* getSvxShape();
980 
981  SdrObject( const SdrObject& ) = delete;
982 };
983 
985 {
987  {
988  SdrObject::Free(obj);
989  }
990 };
991 
993 {
997 };
998 
1008 {
1009 public:
1010  static SdrObject* MakeNewObject(
1011  SdrModel& rSdrModel,
1012  SdrInventor nInventor,
1013  SdrObjKind nObjIdentifier,
1014  const tools::Rectangle* pSnapRect = nullptr);
1015 
1016  static void InsertMakeObjectHdl(Link<SdrObjCreatorParams, SdrObject*> const & rLink);
1017  static void RemoveMakeObjectHdl(Link<SdrObjCreatorParams, SdrObject*> const & rLink);
1018 
1019 private:
1020  static SVX_DLLPRIVATE SdrObject* CreateObjectFromFactory(
1021  SdrModel& rSdrModel,
1022  SdrInventor nInventor,
1023  SdrObjKind nIdentifier);
1024 
1025  SdrObjFactory() = delete;
1026 };
1027 
1028 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
User data of a drawing object, e.g.
Definition: svdobj.hxx:151
void operator()(SdrObject *obj)
Definition: svdobj.hxx:986
bool IsNotVisibleAsMaster() const
Definition: svdobj.hxx:829
bool IsClosedObj() const
Definition: svdobj.hxx:734
void dumpAsXml(xmlTextWriterPtr pWriter) const
sal_uInt16 nIdentifier
Definition: svdobj.hxx:154
SAL_DLLPRIVATE Degree100 GetRotateAngle() const
struct _xmlTextWriter * xmlTextWriterPtr
sal_uInt32 m_nOrdNum
Definition: svdobj.hxx:952
void setHyperlink(const OUString &sHyperlink)
Definition: svdobj.hxx:877
bool DoesSupportTextIndentingOnLineWidthChange() const
Definition: svdobj.hxx:841
bool IsEdgeObj() const
Definition: svdobj.hxx:741
long Long
SdrUserCallType
Definition: svdobj.hxx:113
const css::uno::WeakReference< css::drawing::XShape > & getWeakUnoShape() const
Definition: svdobj.hxx:870
bool IsInserted() const
Definition: svdobj.hxx:739
SdrInventor nInventor
Definition: svdobj.hxx:994
const SfxListener & operator=(const SfxListener &)=delete
SdrInventor
Definition: svdobj.hxx:99
const OUString & getHyperlink() const
Definition: svdobj.hxx:876
tools::Rectangle m_aOutRect
Definition: svdobj.hxx:882
css::uno::WeakReference< css::drawing::XShape > maWeakUnoShape
Definition: svdobj.hxx:971
static void Free(SdrObject *&_rpObject)
Definition: svdobj.cxx:471
bool bSizProt
Definition: svdobj.hxx:181
All geometrical data of an arbitrary object for use in undo/redo.
Definition: svdobj.hxx:173
const SdrObject * mpFillGeometryDefiningShape
Definition: svdobj.hxx:282
SdrObjKind nObjIdentifier
Definition: svdobj.hxx:995
SdrObjKind
Definition: svdobjkind.hxx:24
bool IsVisible() const
Definition: svdobj.hxx:751
Rectangle objects (rectangle, circle, ...)
Definition: svdorect.hxx:38
Provides information about various ZObject properties.
Definition: svdobj.hxx:195
SdrObjList * mpParentOfSdrObject
Definition: svdobj.hxx:951
void setFillGeometryDefiningShape(const SdrObject *pNew)
Definition: svdobj.hxx:283
UNOTOOLS_DLLPUBLIC bool GetTitle(OUString const &url, OUString *title)
OUString msHyperlink
Definition: svdobj.hxx:976
const T & GetMergedItem(TypedWhichId< T > nWhich) const
Definition: svdobj.hxx:608
const T & GetObjectItem(TypedWhichId< T > nWhich) const
Definition: svdobj.hxx:939
bool LineIsOutsideGeometry() const
Definition: svdobj.hxx:846
virtual void SetTitle(const OUString &rNewTitle) override
virtual OUString GetName() const override
SdrLayerID mnLayerID
Definition: svdobj.hxx:956
bool Equals(const SfxItemSet &, bool bComparePool) const
static void GetPoint(const tools::Polygon &rPoly, const std::vector< double > &rDistances, const double &fX, double &fx1, double &fy1)
const tools::Rectangle & GetBLIPSizeRectangle() const
Definition: svdobj.hxx:813
sal_uInt32 GetOrdNumDirect() const
Definition: svdobj.hxx:838
Point Rotate(const Point &rPoint, Degree10 nOrientation, const Point &rOrigin)
DocumentType eType
SdrLayerID mnLayerID
Definition: svdobj.hxx:185
bool IsDoNotInsertIntoPageAutomatically() const
Definition: svdobj.hxx:835
std::unique_ptr< sdr::properties::BaseProperties > mpProperties
Definition: svdobj.hxx:964
Reference< XAnimationNode > Clone(const Reference< XAnimationNode > &xSourceNode, const SdPage *pSource, const SdPage *pTarget)
sal_uInt32 mnNavigationPosition
Definition: svdobj.hxx:955
bool IsPrintable() const
Definition: svdobj.hxx:749
SdrObjUserCall * m_pUserCall
Definition: svdobj.hxx:884
bool IsResizeProtect() const
Definition: svdobj.hxx:747
const SdrLayerIDSet * pVisiLayer
Definition: svdobj.hxx:139
Abstract DrawObject.
Definition: svdobj.hxx:259
bool bNoPrint
Definition: svdobj.hxx:182
SdrModel & rSdrModel
Definition: svdobj.hxx:996
bool operator!=(const ScCsvLayoutData &rData1, const ScCsvLayoutData &rData2)
SdrModel & mrSdrModelFromSdrObject
Definition: svdobj.hxx:289
bool IsMarkProtect() const
Definition: svdobj.hxx:753
Point aAnchor
Definition: svdobj.hxx:177
SvxShape * mpSvxShape
Definition: svdobj.hxx:969
Point m_aAnchor
Definition: svdobj.hxx:883
bool bMovProt
Definition: svdobj.hxx:180
bool IsUnoObj() const
Definition: svdobj.hxx:743
bool mbVisible
virtual void GetDescription(OUString &rName) override
sal_uInt16 GetId() const
Definition: svdobj.hxx:167
std::unique_ptr< SfxGrabBagItem > m_pGrabBagItem
Definition: svdobj.hxx:953
bool mbVisible
Definition: svdobj.hxx:184
#define SVXCORE_DLLPUBLIC
Definition: svxdllapi.h:35
bool IsVirtualObj() const
Definition: svdobj.hxx:729
sal_uInt32 GetHdlCount() const
FIXME: The virtual object is not yet fully implemented and tested.
Definition: svdovirt.hxx:29
tools::Rectangle aBoundRect
Definition: svdobj.hxx:176
std::unique_ptr< SdrObject, SdrObjectFreeOp > SdrObjectUniquePtr
Definition: svdobj.hxx:97
PointerStyle
std::unique_ptr< SdrGluePointList > pGPL
Definition: svdobj.hxx:179
virtual bool shouldKeepAspectRatio() const
Whether the aspect ratio should be kept by default when resizing.
Definition: svdobj.hxx:756
std::unique_ptr< sdr::contact::ViewContact > mpViewContact
Definition: svdobj.hxx:966
tools::Rectangle maBLIPSizeRectangle
Definition: svdobj.hxx:962
std::unique_ptr< Impl > mpImpl
Definition: svdobj.hxx:949
sal_uInt16 nTol
Definition: svdobj.hxx:141
A SdrPage contains exactly one SdrObjList and a description of the physical page dimensions (size / m...
Definition: svdpage.hxx:373
SdrCreateCmd
Definition: svdtypes.hxx:26
helper class for notifying XPropertyChangeListeners
SdrInventor nInventor
Definition: svdobj.hxx:153
std::unique_ptr< SdrObjPlusData > m_pPlusData
Definition: svdobj.hxx:886
SdrInventor GetInventor() const
Definition: svdobj.hxx:166
#define SVX_DLLPRIVATE
Definition: svxdllapi.h:30
Whoever creates his own objects must set a link in the SdrObjFactory class.
Definition: svdobj.hxx:1007
bool operator==(const ScCsvLayoutData &rData1, const ScCsvLayoutData &rData2)
SdrObjUserCall * GetUserCall() const
Definition: svdobj.hxx:831
bool Is3DObj() const
Definition: svdobj.hxx:742
bool bClosedObj
Definition: svdobj.hxx:183
const SdrPageView * pPageView
Definition: svdobj.hxx:140
bool mbDoNotInsertIntoPageAutomatically
Definition: svdobj.hxx:974
bool IsMoveProtect() const
Definition: svdobj.hxx:745
const tools::Rectangle & GetLogicRect() const
sal_Int16 nValue
Definition: fmsrccfg.cxx:81
const SdrObject * getFillGeometryDefiningShape() const
Definition: svdobj.hxx:285
bool IsEmptyPresObj() const
Definition: svdobj.hxx:827