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