LibreOffice Module oox (master) 1
shape.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20#ifndef INCLUDED_OOX_DRAWINGML_SHAPE_HXX
21#define INCLUDED_OOX_DRAWINGML_SHAPE_HXX
22
23#include <map>
24#include <memory>
25#include <string_view>
26#include <vector>
27
28#include <com/sun/star/awt/Point.hpp>
29#include <com/sun/star/awt/Size.hpp>
30#include <com/sun/star/beans/PropertyValue.hpp>
31#include <com/sun/star/uno/Reference.hxx>
32#include <com/sun/star/uno/Sequence.hxx>
33
35#include <oox/dllapi.h>
39#include <oox/helper/helper.hxx>
41#include <rtl/ustring.hxx>
42#include <sal/types.h>
43
44namespace basegfx { class B2DHomMatrix; }
45
46namespace com::sun::star {
47 namespace awt { struct Rectangle; }
48 namespace drawing { class XShape; }
49 namespace drawing { class XShapes; }
50 namespace uno { class Any; }
51}
52
53namespace oox::core {
54 class XmlFilterBase;
55}
56
57namespace oox::vml {
58 struct OleObjectInfo;
59}
60
61namespace svx::diagram {
62 class IDiagramHelper;
63}
64
65namespace oox::drawingml {
66
67class Theme;
68struct EffectProperties;
69struct FillProperties;
70struct GraphicProperties;
71struct LineProperties;
72struct Shape3DProperties;
73
74class CustomShapeProperties;
75typedef std::shared_ptr< CustomShapeProperties > CustomShapePropertiesPtr;
76
77typedef ::std::map< OUString, ShapePtr > ShapeIdMap;
78
79typedef std::vector<ConnectorShapeProperties> ConnectorShapePropertiesList;
80
82{
84 sal_Int32 mnThemedIdx;
86};
87
88typedef ::std::map< sal_Int32, ShapeStyleRef > ShapeStyleRefMap;
89
92{
93 OUString maFragmentPath;
95
96 explicit ChartShapeInfo( bool bEmbedShapes ) : mbEmbedShapes( bEmbedShapes ) {}
97};
98
101{
102 sal_Int32 id;
103 sal_Int32 seq;
105};
106
107class Diagram;
108
110 : public std::enable_shared_from_this< Shape >
111{
112public:
113
114 explicit Shape( const char* pServiceType = nullptr, bool bDefaultHeight = true );
115 explicit Shape( const ShapePtr& pSourceShape );
116 Shape(Shape const &) = default;
117 virtual ~Shape();
118 Shape & operator =(Shape const &) = default;
119
120 OUString& getServiceName(){ return msServiceName; }
121 void setServiceName( const char* pServiceName );
122
123 const OUString& getDiagramDataModelID() const { return msDiagramDataModelID; }
124 void setDiagramDataModelID( const OUString& rDiagramDataModelID ) { msDiagramDataModelID = rDiagramDataModelID; }
125
126 PropertyMap& getShapeProperties(){ return maShapeProperties; }
127
128 LineProperties& getLineProperties() { return *mpLinePropertiesPtr; }
129 const LineProperties& getLineProperties() const { return *mpLinePropertiesPtr; }
130
131 FillProperties& getFillProperties() { return *mpFillPropertiesPtr; }
132 const FillProperties& getFillProperties() const { return *mpFillPropertiesPtr; }
133
134 GraphicProperties& getGraphicProperties() { return *mpGraphicPropertiesPtr; }
135 const GraphicProperties& getGraphicProperties() const { return *mpGraphicPropertiesPtr; }
136
137 CustomShapePropertiesPtr& getCustomShapeProperties(){ return mpCustomShapePropertiesPtr; }
138
139 OUString& getConnectorName() { return msConnectorName; }
140 std::vector<OUString>& getConnectorAdjustments() { return maConnectorAdjustmentList; };
141 ConnectorShapePropertiesList& getConnectorShapeProperties() { return maConnectorShapePropertiesList; }
142 void setConnectorShape(bool bConnector) { mbConnector = bConnector; }
143 bool isConnectorShape() const { return mbConnector; }
144
145 Shape3DProperties& get3DProperties() { return *mp3DPropertiesPtr; }
146 const Shape3DProperties& get3DProperties() const { return *mp3DPropertiesPtr; }
147
148 table::TablePropertiesPtr const & getTableProperties();
149
150 EffectProperties& getEffectProperties() const { return *mpEffectPropertiesPtr; }
151
152 void setChildPosition( css::awt::Point nPosition ){ maChPosition = nPosition; }
153 void setChildSize( css::awt::Size aSize ){ maChSize = aSize; }
154
155 void setPosition( css::awt::Point nPosition ){ maPosition = nPosition; }
156 const css::awt::Point& getPosition() const { return maPosition; }
157
158 void setSize( css::awt::Size aSize ){ maSize = aSize; }
159 const css::awt::Size& getSize() const { return maSize; }
160
161 void setRotation( sal_Int32 nRotation ) { mnRotation = nRotation; }
162 sal_Int32 getRotation() const { return mnRotation; }
163 void setDiagramRotation( sal_Int32 nRotation ) { mnDiagramRotation = nRotation; }
164 void setFlip( bool bFlipH, bool bFlipV ) { mbFlipH = bFlipH; mbFlipV = bFlipV; }
165 bool getFlipH() const { return mbFlipH; }
166 bool getFlipV() const { return mbFlipV; }
167 void addChild( const ShapePtr& rChildPtr ) { maChildren.push_back( rChildPtr ); }
168 std::vector< ShapePtr >& getChildren() { return maChildren; }
169
170 void setName( const OUString& rName ) { msName = rName; }
171 const OUString& getName( ) const { return msName; }
172 void setInternalName( const OUString& rInternalName ) { msInternalName = rInternalName; }
173 const OUString& getInternalName() const { return msInternalName; }
174 void setId( const OUString& rId ) { msId = rId; }
175 const OUString& getId() const { return msId; }
176 void setDescription( const OUString& rDescr ) { msDescription = rDescr; }
177 void setHidden( bool bHidden ) { mbHidden = bHidden; }
178 void setHiddenMasterShape( bool bHiddenMasterShape ) { mbHiddenMasterShape = bHiddenMasterShape; }
179 void setLocked( bool bLocked ) { mbLocked = bLocked; }
180 void setSubType( sal_Int32 nSubType ) { mnSubType = nSubType; }
181 sal_Int32 getSubType() const { return mnSubType; }
182 void setSubTypeIndex( sal_Int32 nSubTypeIndex ) { moSubTypeIndex = nSubTypeIndex; }
183 const std::optional< sal_Int32 >& getSubTypeIndex() const { return moSubTypeIndex; }
184
185 // setDefaults has to be called if styles are imported (OfficeXML is not storing properties having the default value)
186 void setDefaults(bool bHeight);
187
188 ::oox::vml::OleObjectInfo& setOleObjectType();
189 ChartShapeInfo& setChartType( bool bEmbedShapes );
190 void setDiagramType();
191 void setTableType();
192
193 void setTextBody(const TextBodyPtr & pTextBody);
194 const TextBodyPtr& getTextBody() const { return mpTextBody;}
195 void setMasterTextListStyle( const TextListStylePtr& pMasterTextListStyle );
196 const TextListStylePtr& getMasterTextListStyle() const { return mpMasterTextListStyle; }
197
198 ShapeStyleRefMap& getShapeStyleRefs() { return maShapeStyleRefs; }
199 const ShapeStyleRefMap& getShapeStyleRefs() const { return maShapeStyleRefs; }
200 const ShapeStyleRef* getShapeStyleRef( sal_Int32 nRefType ) const;
201 bool hasShapeStyleRefs() const { return !maShapeStyleRefs.empty(); }
202
203 // addShape is creating and inserting the corresponding XShape.
204 void addShape(
205 ::oox::core::XmlFilterBase& rFilterBase,
206 const Theme* pTheme,
207 const css::uno::Reference< css::drawing::XShapes >& rxShapes,
208 const basegfx::B2DHomMatrix& aTransformation,
209 const FillProperties& rShapeOrParentShapeFillProps,
210 ShapeIdMap* pShapeMap = nullptr,
211 oox::drawingml::ShapePtr pParentGroupShape = nullptr);
212
213 const css::uno::Reference< css::drawing::XShape > &
214 getXShape() const { return mxShape; }
215
216 void applyShapeReference( const Shape& rReferencedShape, bool bUseText = true );
217 const ::std::vector<OUString>&
218 getExtDrawings() const { return maExtDrawings; }
219 void addExtDrawingRelId( const OUString &rRelId ) { maExtDrawings.push_back( rRelId ); }
220 // Set font color only for extdrawings.
221 void setFontRefColorForNodes(const Color& rColor) { maFontRefColorForNodes = rColor; }
222 const Color& getFontRefColorForNodes() const { return maFontRefColorForNodes; }
223 void setLockedCanvas(bool bLockedCanvas);
224 bool getLockedCanvas() const { return mbLockedCanvas;}
225 void setWPGChild(bool bWPG);
226 bool isWPGChild() const { return mbWPGChild;}
227 void setWps(bool bWps);
228 bool getWps() const { return mbWps;}
229 void setTextBox(bool bTextBox);
230 const css::uno::Sequence<css::beans::PropertyValue> &
231 getDiagramDoms() const { return maDiagramDoms; }
232 void setDiagramDoms(const css::uno::Sequence<css::beans::PropertyValue>& rDiagramDoms) { maDiagramDoms = rDiagramDoms; }
233 css::uno::Sequence< css::uno::Sequence< css::uno::Any > >resolveRelationshipsOfTypeFromOfficeDoc(
234 core::XmlFilterBase& rFilter, const OUString& sFragment, std::u16string_view sType );
235 void setLinkedTxbxAttributes(const LinkedTxbxAttr& rhs){ maLinkedTxbxAttr = rhs; };
236 void setTxbxHasLinkedTxtBox( const bool rhs){ mbHasLinkedTxbx = rhs; };
237 const LinkedTxbxAttr& getLinkedTxbxAttributes() const { return maLinkedTxbxAttr; };
238 bool isLinkedTxbx() const { return mbHasLinkedTxbx; };
239
240 void setZOrder(sal_Int32 nZOrder) { mnZOrder = nZOrder; }
241
242 sal_Int32 getZOrder() const { return mnZOrder; }
243
244 void setZOrderOff(sal_Int32 nZOrderOff) { mnZOrderOff = nZOrderOff; }
245
246 sal_Int32 getZOrderOff() const { return mnZOrderOff; }
247
248 void setDataNodeType(sal_Int32 nDataNodeType) { mnDataNodeType = nDataNodeType; }
249
250 sal_Int32 getDataNodeType() const { return mnDataNodeType; }
251
252 void setAspectRatio(double fAspectRatio) { mfAspectRatio = fAspectRatio; }
253
254 double getAspectRatio() const { return mfAspectRatio; }
255
256 void setVerticalShapesCount(sal_Int32 nVerticalShapesCount) { mnVerticalShapesCount = nVerticalShapesCount; }
257 sal_Int32 getVerticalShapesCount() const { return mnVerticalShapesCount; }
258
260 void cloneFillProperties();
261
262 void keepDiagramDrawing(::oox::core::XmlFilterBase& rFilterBase, const OUString& rFragmentPath);
263
264 // Allows preparation of a local Diagram helper && propagate an eventually
265 // existing one to the data holder object later
266 void prepareDiagramHelper(const std::shared_ptr< Diagram >& rDiagramPtr, const std::shared_ptr<::oox::drawingml::Theme>& rTheme);
267 void propagateDiagramHelper();
268
269 // for Writer it is necessary to migrate an existing helper to a new Shape
270 void migrateDiagramHelperToNewShape(const ShapePtr& pTarget);
271
272protected:
273
275 {
280 FRAMETYPE_TABLE
281 };
282
283 css::uno::Reference< css::drawing::XShape > const &
284 createAndInsert(
285 ::oox::core::XmlFilterBase& rFilterBase,
286 const OUString& rServiceName,
287 const Theme* pTheme,
288 const css::uno::Reference< css::drawing::XShapes >& rxShapes,
289 bool bClearText,
290 bool bDoNotInsertEmptyTextBody,
291 basegfx::B2DHomMatrix& aTransformation,
292 const FillProperties& rShapeOrParentShapeFillProps,
293 oox::drawingml::ShapePtr pParentGroupShape = nullptr
294 );
295
296 void addChildren(
297 ::oox::core::XmlFilterBase& rFilterBase,
298 Shape& rMaster,
299 const Theme* pTheme,
300 const css::uno::Reference< css::drawing::XShapes >& rxShapes,
301 ShapeIdMap* pShapeMap,
302 const basegfx::B2DHomMatrix& aTransformation );
303
304 void keepDiagramCompatibilityInfo();
305 void convertSmartArtToMetafile( ::oox::core::XmlFilterBase const& rFilterBase );
306
307 css::uno::Reference< css::drawing::XShape >
308 renderDiagramToGraphic( ::oox::core::XmlFilterBase const & rFilterBase );
309
310 OUString finalizeServiceName(
312 const OUString& rServiceName,
313 const css::awt::Rectangle& rShapeRect );
314
315 virtual void finalizeXShape(
317 const css::uno::Reference< css::drawing::XShapes >& rxShapes );
318
320 const OUString& sPropertyName, const css::uno::Any& aPropertyValue );
322 const css::beans::PropertyValue& pProperty );
323 void putPropertiesToGrabBag(
324 const css::uno::Sequence< css::beans::PropertyValue >& aProperties );
325
326 FillProperties getActualFillProperties(const Theme* pTheme, const FillProperties* pParentShapeFillProps) const;
327 LineProperties getActualLineProperties(const Theme* pTheme) const;
328 EffectProperties getActualEffectProperties(const Theme* pTheme) const;
329
330 std::vector< ShapePtr > maChildren; // only used for group shapes
331 css::awt::Size maChSize; // only used for group shapes
332 css::awt::Point maChPosition; // only used for group shapes
333
334 std::vector<OUString> maConnectorAdjustmentList; // only used for connector shapes
335
350 css::uno::Reference< css::drawing::XShape > mxShape;
352
355 OUString msName;
356 OUString msInternalName; // used by diagram; not displayed in UI
357 OUString msId;
359 sal_Int32 mnSubType; // if this type is not zero, then the shape is a placeholder
360 std::optional< sal_Int32 > moSubTypeIndex;
361
363
364 css::awt::Size maSize;
365 css::awt::Point maPosition;
366 ::std::vector<OUString> maExtDrawings;
368
370
371private:
372
373 typedef std::shared_ptr< ::oox::vml::OleObjectInfo > OleObjectInfoRef;
374 typedef std::shared_ptr< ChartShapeInfo > ChartShapeInfoRef;
375
378
379 sal_Int32 mnRotation;
380 sal_Int32 mnDiagramRotation; // rotates shape prior to sizing, does not affect text rotation
384 bool mbHiddenMasterShape; // master shapes can be hidden in layout slides
385 // we need separate flag because we don't want
386 // to propagate it when applying reference shape
388 bool mbWPGChild; // Is this shape a child of a WPG shape?
390 bool mbWps;
393 bool mbHasLinkedTxbx; // this text box has linked text box ?
394
395 css::uno::Sequence<css::beans::PropertyValue> maDiagramDoms;
396
398 sal_Int32 mnZOrder = 0;
399
401 sal_Int32 mnZOrderOff = 0;
402
404 sal_Int32 mnDataNodeType = 0;
405
407 double mfAspectRatio = 0;
408
410 sal_Int32 mnVerticalShapesCount = 0;
411
412 // Is this a connector shape?
413 bool mbConnector = false;
414
415 // temporary space for DiagramHelper in preparation for collecting data
416 // Note: I tried to use a unique_ptr here, but existing constructor func does not allow that
418
419 // association-ID to identify the Diagram ModelData
421};
422
423}
424
425#endif // INCLUDED_OOX_DRAWINGML_SHAPE_HXX
426
427/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
geometry::RealPoint2D maPosition
geometry::RealSize2D maSize
std::vector< Reference< XAnimationNode > > maChildren
A helper that maps property identifiers to property values.
Definition: propertymap.hxx:52
sal_Int32 getZOrder() const
Definition: shape.hxx:242
void setConnectorShape(bool bConnector)
Definition: shape.hxx:142
EffectPropertiesPtr mpEffectPropertiesPtr
Definition: shape.hxx:345
bool mbLockedCanvas
Is this shape part of a locked canvas?
Definition: shape.hxx:389
void setTxbxHasLinkedTxtBox(const bool rhs)
Definition: shape.hxx:236
sal_Int32 getZOrderOff() const
Definition: shape.hxx:246
void setSubType(sal_Int32 nSubType)
Definition: shape.hxx:180
FrameType meFrameType
Type for graphic frame shapes.
Definition: shape.hxx:369
const OUString & getInternalName() const
Definition: shape.hxx:173
void setLocked(bool bLocked)
Definition: shape.hxx:179
void putPropertyToGrabBag(const OUString &sPropertyName, const css::uno::Any &aPropertyValue)
svx::diagram::IDiagramHelper * mpDiagramHelper
Definition: shape.hxx:417
OUString msDiagramDataModelID
Definition: shape.hxx:420
PropertyMap maShapeProperties
Definition: shape.hxx:347
bool getFlipV() const
Definition: shape.hxx:166
PropertyMap & getShapeProperties()
Definition: shape.hxx:126
void setDiagramDoms(const css::uno::Sequence< css::beans::PropertyValue > &rDiagramDoms)
Definition: shape.hxx:232
LinePropertiesPtr mpShapeRefLinePropPtr
Definition: shape.hxx:338
sal_Int32 getDataNodeType() const
Definition: shape.hxx:250
CustomShapePropertiesPtr & getCustomShapeProperties()
Definition: shape.hxx:137
css::uno::Sequence< css::beans::PropertyValue > maDiagramDoms
Definition: shape.hxx:395
const OUString & getName() const
Definition: shape.hxx:171
void setSize(css::awt::Size aSize)
Definition: shape.hxx:158
std::vector< ShapePtr > & getChildren()
Definition: shape.hxx:168
LineProperties & getLineProperties()
Definition: shape.hxx:128
const ::std::vector< OUString > & getExtDrawings() const
Definition: shape.hxx:218
OUString & getServiceName()
Definition: shape.hxx:120
void setAspectRatio(double fAspectRatio)
Definition: shape.hxx:252
void setZOrder(sal_Int32 nZOrder)
Definition: shape.hxx:240
bool getLockedCanvas() const
Definition: shape.hxx:224
const OUString & getId() const
Definition: shape.hxx:175
PropertyMap maDefaultShapeProperties
Definition: shape.hxx:348
GraphicProperties & getGraphicProperties()
Definition: shape.hxx:134
const css::awt::Size & getSize() const
Definition: shape.hxx:159
ConnectorShapePropertiesList maConnectorShapePropertiesList
Definition: shape.hxx:351
void setHiddenMasterShape(bool bHiddenMasterShape)
Definition: shape.hxx:178
const OUString & getDiagramDataModelID() const
Definition: shape.hxx:123
bool getWps() const
Definition: shape.hxx:228
std::shared_ptr< ChartShapeInfo > ChartShapeInfoRef
Definition: shape.hxx:374
void setDataNodeType(sal_Int32 nDataNodeType)
Definition: shape.hxx:248
OUString msDescription
Definition: shape.hxx:358
GraphicPropertiesPtr mpGraphicPropertiesPtr
Definition: shape.hxx:341
void addChild(const ShapePtr &rChildPtr)
Definition: shape.hxx:167
const FillProperties & getFillProperties() const
Definition: shape.hxx:132
void setSubTypeIndex(sal_Int32 nSubTypeIndex)
Definition: shape.hxx:182
const Color & getFontRefColorForNodes() const
Definition: shape.hxx:222
void setFontRefColorForNodes(const Color &rColor)
Definition: shape.hxx:221
const GraphicProperties & getGraphicProperties() const
Definition: shape.hxx:135
const std::optional< sal_Int32 > & getSubTypeIndex() const
Definition: shape.hxx:183
bool mbTextBox
This shape has a textbox.
Definition: shape.hxx:391
std::shared_ptr< ::oox::vml::OleObjectInfo > OleObjectInfoRef
Definition: shape.hxx:373
ShapeStyleRefMap maShapeStyleRefs
Definition: shape.hxx:362
void setRotation(sal_Int32 nRotation)
Definition: shape.hxx:161
EffectProperties & getEffectProperties() const
Definition: shape.hxx:150
bool isWPGChild() const
Definition: shape.hxx:226
const LinkedTxbxAttr & getLinkedTxbxAttributes() const
Definition: shape.hxx:237
Shape3DProperties & get3DProperties()
Definition: shape.hxx:145
void setDescription(const OUString &rDescr)
Definition: shape.hxx:176
void setId(const OUString &rId)
Definition: shape.hxx:174
const LineProperties & getLineProperties() const
Definition: shape.hxx:129
FillPropertiesPtr mpShapeRefFillPropPtr
Definition: shape.hxx:340
@ FRAMETYPE_GENERIC
Generic shape, no special type.
Definition: shape.hxx:276
@ FRAMETYPE_OLEOBJECT
OLE object embedded in a shape.
Definition: shape.hxx:277
@ FRAMETYPE_CHART
Chart embedded in a shape.
Definition: shape.hxx:278
@ FRAMETYPE_DIAGRAM
Complex diagram drawing shape.
Definition: shape.hxx:279
void setDiagramDataModelID(const OUString &rDiagramDataModelID)
Definition: shape.hxx:124
bool isConnectorShape() const
Definition: shape.hxx:143
void addExtDrawingRelId(const OUString &rRelId)
Definition: shape.hxx:219
void setName(const OUString &rName)
Definition: shape.hxx:170
sal_Int32 getVerticalShapesCount() const
Definition: shape.hxx:257
Shape3DPropertiesPtr mp3DPropertiesPtr
Definition: shape.hxx:344
void setLinkedTxbxAttributes(const LinkedTxbxAttr &rhs)
Definition: shape.hxx:235
ChartShapeInfoRef mxChartShapeInfo
Additional data for chart shapes.
Definition: shape.hxx:377
const css::uno::Sequence< css::beans::PropertyValue > & getDiagramDoms() const
Definition: shape.hxx:231
const Shape3DProperties & get3DProperties() const
Definition: shape.hxx:146
sal_Int32 getSubType() const
Definition: shape.hxx:181
const css::awt::Point & getPosition() const
Definition: shape.hxx:156
css::awt::Point maPosition
Definition: shape.hxx:365
void setFlip(bool bFlipH, bool bFlipV)
Definition: shape.hxx:164
TextListStylePtr mpMasterTextListStyle
Definition: shape.hxx:349
std::optional< sal_Int32 > moSubTypeIndex
Definition: shape.hxx:360
void setChildPosition(css::awt::Point nPosition)
Definition: shape.hxx:152
table::TablePropertiesPtr mpTablePropertiesPtr
Definition: shape.hxx:343
const TextListStylePtr & getMasterTextListStyle() const
Definition: shape.hxx:196
css::awt::Size maChSize
Definition: shape.hxx:331
bool getFlipH() const
Definition: shape.hxx:165
double getAspectRatio() const
Definition: shape.hxx:254
sal_Int32 getRotation() const
Definition: shape.hxx:162
FillPropertiesPtr mpFillPropertiesPtr
Definition: shape.hxx:339
void setHidden(bool bHidden)
Definition: shape.hxx:177
void setZOrderOff(sal_Int32 nZOrderOff)
Definition: shape.hxx:244
const ShapeStyleRefMap & getShapeStyleRefs() const
Definition: shape.hxx:199
CustomShapePropertiesPtr mpCustomShapePropertiesPtr
Definition: shape.hxx:342
ConnectorShapePropertiesList & getConnectorShapeProperties()
Definition: shape.hxx:141
OleObjectInfoRef mxOleObjectInfo
Additional data for OLE objects.
Definition: shape.hxx:376
FillProperties & getFillProperties()
Definition: shape.hxx:131
css::awt::Size maSize
Definition: shape.hxx:364
void putPropertyToGrabBag(const css::beans::PropertyValue &pProperty)
void setInternalName(const OUString &rInternalName)
Definition: shape.hxx:172
OUString & getConnectorName()
Definition: shape.hxx:139
bool mbWps
Is this a wps shape?
Definition: shape.hxx:390
Shape(Shape const &)=default
void setPosition(css::awt::Point nPosition)
Definition: shape.hxx:155
OUString msConnectorName
Definition: shape.hxx:353
LinePropertiesPtr mpLinePropertiesPtr
Definition: shape.hxx:337
ShapeStyleRefMap & getShapeStyleRefs()
Definition: shape.hxx:198
const css::uno::Reference< css::drawing::XShape > & getXShape() const
Definition: shape.hxx:214
virtual void finalizeXShape(::oox::core::XmlFilterBase &rFilter, const css::uno::Reference< css::drawing::XShapes > &rxShapes)
sal_Int32 mnSubType
Definition: shape.hxx:359
std::vector< OUString > & getConnectorAdjustments()
Definition: shape.hxx:140
::std::vector< OUString > maExtDrawings
Definition: shape.hxx:366
std::vector< ShapePtr > maChildren
Definition: shape.hxx:330
void setChildSize(css::awt::Size aSize)
Definition: shape.hxx:153
EffectPropertiesPtr mpShapeRefEffectPropPtr
Definition: shape.hxx:346
const TextBodyPtr & getTextBody() const
Definition: shape.hxx:194
css::awt::Point maChPosition
Definition: shape.hxx:332
void setDiagramRotation(sal_Int32 nRotation)
Definition: shape.hxx:163
TextBodyPtr mpTextBody
Definition: shape.hxx:336
bool isLinkedTxbx() const
Definition: shape.hxx:238
Color maFontRefColorForNodes
Definition: shape.hxx:367
void setVerticalShapesCount(sal_Int32 nVerticalShapesCount)
Definition: shape.hxx:256
sal_Int32 mnDiagramRotation
Definition: shape.hxx:380
css::uno::Reference< css::drawing::XShape > mxShape
Definition: shape.hxx:350
sal_Int32 mnRotation
Definition: shape.hxx:379
OUString msInternalName
Definition: shape.hxx:356
std::vector< OUString > maConnectorAdjustmentList
Definition: shape.hxx:334
bool hasShapeStyleRefs() const
Definition: shape.hxx:201
LinkedTxbxAttr maLinkedTxbxAttr
Definition: shape.hxx:392
OUString msServiceName
Definition: shape.hxx:354
#define OOX_DLLPUBLIC
Definition: dllapi.h:28
OUString msName
std::shared_ptr< TableProperties > TablePropertiesPtr
std::shared_ptr< Shape3DProperties > Shape3DPropertiesPtr
std::shared_ptr< Shape > ShapePtr
std::vector< ConnectorShapeProperties > ConnectorShapePropertiesList
Definition: shape.hxx:79
std::shared_ptr< CustomShapeProperties > CustomShapePropertiesPtr
::std::map< OUString, ShapePtr > ShapeIdMap
Definition: shape.hxx:77
std::shared_ptr< FillProperties > FillPropertiesPtr
std::shared_ptr< TextListStyle > TextListStylePtr
::std::map< sal_Int32, ShapeStyleRef > ShapeStyleRefMap
Definition: shape.hxx:88
std::shared_ptr< GraphicProperties > GraphicPropertiesPtr
std::shared_ptr< TextBody > TextBodyPtr
std::shared_ptr< EffectProperties > EffectPropertiesPtr
std::shared_ptr< LineProperties > LinePropertiesPtr
uno::Reference< drawing::XShape > const mxShape
Additional information for a chart embedded in a drawing shape.
Definition: shape.hxx:92
bool mbEmbedShapes
True = load chart shapes into chart, false = load into parent drawpage.
Definition: shape.hxx:94
OUString maFragmentPath
Path to related XML stream, e.g. for charts.
Definition: shape.hxx:93
ChartShapeInfo(bool bEmbedShapes)
Definition: shape.hxx:96
Attributes for a linked textbox.
Definition: shape.hxx:101
Contains information about an OLE object embedded in a draw page.
Definition: vmldrawing.hxx:63