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>
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>
39
40#include <unordered_set>
41
42class SfxBroadcaster;
43class AutoTimer;
44class E3dObject;
45class E3dScene;
47class Outliner;
48class SdrOutliner;
49class SdrDragStat;
50class SdrHdl;
51class SdrHdlList;
52class SdrItemPool;
53class SdrModel;
54class SdrObjList;
55class SdrObject;
56class SdrPage;
57class SdrPageView;
58class SdrTextObj;
59class SdrView;
60class SfxItemSet;
61class SfxGrabBagItem;
62class SfxSetItem;
63class SfxStyleSheet;
64class SfxUndoAction;
67class SfxItemPool;
68namespace tools { class PolyPolygon; }
69class SfxPoolItem;
70class SdrVirtObj;
71class SdrDragView;
73class SdrObjPlusData;
74class SdrGluePoint;
76class SdrLayerIDSet;
77class Fraction;
78enum class PointerStyle;
79class Graphic;
80class SvxShape;
81namespace svx { enum class ShapePropertyProviderId; }
82
83namespace basegfx
84{
85 class B2DPoint;
86 class B2DPolyPolygon;
87 class B2DHomMatrix;
88}
89
90namespace sdr { class ObjectUser; }
91namespace sdr::properties { class BaseProperties; }
92namespace sdr::contact { class ViewContact; }
93
94namespace svx { class PropertyChangeNotifier; }
95namespace com::sun::star::drawing { class XShape; }
96namespace svx::diagram { class IDiagramHelper; }
97
98
99enum 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
113enum 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{
130public:
131 virtual ~SdrObjUserCall();
132 virtual void Changed(const SdrObject& rObj, SdrUserCallType eType, const tools::Rectangle& rOldBoundRect);
133 virtual sal_Int32 GetPDFAnchorStructureElementId(SdrObject const& rObj);
134};
135
137{
138public:
142 sal_uInt16 nTol;
143
145};
146
153{
155 sal_uInt16 nIdentifier;
156
157 void operator=(const SdrObjUserData& rData) = delete;
158 bool operator==(const SdrObjUserData& rData) const = delete;
159 bool operator!=(const SdrObjUserData& rData) const = delete;
160
161public:
162 SdrObjUserData(SdrInventor nInv, sal_uInt16 nId);
163 SdrObjUserData(const SdrObjUserData& rData);
164 virtual ~SdrObjUserData();
165
166 virtual std::unique_ptr<SdrObjUserData> Clone(SdrObject* pObj1) const = 0; // #i71039# NULL -> 0
167 SdrInventor GetInventor() const { return nInventor;}
168 sal_uInt16 GetId() const { return nIdentifier;}
169};
170
175{
176public:
179 std::unique_ptr<SdrGluePointList>
187
188public:
190 virtual ~SdrObjGeoData();
191};
192
197{
198public:
199 bool bMoveAllowed : 1; // if false, object cannot be moved
200 bool bResizeFreeAllowed : 1; // if false, object cannot be resized freely
201 bool bResizePropAllowed : 1; // if false, object cannot even be resized proportionally
202 bool bRotateFreeAllowed : 1; // if false, object cannot be rotated freely
203 bool bRotate90Allowed : 1; // if false, object cannot even be rotated in 90 degree steps
204 bool bMirrorFreeAllowed : 1; // if false, object cannot be mirrored freely
205 bool bMirror45Allowed : 1; // if false, object cannot even be mirrored over axes in a 45 degree raster
206 bool bMirror90Allowed : 1; // if false, object cannot even be mirrored over axes in a 90 degree raster
207 bool bTransparenceAllowed : 1; // if false, object does not have an interactive transparence control
208 bool bShearAllowed : 1; // if false, object cannot be sheared
210 bool bNoOrthoDesired : 1; // is true for Rect; is false for BMP, MTF
211 bool bNoContortion : 1; // if false, contortion not possible (for crook, only true for PathObj and grouped PathObjs)
212 bool bCanConvToPath : 1; // if false, no conversion into PathObj possible
213 bool bCanConvToPoly : 1; // if false, no conversion into PolyObj possible
214 bool bCanConvToContour : 1; // if false, no conversion down to whole contour possible
215 bool bCanConvToPathLineToArea : 1; // if false, no conversion into PathObj with transformation from LineToArea possible
216 bool bCanConvToPolyLineToArea : 1; // if false, no conversion into PolyObj with transformation from LineToArea possible
217
219};
220
222//
223// SdrObject
224// SdrAttrObj
225// E3dObject
226// E3dCompoundObject
227// E3dCubeObj
228// E3dExtrudeObj
229// E3dLatheObj
230// E3dPolygonObj
231// E3dSphereObj
232// E3dScene
233// SdrTextObj
234// SdrObjCustomShape
235// OCustomShape
236// SdrEdgeObj
237// SdrMeasureObj
238// SdrPathObj
239// SdrRectObj
240// SdrCaptionObj
241// SdrCircObj
242// SdrGrafObj
243// SdrMediaObj
244// SdrOle2Obj
245// OOle2Obj
246// SdrUnoObj
247// DlgEdObj
248// DlgEdForm
249// OUnoObject
250// FmFormObj
251// SdrTableObj
252// SdrObjGroup
253// SdrPageObj
254// SdrVirtObj
255// SwDrawVirtObj
256// SwVirtFlyDrawObj
257// SwFlyDrawObj
258
261{
262public:
263 // Basic DiagramHelper support
264 virtual const std::shared_ptr< svx::diagram::IDiagramHelper >& getDiagramHelper() const;
265 bool isDiagram() const { return bool(getDiagramHelper()); }
266
267private:
268 friend class SdrObjListIter;
269 friend class SdrObjList;
270 friend class SdrVirtObj;
271 friend class SdrRectObj;
272
273 // OperationSmiley: Allow at each SdrObject to set a FillGeometryDefiningShape,
274 // so that for SdrObjects where this is set, the definition of a defined FillStyle
275 // will use this, but the local geometry will be filled. This allows to fill
276 // multiple shapes with a unified fill, e.g think about CustomShapes.
277 // Currently this is *only* used for CustomShapes, but may be developed to get a
278 // common mechanism - usages for it are easy to be found. The current limitation
279 // to CustomShapes allows to think about these SdrObjects to 'vanish' during the
280 // lifetime of 'this' - the SdrObjects without SdrPage and SdrModel are used as helper
281 // objects for SdrObjCustomShape and thus their lifetime is limited to the lifetime
282 // of this local object. For unifying this mechanism, some weak reference of
283 // SdrObjects would have to be thought about (not easy with the current implementation).
284 // So - allow *only* EnhancedCustomShape2d (which creates the visualizations for
285 // SdrObjCustomShape) to set this. Already allow unified read to use it - thus already
286 // allowing to implement as standard case for all kinds of SdrObjects.
289 void setFillGeometryDefiningShape(const SdrObject* pNew) { mpFillGeometryDefiningShape = pNew; }
290public:
291 const SdrObject* getFillGeometryDefiningShape() const { return mpFillGeometryDefiningShape; }
292
293private:
294 // the SdrModel this objects was created with, unchanged during SdrObject lifetime
296
297public:
298 // A SdrObject always needs a SdrModel for lifetime (Pool, ...)
299 SdrObject(SdrModel& rSdrModel);
300 // Copy constructor
301 SdrObject(SdrModel& rSdrModel, SdrObject const & rSource);
302
303 virtual void SAL_CALL acquire() noexcept override final;
304 virtual void SAL_CALL release() noexcept override final;
305
306 // SdrModel/SdrPage access on SdrObject level
307 SdrPage* getSdrPageFromSdrObject() const;
308 SdrModel& getSdrModelFromSdrObject() const;
309
310 // access to possible children (SdrObjGroup/E3dScene)
311 virtual SdrObjList* getChildrenOfSdrObject() const;
312
313 // access to parent
314 SdrObjList* getParentSdrObjListFromSdrObject() const;
315 SdrObject* getParentSdrObjectFromSdrObject() const;
316
317private:
318 SVX_DLLPRIVATE void setParentOfSdrObject(SdrObjList* pNew);
319
320public:
321 // react on model/page change
322 virtual void handlePageChange(SdrPage* pOldPage, SdrPage* pNewPage);
323
324 void AddObjectUser(sdr::ObjectUser& rNewUser);
325 void RemoveObjectUser(sdr::ObjectUser& rOldUser);
326
327 sdr::contact::ViewContact& GetViewContact() const;
328
329 virtual sdr::properties::BaseProperties& GetProperties() const;
330
331 // DrawContact support: Methods for handling Object changes
332 void ActionChanged() const;
333
334 static SdrItemPool& GetGlobalDrawObjectItemPool();
335 void SetRelativeWidth( double nValue );
336 void SetRelativeWidthRelation( sal_Int16 eValue );
337 void SetRelativeHeight( double nValue );
338 void SetRelativeHeightRelation( sal_Int16 eValue );
339 const double* GetRelativeWidth() const;
340 sal_Int16 GetRelativeWidthRelation() const;
341 const double* GetRelativeHeight() const;
342 sal_Int16 GetRelativeHeightRelation() const;
343
348 virtual void SetBoundAndSnapRectsDirty(bool bNotMyself = false, bool bRecursive = true);
349
350 // this method is only for access from Property objects
351 virtual void SetBoundRectDirty();
352
353 SfxItemPool & GetObjectItemPool() const;
354
355 void AddListener(SfxListener& rListener);
356 void RemoveListener(SfxListener& rListener);
357
358 void AddReference(SdrVirtObj& rVrtObj);
359 void DelReference(SdrVirtObj& rVrtObj);
360 virtual SdrInventor GetObjInventor() const;
361 virtual SdrObjKind GetObjIdentifier() const;
362 virtual void TakeObjInfo(SdrObjTransformInfoRec& rInfo) const;
363
364 // Layer interface
365 virtual SdrLayerID GetLayer() const;
366 virtual void NbcSetLayer(SdrLayerID nLayer);
367 virtual void SetLayer(SdrLayerID nLayer);
368 // renaming GetSdrLayerIDSet -> getMergedHierarchySdrLayerIDSet to make clear what happens here. rSet needs to be empty.
369 void getMergedHierarchySdrLayerIDSet(SdrLayerIDSet& rSet) const;
370
371 void SendUserCall(SdrUserCallType eUserCall, const tools::Rectangle& rBoundRect) const;
372
373 // #i68101#
374 // An object may have a user-set Name (Get/SetName()), e.g SdrGrafObj, SdrObjGroup
375 // or SdrOle2Obj.
376 // It may also have a Title and a Description for accessibility purposes.
377 virtual void SetName(const OUString& rStr, const bool bSetChanged = true);
378 virtual const OUString & GetName() const;
379 void MakeNameUnique();
380 void MakeNameUnique(std::unordered_set<OUString>& rNameSet);
381 virtual void SetTitle(const OUString& rStr);
382 virtual OUString GetTitle() const;
383 virtual void SetDescription(const OUString& rStr);
384 virtual OUString GetDescription() const;
385
386 // for group objects
387 bool IsGroupObject() const;
388 virtual SdrObjList* GetSubList() const;
389
396 sal_uInt32 GetOrdNum() const;
397
398 // setting the order number should only happen from the model or from the page
399 void SetOrdNum(sal_uInt32 nNum);
400
401 // GrabBagItem for interim interop purposes
402 void GetGrabBagItem(css::uno::Any& rVal) const;
403
404 virtual void SetGrabBagItem(const css::uno::Any& rVal);
405
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;
414
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;
420
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;
426
427 virtual void RecalcBoundRect();
428
429 void BroadcastObjectChange() const;
430
431 const SfxBroadcaster* GetBroadcaster() const;
432
433 // set modified-flag in the model
434 virtual void SetChanged();
435
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;
440
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;
444
445 // Returns a copy of the object. Every inherited class must reimplement this.
446 virtual rtl::Reference<SdrObject> CloneSdrObject(SdrModel& rTargetModel) const;
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)
450 {
451 rtl::Reference<SdrObject> newObj = rObj.CloneSdrObject(rTargetModel);
452 return static_cast<T*>(newObj.get());
453 }
454
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;
458
459 // TakeObjName...() is for the display in the UI, e.g. "3 frames selected"
460 virtual OUString TakeObjNameSingul() const;
461 virtual OUString TakeObjNamePlural() const;
462
466 virtual basegfx::B2DPolyPolygon TakeXorPoly() const;
467
469 virtual basegfx::B2DPolyPolygon TakeContour() const;
470
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;
486
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;
502
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;
512
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);
531
533 virtual PointerStyle GetCreatePointer() const;
534
536 virtual basegfx::B2DPolyPolygon TakeCreatePoly(const SdrDragStat& rDrag) const;
537
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);
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);
551
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);
558
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);
567
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);
576
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);
581
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 );
588
589 // rotation and shear angle
590 virtual Degree100 GetRotateAngle() const;
591 virtual Degree100 GetShearAngle(bool bVertical = false) const;
592
594 virtual sal_uInt32 GetSnapPointCount() const;
595 virtual Point GetSnapPoint(sal_uInt32 i) const;
596
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);
607
608 // get all geometrical data for undo/redo
609 virtual std::unique_ptr<SdrObjGeoData> GetGeoData() const;
610 virtual void SetGeoData(const SdrObjGeoData& rGeo);
611
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
620 {
621 return static_cast<const T&>(GetMergedItem(sal_uInt16(nWhich)));
622 }
623
624 // syntactical sugar for ItemSet accesses
625 void SetMergedItemSetAndBroadcast(const SfxItemSet& rSet, bool bClearAllItems = false);
626
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);
631
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;
637
638 virtual bool HasTextEdit() const;
639
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();
646
647 void BurnInStyleSheetAttributes();
648
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;
656
657 // Connectors
658 // (see also documentation in SvdoEdge.hxx, SdrEdgeObj, as well as SvdGlue.hxx and SvdGlEV.hxx)
659 //
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.
670
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;
675
676 // usually:
677 // 0: top-left, 1: top-right, 2: bottom-right, 3: bottom-left
678 virtual SdrGluePoint GetCornerGluePoint(sal_uInt16 nNum) const;
679
680 // list of all gluepoints, can be NULL
681 virtual const SdrGluePointList* GetGluePointList() const;
682
683 // after changing the GluePointList, one has to call the object's SendRepaintBroadcast!
684 virtual SdrGluePointList* ForceGluePointList();
685
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);
691
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;
697
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 );
708
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;
730
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;
735private:
736 rtl::Reference<SdrObject> ImpConvertToContourObj(bool bForceLineDash);
737public:
738
739 // if true, reference onto an object
740 bool IsVirtualObj() const { return m_bVirtObj;}
741
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;}
746
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(); }
751
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 ; }
767
769 virtual bool shouldKeepAspectRatio() const { return false; }
770
771 // application specific data
772 sal_uInt16 GetUserDataCount() const;
773 SdrObjUserData* GetUserData(sal_uInt16 nNum) const;
774
775 void AppendUserData(std::unique_ptr<SdrObjUserData> pData);
776
777 // removes the record from the list and performs delete (FreeMem+Dtor).
778 void DeleteUserData(sal_uInt16 nNum);
779
780 // access to the UNO representation of the shape
781 virtual css::uno::Reference< css::drawing::XShape > getUnoShape();
782
783 static SdrObject* getSdrObjectFromXShape( const css::uno::Reference< css::uno::XInterface >& xInt );
784
785 // retrieves the instance responsible for notifying changes in the properties of the shape associated with
786 // the SdrObject
787 //
788 // @precond
789 // There already exists an SvxShape instance associated with the SdrObject
790 // @throws css::uno::RuntimeException
791 // if there does nt yet exists an SvxShape instance associated with the SdrObject.
792 svx::PropertyChangeNotifier& getShapePropertyChangeNotifier();
793
794 // notifies a change in the given property, to all applicable listeners registered at the associated SvxShape
795 //
796 // This method is equivalent to calling getShapePropertyChangeNotifier().notifyPropertyChange( _eProperty ),
797 // exception that it is allowed to be called when there does not yet exist an associated SvxShape - in which
798 // case the method will silently return without doing anything.
799 void notifyShapePropertyChange( const svx::ShapePropertyProviderId _eProperty ) const;
800
801 // transformation interface for StarOfficeAPI. This implements support for
802 // homogen 3x3 matrices containing the transformation of the SdrObject. At the
803 // moment it contains a shearX, rotation and translation, but for setting all linear
804 // transforms like Scale, ShearX, ShearY, Rotate and Translate are supported.
805 //
806 // gets base transformation and rectangle of object. If it's an SdrPathObj it fills the PolyPolygon
807 // with the base geometry and returns TRUE. Otherwise it returns FALSE.
808 virtual bool TRGetBaseGeometry(basegfx::B2DHomMatrix& rMatrix, basegfx::B2DPolyPolygon& rPolyPolygon) const;
809
810 // sets the base geometry of the object using infos contained in the homogen 3x3 matrix.
811 // If it's an SdrPathObj it will use the provided geometry information. The Polygon has
812 // to use (0,0) as upper left and will be scaled to the given size in the matrix.
813 virtual void TRSetBaseGeometry(const basegfx::B2DHomMatrix& rMatrix, const basegfx::B2DPolyPolygon& rPolyPolygon);
814
815 // give info if object is in destruction
816 bool IsInDestruction() const;
817
818 // return if fill is != XFILL_NONE
819 bool HasFillStyle() const;
820 bool HasLineStyle() const;
821
822 // on import of OLE object from MS documents the BLIP size might be retrieved,
823 // the following methods are used to control it;
824 // usually this data makes no sense after the import is finished, since the object
825 // might be resized
826 const tools::Rectangle& GetBLIPSizeRectangle() const { return maBLIPSizeRectangle;}
827 void SetBLIPSizeRectangle( const tools::Rectangle& aRect );
828
829 // #i121917#
830 virtual bool HasText() const;
831
832 bool Equals(const SdrObject&) const;
833
834 virtual void dumpAsXml(xmlTextWriterPtr pWriter) const;
835
837 virtual bool IsTextBox() const;
838
839 void SetEmptyPresObj(bool bEpt);
840 bool IsEmptyPresObj() const { return m_bEmptyPresObj;}
841 void SetNotVisibleAsMaster(bool bFlg);
842 bool IsNotVisibleAsMaster() const { return m_bNotVisibleAsMaster;}
843 void SetUserCall(SdrObjUserCall* pUser);
844 SdrObjUserCall* GetUserCall() const { return m_pUserCall;}
846 void SetDoNotInsertIntoPageAutomatically(bool bSet);
848 bool IsDoNotInsertIntoPageAutomatically() const { return mbDoNotInsertIntoPageAutomatically;}
849
850 // Warning: this method should only be used if you really know what you're doing
851 sal_uInt32 GetOrdNumDirect() const { return m_nOrdNum;}
852
853 // #i25616#
854 bool DoesSupportTextIndentingOnLineWidthChange() const { return mbSupportTextIndentingOnLineWidthChange;}
855
856 const Point& GetAnchorPos() const;
857
858 // #i25616#
859 bool LineIsOutsideGeometry() const { return mbLineIsOutsideGeometry;}
860
861 // Set the position in the navigation position to the given value.
862 // This method is typically used only by the model after a change to
863 // the navigation order.
864 // This method does not change the navigation position of other
865 // objects.
866 // Use SdrObjList::SetObjectNavigationPosition() instead.
867 void SetNavigationPosition (const sal_uInt32 nPosition);
868
881 virtual void setUnoShape( const css::uno::Reference< css::drawing::XShape >& _rxUnoShape );
882
883 const css::uno::WeakReference< css::drawing::XShape >& getWeakUnoShape() const { return maWeakUnoShape; }
884
885 // return true if a bg was set, false otherwise
886 bool setSuitableOutlinerBg(Outliner& rOutliner) const;
887 // If fillstyle is drawing::FillStyle_BITMAP, returns the graphic.
888 const Graphic* getFillGraphic() const;
889
890 const OUString& getHyperlink() const { return msHyperlink; }
891 void setHyperlink(const OUString& sHyperlink) { msHyperlink = sHyperlink; }
892
893 void ForceMetricToItemPoolMetric(basegfx::B2DPolyPolygon& rPolyPolygon) const noexcept;
894
895protected:
896 const tools::Rectangle& getOutRectangle() const;
897 void setOutRectangleConst(tools::Rectangle const& rRectangle) const; // need to do something about this
898 void setOutRectangle(tools::Rectangle const& rRectangle);
899 void resetOutRectangle();
900 void moveOutRectangle(sal_Int32 nXDelta, sal_Int32 nYDelta);
901
902 mutable tools::Rectangle m_aOutRect; // surrounding rectangle for Paint (incl. LineWidth, ...)
903 Point m_aAnchor; // anchor position (Writer)
905 std::unique_ptr<SdrObjPlusData>
906 m_pPlusData; // Broadcaster, UserData, connectors, ... (this is the Bitsack)
907 // object is only pointing to another one
908 bool m_bVirtObj : 1;
910 // the following flags will be streamed
911 bool m_bMovProt : 1; // if true, the position is protected
912 bool m_bSizProt : 1; // if true, the size is protected
913 // If bEmptyPresObj is true, it is a presentation object that has no content yet.
914 // The flag's default value is false.
915 // The management is done by the application.
916 // Neither assign operator nor cloning copies the flag!
917 // The flag is persistent.
918 bool m_bEmptyPresObj : 1; // empty presentation object (Draw)
919 // if true, object is invisible as object of the MasterPage
921 // if true, the object is closed, i.e. no line, arc...
922 bool m_bClosedObj : 1;
923 bool m_bIsEdge : 1;
924 bool m_bIs3DObj : 1;
925 bool m_bIsUnoObj : 1;
926 // #i25616#
928 // #i25616#
930
931 virtual ~SdrObject() override;
932
933 virtual std::unique_ptr<sdr::properties::BaseProperties> CreateObjectSpecificProperties();
934
935 virtual std::unique_ptr<sdr::contact::ViewContact> CreateObjectSpecificViewContact();
936
937 tools::Rectangle ImpDragCalcRect(const SdrDragStat& rDrag) const;
938
939 // for GetDragComment
940 OUString ImpGetDescriptionStr(TranslateId pStrCacheID) const;
941
942 void ImpForcePlusData();
943
944 OUString GetMetrStr(tools::Long nVal) const;
945
950 virtual std::unique_ptr<SdrObjGeoData> NewGeoData() const;
951 virtual void SaveGeoData(SdrObjGeoData& rGeo) const;
952 virtual void RestoreGeoData(const SdrObjGeoData& rGeo);
953
954 // internal versions
955 const SfxItemSet& GetObjectItemSet() const;
956 void SetObjectItem(const SfxPoolItem& rItem);
957 void SetObjectItemSet(const SfxItemSet& rSet);
958 const SfxPoolItem& GetObjectItem(const sal_uInt16 nWhich) const;
959 template<class T> const T& GetObjectItem( TypedWhichId<T> nWhich ) const
960 {
961 return static_cast<const T&>(GetObjectItem(sal_uInt16(nWhich)));
962 }
963
964 const SfxItemSet* getBackgroundFillSet() const;
965
966 virtual void InternalSetStyleSheet(SfxStyleSheet* pNewStyleSheet, bool bDontRemoveHardAttr, bool bBroadcast);
967
968private:
969 struct Impl;
970 std::unique_ptr<Impl> mpImpl;
971 SdrObjList* mpParentOfSdrObject; // list that includes this object
972 sal_uInt32 m_nOrdNum; // order number of the object in the list
973 std::unique_ptr<SfxGrabBagItem> m_pGrabBagItem; // holds the GrabBagItem property
974 // Position in the navigation order. SAL_MAX_UINT32 when not used.
977 bool m_bNoPrint : 1; // if true, the object is not printed.
978 bool mbVisible : 1; // if false, the object is not visible on screen (but maybe on printer, depending on bNoprint
979 bool m_bMarkProt : 1; // marking forbidden, persistent
980 // on import of OLE object from MS documents the BLIP size might be retrieved,
981 // in this case the following member is initialized as nonempty rectangle
983 std::unique_ptr<sdr::properties::BaseProperties>
985 std::unique_ptr<sdr::contact::ViewContact>
987
988 // do not use directly, always use getSvxShape() if you have to, because not all
989 // SdrObjects have an associated SvxShape subclass (e.g. reportdesign)
991 css::uno::WeakReference< css::drawing::XShape >
993
994 // HACK: Do not automatically insert newly created object into a page.
995 // The user needs to do it manually later.
997 // Hyperlink for the whole shape
998 OUString msHyperlink;
999
1000 // only for internal use!
1001 SvxShape* getSvxShape();
1002
1003 SdrObject( const SdrObject& ) = delete;
1004};
1005
1007inline const E3dScene* DynCastE3dScene(const SdrObject* p) { return DynCastE3dScene(const_cast<SdrObject*>(p)); }
1009inline const E3dObject* DynCastE3dObject(const SdrObject* p) { return DynCastE3dObject(const_cast<SdrObject*>(p)); }
1011inline const SdrTextObj* DynCastSdrTextObj(const SdrObject* p) { return DynCastSdrTextObj(const_cast<SdrObject*>(p)); }
1012
1013
1015{
1019};
1020
1030{
1031public:
1032 static rtl::Reference<SdrObject> MakeNewObject(
1033 SdrModel& rSdrModel,
1034 SdrInventor nInventor,
1035 SdrObjKind nObjIdentifier,
1036 const tools::Rectangle* pSnapRect = nullptr);
1037
1038 static void InsertMakeObjectHdl(Link<SdrObjCreatorParams, rtl::Reference<SdrObject>> const & rLink);
1039 static void RemoveMakeObjectHdl(Link<SdrObjCreatorParams, rtl::Reference<SdrObject>> const & rLink);
1040
1041private:
1042 static SVX_DLLPRIVATE rtl::Reference<SdrObject> CreateObjectFromFactory(
1043 SdrModel& rSdrModel,
1044 SdrInventor nInventor,
1045 SdrObjKind nIdentifier);
1046
1047 SdrObjFactory() = delete;
1048};
1049
1050/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
static void GetPoint(const tools::Polygon &rPoly, const std::vector< double > &rDistances, const double &fX, double &fx1, double &fy1)
SAL_DLLPRIVATE Degree100 GetRotateAngle() const
const tools::Rectangle & GetLogicRect() const
Whoever creates his own objects must set a link in the SdrObjFactory class.
Definition: svdobj.hxx:1030
SdrObjFactory()=delete
All geometrical data of an arbitrary object for use in undo/redo.
Definition: svdobj.hxx:175
bool bClosedObj
Definition: svdobj.hxx:184
Point aAnchor
Definition: svdobj.hxx:178
std::unique_ptr< SdrGluePointList > pGPL
Definition: svdobj.hxx:180
bool bMovProt
Definition: svdobj.hxx:181
SdrLayerID mnLayerID
Definition: svdobj.hxx:186
bool bSizProt
Definition: svdobj.hxx:182
tools::Rectangle aBoundRect
Definition: svdobj.hxx:177
bool bNoPrint
Definition: svdobj.hxx:183
bool mbVisible
Definition: svdobj.hxx:185
const SdrPageView * pPageView
Definition: svdobj.hxx:141
const SdrLayerIDSet * pVisiLayer
Definition: svdobj.hxx:140
sal_uInt16 nTol
Definition: svdobj.hxx:142
Provides information about various ZObject properties.
Definition: svdobj.hxx:197
User data of a drawing object, e.g.
Definition: svdobj.hxx:153
sal_uInt16 nIdentifier
Definition: svdobj.hxx:155
bool operator==(const SdrObjUserData &rData) const =delete
SdrInventor GetInventor() const
Definition: svdobj.hxx:167
void operator=(const SdrObjUserData &rData)=delete
sal_uInt16 GetId() const
Definition: svdobj.hxx:168
SdrInventor nInventor
Definition: svdobj.hxx:154
virtual std::unique_ptr< SdrObjUserData > Clone(SdrObject *pObj1) const =0
bool operator!=(const SdrObjUserData &rData) const =delete
Abstract DrawObject.
Definition: svdobj.hxx:261
sal_uInt32 GetOrdNumDirect() const
Definition: svdobj.hxx:851
SdrObject(const SdrObject &)=delete
bool IsResizeProtect() const
Definition: svdobj.hxx:758
SdrObject & operator=(const SdrObject &rObj)=delete
std::unique_ptr< Impl > mpImpl
Definition: svdobj.hxx:969
SdrObjUserCall * GetUserCall() const
Definition: svdobj.hxx:844
const css::uno::WeakReference< css::drawing::XShape > & getWeakUnoShape() const
Definition: svdobj.hxx:883
bool mbLineIsOutsideGeometry
Definition: svdobj.hxx:927
const T & GetMergedItem(TypedWhichId< T > nWhich) const
Definition: svdobj.hxx:619
SdrModel & mrSdrModelFromSdrObject
Definition: svdobj.hxx:295
const tools::Rectangle & GetBLIPSizeRectangle() const
Definition: svdobj.hxx:826
const SdrObject * mpFillGeometryDefiningShape
Definition: svdobj.hxx:288
bool m_bIs3DObj
Definition: svdobj.hxx:924
tools::Rectangle maBLIPSizeRectangle
Definition: svdobj.hxx:982
const OUString & getHyperlink() const
Definition: svdobj.hxx:890
bool IsUnoObj() const
Definition: svdobj.hxx:754
bool IsDoNotInsertIntoPageAutomatically() const
Definition: svdobj.hxx:848
std::unique_ptr< SdrObjPlusData > m_pPlusData
Definition: svdobj.hxx:906
bool m_bMovProt
Definition: svdobj.hxx:911
bool isDiagram() const
Definition: svdobj.hxx:265
bool IsMoveProtect() const
Definition: svdobj.hxx:756
bool IsEdgeObj() const
Definition: svdobj.hxx:752
bool LineIsOutsideGeometry() const
Definition: svdobj.hxx:859
bool mbSupportTextIndentingOnLineWidthChange
Definition: svdobj.hxx:929
bool IsClosedObj() const
Definition: svdobj.hxx:745
Point m_aAnchor
Definition: svdobj.hxx:903
SdrObjList * mpParentOfSdrObject
Definition: svdobj.hxx:971
bool m_bMarkProt
Definition: svdobj.hxx:979
bool m_bSnapRectDirty
Definition: svdobj.hxx:909
bool IsEmptyPresObj() const
Definition: svdobj.hxx:840
const SdrObject * getFillGeometryDefiningShape() const
Definition: svdobj.hxx:291
bool DoesSupportTextIndentingOnLineWidthChange() const
Definition: svdobj.hxx:854
bool Is3DObj() const
Definition: svdobj.hxx:753
SdrObjUserCall * m_pUserCall
Definition: svdobj.hxx:904
bool IsVirtualObj() const
Definition: svdobj.hxx:740
std::unique_ptr< SfxGrabBagItem > m_pGrabBagItem
Definition: svdobj.hxx:973
virtual bool IsSdrTextObj() const
Definition: svdobj.hxx:765
bool m_bIsUnoObj
Definition: svdobj.hxx:925
sal_uInt32 m_nOrdNum
Definition: svdobj.hxx:972
virtual bool IsTextPath() const
Definition: svdobj.hxx:766
tools::Rectangle m_aOutRect
Definition: svdobj.hxx:902
bool m_bIsEdge
Definition: svdobj.hxx:923
OUString msHyperlink
Definition: svdobj.hxx:998
bool IsVisible() const
Definition: svdobj.hxx:762
std::unique_ptr< sdr::contact::ViewContact > mpViewContact
Definition: svdobj.hxx:986
bool mbVisible
Definition: svdobj.hxx:978
bool IsInserted() const
Definition: svdobj.hxx:750
bool IsPrintable() const
Definition: svdobj.hxx:760
bool IsMarkProtect() const
Definition: svdobj.hxx:764
const T & GetObjectItem(TypedWhichId< T > nWhich) const
Definition: svdobj.hxx:959
SdrObject & operator=(SdrObject &&rObj)=delete
bool m_bNoPrint
Definition: svdobj.hxx:977
bool m_bClosedObj
Definition: svdobj.hxx:922
SvxShape * mpSvxShape
Definition: svdobj.hxx:990
bool m_bVirtObj
Definition: svdobj.hxx:908
bool mbDoNotInsertIntoPageAutomatically
Definition: svdobj.hxx:996
SdrLayerID mnLayerID
Definition: svdobj.hxx:976
bool IsNotVisibleAsMaster() const
Definition: svdobj.hxx:842
css::uno::WeakReference< css::drawing::XShape > maWeakUnoShape
Definition: svdobj.hxx:992
sal_uInt32 mnNavigationPosition
Definition: svdobj.hxx:975
bool m_bSizProt
Definition: svdobj.hxx:912
std::unique_ptr< sdr::properties::BaseProperties > mpProperties
Definition: svdobj.hxx:984
bool m_bNotVisibleAsMaster
Definition: svdobj.hxx:920
bool m_bEmptyPresObj
Definition: svdobj.hxx:918
virtual bool shouldKeepAspectRatio() const
Whether the aspect ratio should be kept by default when resizing.
Definition: svdobj.hxx:769
void setHyperlink(const OUString &sHyperlink)
Definition: svdobj.hxx:891
void setFillGeometryDefiningShape(const SdrObject *pNew)
Definition: svdobj.hxx:289
A SdrPage contains exactly one SdrObjList and a description of the physical page dimensions (size / m...
Definition: svdpage.hxx:377
Rectangle objects (rectangle, circle, ...)
Definition: svdorect.hxx:39
FIXME: The virtual object is not yet fully implemented and tested.
Definition: svdovirt.hxx:30
void dumpAsXml(xmlTextWriterPtr pWriter) const
virtual std::unique_ptr< SfxItemSet > Clone(bool bItems=true, SfxItemPool *pToPool=nullptr) const
bool Equals(const SfxItemSet &, bool bComparePool) const
helper class for notifying XPropertyChangeListeners
struct _xmlTextWriter * xmlTextWriterPtr
DocumentType eType
sal_Int16 nValue
Definition: fmsrccfg.cxx:81
Point Rotate(const Point &rPoint, Degree10 nOrientation, const Point &rOrigin)
void * p
Unknown
long Long
PointerStyle
SdrObjKind nObjIdentifier
Definition: svdobj.hxx:1017
SdrModel & rSdrModel
Definition: svdobj.hxx:1018
SdrInventor nInventor
Definition: svdobj.hxx:1016
SdrInventor
Definition: svdobj.hxx:99
SdrUserCallType
Definition: svdobj.hxx:113
SVXCORE_DLLPUBLIC SdrTextObj * DynCastSdrTextObj(SdrObject *)
Definition: svdobj.cxx:3217
SVXCORE_DLLPUBLIC E3dObject * DynCastE3dObject(SdrObject *)
Definition: svdobj.cxx:3210
SVXCORE_DLLPUBLIC E3dScene * DynCastE3dScene(SdrObject *)
Definition: svdobj.cxx:3203
SdrObjKind
Definition: svdobjkind.hxx:25
SdrCreateCmd
Definition: svdtypes.hxx:27
#define SVX_DLLPRIVATE
Definition: svxdllapi.h:30
#define SVXCORE_DLLPUBLIC
Definition: svxdllapi.h:35
bool mbVisible