97 void addContentTo(
int coord, librevenge::RVNGPropertyList &propList)
const;
99 void addStyleTo(librevenge::RVNGPropertyList &propList)
const;
101 friend std::ostream &
operator<<(std::ostream &o,
Axis const &axis);
140 void addContentTo(librevenge::RVNGPropertyList &propList)
const;
142 void addStyleTo(librevenge::RVNGPropertyList &propList)
const;
162 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 };
202 void addContentTo(librevenge::RVNGPropertyList &propList)
const;
204 void addStyleTo(librevenge::RVNGPropertyList &propList)
const;
243 if (!
m_show)
return false;
250 if (e.valid())
return true;
255 void addContentTo(librevenge::RVNGPropertyList &propList)
const;
257 void addStyleTo(librevenge::RVNGPropertyList &propList)
const;
295 Axis
const &
getAxis(
int coord)
const;
309 Serie *
getSerie(
int id,
bool create);
void addContentTo(int coord, librevenge::RVNGPropertyList &propList) const
add content to the propList
Definition: WKSChart.cpp:398
Definition: WKSChart.h:169
a cell position
Definition: WKSChart.h:50
std::shared_ptr< WPSListener > WPSListenerPtr
shared pointer to WPSListener
Definition: libwps_internal.h:105
virtual ~Serie()
destructor
Definition: WKSChart.cpp:590
Internal: the subdocument of a WKSChart.
Definition: WKSChart.cpp:48
Vec2< float > Vec2f
Vec2 of float.
Definition: libwps_internal.h:704
a border list
Definition: libwps_internal.h:394
bool operator==(Position &pos) const
operator==
Definition: WKSChart.h:73
Definition: WKSChart.h:162
Serie()
constructor
Definition: WKSChart.cpp:577
a class used to store a chart associated to a spreadsheet ....
Definition: WKSChart.h:45
std::map< int, Serie > m_serieMap
the list of series
Definition: WKSChart.h:370
Definition: WKSChart.h:166
friend std::ostream & operator<<(std::ostream &o, Position const &pos)
operator<<
Definition: WKSChart.cpp:368
WPSGraphicStyle m_style
the graphic style
Definition: WKSChart.h:275
virtual ~WKSChart()
the destructor
Definition: WKSChart.cpp:132
Type
the text type
Definition: WKSChart.h:232
librevenge::RVNGString m_sheetName
the cell sheet name
Definition: WKSChart.h:85
Type m_type
the zone type
Definition: WKSChart.h:261
Definition: WKSChart.h:162
friend std::ostream & operator<<(std::ostream &o, Legend const &legend)
operator<<
Definition: WKSChart.cpp:547
WPSGraphicStyle m_floorStyle
floor
Definition: WKSChart.h:358
bool m_showTitle
show or not the title/subtitle
Definition: WKSChart.h:116
define the font properties
Definition: WPSFont.h:36
librevenge::RVNGString m_name
the chart name
Definition: WKSChart.h:343
Definition: WKSChart.h:91
void addContentTo(librevenge::RVNGPropertyList &propList) const
add content to the propList
Definition: WKSChart.cpp:630
Position m_ranges[2]
the data range
Definition: WKSChart.h:212
Position(Vec2i pos=Vec2i(-1,-1), librevenge::RVNGString const &sheetName="")
constructor
Definition: WKSChart.h:53
Position m_titleRange
the title cell range
Definition: WKSChart.h:118
Legend m_legend
the legend
Definition: WKSChart.h:368
static std::string getSerieTypeName(Type type)
returns a string corresponding to a series type
Definition: WKSChart.cpp:594
Position m_legendRange
the legend range if defined
Definition: WKSChart.h:220
bool valid(Position const &maxPos) const
return true if the position is valid
Definition: WKSChart.h:64
WPSGraphicStyle m_style
the graphic style
Definition: WKSChart.h:156
librevenge::RVNGString m_legendText
the legend name if defined
Definition: WKSChart.h:222
Vec2f m_scaling
the minimum, maximum scaling(if manual)
Definition: WKSChart.h:107
bool m_dataStacked
a flag to know if the data are stacked or not
Definition: WKSChart.h:328
WPSGraphicStyle m_wallStyle
wall
Definition: WKSChart.h:360
Definition: WKSChart.h:168
Internal: the structures of a WKSChart.
Definition: WKSChart.cpp:44
void addContentTo(librevenge::RVNGPropertyList &propList) const
add content to the propList
Definition: WKSChart.cpp:517
Definition: WKSChart.h:162
Legend & getLegend()
returns the legend
Definition: WKSChart.h:303
Definition: WKSChart.h:91
bool m_showGrid
show or not the grid
Definition: WKSChart.h:109
Definition: WKSChart.h:167
Definition: WKSChart.h:168
WPSGraphicStyle m_plotAreaStyle
the ploat area style
Definition: WKSChart.h:350
Axis & getAxis(int coord)
return an axis (corresponding to a coord)
Definition: WKSChart.cpp:136
Definition: WKSChart.h:166
Definition: WKSChart.h:234
Definition: WKSChart.h:168
WPSGraphicStyle m_style
the graphic style
Definition: WKSChart.h:124
Definition: WKSChart.h:162
void setSurfaceColor(WPSColor const &col, float opacity=1)
set the surface color
Definition: WPSGraphicStyle.h:246
std::vector< WPSEntry > m_textEntryList
the text entry (or the list of text entry)
Definition: WKSChart.h:271
Position m_cell
the cell position ( or title and subtitle)
Definition: WKSChart.h:269
a axis in a chart
Definition: WKSChart.h:88
a structure used to define a picture style
Definition: WPSGraphicStyle.h:37
Definition: WKSChart.h:167
Definition: WKSChart.h:162
Legend()
constructor
Definition: WKSChart.h:130
Definition: WKSChart.h:91
Vec2i m_pos
the cell column and row
Definition: WKSChart.h:83
WPSGraphicStyle m_style
the chart style
Definition: WKSChart.h:341
Serie * getSerie(int id, bool create)
return a serie
Definition: WKSChart.cpp:156
Definition: WKSChart.h:162
Definition: WKSChart.h:166
bool valid() const
return true if the serie is valid
Definition: WKSChart.h:197
Vec2f m_dimension
the chart dimension in point
Definition: WKSChart.h:324
PointType
the point type
Definition: WKSChart.h:164
Definition: WKSChart.h:234
void sendChart(WKSContentListenerPtr &listener, librevenge::RVNGSpreadsheetInterface *interface) const
send the chart to the listener
Definition: WKSChart.cpp:186
WPSFont m_font
the zone format
Definition: WKSChart.h:273
WPSFont m_font
the font
Definition: WKSChart.h:154
std::map< int, Serie > const & getIdSerieMap() const
returns the list of defined series
Definition: WKSChart.h:311
WPSFont m_font
the label font
Definition: WKSChart.h:216
void addStyleTo(librevenge::RVNGPropertyList &propList) const
add style to the propList
Definition: WKSChart.cpp:457
Type m_type
the sequence type
Definition: WKSChart.h:103
void setPrimaryPattern(WPSGraphicStyle::Pattern const &pattern, bool force1D=false)
set the primary pattern
Definition: WKSChart.cpp:707
WKSChart(Vec2f const &dim=Vec2f())
the constructor
Definition: WKSChart.cpp:104
friend std::ostream & operator<<(std::ostream &o, TextZone const &zone)
operator<<
Definition: WKSChart.cpp:858
void sendTextZoneContent(TextZone::Type type, WPSListenerPtr listener) const
sends a textzone content
Definition: WKSChart.cpp:176
bool m_show
true if the zone is visible
Definition: WKSChart.h:265
TextZone * getTextZone(TextZone::Type type, bool create=false)
returns a textzone content
Definition: WKSChart.cpp:166
bool m_autoPosition
automatic position
Definition: WKSChart.h:148
TextZone(Type type)
constructor
Definition: WKSChart.cpp:795
librevenge::RVNGString m_subTitle
the subtitle label
Definition: WKSChart.h:122
void addStyleTo(librevenge::RVNGPropertyList &propList) const
add to the propList
Definition: WKSChart.cpp:852
Definition: WKSChart.h:232
bool m_is3D
a flag to know if the graphic is 3D
Definition: WKSChart.h:334
librevenge::RVNGString m_title
the title label
Definition: WKSChart.h:120
Definition: WKSChart.h:232
int m_relativePosition
the automatic position libwps::LeftBit|...
Definition: WKSChart.h:150
Definition: WKSChart.h:166
bool valid() const
returns true if the textbox is valid
Definition: WKSChart.h:241
Definition: WKSChart.h:162
Definition: WKSChart.h:162
bool is1DStyle() const
return true if the serie style is 1D
Definition: WKSChart.h:176
Definition: WKSChart.h:91
void setGridColor(WPSColor const &color)
set the grid color
Definition: WKSChart.h:288
Definition: WKSChart.h:169
ContentType
the text content type
Definition: WKSChart.h:234
Vec2< int > Vec2i
Vec2 of int.
Definition: libwps_internal.h:702
Position m_labelRanges[2]
the label ranges if defined(unused)
Definition: WKSChart.h:218
the class to store a color
Definition: libwps_internal.h:280
bool m_useSecondaryY
use or not the secondary y axis
Definition: WKSChart.h:214
virtual void sendContent(TextZone const &zone, WPSListenerPtr &listener) const =0
send the zone content (called when the zone is of text type)
Serie::Type m_type
the chart type (if no series)
Definition: WKSChart.h:326
Vec2f m_position
the position in points
Definition: WKSChart.h:152
Definition: WKSChart.h:168
Definition: WKSChart.h:167
WPSBox2f m_legendPosition
the legend dimension in percent
Definition: WKSChart.h:355
void setSecondaryColor(WPSColor const &color)
set the secondary color
Definition: WKSChart.h:191
Definition: WKSChart.h:91
WKSChart & operator=(WKSChart const &orig)=delete
bool m_automaticScaling
automatic scaling (or manual)
Definition: WKSChart.h:105
void setPrimaryColor(WPSColor const &color, float opacity=1, bool force1D=false)
set the primary color
Definition: WKSChart.h:181
WPSBox2f m_plotAreaPosition
the plot area dimension in percent
Definition: WKSChart.h:348
Definition: WKSChart.h:167
WPSColor m_gridColor
the grid color
Definition: WKSChart.h:364
WPSColor m_lineColor
the line color
Definition: WPSGraphicStyle.h:347
bool m_show
show or not the legend
Definition: WKSChart.h:146
~TextZone()
destructor
Definition: WKSChart.cpp:808
Legend const & getLegend() const
returns the legend
Definition: WKSChart.h:298
Definition: WKSChart.h:162
Vec2f m_position
the position in the zone
Definition: WKSChart.h:267
librevenge::RVNGString getCellName() const
return the cell name
Definition: WKSChart.cpp:354
Definition: WKSChart.h:162
Position m_labelRanges[2]
the label range if defined
Definition: WKSChart.h:113
std::shared_ptr< WKSContentListener > WKSContentListenerPtr
shared pointer to WKSContentListener
Definition: libwps_internal.h:114
ContentType m_contentType
the content type
Definition: WKSChart.h:263
Axis()
constructor
Definition: WKSChart.cpp:379
~Axis()
destructor
Definition: WKSChart.cpp:394
a legend in a chart
Definition: WKSChart.h:127
Definition: WKSChart.h:162
std::map< TextZone::Type, TextZone > m_textZoneMap
a map text zone type to text zone
Definition: WKSChart.h:372
bool m_dataVertical
a flag to know if the data are vertical (for bar)
Definition: WKSChart.h:332
Definition: WKSChart.h:162
WPSGraphicStyle m_style
the graphic style
Definition: WKSChart.h:224
void addStyleTo(librevenge::RVNGPropertyList &propList) const
add style to the propList
Definition: WKSChart.cpp:540
friend std::ostream & operator<<(std::ostream &o, Serie const &series)
operator<<
Definition: WKSChart.cpp:718
Definition: WKSChart.h:168
void addContentTo(librevenge::RVNGPropertyList &propList) const
add content to the propList
Definition: WKSChart.cpp:812
a serie in a chart
Definition: WKSChart.h:159
void addStyleTo(librevenge::RVNGPropertyList &propList) const
add style to the propList
Definition: WKSChart.cpp:683
a text zone a chart
Definition: WKSChart.h:229
bool m_is3DDeep
a flag to know if real 3D or 2D-extended
Definition: WKSChart.h:336
bool m_showLabel
show or not the label
Definition: WKSChart.h:111
Type
the series type
Definition: WKSChart.h:162
Type
the axis content
Definition: WKSChart.h:91
Type m_type
the type
Definition: WKSChart.h:210
bool operator!=(Position &pos) const
operator!=
Definition: WKSChart.h:78
Axis m_axis[5]
the x,y,y-second,z and a bad axis
Definition: WKSChart.h:366
PointType m_pointType
the point type
Definition: WKSChart.h:226
bool m_dataPercentStacked
a flag to know if the data are percent stacked or not
Definition: WKSChart.h:330
a basic pattern used in a WPSGraphicStyle:
Definition: WPSGraphicStyle.h:88
Definition: WKSChart.h:167
bool valid() const
return true if the position is valid
Definition: WKSChart.h:59
friend std::ostream & operator<<(std::ostream &o, Axis const &axis)
operator<<
Definition: WKSChart.cpp:472
Definition: WKSChart.h:232
Definition: WKSChart.h:166