OpenXLSX 1.12.1
Modern C++ Excel Library (Fork of OpenXLSX by Kenneth Troldal Balslev)
Loading...
Searching...
No Matches
XLDrawing.hpp
Go to the documentation of this file.
1/*
2 * OpenXLSX-NX - Modern High-Performance C++ Excel Library
3 *
4 * Original work Copyright (c) 2018-2025, Kenneth Troldal Balslev and OpenXLSX contributors
5 * Modified work Copyright (c) 2026, Curry Tang and OpenXLSX-NX contributors
6 *
7 * Distributed under the BSD 3-Clause License.
8 * See LICENSE.md in the project root or https://opensource.org/licenses/BSD-3-Clause
9 */
10
11#ifndef OPENXLSX_XLDRAWING_HPP
12#define OPENXLSX_XLDRAWING_HPP
13
14// ===== External Includes ===== //
15#include <cstdint> // uint8_t, uint16_t, uint32_t
16#include <gsl/pointers>
17#include <ostream> // std::basic_ostream
18#include <string_view>
19
20// ===== OpenXLSX Includes ===== //
21#include "OpenXLSX-Exports.hpp"
22// #include "XLDocument.hpp"
23#include "XLConstants.hpp"
24#include "XLException.hpp"
25#include "XLImageOptions.hpp"
26#include "XLXmlData.hpp"
27#include "XLXmlFile.hpp"
28
29#include <memory>
30#include "XLRichText.hpp"
31
32namespace OpenXLSX
33{
34 class XLRelationships;
36 class XLDocument;
37
38 extern const std::string_view ShapeNodeName; // = "v:shape"
39 extern const std::string_view ShapeTypeNodeName; // = "v:shapetype"
40
41 // NOTE: numerical values of XLShapeTextVAlign and XLShapeTextHAlign are shared with the same alignments from XLAlignmentStyle
42 // (XLStyles.hpp)
43 enum class XLShapeTextVAlign : uint8_t {
44 Center = 3, // value="center", both
45 Top = 4, // value="top", vertical only
46 Bottom = 5, // value="bottom", vertical only
47 Invalid = 255 // all other values
48 };
50
51 enum class XLShapeTextHAlign : uint8_t {
52 Left = 1, // value="left", horizontal only
53 Right = 2, // value="right", horizontal only
54 Center = 3, // value="center", both
55 Invalid = 255 // all other values
56 };
58
62 class OPENXLSX_EXPORT XLShapeClientData
63 {
64 public:
66
71 explicit XLShapeClientData(const XMLNode& node);
72
77 XLShapeClientData(const XLShapeClientData& other) = default;
78
83 XLShapeClientData(XLShapeClientData&& other) noexcept = default;
84
85 ~XLShapeClientData() = default;
86
93
99 XLShapeClientData& operator=(XLShapeClientData&& other) noexcept = default;
100
104 std::string objectType() const; // attribute ObjectType, value "Note"
105 bool moveWithCells() const; // element x:MoveWithCells - true = present or lowercase node_pcdata "true", false = not present or
106 // lowercase node_pcdata "false"
107 bool sizeWithCells() const; // element x:SizeWithCells - logic as in MoveWithCells
108 std::string anchor() const; // element x:Anchor - e.g. "3, 23, 0, 0, 4, 25, 3, 5"
109 bool autoFill() const; // element x:AutoFill - logic as in MoveWithCells
110 XLShapeTextVAlign textVAlign() const; // element x:TextVAlign - Top, ???
111 XLShapeTextHAlign textHAlign() const; // element x:TextHAlign - Left, ???
112 uint32_t row() const; // element x:Row, 0-indexed row of cell to which this shape is linked
113 uint16_t column() const; // element x:Column, 0-indexed column of cell to which this shape is linked
114
118 bool setObjectType(std::string_view newObjectType);
119 bool setMoveWithCells(bool set = true);
120 bool setSizeWithCells(bool set = true);
121 bool setAnchor(std::string_view newAnchor);
122 bool setAutoFill(bool set = true);
123 bool setTextVAlign(XLShapeTextVAlign newTextVAlign);
124 bool setTextHAlign(XLShapeTextHAlign newTextHAlign);
125 bool setRow(uint32_t newRow);
126 bool setColumn(uint16_t newColumn);
127
128 private:
129 mutable XMLNode m_clientDataNode;
130 inline static const std::vector<std::string_view> m_nodeOrder =
131 {"x:MoveWithCells", "x:SizeWithCells", "x:Anchor", "x:AutoFill", "x:TextVAlign", "x:TextHAlign", "x:Row", "x:Column"};
132 };
133
135 {
136 std::string name;
137 std::string value;
138 };
139
140 class OPENXLSX_EXPORT XLShapeStyle
141 {
142 public:
143 XLShapeStyle();
144
149 explicit XLShapeStyle(const std::string& styleAttribute);
150
156 explicit XLShapeStyle(const XMLAttribute& styleAttribute);
157
158 private:
164 int16_t attributeOrderIndex(std::string_view attributeName) const;
168 XLShapeStyleAttribute getAttribute(std::string_view attributeName, std::string_view valIfNotFound = "") const;
169 bool setAttribute(std::string_view attributeName, std::string_view attributeValue);
170
171 public:
175 std::string position() const;
176 uint16_t marginLeft() const;
177 uint16_t marginTop() const;
178 uint16_t width() const;
179 uint16_t height() const;
180 std::string msoWrapStyle() const;
181 std::string vTextAnchor() const;
182 bool hidden() const;
183 bool visible() const;
184
185 std::string raw() const { return m_style; }
186
190 bool setPosition(std::string_view newPosition);
191 bool setMarginLeft(uint16_t newMarginLeft);
192 bool setMarginTop(uint16_t newMarginTop);
193 bool setWidth(uint16_t newWidth);
194 bool setHeight(uint16_t newHeight);
195 bool setMsoWrapStyle(std::string_view newMsoWrapStyle);
196 bool setVTextAnchor(std::string_view newVTextAnchor);
197 bool hide(); // set visibility:hidden
198 bool show(); // set visibility:visible
199
200 bool setRaw(std::string_view newStyle)
201 {
202 m_style = newStyle;
203 return true;
204 }
205
206 private:
207 mutable std::string m_style; // mutable so getter functions can update it from m_styleAttribute if the latter is not empty
208 mutable XMLAttribute m_styleAttribute;
209 inline static const std::vector<std::string_view> m_nodeOrder = {"position",
210 "margin-left",
211 "margin-top",
212 "width",
213 "height",
214 "mso-wrap-style",
215 "mso-fit-shape-to-text", // Added for auto-size support
216 "v-text-anchor",
217 "visibility"};
218 };
219
220 class OPENXLSX_EXPORT XLShape
221 {
222 friend class XLVmlDrawing; // for access to m_shapeNode in XLVmlDrawing::addShape
223 friend class XLComments; // added for access to m_shapeNode in XLComments::set
224 public:
225 XLShape();
226
231 explicit XLShape(const XMLNode& node);
232
237 XLShape(const XLShape& other) = default;
238
243 XLShape(XLShape&& other) noexcept = default;
244
245 ~XLShape() = default;
246
252 XLShape& operator=(const XLShape& other);
253
259 XLShape& operator=(XLShape&& other) noexcept = default;
260
264 std::string shapeId() const; // v:shape attribute id - shape_# - can't be set by the user
265 std::string fillColor() const; // v:shape attribute fillcolor, #<3 byte hex code>, e.g. #ffffc0
266 bool stroked() const; // v:shape attribute stroked "t" ("f"?)
267 std::string type() const; // v:shape attribute type, link to v:shapetype attribute id
268 bool allowInCell() const; // v:shape attribute o:allowincell "f"
269 XLShapeStyle style(); // v:shape attribute style, but constructed from the XMLAttribute
270
271 XLShapeClientData clientData(); // v:shape subnode x:ClientData
272
278 // NOTE: setShapeId is not available because shape id is managed by the parent class in createShape
279 bool setFillColor(std::string_view newFillColor);
280 bool setStroked(bool set);
281 bool setType(std::string_view newType);
282 bool setAllowInCell(bool set);
283 bool setStyle(std::string_view newStyle);
284 bool setStyle(XLShapeStyle const& newStyle);
285
286 private:
287 mutable XMLNode m_shapeNode;
288 inline static const std::vector<std::string_view> m_nodeOrder =
289 {"v:shadow", "v:fill", "v:stroke", "v:path", "v:textbox", "x:ClientData"};
290 };
291
295
323
325 {
327 std::string name = "Shape 1";
328 std::string text = "";
329 std::string fillColor = "4286F4"; // ARGB, no #
330 std::string lineColor = "000000";
331 double lineWidth = 1.0;
332
333 uint32_t width = 100;
334 uint32_t height = 100;
335 int32_t offsetX = 0;
336 int32_t offsetY = 0;
337
338 // If endRow and endCol are specified, the shape uses a twoCellAnchor (resizes with cells)
339 std::optional<uint32_t> endRow;
340 std::optional<uint32_t> endCol;
341 int32_t endOffsetX = 0;
342 int32_t endOffsetY = 0;
343
344 // Shape transformations
345 uint32_t rotation = 0; // rotation in degrees
346 bool flipH = false;
347 bool flipV = false;
348
349 // Advanced outline properties
350 std::string lineDash = ""; // e.g. "dash", "sysDash", "dot", "dashDot"
351 std::string arrowStart = ""; // e.g. "triangle", "stealth", "diamond"
352 std::string arrowEnd = "";
353
354 // Text properties
355 std::optional<XLRichText> richText = std::nullopt;
356 std::string horzAlign = ""; // e.g. "ctr", "l", "r"
357 std::string vertAlign = ""; // e.g. "ctr", "t", "b"
358
359 std::string macro = "";
360 };
361 class OPENXLSX_EXPORT XLDrawingItem
362 {
363 public:
368 explicit XLDrawingItem(const XMLNode& node, XLPackageServices* package = nullptr);
369 XLDrawingItem(const XLDrawingItem& other) = default;
370 XLDrawingItem(XLDrawingItem&& other) noexcept = default;
371 ~XLDrawingItem() = default;
372 XLDrawingItem& operator=(const XLDrawingItem& other) = default;
373 XLDrawingItem& operator=(XLDrawingItem&& other) noexcept = default;
374
375 std::string name() const;
376 std::string description() const;
377 uint32_t row() const;
378 uint32_t col() const;
379 uint32_t width() const; // in pixels (converted from EMUs)
380 uint32_t height() const; // in pixels (converted from EMUs)
381 std::string relationshipId() const;
382
387 std::vector<uint8_t> imageBinary() const;
388
389 private:
390 mutable XMLNode m_anchorNode;
391 XLPackageServices* m_package{nullptr};
392 };
393
397 class OPENXLSX_EXPORT XLDrawing : public XLXmlFile
398 {
399 friend class XLWorksheet;
400 friend class XLDocument;
401
402 public:
406 XLDrawing() : XLXmlFile(nullptr) {};
407
412 explicit XLDrawing(gsl::not_null<XLXmlData*> xmlData);
413
418 XLDrawing(const XLDrawing& other);
419
423 XLDrawing(XLDrawing&& other) noexcept;
424
428 ~XLDrawing() = default;
429
433 XLDrawing& operator=(const XLDrawing& other);
434
438 XLDrawing& operator=(XLDrawing&& other) noexcept;
439
451 void addImage(std::string_view rId,
452 std::string_view name,
453 std::string_view description,
454 uint32_t row,
455 uint32_t col,
456 uint32_t width,
457 uint32_t height,
458 const XLImageOptions& options = XLImageOptions());
459
469
470 void addShape(uint32_t row, uint32_t col, const XLVectorShapeOptions& options = XLVectorShapeOptions());
471 void addChartAnchor(std::string_view rId, std::string_view name, uint32_t row, uint32_t col, uint32_t width, uint32_t height);
472
473 void addChartAnchor(std::string_view rId, std::string_view name, uint32_t row, uint32_t col, XLDistance width, XLDistance height);
474
485 void addScaledImage(std::string_view rId,
486 std::string_view name,
487 std::string_view description,
488 std::string_view data,
489 uint32_t row,
490 uint32_t col,
491 double scalingFactor = 1.0);
492
498
503 uint32_t imageCount() const;
504
510 XLDrawingItem image(uint32_t index) const;
511
512 private:
513 // Helper to add namespaces if missing
514 void initXml();
515
516 std::unique_ptr<XLRelationships> m_relationships;
517 };
518
522 class OPENXLSX_EXPORT XLVmlDrawing : public XLXmlFile
523 {
524 friend class XLWorksheet; // for access to XLXmlFile::getXmlPath
525 friend class XLComments; // for access to firstShapeNode
526 public:
530 XLVmlDrawing() : XLXmlFile(nullptr) {};
531
536 explicit XLVmlDrawing(gsl::not_null<XLXmlData*> xmlData);
537
543 XLVmlDrawing(const XLVmlDrawing& other) = default;
544
545 XLVmlDrawing(XLVmlDrawing&& other) noexcept = default;
546
551 ~XLVmlDrawing() = default;
552
559
562 XLVmlDrawing& operator=(XLVmlDrawing&& other) noexcept = default;
563
564 private: // helper functions with repeating code
565 XMLNode firstShapeNode() const;
566 XMLNode lastShapeNode() const;
567 XMLNode shapeNode(uint32_t index) const;
568
569 public:
575 XMLNode shapeNode(std::string_view cellRef) const;
576
577 uint32_t shapeCount() const;
578
579 XLShape shape(uint32_t index) const;
580
581 bool deleteShape(uint32_t index);
582 bool deleteShape(std::string_view cellRef);
583
584 XLShape createShape(const XLShape& shapeTemplate = XLShape());
585
589 void print(std::basic_ostream<char>& ostr) const;
590
591 private:
592 uint32_t m_shapeCount{0};
593 uint32_t m_lastAssignedShapeId{0};
594 std::string m_defaultShapeTypeId{};
595 };
596} // namespace OpenXLSX
597
598#endif // OPENXLSX_XLDRAWING_HPP
Definition XLConstants.hpp:42
This class encapsulates the concept of an excel file. It is different from the XLWorkbook,...
Definition XLDocument.hpp:97
Definition XLDrawing.hpp:362
std::string name() const
Definition XLDrawing.cpp:833
uint32_t width() const
Definition XLDrawing.cpp:851
std::vector< uint8_t > imageBinary() const
Extracts the raw binary data of the image from the Excel zip archive.
Definition XLDrawing.cpp:872
uint32_t row() const
Definition XLDrawing.cpp:839
XLDrawingItem()
Definition XLDrawing.cpp:829
XLDrawingItem & operator=(const XLDrawingItem &other)=default
XLDrawingItem(const XLDrawingItem &other)=default
XLDrawingItem & operator=(XLDrawingItem &&other) noexcept=default
XLDrawingItem(XLDrawingItem &&other) noexcept=default
uint32_t height() const
Definition XLDrawing.cpp:860
uint32_t col() const
Definition XLDrawing.cpp:845
std::string relationshipId() const
Definition XLDrawing.cpp:869
std::string description() const
Definition XLDrawing.cpp:836
The XLDrawing class is the base class for worksheet drawings (images, charts, etc....
Definition XLDrawing.hpp:398
void addImage(std::string_view rId, std::string_view name, std::string_view description, uint32_t row, uint32_t col, uint32_t width, uint32_t height, const XLImageOptions &options=XLImageOptions())
Add an image to the drawing.
Definition XLDrawing.cpp:640
friend class XLWorksheet
Definition XLDrawing.hpp:399
~XLDrawing()=default
The destructor.
XLDrawing()
Constructor.
Definition XLDrawing.hpp:406
void addChartAnchor(std::string_view rId, std::string_view name, uint32_t row, uint32_t col, uint32_t width, uint32_t height)
Definition XLDrawing.cpp:738
XLDrawingItem image(uint32_t index) const
Get an image item by index.
Definition XLDrawing.cpp:929
XLDrawing & operator=(const XLDrawing &other)
Assignment operator.
Definition XLDrawing.cpp:606
friend class XLDocument
Definition XLDrawing.hpp:400
XLDrawing(XLDrawing &&other) noexcept
Move constructor.
void addShape(uint32_t row, uint32_t col, const XLVectorShapeOptions &options=XLVectorShapeOptions())
Add a chart to the drawing.
Definition XLDrawing.cpp:1051
void addScaledImage(std::string_view rId, std::string_view name, std::string_view description, std::string_view data, uint32_t row, uint32_t col, double scalingFactor=1.0)
Add an image to the drawing, automatically maintaining aspect ratio.
Definition XLDrawing.cpp:797
XLRelationships & relationships()
Get the drawing relationships.
Definition XLDrawing.cpp:820
XLDrawing & operator=(XLDrawing &&other) noexcept
Move assignment operator.
uint32_t imageCount() const
Get the number of images in the drawing.
Definition XLDrawing.cpp:917
Abstract package services port (archive + XML parts + relationships + content types).
Definition XLPackageServices.hpp:56
Definition XLRelationships.hpp:150
An encapsulation of a shape client data element x:ClientData.
Definition XLDrawing.hpp:63
bool setTextHAlign(XLShapeTextHAlign newTextHAlign)
Definition XLDrawing.cpp:170
XLShapeTextVAlign textVAlign() const
Definition XLDrawing.cpp:139
bool setColumn(uint16_t newColumn)
Definition XLDrawing.cpp:180
XLShapeTextHAlign textHAlign() const
Definition XLDrawing.cpp:141
XLShapeClientData(const XLShapeClientData &other)=default
Copy Constructor.
XLShapeClientData()
Definition XLDrawing.cpp:121
XLShapeClientData(XLShapeClientData &&other) noexcept=default
Move Constructor.
bool setAnchor(std::string_view newAnchor)
Definition XLDrawing.cpp:157
bool setTextVAlign(XLShapeTextVAlign newTextVAlign)
Definition XLDrawing.cpp:163
uint32_t row() const
Definition XLDrawing.cpp:143
bool sizeWithCells() const
Definition XLDrawing.cpp:136
bool setMoveWithCells(bool set=true)
Definition XLDrawing.cpp:151
bool autoFill() const
Definition XLDrawing.cpp:138
bool setObjectType(std::string_view newObjectType)
Component Data Mutators.
Definition XLDrawing.cpp:148
XLShapeClientData & operator=(XLShapeClientData &&other) noexcept=default
Move assignment operator.
bool moveWithCells() const
Definition XLDrawing.cpp:135
XLShapeClientData & operator=(const XLShapeClientData &other)=default
Copy assignment operator.
bool setRow(uint32_t newRow)
Definition XLDrawing.cpp:177
bool setSizeWithCells(bool set=true)
Definition XLDrawing.cpp:154
bool setAutoFill(bool set=true)
Definition XLDrawing.cpp:160
uint16_t column() const
Definition XLDrawing.cpp:145
std::string objectType() const
Component Data Accessors.
Definition XLDrawing.cpp:134
std::string anchor() const
Definition XLDrawing.cpp:137
Definition XLDrawing.hpp:141
uint16_t width() const
Definition XLDrawing.cpp:308
std::string raw() const
Definition XLDrawing.hpp:185
uint16_t marginTop() const
Definition XLDrawing.cpp:301
std::string vTextAnchor() const
Definition XLDrawing.cpp:323
uint16_t marginLeft() const
Definition XLDrawing.cpp:294
uint16_t height() const
Definition XLDrawing.cpp:315
bool hidden() const
Definition XLDrawing.cpp:324
bool setRaw(std::string_view newStyle)
Definition XLDrawing.hpp:200
std::string position() const
Style Attribute Accessors.
Definition XLDrawing.cpp:293
XLShapeStyle()
Definition XLDrawing.cpp:183
bool visible() const
Definition XLDrawing.cpp:325
std::string msoWrapStyle() const
Definition XLDrawing.cpp:322
Definition XLDrawing.hpp:221
bool setFillColor(std::string_view newFillColor)
Setter functions.
Definition XLDrawing.cpp:351
bool stroked() const
Definition XLDrawing.cpp:343
bool setType(std::string_view newType)
Definition XLDrawing.cpp:354
XLShape()
Definition XLDrawing.cpp:337
XLShape(const XLShape &other)=default
Copy Constructor.
std::string fillColor() const
Definition XLDrawing.cpp:342
bool setStroked(bool set)
Definition XLDrawing.cpp:353
friend class XLVmlDrawing
Definition XLDrawing.hpp:222
XLShape & operator=(XLShape &&other) noexcept=default
Move assignment operator.
XLShape & operator=(const XLShape &other)
Copy assignment operator.
friend class XLComments
Definition XLDrawing.hpp:223
bool setStyle(std::string_view newStyle)
Definition XLDrawing.cpp:357
XLShapeStyle style()
Definition XLDrawing.cpp:346
bool allowInCell() const
Definition XLDrawing.cpp:345
bool setAllowInCell(bool set)
Definition XLDrawing.cpp:356
~XLShape()=default
std::string shapeId() const
Component Data Accessors.
Definition XLDrawing.cpp:341
XLShapeClientData clientData()
Definition XLDrawing.cpp:348
XLShape(XLShape &&other) noexcept=default
Move Constructor.
std::string type() const
Definition XLDrawing.cpp:344
The XLVmlDrawing class is the base class for worksheet comments.
Definition XLDrawing.hpp:523
XLVmlDrawing(const XLVmlDrawing &other)=default
The copy constructor.
XLVmlDrawing()
Constructor.
Definition XLDrawing.hpp:530
friend class XLWorksheet
Definition XLDrawing.hpp:524
void print(std::basic_ostream< char > &ostr) const
Print the XML contents of this XLVmlDrawing instance using the underlying XMLNode print function.
Definition XLDrawing.cpp:590
uint32_t shapeCount() const
Definition XLDrawing.cpp:515
XLShape createShape(const XLShape &shapeTemplate=XLShape())
Definition XLDrawing.cpp:543
XLVmlDrawing & operator=(XLVmlDrawing &&other) noexcept=default
~XLVmlDrawing()=default
The destructor.
friend class XLComments
Definition XLDrawing.hpp:525
XLVmlDrawing & operator=(const XLVmlDrawing &)=default
Assignment operator.
bool deleteShape(uint32_t index)
Definition XLDrawing.cpp:519
XLShape shape(uint32_t index) const
Definition XLDrawing.cpp:517
XLVmlDrawing(XLVmlDrawing &&other) noexcept=default
XLXmlFile()=default
Default constructor.
Definition XLXmlParser.hpp:283
Definition IXLCellProvider.hpp:24
XLVectorShapeType
An encapsulation of a drawing item (e.g. an image).
Definition XLDrawing.hpp:296
@ SmileyFace
Definition XLDrawing.hpp:311
@ Arrow
Definition XLDrawing.hpp:302
@ Ellipse
Definition XLDrawing.hpp:298
@ Hexagon
Definition XLDrawing.hpp:305
@ FlowChartData
Definition XLDrawing.hpp:321
@ LightningBolt
Definition XLDrawing.hpp:317
@ Star4
Definition XLDrawing.hpp:306
@ FlowChartDocument
Definition XLDrawing.hpp:320
@ FlowChartDecision
Definition XLDrawing.hpp:319
@ Star16
Definition XLDrawing.hpp:308
@ FlowChartProcess
Definition XLDrawing.hpp:318
@ Donut
Definition XLDrawing.hpp:313
@ Parallelogram
Definition XLDrawing.hpp:304
@ RightTriangle
Definition XLDrawing.hpp:301
@ Cloud
Definition XLDrawing.hpp:312
@ Rectangle
Definition XLDrawing.hpp:297
@ Moon
Definition XLDrawing.hpp:316
@ Star24
Definition XLDrawing.hpp:309
@ Star5
Definition XLDrawing.hpp:307
@ Sun
Definition XLDrawing.hpp:315
@ Ribbon
Definition XLDrawing.hpp:314
@ Heart
Definition XLDrawing.hpp:310
@ Triangle
Definition XLChart.hpp:72
@ Diamond
Definition XLChart.hpp:72
const std::string_view ShapeNodeName
Definition XLDrawing.cpp:29
@ Line
Definition XLChart.hpp:37
constexpr const XLShapeTextHAlign XLDefaultShapeTextHAlign
Definition XLDrawing.hpp:57
OpenXLSX_xml_node XMLNode
Definition XLXmlParser.hpp:64
XLShapeTextVAlign
Definition XLDrawing.hpp:43
@ Center
Definition XLDrawing.hpp:44
@ Top
Definition XLDrawing.hpp:45
const std::string_view ShapeTypeNodeName
Definition XLDrawing.cpp:30
@ Invalid
Definition XLConditionalFormatting.hpp:47
constexpr const XLShapeTextVAlign XLDefaultShapeTextVAlign
Definition XLDrawing.hpp:49
@ Bottom
Definition XLChart.hpp:70
@ Right
Definition XLChart.hpp:70
@ Left
Definition XLChart.hpp:70
@ Top
Definition XLChart.hpp:70
XLShapeTextHAlign
Definition XLDrawing.hpp:51
@ Left
Definition XLDrawing.hpp:52
Options for inserting an image into a worksheet.
Definition XLImageOptions.hpp:33
Definition XLDrawing.hpp:135
std::string value
Definition XLDrawing.hpp:137
std::string name
Definition XLDrawing.hpp:136
Definition XLDrawing.hpp:325
std::optional< uint32_t > endCol
Definition XLDrawing.hpp:340
bool flipV
Definition XLDrawing.hpp:347
int32_t endOffsetY
Definition XLDrawing.hpp:342
XLVectorShapeType type
Definition XLDrawing.hpp:326
std::string arrowStart
Definition XLDrawing.hpp:351
double lineWidth
Definition XLDrawing.hpp:331
bool flipH
Definition XLDrawing.hpp:346
int32_t offsetX
Definition XLDrawing.hpp:335
uint32_t width
Definition XLDrawing.hpp:333
std::string vertAlign
Definition XLDrawing.hpp:357
std::string lineDash
Definition XLDrawing.hpp:350
std::string macro
Definition XLDrawing.hpp:359
std::string fillColor
Definition XLDrawing.hpp:329
int32_t endOffsetX
Definition XLDrawing.hpp:341
std::string lineColor
Definition XLDrawing.hpp:330
std::string name
Definition XLDrawing.hpp:327
uint32_t height
Definition XLDrawing.hpp:334
uint32_t rotation
Definition XLDrawing.hpp:345
std::string arrowEnd
Definition XLDrawing.hpp:352
std::optional< XLRichText > richText
Definition XLDrawing.hpp:355
int32_t offsetY
Definition XLDrawing.hpp:336
std::string horzAlign
Definition XLDrawing.hpp:356
std::optional< uint32_t > endRow
Definition XLDrawing.hpp:339
std::string text
Definition XLDrawing.hpp:328