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 ConnectorShapePropertiesList& getConnectorShapeProperties() { return maConnectorShapePropertiesList; }
141 void setConnectorShape(bool bConnector) { mbConnector = bConnector; }
142 bool isConnectorShape() const { return mbConnector; }
143
144 Shape3DProperties& get3DProperties() { return *mp3DPropertiesPtr; }
145 const Shape3DProperties& get3DProperties() const { return *mp3DPropertiesPtr; }
146
147 table::TablePropertiesPtr const & getTableProperties();
148
149 EffectProperties& getEffectProperties() const { return *mpEffectPropertiesPtr; }
150
151 void setChildPosition( css::awt::Point nPosition ){ maChPosition = nPosition; }
152 void setChildSize( css::awt::Size aSize ){ maChSize = aSize; }
153
154 void setPosition( css::awt::Point nPosition ){ maPosition = nPosition; }
155 const css::awt::Point& getPosition() const { return maPosition; }
156
157 void setSize( css::awt::Size aSize ){ maSize = aSize; }
158 const css::awt::Size& getSize() const { return maSize; }
159
160 void setRotation( sal_Int32 nRotation ) { mnRotation = nRotation; }
161 sal_Int32 getRotation() const { return mnRotation; }
162 void setDiagramRotation( sal_Int32 nRotation ) { mnDiagramRotation = nRotation; }
163 void setFlip( bool bFlipH, bool bFlipV ) { mbFlipH = bFlipH; mbFlipV = bFlipV; }
164 bool getFlipH() const { return mbFlipH; }
165 bool getFlipV() const { return mbFlipV; }
166 void addChild( const ShapePtr& rChildPtr ) { maChildren.push_back( rChildPtr ); }
167 std::vector< ShapePtr >& getChildren() { return maChildren; }
168
169 void setName( const OUString& rName ) { msName = rName; }
170 const OUString& getName( ) const { return msName; }
171 void setInternalName( const OUString& rInternalName ) { msInternalName = rInternalName; }
172 const OUString& getInternalName() const { return msInternalName; }
173 void setId( const OUString& rId ) { msId = rId; }
174 const OUString& getId() const { return msId; }
175 void setDescription( const OUString& rDescr ) { msDescription = rDescr; }
176 void setHidden( bool bHidden ) { mbHidden = bHidden; }
177 void setHiddenMasterShape( bool bHiddenMasterShape ) { mbHiddenMasterShape = bHiddenMasterShape; }
178 void setLocked( bool bLocked ) { mbLocked = bLocked; }
179 void setSubType( sal_Int32 nSubType ) { mnSubType = nSubType; }
180 sal_Int32 getSubType() const { return mnSubType; }
181 void setSubTypeIndex( sal_Int32 nSubTypeIndex ) { moSubTypeIndex = nSubTypeIndex; }
182 const std::optional< sal_Int32 >& getSubTypeIndex() const { return moSubTypeIndex; }
183
184 // setDefaults has to be called if styles are imported (OfficeXML is not storing properties having the default value)
185 void setDefaults(bool bHeight);
186
187 ::oox::vml::OleObjectInfo& setOleObjectType();
188 ChartShapeInfo& setChartType( bool bEmbedShapes );
189 void setDiagramType();
190 void setTableType();
191
192 void setTextBody(const TextBodyPtr & pTextBody);
193 const TextBodyPtr& getTextBody() const { return mpTextBody;}
194 void setMasterTextListStyle( const TextListStylePtr& pMasterTextListStyle );
195 const TextListStylePtr& getMasterTextListStyle() const { return mpMasterTextListStyle; }
196
197 ShapeStyleRefMap& getShapeStyleRefs() { return maShapeStyleRefs; }
198 const ShapeStyleRefMap& getShapeStyleRefs() const { return maShapeStyleRefs; }
199 const ShapeStyleRef* getShapeStyleRef( sal_Int32 nRefType ) const;
200 bool hasShapeStyleRefs() const { return !maShapeStyleRefs.empty(); }
201
202 // addShape is creating and inserting the corresponding XShape.
203 void addShape(
204 ::oox::core::XmlFilterBase& rFilterBase,
205 const Theme* pTheme,
206 const css::uno::Reference< css::drawing::XShapes >& rxShapes,
207 const basegfx::B2DHomMatrix& aTransformation,
208 const FillProperties& rShapeOrParentShapeFillProps,
209 ShapeIdMap* pShapeMap = nullptr,
210 oox::drawingml::ShapePtr pParentGroupShape = nullptr);
211
212 const css::uno::Reference< css::drawing::XShape > &
213 getXShape() const { return mxShape; }
214
215 void applyShapeReference( const Shape& rReferencedShape, bool bUseText = true );
216 const ::std::vector<OUString>&
217 getExtDrawings() const { return maExtDrawings; }
218 void addExtDrawingRelId( const OUString &rRelId ) { maExtDrawings.push_back( rRelId ); }
219 // Set font color only for extdrawings.
220 void setFontRefColorForNodes(const Color& rColor) { maFontRefColorForNodes = rColor; }
221 const Color& getFontRefColorForNodes() const { return maFontRefColorForNodes; }
222 void setLockedCanvas(bool bLockedCanvas);
223 bool getLockedCanvas() const { return mbLockedCanvas;}
224 void setWPGChild(bool bWPG);
225 bool isWPGChild() const { return mbWPGChild;}
226 void setWps(bool bWps);
227 bool getWps() const { return mbWps;}
228 void setTextBox(bool bTextBox);
229 const css::uno::Sequence<css::beans::PropertyValue> &
230 getDiagramDoms() const { return maDiagramDoms; }
231 void setDiagramDoms(const css::uno::Sequence<css::beans::PropertyValue>& rDiagramDoms) { maDiagramDoms = rDiagramDoms; }
232 css::uno::Sequence< css::uno::Sequence< css::uno::Any > >resolveRelationshipsOfTypeFromOfficeDoc(
233 core::XmlFilterBase& rFilter, const OUString& sFragment, std::u16string_view sType );
234 void setLinkedTxbxAttributes(const LinkedTxbxAttr& rhs){ maLinkedTxbxAttr = rhs; };
235 void setTxbxHasLinkedTxtBox( const bool rhs){ mbHasLinkedTxbx = rhs; };
236 const LinkedTxbxAttr& getLinkedTxbxAttributes() const { return maLinkedTxbxAttr; };
237 bool isLinkedTxbx() const { return mbHasLinkedTxbx; };
238
239 void setZOrder(sal_Int32 nZOrder) { mnZOrder = nZOrder; }
240
241 sal_Int32 getZOrder() const { return mnZOrder; }
242
243 void setZOrderOff(sal_Int32 nZOrderOff) { mnZOrderOff = nZOrderOff; }
244
245 sal_Int32 getZOrderOff() const { return mnZOrderOff; }
246
247 void setDataNodeType(sal_Int32 nDataNodeType) { mnDataNodeType = nDataNodeType; }
248
249 sal_Int32 getDataNodeType() const { return mnDataNodeType; }
250
251 void setAspectRatio(double fAspectRatio) { mfAspectRatio = fAspectRatio; }
252
253 double getAspectRatio() const { return mfAspectRatio; }
254
255 void setVerticalShapesCount(sal_Int32 nVerticalShapesCount) { mnVerticalShapesCount = nVerticalShapesCount; }
256 sal_Int32 getVerticalShapesCount() const { return mnVerticalShapesCount; }
257
259 void cloneFillProperties();
260
261 void keepDiagramDrawing(::oox::core::XmlFilterBase& rFilterBase, const OUString& rFragmentPath);
262
263 // Allows preparation of a local Diagram helper && propagate an eventually
264 // existing one to the data holder object later
265 void prepareDiagramHelper(const std::shared_ptr< Diagram >& rDiagramPtr, const std::shared_ptr<::oox::drawingml::Theme>& rTheme);
266 void propagateDiagramHelper();
267
268 // for Writer it is necessary to migrate an existing helper to a new Shape
269 void migrateDiagramHelperToNewShape(const ShapePtr& pTarget);
270
271protected:
272
274 {
279 FRAMETYPE_TABLE
280 };
281
282 css::uno::Reference< css::drawing::XShape > const &
283 createAndInsert(
284 ::oox::core::XmlFilterBase& rFilterBase,
285 const OUString& rServiceName,
286 const Theme* pTheme,
287 const css::uno::Reference< css::drawing::XShapes >& rxShapes,
288 bool bClearText,
289 bool bDoNotInsertEmptyTextBody,
290 basegfx::B2DHomMatrix& aTransformation,
291 const FillProperties& rShapeOrParentShapeFillProps,
292 oox::drawingml::ShapePtr pParentGroupShape = nullptr
293 );
294
295 void addChildren(
296 ::oox::core::XmlFilterBase& rFilterBase,
297 Shape& rMaster,
298 const Theme* pTheme,
299 const css::uno::Reference< css::drawing::XShapes >& rxShapes,
300 ShapeIdMap* pShapeMap,
301 const basegfx::B2DHomMatrix& aTransformation );
302
303 void keepDiagramCompatibilityInfo();
304 void convertSmartArtToMetafile( ::oox::core::XmlFilterBase const& rFilterBase );
305
306 css::uno::Reference< css::drawing::XShape >
307 renderDiagramToGraphic( ::oox::core::XmlFilterBase const & rFilterBase );
308
309 OUString finalizeServiceName(
311 const OUString& rServiceName,
312 const css::awt::Rectangle& rShapeRect );
313
314 virtual void finalizeXShape(
316 const css::uno::Reference< css::drawing::XShapes >& rxShapes );
317
319 const OUString& sPropertyName, const css::uno::Any& aPropertyValue );
321 const css::beans::PropertyValue& pProperty );
322 void putPropertiesToGrabBag(
323 const css::uno::Sequence< css::beans::PropertyValue >& aProperties );
324
325 FillProperties getActualFillProperties(const Theme* pTheme, const FillProperties* pParentShapeFillProps) const;
326 LineProperties getActualLineProperties(const Theme* pTheme) const;
327 EffectProperties getActualEffectProperties(const Theme* pTheme) const;
328
329 std::vector< ShapePtr > maChildren; // only used for group shapes
330 css::awt::Size maChSize; // only used for group shapes
331 css::awt::Point maChPosition; // only used for group shapes
332
347 css::uno::Reference< css::drawing::XShape > mxShape;
349
352 OUString msName;
353 OUString msInternalName; // used by diagram; not displayed in UI
354 OUString msId;
356 sal_Int32 mnSubType; // if this type is not zero, then the shape is a placeholder
357 std::optional< sal_Int32 > moSubTypeIndex;
358
360
361 css::awt::Size maSize;
362 css::awt::Point maPosition;
363 ::std::vector<OUString> maExtDrawings;
365
367
368private:
369
370 typedef std::shared_ptr< ::oox::vml::OleObjectInfo > OleObjectInfoRef;
371 typedef std::shared_ptr< ChartShapeInfo > ChartShapeInfoRef;
372
375
376 sal_Int32 mnRotation;
377 sal_Int32 mnDiagramRotation; // rotates shape prior to sizing, does not affect text rotation
381 bool mbHiddenMasterShape; // master shapes can be hidden in layout slides
382 // we need separate flag because we don't want
383 // to propagate it when applying reference shape
385 bool mbWPGChild; // Is this shape a child of a WPG shape?
387 bool mbWps;
390 bool mbHasLinkedTxbx; // this text box has linked text box ?
391
392 css::uno::Sequence<css::beans::PropertyValue> maDiagramDoms;
393
395 sal_Int32 mnZOrder = 0;
396
398 sal_Int32 mnZOrderOff = 0;
399
401 sal_Int32 mnDataNodeType = 0;
402
404 double mfAspectRatio = 0;
405
407 sal_Int32 mnVerticalShapesCount = 0;
408
409 // Is this a connector shape?
410 bool mbConnector = false;
411
412 // temporary space for DiagramHelper in preparation for collecting data
413 // Note: I tried to use a unique_ptr here, but existing constructor func does not allow that
415
416 // association-ID to identify the Diagram ModelData
418};
419
420}
421
422#endif // INCLUDED_OOX_DRAWINGML_SHAPE_HXX
423
424/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
geometry::RealPoint2D maPosition
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:241
void setConnectorShape(bool bConnector)
Definition: shape.hxx:141
EffectPropertiesPtr mpEffectPropertiesPtr
Definition: shape.hxx:342
bool mbLockedCanvas
Is this shape part of a locked canvas?
Definition: shape.hxx:386
void setTxbxHasLinkedTxtBox(const bool rhs)
Definition: shape.hxx:235
sal_Int32 getZOrderOff() const
Definition: shape.hxx:245
void setSubType(sal_Int32 nSubType)
Definition: shape.hxx:179
FrameType meFrameType
Type for graphic frame shapes.
Definition: shape.hxx:366
const OUString & getInternalName() const
Definition: shape.hxx:172
void setLocked(bool bLocked)
Definition: shape.hxx:178
void putPropertyToGrabBag(const OUString &sPropertyName, const css::uno::Any &aPropertyValue)
svx::diagram::IDiagramHelper * mpDiagramHelper
Definition: shape.hxx:414
OUString msDiagramDataModelID
Definition: shape.hxx:417
PropertyMap maShapeProperties
Definition: shape.hxx:344
bool getFlipV() const
Definition: shape.hxx:165
PropertyMap & getShapeProperties()
Definition: shape.hxx:126
void setDiagramDoms(const css::uno::Sequence< css::beans::PropertyValue > &rDiagramDoms)
Definition: shape.hxx:231
LinePropertiesPtr mpShapeRefLinePropPtr
Definition: shape.hxx:335
sal_Int32 getDataNodeType() const
Definition: shape.hxx:249
CustomShapePropertiesPtr & getCustomShapeProperties()
Definition: shape.hxx:137
css::uno::Sequence< css::beans::PropertyValue > maDiagramDoms
Definition: shape.hxx:392
const OUString & getName() const
Definition: shape.hxx:170
void setSize(css::awt::Size aSize)
Definition: shape.hxx:157
std::vector< ShapePtr > & getChildren()
Definition: shape.hxx:167
LineProperties & getLineProperties()
Definition: shape.hxx:128
const ::std::vector< OUString > & getExtDrawings() const
Definition: shape.hxx:217
OUString & getServiceName()
Definition: shape.hxx:120
void setAspectRatio(double fAspectRatio)
Definition: shape.hxx:251
void setZOrder(sal_Int32 nZOrder)
Definition: shape.hxx:239
bool getLockedCanvas() const
Definition: shape.hxx:223
const OUString & getId() const
Definition: shape.hxx:174
PropertyMap maDefaultShapeProperties
Definition: shape.hxx:345
GraphicProperties & getGraphicProperties()
Definition: shape.hxx:134
const css::awt::Size & getSize() const
Definition: shape.hxx:158
ConnectorShapePropertiesList maConnectorShapePropertiesList
Definition: shape.hxx:348
void setHiddenMasterShape(bool bHiddenMasterShape)
Definition: shape.hxx:177
const OUString & getDiagramDataModelID() const
Definition: shape.hxx:123
bool getWps() const
Definition: shape.hxx:227
std::shared_ptr< ChartShapeInfo > ChartShapeInfoRef
Definition: shape.hxx:371
void setDataNodeType(sal_Int32 nDataNodeType)
Definition: shape.hxx:247
OUString msDescription
Definition: shape.hxx:355
GraphicPropertiesPtr mpGraphicPropertiesPtr
Definition: shape.hxx:338
void addChild(const ShapePtr &rChildPtr)
Definition: shape.hxx:166
const FillProperties & getFillProperties() const
Definition: shape.hxx:132
void setSubTypeIndex(sal_Int32 nSubTypeIndex)
Definition: shape.hxx:181
const Color & getFontRefColorForNodes() const
Definition: shape.hxx:221
void setFontRefColorForNodes(const Color &rColor)
Definition: shape.hxx:220
const GraphicProperties & getGraphicProperties() const
Definition: shape.hxx:135
const std::optional< sal_Int32 > & getSubTypeIndex() const
Definition: shape.hxx:182
bool mbTextBox
This shape has a textbox.
Definition: shape.hxx:388
std::shared_ptr< ::oox::vml::OleObjectInfo > OleObjectInfoRef
Definition: shape.hxx:370
ShapeStyleRefMap maShapeStyleRefs
Definition: shape.hxx:359
void setRotation(sal_Int32 nRotation)
Definition: shape.hxx:160
EffectProperties & getEffectProperties() const
Definition: shape.hxx:149
bool isWPGChild() const
Definition: shape.hxx:225
const LinkedTxbxAttr & getLinkedTxbxAttributes() const
Definition: shape.hxx:236
Shape3DProperties & get3DProperties()
Definition: shape.hxx:144
void setDescription(const OUString &rDescr)
Definition: shape.hxx:175
void setId(const OUString &rId)
Definition: shape.hxx:173
const LineProperties & getLineProperties() const
Definition: shape.hxx:129
FillPropertiesPtr mpShapeRefFillPropPtr
Definition: shape.hxx:337
@ FRAMETYPE_GENERIC
Generic shape, no special type.
Definition: shape.hxx:275
@ FRAMETYPE_OLEOBJECT
OLE object embedded in a shape.
Definition: shape.hxx:276
@ FRAMETYPE_CHART
Chart embedded in a shape.
Definition: shape.hxx:277
@ FRAMETYPE_DIAGRAM
Complex diagram drawing shape.
Definition: shape.hxx:278
void setDiagramDataModelID(const OUString &rDiagramDataModelID)
Definition: shape.hxx:124
bool isConnectorShape() const
Definition: shape.hxx:142
void addExtDrawingRelId(const OUString &rRelId)
Definition: shape.hxx:218
void setName(const OUString &rName)
Definition: shape.hxx:169
sal_Int32 getVerticalShapesCount() const
Definition: shape.hxx:256
Shape3DPropertiesPtr mp3DPropertiesPtr
Definition: shape.hxx:341
void setLinkedTxbxAttributes(const LinkedTxbxAttr &rhs)
Definition: shape.hxx:234
ChartShapeInfoRef mxChartShapeInfo
Additional data for chart shapes.
Definition: shape.hxx:374
const css::uno::Sequence< css::beans::PropertyValue > & getDiagramDoms() const
Definition: shape.hxx:230
const Shape3DProperties & get3DProperties() const
Definition: shape.hxx:145
sal_Int32 getSubType() const
Definition: shape.hxx:180
const css::awt::Point & getPosition() const
Definition: shape.hxx:155
css::awt::Point maPosition
Definition: shape.hxx:362
void setFlip(bool bFlipH, bool bFlipV)
Definition: shape.hxx:163
TextListStylePtr mpMasterTextListStyle
Definition: shape.hxx:346
std::optional< sal_Int32 > moSubTypeIndex
Definition: shape.hxx:357
void setChildPosition(css::awt::Point nPosition)
Definition: shape.hxx:151
table::TablePropertiesPtr mpTablePropertiesPtr
Definition: shape.hxx:340
const TextListStylePtr & getMasterTextListStyle() const
Definition: shape.hxx:195
css::awt::Size maChSize
Definition: shape.hxx:330
bool getFlipH() const
Definition: shape.hxx:164
double getAspectRatio() const
Definition: shape.hxx:253
sal_Int32 getRotation() const
Definition: shape.hxx:161
FillPropertiesPtr mpFillPropertiesPtr
Definition: shape.hxx:336
void setHidden(bool bHidden)
Definition: shape.hxx:176
void setZOrderOff(sal_Int32 nZOrderOff)
Definition: shape.hxx:243
const ShapeStyleRefMap & getShapeStyleRefs() const
Definition: shape.hxx:198
CustomShapePropertiesPtr mpCustomShapePropertiesPtr
Definition: shape.hxx:339
ConnectorShapePropertiesList & getConnectorShapeProperties()
Definition: shape.hxx:140
OleObjectInfoRef mxOleObjectInfo
Additional data for OLE objects.
Definition: shape.hxx:373
FillProperties & getFillProperties()
Definition: shape.hxx:131
css::awt::Size maSize
Definition: shape.hxx:361
void putPropertyToGrabBag(const css::beans::PropertyValue &pProperty)
void setInternalName(const OUString &rInternalName)
Definition: shape.hxx:171
OUString & getConnectorName()
Definition: shape.hxx:139
bool mbWps
Is this a wps shape?
Definition: shape.hxx:387
Shape(Shape const &)=default
void setPosition(css::awt::Point nPosition)
Definition: shape.hxx:154
OUString msConnectorName
Definition: shape.hxx:350
LinePropertiesPtr mpLinePropertiesPtr
Definition: shape.hxx:334
ShapeStyleRefMap & getShapeStyleRefs()
Definition: shape.hxx:197
const css::uno::Reference< css::drawing::XShape > & getXShape() const
Definition: shape.hxx:213
virtual void finalizeXShape(::oox::core::XmlFilterBase &rFilter, const css::uno::Reference< css::drawing::XShapes > &rxShapes)
sal_Int32 mnSubType
Definition: shape.hxx:356
::std::vector< OUString > maExtDrawings
Definition: shape.hxx:363
std::vector< ShapePtr > maChildren
Definition: shape.hxx:329
void setChildSize(css::awt::Size aSize)
Definition: shape.hxx:152
EffectPropertiesPtr mpShapeRefEffectPropPtr
Definition: shape.hxx:343
const TextBodyPtr & getTextBody() const
Definition: shape.hxx:193
css::awt::Point maChPosition
Definition: shape.hxx:331
void setDiagramRotation(sal_Int32 nRotation)
Definition: shape.hxx:162
TextBodyPtr mpTextBody
Definition: shape.hxx:333
bool isLinkedTxbx() const
Definition: shape.hxx:237
Color maFontRefColorForNodes
Definition: shape.hxx:364
void setVerticalShapesCount(sal_Int32 nVerticalShapesCount)
Definition: shape.hxx:255
sal_Int32 mnDiagramRotation
Definition: shape.hxx:377
css::uno::Reference< css::drawing::XShape > mxShape
Definition: shape.hxx:347
sal_Int32 mnRotation
Definition: shape.hxx:376
OUString msInternalName
Definition: shape.hxx:353
bool hasShapeStyleRefs() const
Definition: shape.hxx:200
LinkedTxbxAttr maLinkedTxbxAttr
Definition: shape.hxx:389
OUString msServiceName
Definition: shape.hxx:351
#define OOX_DLLPUBLIC
Definition: dllapi.h:28
::basegfx::B2IVector maSize
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