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