WKSChart.h
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
2/* libwps
3 * Version: MPL 2.0 / LGPLv2.1+
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 * Major Contributor(s):
10 * Copyright (C) 2006, 2007 Andrew Ziem
11 * Copyright (C) 2004 Marc Maurer (uwog@uwog.net)
12 * Copyright (C) 2004-2006 Fridrich Strba (fridrich.strba@bluewin.ch)
13 *
14 * For minor contributions see the git repository.
15 *
16 * Alternatively, the contents of this file may be used under the terms
17 * of the GNU Lesser General Public License Version 2.1 or later
18 * (LGPLv2.1+), in which case the provisions of the LGPLv2.1+ are
19 * applicable instead of those above.
20 */
21
22/*
23 * Structure to store and construct a chart
24 *
25 */
26
27#ifndef WKS_CHART
28# define WKS_CHART
29
30#include <iostream>
31#include <vector>
32#include <map>
33
34#include "libwps_internal.h"
35
36#include "WPSEntry.h"
37#include "WPSFont.h"
38#include "WPSGraphicStyle.h"
39
40 namespace WKSChartInternal
41{
42 class SubDocument;
43}
45 class WKSChart
46{
47 friend class WKSChartInternal::SubDocument;
48 public:
50 struct Position
51 {
53 explicit Position(Vec2i pos=Vec2i(-1,-1), librevenge::RVNGString const &sheetName="")
54 : m_pos(pos)
55 , m_sheetName(sheetName)
56 , m_sheetId(-1)
57 {
58 }
59
60 bool valid() const
61 {
62 return m_pos[0]>=0 && m_pos[1]>=0 && (!m_sheetName.empty() || m_sheetId>=0);
63 }
64
65 bool valid(Position const &maxPos) const
66 {
67 return valid() && maxPos.valid() && maxPos.m_pos[0]>=m_pos[0] && maxPos.m_pos[1]>=m_pos[1];
68 }
69
70 librevenge::RVNGString getCellName() const;
72 friend std::ostream &operator<<(std::ostream &o, Position const &pos);
74 bool operator==(Position const &pos) const
75 {
76 return m_pos==pos.m_pos && m_sheetName==pos.m_sheetName && m_sheetId==pos.m_sheetId;
77 }
78
79 bool operator!=(Position const &pos) const
80 {
81 return !(operator==(pos));
82 }
83
84 Vec2i m_pos;
86 librevenge::RVNGString m_sheetName;
92 int m_sheetId;
93 };
94
95 struct Axis
96 {
98 enum Type { A_None, A_Numeric, A_Logarithmic, A_Sequence, A_Sequence_Skip_Empty };
100 Axis();
102 ~Axis();
104 void addContentTo(int coord, librevenge::RVNGPropertyList &propList) const;
106 void addStyleTo(librevenge::RVNGPropertyList &propList) const;
108 friend std::ostream &operator<<(std::ostream &o, Axis const &axis);
110 Type m_type;
112 bool m_automaticScaling;
114 Vec2f m_scaling;
116 bool m_showGrid;
118 bool m_showLabel;
120 Position m_labelRanges[2];
121
123 bool m_showTitle;
125 Position m_titleRange;
127 librevenge::RVNGString m_title;
129 librevenge::RVNGString m_subTitle;
131 WPSGraphicStyle m_style;
132 };
133
134 struct Legend
135 {
137 Legend()
138 : m_show(false)
139 , m_autoPosition(true)
140 , m_relativePosition(WPSBorder::RightBit)
141 , m_position(0,0)
142 , m_font()
143 , m_style()
144 {
145 }
146
147 void addContentTo(librevenge::RVNGPropertyList &propList) const;
149 void addStyleTo(librevenge::RVNGPropertyList &propList) const;
151 friend std::ostream &operator<<(std::ostream &o, Legend const &legend);
153 bool m_show;
155 bool m_autoPosition;
157 int m_relativePosition;
159 Vec2f m_position;
161 WPSFont m_font;
163 WPSGraphicStyle m_style;
164 };
165
166 struct Serie
167 {
169 enum Type { S_Area, S_Bar, S_Bubble, S_Circle, S_Column, S_Gantt, S_Line, S_Radar, S_Ring, S_Scatter, S_Stock, S_Surface };
171 enum PointType
172 {
173 P_None=0, P_Automatic, P_Square, P_Diamond, P_Arrow_Down,
174 P_Arrow_Up, P_Arrow_Right, P_Arrow_Left, P_Bow_Tie, P_Hourglass,
175 P_Circle, P_Star, P_X, P_Plus, P_Asterisk,
176 P_Horizontal_Bar, P_Vertical_Bar
177 };
178
179 Serie();
180 Serie(Serie const &)=default;
181 Serie(Serie &&)=default;
182 Serie &operator=(Serie const &)=default;
183 Serie &operator=(Serie &&)=default;
185 virtual ~Serie();
187 bool is1DStyle() const
188 {
189 return m_type==S_Line || m_type==S_Radar || (m_type==S_Scatter && m_pointType==P_None);
190 }
191
192 void setPrimaryColor(WPSColor const &color, float opacity = 1, bool force1D=false)
193 {
194 if (force1D || is1DStyle())
195 m_style.m_lineColor=color;
196 else
197 m_style.setSurfaceColor(color, opacity);
198 }
199
200 void setPrimaryPattern(WPSGraphicStyle::Pattern const &pattern, bool force1D=false);
202 void setSecondaryColor(WPSColor const &color)
203 {
204 if (!is1DStyle())
205 m_style.m_lineColor=color;
206 }
207
208 bool valid() const
209 {
210 return m_ranges[0].valid(m_ranges[0]);
211 }
212
213 void addContentTo(librevenge::RVNGPropertyList &propList) const;
215 void addStyleTo(librevenge::RVNGPropertyList &propList) const;
217 static std::string getSerieTypeName(Type type);
219 friend std::ostream &operator<<(std::ostream &o, Serie const &series);
221 Type m_type;
223 Position m_ranges[2];
225 bool m_useSecondaryY;
227 WPSFont m_font;
229 Position m_labelRanges[2];
231 Position m_legendRange;
233 librevenge::RVNGString m_legendText;
235 WPSGraphicStyle m_style;
237 PointType m_pointType;
238 };
239
240 struct TextZone
241 {
243 enum Type { T_Title, T_SubTitle, T_Footer };
245 enum ContentType { C_Cell, C_Text };
246
248 explicit TextZone(Type type);
249 TextZone(TextZone const &)=default;
251 ~TextZone();
253 bool valid() const
254 {
255 if (!m_show) return false;
256 if (m_contentType==C_Cell)
257 return m_cell.valid();
258 if (m_contentType!=C_Text)
259 return false;
260 for (auto const &e : m_textEntryList)
261 {
262 if (e.valid()) return true;
263 }
264 return false;
265 }
266
267 void addContentTo(librevenge::RVNGPropertyList &propList) const;
269 void addStyleTo(librevenge::RVNGPropertyList &propList) const;
271 friend std::ostream &operator<<(std::ostream &o, TextZone const &zone);
273 Type m_type;
275 ContentType m_contentType;
277 bool m_show;
279 Vec2f m_position;
281 Position m_cell;
283 std::vector<WPSEntry> m_textEntryList;
285 WPSFont m_font;
287 WPSGraphicStyle m_style;
288 };
289
291 explicit WKSChart(Vec2f const &dim=Vec2f());
293 virtual ~WKSChart();
295 void sendChart(WKSContentListenerPtr &listener, librevenge::RVNGSpreadsheetInterface *interface) const;
297 virtual void sendContent(TextZone const &zone, WPSListenerPtr &listener) const=0;
298
300 void setGridColor(WPSColor const &color)
301 {
302 m_gridColor=color;
303 }
304
305 Axis &getAxis(int coord);
307 Axis const &getAxis(int coord) const;
308
310 Legend const &getLegend() const
311 {
312 return m_legend;
313 }
314
315 Legend &getLegend()
316 {
317 return m_legend;
318 }
319
321 Serie *getSerie(int id, bool create);
323 std::map<int, Serie> const &getIdSerieMap() const
324 {
325 return m_serieMap;
326 }
327
328 TextZone *getTextZone(TextZone::Type type, bool create=false);
329
330 protected:
332 void sendTextZoneContent(TextZone::Type type, WPSListenerPtr listener) const;
333
334 public:
336 Vec2f m_dimension;
338 Serie::Type m_type;
340 bool m_dataStacked;
342 bool m_dataPercentStacked;
344 bool m_dataVertical;
346 bool m_is3D;
348 bool m_is3DDeep;
349
350 // main
351
353 WPSGraphicStyle m_style;
355 librevenge::RVNGString m_name;
356
357 // plot area
358
360 WPSBox2f m_plotAreaPosition;
362 WPSGraphicStyle m_plotAreaStyle;
363
364 // legend
365
367 WPSBox2f m_legendPosition;
368
370 WPSGraphicStyle m_floorStyle;
372 WPSGraphicStyle m_wallStyle;
373
374 protected:
376 WPSColor m_gridColor;
378 Axis m_axis[5];
380 Legend m_legend;
382 std::map<int, Serie> m_serieMap;
384 std::map<TextZone::Type, TextZone> m_textZoneMap;
385 private:
386 explicit WKSChart(WKSChart const &orig) = delete;
387 WKSChart &operator=(WKSChart const &orig) = delete;
388};
389
390#endif
391/* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */
WPSEntry.h
WPSFont.h
WPSGraphicStyle.h
WKSChartInternal::SubDocument
Internal: the subdocument of a WKSChart.
Definition WKSChart.cpp:49
WKSChart::m_dimension
Vec2f m_dimension
the chart dimension in point
Definition WKSChart.h:336
WKSChart::m_type
Serie::Type m_type
the chart type (if no series)
Definition WKSChart.h:338
WKSChart::m_name
librevenge::RVNGString m_name
the chart name
Definition WKSChart.h:355
WKSChart::m_dataStacked
bool m_dataStacked
a flag to know if the data are stacked or not
Definition WKSChart.h:340
WKSChart::m_legend
Legend m_legend
the legend
Definition WKSChart.h:380
WKSChart::m_textZoneMap
std::map< TextZone::Type, TextZone > m_textZoneMap
a map text zone type to text zone
Definition WKSChart.h:384
WKSChart::m_serieMap
std::map< int, Serie > m_serieMap
the list of series
Definition WKSChart.h:382
WKSChart::getIdSerieMap
std::map< int, Serie > const & getIdSerieMap() const
returns the list of defined series
Definition WKSChart.h:323
WKSChart::m_style
WPSGraphicStyle m_style
the chart style
Definition WKSChart.h:353
WKSChart::sendContent
virtual void sendContent(TextZone const &zone, WPSListenerPtr &listener) const =0
send the zone content (called when the zone is of text type)
WKSChart::m_plotAreaStyle
WPSGraphicStyle m_plotAreaStyle
the ploat area style
Definition WKSChart.h:362
WKSChart::m_legendPosition
WPSBox2f m_legendPosition
the legend dimension in percent
Definition WKSChart.h:367
WKSChart::sendTextZoneContent
void sendTextZoneContent(TextZone::Type type, WPSListenerPtr listener) const
sends a textzone content
Definition WKSChart.cpp:176
WKSChart::getAxis
Axis & getAxis(int coord)
return an axis (corresponding to a coord)
Definition WKSChart.cpp:136
WKSChart::WKSChart
WKSChart(WKSChart const &orig)=delete
WKSChart::~WKSChart
virtual ~WKSChart()
the destructor
Definition WKSChart.cpp:132
WKSChart::m_axis
Axis m_axis[5]
the x,y,y-second,z and a bad axis
Definition WKSChart.h:378
WKSChart::m_dataPercentStacked
bool m_dataPercentStacked
a flag to know if the data are percent stacked or not
Definition WKSChart.h:342
WKSChart::sendChart
void sendChart(WKSContentListenerPtr &listener, librevenge::RVNGSpreadsheetInterface *interface) const
send the chart to the listener
Definition WKSChart.cpp:186
WKSChart::m_is3DDeep
bool m_is3DDeep
a flag to know if real 3D or 2D-extended
Definition WKSChart.h:348
WKSChart::WKSChart
WKSChart(Vec2f const &dim=Vec2f())
the constructor
Definition WKSChart.cpp:104
WKSChart::m_dataVertical
bool m_dataVertical
a flag to know if the data are vertical (for bar)
Definition WKSChart.h:344
WKSChart::m_wallStyle
WPSGraphicStyle m_wallStyle
wall
Definition WKSChart.h:372
WKSChart::setGridColor
void setGridColor(WPSColor const &color)
set the grid color
Definition WKSChart.h:300
WKSChart::operator=
WKSChart & operator=(WKSChart const &orig)=delete
WKSChart::m_gridColor
WPSColor m_gridColor
the grid color
Definition WKSChart.h:376
WKSChart::getLegend
Legend const & getLegend() const
returns the legend
Definition WKSChart.h:310
WKSChart::getLegend
Legend & getLegend()
returns the legend
Definition WKSChart.h:315
WKSChart::m_plotAreaPosition
WPSBox2f m_plotAreaPosition
the plot area dimension in percent
Definition WKSChart.h:360
WKSChart::m_floorStyle
WPSGraphicStyle m_floorStyle
floor
Definition WKSChart.h:370
WKSChart::m_is3D
bool m_is3D
a flag to know if the graphic is 3D
Definition WKSChart.h:346
WKSChart::getSerie
Serie * getSerie(int id, bool create)
return a serie
Definition WKSChart.cpp:156
WKSChart::getTextZone
TextZone * getTextZone(TextZone::Type type, bool create=false)
returns a textzone content
Definition WKSChart.cpp:166
WPSFont
define the font properties
Definition WPSFont.h:37
WPSGraphicStyle
a structure used to define a picture style
Definition WPSGraphicStyle.h:38
libwps_internal.h
WKSContentListenerPtr
std::shared_ptr< WKSContentListener > WKSContentListenerPtr
shared pointer to WKSContentListener
Definition libwps_internal.h:114
Vec2i
Vec2< int > Vec2i
Vec2 of int.
Definition libwps_internal.h:702
Vec2f
Vec2< float > Vec2f
Vec2 of float.
Definition libwps_internal.h:704
WPSBox2f
WPSBox2< float > WPSBox2f
WPSBox2 of float.
Definition libwps_internal.h:890
WPSListenerPtr
std::shared_ptr< WPSListener > WPSListenerPtr
shared pointer to WPSListener
Definition libwps_internal.h:105
WKSChartInternal
Internal: the structures of a WKSChart.
Definition WKSChart.cpp:45
WKSChart::Axis
a axis in a chart
Definition WKSChart.h:96
WKSChart::Axis::m_title
librevenge::RVNGString m_title
the title label
Definition WKSChart.h:127
WKSChart::Axis::m_showTitle
bool m_showTitle
show or not the title/subtitle
Definition WKSChart.h:123
WKSChart::Axis::m_labelRanges
Position m_labelRanges[2]
the label range if defined
Definition WKSChart.h:120
WKSChart::Axis::m_style
WPSGraphicStyle m_style
the graphic style
Definition WKSChart.h:131
WKSChart::Axis::addContentTo
void addContentTo(int coord, librevenge::RVNGPropertyList &propList) const
add content to the propList
Definition WKSChart.cpp:398
WKSChart::Axis::addStyleTo
void addStyleTo(librevenge::RVNGPropertyList &propList) const
add style to the propList
Definition WKSChart.cpp:457
WKSChart::Axis::operator<<
friend std::ostream & operator<<(std::ostream &o, Axis const &axis)
operator<<
Definition WKSChart.cpp:472
WKSChart::Axis::~Axis
~Axis()
destructor
Definition WKSChart.cpp:394
WKSChart::Axis::m_scaling
Vec2f m_scaling
the minimum, maximum scaling(if manual)
Definition WKSChart.h:114
WKSChart::Axis::m_showLabel
bool m_showLabel
show or not the label
Definition WKSChart.h:118
WKSChart::Axis::Axis
Axis()
constructor
Definition WKSChart.cpp:379
WKSChart::Axis::m_type
Type m_type
the sequence type
Definition WKSChart.h:110
WKSChart::Axis::m_showGrid
bool m_showGrid
show or not the grid
Definition WKSChart.h:116
WKSChart::Axis::m_subTitle
librevenge::RVNGString m_subTitle
the subtitle label
Definition WKSChart.h:129
WKSChart::Axis::Type
Type
the axis content
Definition WKSChart.h:98
WKSChart::Axis::A_Sequence_Skip_Empty
@ A_Sequence_Skip_Empty
Definition WKSChart.h:98
WKSChart::Axis::A_None
@ A_None
Definition WKSChart.h:98
WKSChart::Axis::A_Numeric
@ A_Numeric
Definition WKSChart.h:98
WKSChart::Axis::A_Sequence
@ A_Sequence
Definition WKSChart.h:98
WKSChart::Axis::A_Logarithmic
@ A_Logarithmic
Definition WKSChart.h:98
WKSChart::Axis::m_automaticScaling
bool m_automaticScaling
automatic scaling (or manual)
Definition WKSChart.h:112
WKSChart::Axis::m_titleRange
Position m_titleRange
the title cell range
Definition WKSChart.h:125
WKSChart::Legend
a legend in a chart
Definition WKSChart.h:135
WKSChart::Legend::m_relativePosition
int m_relativePosition
the automatic position libwps::LeftBit|...
Definition WKSChart.h:157
WKSChart::Legend::Legend
Legend()
constructor
Definition WKSChart.h:137
WKSChart::Legend::m_show
bool m_show
show or not the legend
Definition WKSChart.h:153
WKSChart::Legend::m_style
WPSGraphicStyle m_style
the graphic style
Definition WKSChart.h:163
WKSChart::Legend::m_font
WPSFont m_font
the font
Definition WKSChart.h:161
WKSChart::Legend::m_position
Vec2f m_position
the position in points
Definition WKSChart.h:159
WKSChart::Legend::operator<<
friend std::ostream & operator<<(std::ostream &o, Legend const &legend)
operator<<
Definition WKSChart.cpp:547
WKSChart::Legend::m_autoPosition
bool m_autoPosition
automatic position
Definition WKSChart.h:155
WKSChart::Legend::addContentTo
void addContentTo(librevenge::RVNGPropertyList &propList) const
add content to the propList
Definition WKSChart.cpp:517
WKSChart::Legend::addStyleTo
void addStyleTo(librevenge::RVNGPropertyList &propList) const
add style to the propList
Definition WKSChart.cpp:540
WKSChart::Position
a cell position
Definition WKSChart.h:51
WKSChart::Position::valid
bool valid(Position const &maxPos) const
return true if the position is valid
Definition WKSChart.h:65
WKSChart::Position::operator!=
bool operator!=(Position const &pos) const
operator!=
Definition WKSChart.h:79
WKSChart::Position::operator==
bool operator==(Position const &pos) const
operator==
Definition WKSChart.h:74
WKSChart::Position::Position
Position(Vec2i pos=Vec2i(-1,-1), librevenge::RVNGString const &sheetName="")
constructor
Definition WKSChart.h:53
WKSChart::Position::getCellName
librevenge::RVNGString getCellName() const
return the cell name
Definition WKSChart.cpp:354
WKSChart::Position::m_pos
Vec2i m_pos
the cell column and row
Definition WKSChart.h:84
WKSChart::Position::m_sheetId
int m_sheetId
the cell sheet id
Definition WKSChart.h:92
WKSChart::Position::operator<<
friend std::ostream & operator<<(std::ostream &o, Position const &pos)
operator<<
Definition WKSChart.cpp:368
WKSChart::Position::valid
bool valid() const
return true if the position is valid
Definition WKSChart.h:60
WKSChart::Position::m_sheetName
librevenge::RVNGString m_sheetName
the cell sheet name
Definition WKSChart.h:86
WKSChart::Serie
a serie in a chart
Definition WKSChart.h:167
WKSChart::Serie::operator<<
friend std::ostream & operator<<(std::ostream &o, Serie const &series)
operator<<
Definition WKSChart.cpp:718
WKSChart::Serie::m_useSecondaryY
bool m_useSecondaryY
use or not the secondary y axis
Definition WKSChart.h:225
WKSChart::Serie::valid
bool valid() const
return true if the serie is valid
Definition WKSChart.h:208
WKSChart::Serie::addStyleTo
void addStyleTo(librevenge::RVNGPropertyList &propList) const
add style to the propList
Definition WKSChart.cpp:683
WKSChart::Serie::PointType
PointType
the point type
Definition WKSChart.h:172
WKSChart::Serie::P_Plus
@ P_Plus
Definition WKSChart.h:175
WKSChart::Serie::P_None
@ P_None
Definition WKSChart.h:173
WKSChart::Serie::P_Arrow_Up
@ P_Arrow_Up
Definition WKSChart.h:174
WKSChart::Serie::P_Vertical_Bar
@ P_Vertical_Bar
Definition WKSChart.h:176
WKSChart::Serie::P_Arrow_Right
@ P_Arrow_Right
Definition WKSChart.h:174
WKSChart::Serie::P_Horizontal_Bar
@ P_Horizontal_Bar
Definition WKSChart.h:176
WKSChart::Serie::P_Star
@ P_Star
Definition WKSChart.h:175
WKSChart::Serie::P_Arrow_Down
@ P_Arrow_Down
Definition WKSChart.h:173
WKSChart::Serie::P_Automatic
@ P_Automatic
Definition WKSChart.h:173
WKSChart::Serie::P_X
@ P_X
Definition WKSChart.h:175
WKSChart::Serie::P_Square
@ P_Square
Definition WKSChart.h:173
WKSChart::Serie::P_Asterisk
@ P_Asterisk
Definition WKSChart.h:175
WKSChart::Serie::P_Diamond
@ P_Diamond
Definition WKSChart.h:173
WKSChart::Serie::P_Hourglass
@ P_Hourglass
Definition WKSChart.h:174
WKSChart::Serie::P_Circle
@ P_Circle
Definition WKSChart.h:175
WKSChart::Serie::P_Bow_Tie
@ P_Bow_Tie
Definition WKSChart.h:174
WKSChart::Serie::P_Arrow_Left
@ P_Arrow_Left
Definition WKSChart.h:174
WKSChart::Serie::m_legendRange
Position m_legendRange
the legend range if defined
Definition WKSChart.h:231
WKSChart::Serie::operator=
Serie & operator=(Serie const &)=default
WKSChart::Serie::operator=
Serie & operator=(Serie &&)=default
WKSChart::Serie::m_legendText
librevenge::RVNGString m_legendText
the legend name if defined
Definition WKSChart.h:233
WKSChart::Serie::setPrimaryColor
void setPrimaryColor(WPSColor const &color, float opacity=1, bool force1D=false)
set the primary color
Definition WKSChart.h:192
WKSChart::Serie::setPrimaryPattern
void setPrimaryPattern(WPSGraphicStyle::Pattern const &pattern, bool force1D=false)
set the primary pattern
Definition WKSChart.cpp:707
WKSChart::Serie::m_pointType
PointType m_pointType
the point type
Definition WKSChart.h:237
WKSChart::Serie::Type
Type
the series type
Definition WKSChart.h:169
WKSChart::Serie::S_Column
@ S_Column
Definition WKSChart.h:169
WKSChart::Serie::S_Circle
@ S_Circle
Definition WKSChart.h:169
WKSChart::Serie::S_Bar
@ S_Bar
Definition WKSChart.h:169
WKSChart::Serie::S_Area
@ S_Area
Definition WKSChart.h:169
WKSChart::Serie::S_Ring
@ S_Ring
Definition WKSChart.h:169
WKSChart::Serie::S_Scatter
@ S_Scatter
Definition WKSChart.h:169
WKSChart::Serie::S_Gantt
@ S_Gantt
Definition WKSChart.h:169
WKSChart::Serie::S_Surface
@ S_Surface
Definition WKSChart.h:169
WKSChart::Serie::S_Line
@ S_Line
Definition WKSChart.h:169
WKSChart::Serie::S_Stock
@ S_Stock
Definition WKSChart.h:169
WKSChart::Serie::S_Bubble
@ S_Bubble
Definition WKSChart.h:169
WKSChart::Serie::S_Radar
@ S_Radar
Definition WKSChart.h:169
WKSChart::Serie::setSecondaryColor
void setSecondaryColor(WPSColor const &color)
set the secondary color
Definition WKSChart.h:202
WKSChart::Serie::Serie
Serie()
constructor
Definition WKSChart.cpp:577
WKSChart::Serie::getSerieTypeName
static std::string getSerieTypeName(Type type)
returns a string corresponding to a series type
Definition WKSChart.cpp:594
WKSChart::Serie::Serie
Serie(Serie const &)=default
WKSChart::Serie::is1DStyle
bool is1DStyle() const
return true if the serie style is 1D
Definition WKSChart.h:187
WKSChart::Serie::m_ranges
Position m_ranges[2]
the data range
Definition WKSChart.h:223
WKSChart::Serie::~Serie
virtual ~Serie()
destructor
Definition WKSChart.cpp:590
WKSChart::Serie::addContentTo
void addContentTo(librevenge::RVNGPropertyList &propList) const
add content to the propList
Definition WKSChart.cpp:630
WKSChart::Serie::m_font
WPSFont m_font
the label font
Definition WKSChart.h:227
WKSChart::Serie::m_type
Type m_type
the type
Definition WKSChart.h:221
WKSChart::Serie::Serie
Serie(Serie &&)=default
WKSChart::Serie::m_style
WPSGraphicStyle m_style
the graphic style
Definition WKSChart.h:235
WKSChart::Serie::m_labelRanges
Position m_labelRanges[2]
the label ranges if defined(unused)
Definition WKSChart.h:229
WKSChart::TextZone
a text zone a chart
Definition WKSChart.h:241
WKSChart::TextZone::addStyleTo
void addStyleTo(librevenge::RVNGPropertyList &propList) const
add to the propList
Definition WKSChart.cpp:852
WKSChart::TextZone::ContentType
ContentType
the text content type
Definition WKSChart.h:245
WKSChart::TextZone::C_Cell
@ C_Cell
Definition WKSChart.h:245
WKSChart::TextZone::C_Text
@ C_Text
Definition WKSChart.h:245
WKSChart::TextZone::m_font
WPSFont m_font
the zone format
Definition WKSChart.h:285
WKSChart::TextZone::m_show
bool m_show
true if the zone is visible
Definition WKSChart.h:277
WKSChart::TextZone::operator<<
friend std::ostream & operator<<(std::ostream &o, TextZone const &zone)
operator<<
Definition WKSChart.cpp:858
WKSChart::TextZone::m_type
Type m_type
the zone type
Definition WKSChart.h:273
WKSChart::TextZone::TextZone
TextZone(TextZone const &)=default
WKSChart::TextZone::m_contentType
ContentType m_contentType
the content type
Definition WKSChart.h:275
WKSChart::TextZone::m_cell
Position m_cell
the cell position ( or title and subtitle)
Definition WKSChart.h:281
WKSChart::TextZone::addContentTo
void addContentTo(librevenge::RVNGPropertyList &propList) const
add content to the propList
Definition WKSChart.cpp:812
WKSChart::TextZone::Type
Type
the text type
Definition WKSChart.h:243
WKSChart::TextZone::T_Title
@ T_Title
Definition WKSChart.h:243
WKSChart::TextZone::T_Footer
@ T_Footer
Definition WKSChart.h:243
WKSChart::TextZone::T_SubTitle
@ T_SubTitle
Definition WKSChart.h:243
WKSChart::TextZone::~TextZone
~TextZone()
destructor
Definition WKSChart.cpp:808
WKSChart::TextZone::TextZone
TextZone(Type type)
constructor
Definition WKSChart.cpp:795
WKSChart::TextZone::m_style
WPSGraphicStyle m_style
the graphic style
Definition WKSChart.h:287
WKSChart::TextZone::valid
bool valid() const
returns true if the textbox is valid
Definition WKSChart.h:253
WKSChart::TextZone::m_textEntryList
std::vector< WPSEntry > m_textEntryList
the text entry (or the list of text entry)
Definition WKSChart.h:283
WKSChart::TextZone::m_position
Vec2f m_position
the position in the zone
Definition WKSChart.h:279
WPSBorder
a border list
Definition libwps_internal.h:395
WPSColor
the class to store a color
Definition libwps_internal.h:281
WPSGraphicStyle::Pattern
a basic pattern used in a WPSGraphicStyle:
Definition WPSGraphicStyle.h:89