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; }
82namespace svx { class PropertyValueProvider; }
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 com::sun::star::drawing { class XShape; }
95namespace svx::diagram { class IDiagramHelper; }
96
97
98enum 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
112enum 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{
129public:
130 virtual ~SdrObjUserCall();
131 virtual void Changed(const SdrObject& rObj, SdrUserCallType eType, const tools::Rectangle& rOldBoundRect);
132 virtual void const* GetPDFAnchorStructureElementKey(SdrObject const& rObj);
133};
134
136{
137public:
141 sal_uInt16 nTol;
142
144};
145
152{
154 sal_uInt16 nIdentifier;
155
156 void operator=(const SdrObjUserData& rData) = delete;
157 bool operator==(const SdrObjUserData& rData) const = delete;
158 bool operator!=(const SdrObjUserData& rData) const = delete;
159
160public:
161 SdrObjUserData(SdrInventor nInv, sal_uInt16 nId);
162 SdrObjUserData(const SdrObjUserData& rData);
163 virtual ~SdrObjUserData();
164
165 virtual std::unique_ptr<SdrObjUserData> Clone(SdrObject* pObj1) const = 0; // #i71039# NULL -> 0
166 SdrInventor GetInventor() const { return nInventor;}
167 sal_uInt16 GetId() const { return nIdentifier;}
168};
169
174{
175public:
178 std::unique_ptr<SdrGluePointList>
186
187public:
189 virtual ~SdrObjGeoData();
190};
191
196{
197public:
198 bool bMoveAllowed : 1; // if false, object cannot be moved
199 bool bResizeFreeAllowed : 1; // if false, object cannot be resized freely
200 bool bResizePropAllowed : 1; // if false, object cannot even be resized proportionally
201 bool bRotateFreeAllowed : 1; // if false, object cannot be rotated freely
202 bool bRotate90Allowed : 1; // if false, object cannot even be rotated in 90 degree steps
203 bool bMirrorFreeAllowed : 1; // if false, object cannot be mirrored freely
204 bool bMirror45Allowed : 1; // if false, object cannot even be mirrored over axes in a 45 degree raster
205 bool bMirror90Allowed : 1; // if false, object cannot even be mirrored over axes in a 90 degree raster
206 bool bTransparenceAllowed : 1; // if false, object does not have an interactive transparence control
207 bool bShearAllowed : 1; // if false, object cannot be sheared
209 bool bNoOrthoDesired : 1; // is true for Rect; is false for BMP, MTF
210 bool bNoContortion : 1; // if false, contortion not possible (for crook, only true for PathObj and grouped PathObjs)
211 bool bCanConvToPath : 1; // if false, no conversion into PathObj possible
212 bool bCanConvToPoly : 1; // if false, no conversion into PolyObj possible
213 bool bCanConvToContour : 1; // if false, no conversion down to whole contour possible
214 bool bCanConvToPathLineToArea : 1; // if false, no conversion into PathObj with transformation from LineToArea possible
215 bool bCanConvToPolyLineToArea : 1; // if false, no conversion into PolyObj with transformation from LineToArea possible
216
218};
219
221//
222// SdrObject
223// SdrAttrObj
224// E3dObject
225// E3dCompoundObject
226// E3dCubeObj
227// E3dExtrudeObj
228// E3dLatheObj
229// E3dPolygonObj
230// E3dSphereObj
231// E3dScene
232// SdrTextObj
233// SdrObjCustomShape
234// OCustomShape
235// SdrEdgeObj
236// SdrMeasureObj
237// SdrPathObj
238// SdrRectObj
239// SdrCaptionObj
240// SdrCircObj
241// SdrGrafObj
242// SdrMediaObj
243// SdrOle2Obj
244// OOle2Obj
245// SdrUnoObj
246// DlgEdObj
247// DlgEdForm
248// OUnoObject
249// FmFormObj
250// SdrTableObj
251// SdrObjGroup
252// SdrPageObj
253// SdrVirtObj
254// SwDrawVirtObj
255// SwVirtFlyDrawObj
256// SwFlyDrawObj
257
260{
261public:
262 // Basic DiagramHelper support
263 virtual const std::shared_ptr< svx::diagram::IDiagramHelper >& getDiagramHelper() const;
264 bool isDiagram() const { return bool(getDiagramHelper()); }
265
266private:
267 friend class SdrObjListIter;
268 friend class SdrObjList;
269 friend class SdrVirtObj;
270 friend class SdrRectObj;
271
272 // OperationSmiley: Allow at each SdrObject to set a FillGeometryDefiningShape,
273 // so that for SdrObjects where this is set, the definition of a defined FillStyle
274 // will use this, but the local geometry will be filled. This allows to fill
275 // multiple shapes with a unified fill, e.g think about CustomShapes.
276 // Currently this is *only* used for CustomShapes, but may be developed to get a
277 // common mechanism - usages for it are easy to be found. The current limitation
278 // to CustomShapes allows to think about these SdrObjects to 'vanish' during the
279 // lifetime of 'this' - the SdrObjects without SdrPage and SdrModel are used as helper
280 // objects for SdrObjCustomShape and thus their lifetime is limited to the lifetime
281 // of this local object. For unifying this mechanism, some weak reference of
282 // SdrObjects would have to be thought about (not easy with the current implementation).
283 // So - allow *only* EnhancedCustomShape2d (which creates the visualizations for
284 // SdrObjCustomShape) to set this. Already allow unified read to use it - thus already
285 // allowing to implement as standard case for all kinds of SdrObjects.
288 void setFillGeometryDefiningShape(const SdrObject* pNew) { mpFillGeometryDefiningShape = pNew; }
289public:
290 const SdrObject* getFillGeometryDefiningShape() const { return mpFillGeometryDefiningShape; }
291
292private:
293 // the SdrModel this objects was created with, unchanged during SdrObject lifetime
295
296public:
297 // A SdrObject always needs a SdrModel for lifetime (Pool, ...)
298 SdrObject(SdrModel& rSdrModel);
299 // Copy constructor
300 SdrObject(SdrModel& rSdrModel, SdrObject const & rSource);
301
302 virtual void SAL_CALL acquire() noexcept override final;
303 virtual void SAL_CALL release() noexcept override final;
304
305 // SdrModel/SdrPage access on SdrObject level
306 SdrPage* getSdrPageFromSdrObject() const;
307 SdrModel& getSdrModelFromSdrObject() const;
308
309 // access to possible children (SdrObjGroup/E3dScene)
310 virtual SdrObjList* getChildrenOfSdrObject() const;
311
312 // access to parent
313 SdrObjList* getParentSdrObjListFromSdrObject() const;
314 SdrObject* getParentSdrObjectFromSdrObject() const;
315
316private:
317 SVX_DLLPRIVATE void setParentOfSdrObject(SdrObjList* pNew);
318
319public:
320 // react on model/page change
321 virtual void handlePageChange(SdrPage* pOldPage, SdrPage* pNewPage);
322
323 void AddObjectUser(sdr::ObjectUser& rNewUser);
324 void RemoveObjectUser(sdr::ObjectUser& rOldUser);
325
326 sdr::contact::ViewContact& GetViewContact() const;
327
328 virtual sdr::properties::BaseProperties& GetProperties() const;
329
330 // DrawContact support: Methods for handling Object changes
331 void ActionChanged() const;
332
333 static SdrItemPool& GetGlobalDrawObjectItemPool();
334 void SetRelativeWidth( double nValue );
335 void SetRelativeWidthRelation( sal_Int16 eValue );
336 void SetRelativeHeight( double nValue );
337 void SetRelativeHeightRelation( sal_Int16 eValue );
338 const double* GetRelativeWidth() const;
339 sal_Int16 GetRelativeWidthRelation() const;
340 const double* GetRelativeHeight() const;
341 sal_Int16 GetRelativeHeightRelation() const;
342
347 virtual void SetBoundAndSnapRectsDirty(bool bNotMyself = false, bool bRecursive = true);
348
349 // this method is only for access from Property objects
350 virtual void SetBoundRectDirty();
351
352 SfxItemPool & GetObjectItemPool() const;
353
354 void AddListener(SfxListener& rListener);
355 void RemoveListener(SfxListener& rListener);
356
357 void AddReference(SdrVirtObj& rVrtObj);
358 void DelReference(SdrVirtObj& rVrtObj);
359 virtual SdrInventor GetObjInventor() const;
360 virtual SdrObjKind GetObjIdentifier() const;
361 virtual void TakeObjInfo(SdrObjTransformInfoRec& rInfo) const;
362
363 // Layer interface
364 virtual SdrLayerID GetLayer() const;
365 virtual void NbcSetLayer(SdrLayerID nLayer);
366 virtual void SetLayer(SdrLayerID nLayer);
367 bool isVisibleOnAnyOfTheseLayers(const SdrLayerIDSet& rSet) const;
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 virtual void SetName(const OUString& rStr, const bool bSetChanged = true);
376 virtual const OUString & GetName() const;
377 void MakeNameUnique();
378 void MakeNameUnique(std::unordered_set<OUString>& rNameSet);
379 virtual void SetTitle(const OUString& rStr);
380 virtual OUString GetTitle() const;
381 virtual void SetDescription(const OUString& rStr);
382 virtual OUString GetDescription() const;
383 virtual void SetDecorative(bool isDecorative);
384 virtual bool IsDecorative() const;
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 = 0;
447 // helper, since Clone always return the type of the current subclass
448 template<class T>
449 static rtl::Reference<T> Clone(T const & rObj, SdrModel& rTargetModel)
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) = 0;
547 // Utility for call sites that don't have sin and cos handy
548 void NbcRotate(const Point& rRef, Degree100 nAngle);
549 virtual void NbcMirror(const Point& rRef1, const Point& rRef2);
550 virtual void NbcShear (const Point& rRef, Degree100 nAngle, double tn, bool bVShear);
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 // notifies a change in the given property, to all applicable listeners registered at the associated SvxShape
786 //
787 // This method is equivalent to calling getShapePropertyChangeNotifier().notifyPropertyChange( _eProperty ),
788 // exception that it is allowed to be called when there does not yet exist an associated SvxShape - in which
789 // case the method will silently return without doing anything.
790 void notifyShapePropertyChange( const svx::ShapePropertyProviderId _eProperty ) const;
791
792 void registerProvider( const svx::ShapePropertyProviderId _eProperty, std::unique_ptr<svx::PropertyValueProvider> propProvider );
793
794 // transformation interface for StarOfficeAPI. This implements support for
795 // homogen 3x3 matrices containing the transformation of the SdrObject. At the
796 // moment it contains a shearX, rotation and translation, but for setting all linear
797 // transforms like Scale, ShearX, ShearY, Rotate and Translate are supported.
798 //
799 // gets base transformation and rectangle of object. If it's an SdrPathObj it fills the PolyPolygon
800 // with the base geometry and returns TRUE. Otherwise it returns FALSE.
801 virtual bool TRGetBaseGeometry(basegfx::B2DHomMatrix& rMatrix, basegfx::B2DPolyPolygon& rPolyPolygon) const;
802
803 // sets the base geometry of the object using infos contained in the homogen 3x3 matrix.
804 // If it's an SdrPathObj it will use the provided geometry information. The Polygon has
805 // to use (0,0) as upper left and will be scaled to the given size in the matrix.
806 virtual void TRSetBaseGeometry(const basegfx::B2DHomMatrix& rMatrix, const basegfx::B2DPolyPolygon& rPolyPolygon);
807
808 // give info if object is in destruction
809 bool IsInDestruction() const;
810
811 // return if fill is != XFILL_NONE
812 bool HasFillStyle() const;
813 bool HasLineStyle() const;
814
815 // on import of OLE object from MS documents the BLIP size might be retrieved,
816 // the following methods are used to control it;
817 // usually this data makes no sense after the import is finished, since the object
818 // might be resized
819 const tools::Rectangle& GetBLIPSizeRectangle() const { return maBLIPSizeRectangle;}
820 void SetBLIPSizeRectangle( const tools::Rectangle& aRect );
821
822 // #i121917#
823 virtual bool HasText() const;
824
825 bool Equals(const SdrObject&) const;
826
827 virtual void dumpAsXml(xmlTextWriterPtr pWriter) const;
828
830 virtual bool IsTextBox() const;
831
832 void SetEmptyPresObj(bool bEpt);
833 bool IsEmptyPresObj() const { return m_bEmptyPresObj;}
834 void SetNotVisibleAsMaster(bool bFlg);
835 bool IsNotVisibleAsMaster() const { return m_bNotVisibleAsMaster;}
836 void SetUserCall(SdrObjUserCall* pUser);
837 SdrObjUserCall* GetUserCall() const { return m_pUserCall;}
839 void SetDoNotInsertIntoPageAutomatically(bool bSet);
841 bool IsDoNotInsertIntoPageAutomatically() const { return mbDoNotInsertIntoPageAutomatically;}
842
843 // Warning: this method should only be used if you really know what you're doing
844 sal_uInt32 GetOrdNumDirect() const { return m_nOrdNum;}
845
846 // #i25616#
847 bool DoesSupportTextIndentingOnLineWidthChange() const { return mbSupportTextIndentingOnLineWidthChange;}
848
849 const Point& GetAnchorPos() const;
850
851 // #i25616#
852 bool LineIsOutsideGeometry() const { return mbLineIsOutsideGeometry;}
853
854 // Set the position in the navigation position to the given value.
855 // This method is typically used only by the model after a change to
856 // the navigation order.
857 // This method does not change the navigation position of other
858 // objects.
859 // Use SdrObjList::SetObjectNavigationPosition() instead.
860 void SetNavigationPosition (const sal_uInt32 nPosition);
861
874 virtual void setUnoShape( const css::uno::Reference< css::drawing::XShape >& _rxUnoShape );
875
876 const css::uno::WeakReference< css::drawing::XShape >& getWeakUnoShape() const { return maWeakUnoShape; }
877
878 // return true if a bg was set, false otherwise
879 bool setSuitableOutlinerBg(Outliner& rOutliner) const;
880 // If fillstyle is drawing::FillStyle_BITMAP, returns the graphic.
881 const Graphic* getFillGraphic() const;
882
883 const OUString& getHyperlink() const { return msHyperlink; }
884 void setHyperlink(const OUString& sHyperlink) { msHyperlink = sHyperlink; }
885
886 void ForceMetricToItemPoolMetric(basegfx::B2DPolyPolygon& rPolyPolygon) const noexcept;
887
888protected:
889 const tools::Rectangle& getOutRectangle() const;
890 void setOutRectangleConst(tools::Rectangle const& rRectangle) const; // need to do something about this
891 void setOutRectangle(tools::Rectangle const& rRectangle);
892 void resetOutRectangle();
893 void moveOutRectangle(sal_Int32 nXDelta, sal_Int32 nYDelta);
894
895 mutable tools::Rectangle m_aOutRect; // surrounding rectangle for Paint (incl. LineWidth, ...)
896 Point m_aAnchor; // anchor position (Writer)
898 std::unique_ptr<SdrObjPlusData>
899 m_pPlusData; // Broadcaster, UserData, connectors, ... (this is the Bitsack)
900 // object is only pointing to another one
901 bool m_bVirtObj : 1;
903 // the following flags will be streamed
904 bool m_bMovProt : 1; // if true, the position is protected
905 bool m_bSizProt : 1; // if true, the size is protected
906 // If bEmptyPresObj is true, it is a presentation object that has no content yet.
907 // The flag's default value is false.
908 // The management is done by the application.
909 // Neither assign operator nor cloning copies the flag!
910 // The flag is persistent.
911 bool m_bEmptyPresObj : 1; // empty presentation object (Draw)
912 // if true, object is invisible as object of the MasterPage
914 // if true, the object is closed, i.e. no line, arc...
915 bool m_bClosedObj : 1;
916 bool m_bIsEdge : 1;
917 bool m_bIs3DObj : 1;
918 bool m_bIsUnoObj : 1;
919 // #i25616#
921 // #i25616#
923
924 virtual ~SdrObject() override;
925
926 virtual std::unique_ptr<sdr::properties::BaseProperties> CreateObjectSpecificProperties();
927
928 virtual std::unique_ptr<sdr::contact::ViewContact> CreateObjectSpecificViewContact();
929
930 tools::Rectangle ImpDragCalcRect(const SdrDragStat& rDrag) const;
931
932 // for GetDragComment
933 OUString ImpGetDescriptionStr(TranslateId pStrCacheID) const;
934
935 void ImpForcePlusData();
936
937 OUString GetMetrStr(tools::Long nVal) const;
938
943 virtual std::unique_ptr<SdrObjGeoData> NewGeoData() const;
944 virtual void SaveGeoData(SdrObjGeoData& rGeo) const;
945 virtual void RestoreGeoData(const SdrObjGeoData& rGeo);
946
947 // internal versions
948 const SfxItemSet& GetObjectItemSet() const;
949 void SetObjectItem(const SfxPoolItem& rItem);
950 void SetObjectItemSet(const SfxItemSet& rSet);
951 const SfxPoolItem& GetObjectItem(const sal_uInt16 nWhich) const;
952 template<class T> const T& GetObjectItem( TypedWhichId<T> nWhich ) const
953 {
954 return static_cast<const T&>(GetObjectItem(sal_uInt16(nWhich)));
955 }
956
957 const SfxItemSet* getBackgroundFillSet() const;
958
959 virtual void InternalSetStyleSheet(SfxStyleSheet* pNewStyleSheet, bool bDontRemoveHardAttr, bool bBroadcast);
960
961private:
962 struct Impl;
963 std::unique_ptr<Impl> mpImpl;
964 SdrObjList* mpParentOfSdrObject; // list that includes this object
965 sal_uInt32 m_nOrdNum; // order number of the object in the list
966 std::unique_ptr<SfxGrabBagItem> m_pGrabBagItem; // holds the GrabBagItem property
967 // Position in the navigation order. SAL_MAX_UINT32 when not used.
970 bool m_bNoPrint : 1; // if true, the object is not printed.
971 bool mbVisible : 1; // if false, the object is not visible on screen (but maybe on printer, depending on bNoprint
972 bool m_bMarkProt : 1; // marking forbidden, persistent
973 // on import of OLE object from MS documents the BLIP size might be retrieved,
974 // in this case the following member is initialized as nonempty rectangle
976 std::unique_ptr<sdr::properties::BaseProperties>
978 std::unique_ptr<sdr::contact::ViewContact>
980
981 // do not use directly, always use getSvxShape() if you have to, because not all
982 // SdrObjects have an associated SvxShape subclass (e.g. reportdesign)
984 css::uno::WeakReference< css::drawing::XShape >
986
987 // HACK: Do not automatically insert newly created object into a page.
988 // The user needs to do it manually later.
990 // Hyperlink for the whole shape
991 OUString msHyperlink;
992
993 // only for internal use!
994 SvxShape* getSvxShape();
995
996 SdrObject( const SdrObject& ) = delete;
997};
998
1000inline const E3dScene* DynCastE3dScene(const SdrObject* p) { return DynCastE3dScene(const_cast<SdrObject*>(p)); }
1002inline const E3dObject* DynCastE3dObject(const SdrObject* p) { return DynCastE3dObject(const_cast<SdrObject*>(p)); }
1004inline const SdrTextObj* DynCastSdrTextObj(const SdrObject* p) { return DynCastSdrTextObj(const_cast<SdrObject*>(p)); }
1005
1006
1008{
1012};
1013
1023{
1024public:
1025 static rtl::Reference<SdrObject> MakeNewObject(
1026 SdrModel& rSdrModel,
1027 SdrInventor nInventor,
1028 SdrObjKind nObjIdentifier,
1029 const tools::Rectangle* pSnapRect = nullptr);
1030
1031 static void InsertMakeObjectHdl(Link<SdrObjCreatorParams, rtl::Reference<SdrObject>> const & rLink);
1032 static void RemoveMakeObjectHdl(Link<SdrObjCreatorParams, rtl::Reference<SdrObject>> const & rLink);
1033
1034private:
1035 static SVX_DLLPRIVATE rtl::Reference<SdrObject> CreateObjectFromFactory(
1036 SdrModel& rSdrModel,
1037 SdrInventor nInventor,
1038 SdrObjKind nIdentifier);
1039
1040 SdrObjFactory() = delete;
1041};
1042
1043/* 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:1023
SdrObjFactory()=delete
All geometrical data of an arbitrary object for use in undo/redo.
Definition: svdobj.hxx:174
bool bClosedObj
Definition: svdobj.hxx:183
Point aAnchor
Definition: svdobj.hxx:177
std::unique_ptr< SdrGluePointList > pGPL
Definition: svdobj.hxx:179
bool bMovProt
Definition: svdobj.hxx:180
SdrLayerID mnLayerID
Definition: svdobj.hxx:185
bool bSizProt
Definition: svdobj.hxx:181
tools::Rectangle aBoundRect
Definition: svdobj.hxx:176
bool bNoPrint
Definition: svdobj.hxx:182
bool mbVisible
Definition: svdobj.hxx:184
const SdrPageView * pPageView
Definition: svdobj.hxx:140
const SdrLayerIDSet * pVisiLayer
Definition: svdobj.hxx:139
sal_uInt16 nTol
Definition: svdobj.hxx:141
Provides information about various ZObject properties.
Definition: svdobj.hxx:196
User data of a drawing object, e.g.
Definition: svdobj.hxx:152
sal_uInt16 nIdentifier
Definition: svdobj.hxx:154
bool operator==(const SdrObjUserData &rData) const =delete
SdrInventor GetInventor() const
Definition: svdobj.hxx:166
void operator=(const SdrObjUserData &rData)=delete
sal_uInt16 GetId() const
Definition: svdobj.hxx:167
SdrInventor nInventor
Definition: svdobj.hxx:153
virtual std::unique_ptr< SdrObjUserData > Clone(SdrObject *pObj1) const =0
bool operator!=(const SdrObjUserData &rData) const =delete
Abstract DrawObject.
Definition: svdobj.hxx:260
sal_uInt32 GetOrdNumDirect() const
Definition: svdobj.hxx:844
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:962
SdrObjUserCall * GetUserCall() const
Definition: svdobj.hxx:837
const css::uno::WeakReference< css::drawing::XShape > & getWeakUnoShape() const
Definition: svdobj.hxx:876
bool mbLineIsOutsideGeometry
Definition: svdobj.hxx:920
const T & GetMergedItem(TypedWhichId< T > nWhich) const
Definition: svdobj.hxx:619
SdrModel & mrSdrModelFromSdrObject
Definition: svdobj.hxx:294
const tools::Rectangle & GetBLIPSizeRectangle() const
Definition: svdobj.hxx:819
const SdrObject * mpFillGeometryDefiningShape
Definition: svdobj.hxx:287
bool m_bIs3DObj
Definition: svdobj.hxx:917
tools::Rectangle maBLIPSizeRectangle
Definition: svdobj.hxx:975
const OUString & getHyperlink() const
Definition: svdobj.hxx:883
bool IsUnoObj() const
Definition: svdobj.hxx:754
bool IsDoNotInsertIntoPageAutomatically() const
Definition: svdobj.hxx:841
std::unique_ptr< SdrObjPlusData > m_pPlusData
Definition: svdobj.hxx:899
bool m_bMovProt
Definition: svdobj.hxx:904
bool isDiagram() const
Definition: svdobj.hxx:264
bool IsMoveProtect() const
Definition: svdobj.hxx:756
bool IsEdgeObj() const
Definition: svdobj.hxx:752
bool LineIsOutsideGeometry() const
Definition: svdobj.hxx:852
bool mbSupportTextIndentingOnLineWidthChange
Definition: svdobj.hxx:922
bool IsClosedObj() const
Definition: svdobj.hxx:745
Point m_aAnchor
Definition: svdobj.hxx:896
SdrObjList * mpParentOfSdrObject
Definition: svdobj.hxx:964
bool m_bMarkProt
Definition: svdobj.hxx:972
bool m_bSnapRectDirty
Definition: svdobj.hxx:902
bool IsEmptyPresObj() const
Definition: svdobj.hxx:833
const SdrObject * getFillGeometryDefiningShape() const
Definition: svdobj.hxx:290
bool DoesSupportTextIndentingOnLineWidthChange() const
Definition: svdobj.hxx:847
bool Is3DObj() const
Definition: svdobj.hxx:753
SdrObjUserCall * m_pUserCall
Definition: svdobj.hxx:897
bool IsVirtualObj() const
Definition: svdobj.hxx:740
std::unique_ptr< SfxGrabBagItem > m_pGrabBagItem
Definition: svdobj.hxx:966
virtual bool IsSdrTextObj() const
Definition: svdobj.hxx:765
bool m_bIsUnoObj
Definition: svdobj.hxx:918
sal_uInt32 m_nOrdNum
Definition: svdobj.hxx:965
virtual bool IsTextPath() const
Definition: svdobj.hxx:766
tools::Rectangle m_aOutRect
Definition: svdobj.hxx:895
bool m_bIsEdge
Definition: svdobj.hxx:916
OUString msHyperlink
Definition: svdobj.hxx:991
bool IsVisible() const
Definition: svdobj.hxx:762
std::unique_ptr< sdr::contact::ViewContact > mpViewContact
Definition: svdobj.hxx:979
bool mbVisible
Definition: svdobj.hxx:971
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:952
SdrObject & operator=(SdrObject &&rObj)=delete
bool m_bNoPrint
Definition: svdobj.hxx:970
bool m_bClosedObj
Definition: svdobj.hxx:915
SvxShape * mpSvxShape
Definition: svdobj.hxx:983
bool m_bVirtObj
Definition: svdobj.hxx:901
bool mbDoNotInsertIntoPageAutomatically
Definition: svdobj.hxx:989
SdrLayerID mnLayerID
Definition: svdobj.hxx:969
bool IsNotVisibleAsMaster() const
Definition: svdobj.hxx:835
css::uno::WeakReference< css::drawing::XShape > maWeakUnoShape
Definition: svdobj.hxx:985
sal_uInt32 mnNavigationPosition
Definition: svdobj.hxx:968
bool m_bSizProt
Definition: svdobj.hxx:905
std::unique_ptr< sdr::properties::BaseProperties > mpProperties
Definition: svdobj.hxx:977
bool m_bNotVisibleAsMaster
Definition: svdobj.hxx:913
bool m_bEmptyPresObj
Definition: svdobj.hxx:911
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:884
void setFillGeometryDefiningShape(const SdrObject *pNew)
Definition: svdobj.hxx:288
virtual void NbcRotate(const Point &rRef, Degree100 nAngle, double sn, double cs)=0
A SdrPage contains exactly one SdrObjList and a description of the physical page dimensions (size / m...
Definition: svdpage.hxx:379
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
struct _xmlTextWriter * xmlTextWriterPtr
DocumentType eType
sal_Int16 nValue
Definition: fmsrccfg.cxx:81
void * p
Unknown
long Long
PointerStyle
SdrObjKind nObjIdentifier
Definition: svdobj.hxx:1010
SdrModel & rSdrModel
Definition: svdobj.hxx:1011
SdrInventor nInventor
Definition: svdobj.hxx:1009
SdrInventor
Definition: svdobj.hxx:98
SdrUserCallType
Definition: svdobj.hxx:112
SVXCORE_DLLPUBLIC SdrTextObj * DynCastSdrTextObj(SdrObject *)
Definition: svdobj.cxx:3212
SVXCORE_DLLPUBLIC E3dObject * DynCastE3dObject(SdrObject *)
Definition: svdobj.cxx:3205
SVXCORE_DLLPUBLIC E3dScene * DynCastE3dScene(SdrObject *)
Definition: svdobj.cxx:3198
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