Go to the documentation of this file.
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 };
204 void addContentTo(librevenge::RVNGPropertyList &propList)
const;
206 void addStyleTo(librevenge::RVNGPropertyList &propList)
const;
246 if (!
m_show)
return false;
253 if (e.valid())
return true;
258 void addContentTo(librevenge::RVNGPropertyList &propList)
const;
260 void addStyleTo(librevenge::RVNGPropertyList &propList)
const;
298 Axis
const &
getAxis(
int coord)
const;
312 Serie *
getSerie(
int id,
bool create);
ContentType m_contentType
the content type
Definition: WKSChart.h:266
SubDocument(WKSChart const *chart, WKSChart::TextZone::Type textZone)
Definition: WKSChart.cpp:51
Definition: WKSChart.h:162
#define WPS_N_ELEMENTS(m)
Definition: libwps_internal.h:124
virtual ~WKSChart()
the destructor
Definition: WKSChart.cpp:132
bool m_showTitle
show or not the title/subtitle
Definition: WKSChart.h:116
Legend()
constructor
Definition: WKSChart.h:130
Definition: WKSChart.h:91
WPSGraphicStyle m_floorStyle
floor
Definition: WKSChart.h:361
WPSFont m_font
the zone format
Definition: WKSChart.h:276
void addContentTo(librevenge::RVNGPropertyList &propList) const
add content to the propList
Definition: WKSChart.cpp:517
a serie in a chart
Definition: WKSChart.h:159
void addStyleTo(librevenge::RVNGPropertyList &propList) const
add style to the propList
Definition: WKSChart.cpp:683
Type
the series type
Definition: WKSChart.h:162
Definition: WKSChart.h:166
WPSBox2< float > WPSBox2f
WPSBox2 of float.
Definition: libwps_internal.h:890
Definition: WKSChart.h:162
const WKSChart * m_chart
the chart
Definition: WKSChart.cpp:75
Definition: WKSChart.h:166
Position m_titleRange
the title cell range
Definition: WKSChart.h:118
friend std::ostream & operator<<(std::ostream &o, Axis const &axis)
operator<<
Definition: WKSChart.cpp:472
bool m_useSecondaryY
use or not the secondary y axis
Definition: WKSChart.h:216
ContentType
the text content type
Definition: WKSChart.h:236
Legend m_legend
the legend
Definition: WKSChart.h:371
Definition: WKSChart.h:91
Internal: the structures of a WKSChart.
Definition: WKSChart.cpp:44
WPSGraphicStyle m_style
the graphic style
Definition: WKSChart.h:278
bool m_show
show or not the legend
Definition: WKSChart.h:146
friend std::ostream & operator<<(std::ostream &o, Serie const &series)
operator<<
Definition: WKSChart.cpp:718
Definition: WKSChart.h:234
friend std::ostream & operator<<(std::ostream &o, Legend const &legend)
operator<<
Definition: WKSChart.cpp:547
Definition: WKSChart.h:169
Legend & getLegend()
returns the legend
Definition: WKSChart.h:306
Definition: WKSChart.h:167
Definition: libwps_internal.h:401
Definition: WKSChart.h:162
librevenge::RVNGString m_name
the chart name
Definition: WKSChart.h:346
bool is1DStyle() const
return true if the serie style is 1D
Definition: WKSChart.h:178
Definition: WKSChart.h:168
std::vector< WPSEntry > m_textEntryList
the text entry (or the list of text entry)
Definition: WKSChart.h:274
Position m_cell
the cell position ( or title and subtitle)
Definition: WKSChart.h:272
Type
the text type
Definition: WKSChart.h:234
bool m_dataStacked
a flag to know if the data are stacked or not
Definition: WKSChart.h:331
Definition: WKSChart.h:167
WPSGraphicStyle m_wallStyle
wall
Definition: WKSChart.h:363
friend std::ostream & operator<<(std::ostream &o, Position const &pos)
operator<<
Definition: WKSChart.cpp:368
WPSGraphicStyle m_style
the graphic style
Definition: WKSChart.h:124
Vec2f m_position
the position in the zone
Definition: WKSChart.h:270
friend std::ostream & operator<<(std::ostream &o, TextZone const &zone)
operator<<
Definition: WKSChart.cpp:858
Definition: WKSChart.h:166
void addContentTo(librevenge::RVNGPropertyList &propList) const
add content to the propList
Definition: WKSChart.cpp:812
define the font properties
Definition: WPSFont.h:36
SubDocument & operator=(SubDocument const &orig)=delete
bool operator==(std::shared_ptr< WPSSubDocument > const &doc) const final
operator==
Definition: WKSChart.cpp:62
bool valid() const
return true if the position is valid
Definition: WKSChart.h:59
Serie()
constructor
Definition: WKSChart.cpp:577
WPSGraphicStyle m_plotAreaStyle
the ploat area style
Definition: WKSChart.h:353
Axis & getAxis(int coord)
return an axis (corresponding to a coord)
Definition: WKSChart.cpp:136
bool operator==(Position &pos) const
operator==
Definition: WKSChart.h:73
Position m_labelRanges[2]
the label ranges if defined(unused)
Definition: WKSChart.h:220
Vec2< int > Vec2i
Vec2 of int.
Definition: libwps_internal.h:702
Serie * getSerie(int id, bool create)
return a serie
Definition: WKSChart.cpp:156
Definition: WKSChart.h:236
Vec2f m_scaling
the minimum, maximum scaling(if manual)
Definition: WKSChart.h:107
Definition: WKSChart.h:168
Definition: WKSChart.h:162
std::shared_ptr< WPSListener > WPSListenerPtr
shared pointer to WPSListener
Definition: libwps_internal.h:105
bool m_showGrid
show or not the grid
Definition: WKSChart.h:109
Definition: WKSChart.h:91
Vec2< float > Vec2f
Vec2 of float.
Definition: libwps_internal.h:704
bool getAverageColor(WPSColor &col) const
return the average color
Definition: WPSGraphicStyle.cpp:61
WPSGraphicStyle m_style
the graphic style
Definition: WKSChart.h:156
Definition: WKSChart.h:168
PointType
the point type
Definition: WKSChart.h:164
Definition: WKSChart.h:162
WPSGraphicStyle m_style
the chart style
Definition: WKSChart.h:344
Internal: the subdocument of a WKSChart.
Definition: WKSChart.cpp:48
Definition: libwps_internal.h:401
a class used to store a chart associated to a spreadsheet ....
Definition: WKSChart.h:45
void sendChart(WKSContentListenerPtr &listener, librevenge::RVNGSpreadsheetInterface *interface) const
send the chart to the listener
Definition: WKSChart.cpp:186
Definition: WKSChart.h:162
#define WPS_DEBUG_MSG(M)
Definition: libwps_internal.h:134
Definition: WKSChart.h:166
#define WPS_FALLTHROUGH
fall through attributes
Definition: libwps_internal.h:82
librevenge::RVNGString getCellName() const
return the cell name
Definition: WKSChart.cpp:354
void addStyleTo(librevenge::RVNGPropertyList &propList) const
add style to the propList
Definition: WKSChart.cpp:540
std::shared_ptr< WKSContentListener > WKSContentListenerPtr
shared pointer to WKSContentListener
Definition: libwps_internal.h:114
Position(Vec2i pos=Vec2i(-1,-1), librevenge::RVNGString const &sheetName="")
constructor
Definition: WKSChart.h:53
void setSecondaryColor(WPSColor const &color)
set the secondary color
Definition: WKSChart.h:193
SubDocumentType
Definition: libwps_internal.h:248
~SubDocument() final
destructor
Definition: WKSChart.cpp:59
WKSChart::TextZone::Type m_textZone
the textzone type
Definition: WKSChart.cpp:77
Definition: WKSChart.h:162
Definition: WKSChart.h:162
Vec2i m_pos
the cell column and row
Definition: WKSChart.h:83
Definition: libwps_internal.h:401
a structure used to define a picture style
Definition: WPSGraphicStyle.h:37
librevenge::RVNGString m_subTitle
the subtitle label
Definition: WKSChart.h:122
Type m_type
the zone type
Definition: WKSChart.h:264
void sendTextZoneContent(TextZone::Type type, WPSListenerPtr listener) const
sends a textzone content
Definition: WKSChart.cpp:176
Definition: WKSChart.h:168
void setGridColor(WPSColor const &color)
set the grid color
Definition: WKSChart.h:291
WPSFont m_font
the label font
Definition: WKSChart.h:218
void addStyleTo(librevenge::RVNGPropertyList &propList) const
add style to the propList
Definition: WKSChart.cpp:457
Definition: libwps_internal.h:248
bool m_autoPosition
automatic position
Definition: WKSChart.h:148
librevenge::RVNGString m_title
the title label
Definition: WKSChart.h:120
virtual void sendContent(TextZone const &zone, WPSListenerPtr &listener) const =0
send the zone content (called when the zone is of text type)
Vec2f m_dimension
the chart dimension in point
Definition: WKSChart.h:327
Definition: WKSChart.h:91
TextZone * getTextZone(TextZone::Type type, bool create=false)
returns a textzone content
Definition: WKSChart.cpp:166
WPSGraphicStyle m_style
the graphic style
Definition: WKSChart.h:226
Serie & operator=(Serie const &)=default
Definition: WKSChart.h:162
const std::map< int, Serie > & getIdSerieMap() const
returns the list of defined series
Definition: WKSChart.h:314
Definition: WKSChart.h:234
Position m_legendRange
the legend range if defined
Definition: WKSChart.h:222
PointType m_pointType
the point type
Definition: WKSChart.h:228
Basic class used to store a spreadsheet sub document.
Definition: WKSSubDocument.h:35
Definition: WKSChart.h:162
a border list
Definition: libwps_internal.h:394
Type m_type
the sequence type
Definition: WKSChart.h:103
static std::string getSerieTypeName(Type type)
returns a string corresponding to a series type
Definition: WKSChart.cpp:594
Definition: WKSChart.h:169
WKSChart(Vec2f const &dim=Vec2f())
the constructor
Definition: WKSChart.cpp:104
int m_relativePosition
the automatic position libwps::LeftBit|...
Definition: WKSChart.h:150
WPSBox2f m_legendPosition
the legend dimension in percent
Definition: WKSChart.h:358
void setSurfaceColor(WPSColor const &col, float opacity=1)
set the surface color
Definition: WPSGraphicStyle.h:251
WPSFont m_font
the font
Definition: WKSChart.h:154
WKSChart & operator=(WKSChart const &orig)=delete
~Axis()
destructor
Definition: WKSChart.cpp:394
void addTo(librevenge::RVNGPropertyList &pList, bool only1d=false) const
add all the parameters to the propList excepted the frame parameter: the background and the borders
Definition: WPSGraphicStyle.cpp:165
Position m_ranges[2]
the data range
Definition: WKSChart.h:214
Definition: WKSChart.h:166
WPSColor m_lineColor
the line color
Definition: WPSGraphicStyle.h:352
bool m_is3D
a flag to know if the graphic is 3D
Definition: WKSChart.h:337
std::map< TextZone::Type, TextZone > m_textZoneMap
a map text zone type to text zone
Definition: WKSChart.h:375
WPSBox2f m_plotAreaPosition
the plot area dimension in percent
Definition: WKSChart.h:351
std::shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr
shared pointer to librevenge::RVNGInputStream
Definition: libwps_internal.h:87
void setPrimaryPattern(WPSGraphicStyle::Pattern const &pattern, bool force1D=false)
set the primary pattern
Definition: WKSChart.cpp:707
void addStyleTo(librevenge::RVNGPropertyList &propList) const
add to the propList
Definition: WKSChart.cpp:852
bool m_showLabel
show or not the label
Definition: WKSChart.h:111
Definition: libwps_internal.h:401
Vec2< T > size() const
the box size
Definition: libwps_internal.h:754
Definition: WKSChart.h:167
Definition: WKSChart.h:234
Definition: WKSChart.h:167
Type
the axis content
Definition: WKSChart.h:91
bool operator!=(Position &pos) const
operator!=
Definition: WKSChart.h:78
a axis in a chart
Definition: WKSChart.h:88
virtual ~Serie()
destructor
Definition: WKSChart.cpp:590
Serie::Type m_type
the chart type (if no series)
Definition: WKSChart.h:329
a basic pattern used in a WPSGraphicStyle:
Definition: WPSGraphicStyle.h:88
bool valid() const
return true if the serie is valid
Definition: WKSChart.h:199
void parse(std::shared_ptr< WKSContentListener > &listener, libwps::SubDocumentType type) override
the parser function
Definition: WKSChart.cpp:83
the class to store a color
Definition: libwps_internal.h:280
a cell position
Definition: WKSChart.h:50
void addContentTo(int coord, librevenge::RVNGPropertyList &propList) const
add content to the propList
Definition: WKSChart.cpp:398
bool m_dataPercentStacked
a flag to know if the data are percent stacked or not
Definition: WKSChart.h:333
Definition: WKSChart.h:167
bool m_dataVertical
a flag to know if the data are vertical (for bar)
Definition: WKSChart.h:335
Definition: WKSChart.h:162
TextZone(Type type)
constructor
Definition: WKSChart.cpp:795
WPSColor m_gridColor
the grid color
Definition: WKSChart.h:367
Position m_labelRanges[2]
the label range if defined
Definition: WKSChart.h:113
bool m_automaticScaling
automatic scaling (or manual)
Definition: WKSChart.h:105
a text zone a chart
Definition: WKSChart.h:231
bool valid(Position const &maxPos) const
return true if the position is valid
Definition: WKSChart.h:64
void setPrimaryColor(WPSColor const &color, float opacity=1, bool force1D=false)
set the primary color
Definition: WKSChart.h:183
std::ostream & operator<<(std::ostream &o, WKSChart::Position const &pos)
Definition: WKSChart.cpp:368
a legend in a chart
Definition: WKSChart.h:127
Definition: WKSChart.h:162
Definition: WKSChart.h:236
Axis()
constructor
Definition: WKSChart.cpp:379
float m_lineWidth
the linewidth
Definition: WPSGraphicStyle.h:342
bool valid() const
returns true if the textbox is valid
Definition: WKSChart.h:244
const Legend & getLegend() const
returns the legend
Definition: WKSChart.h:301
void addContentTo(librevenge::RVNGPropertyList &propList) const
add content to the propList
Definition: WKSChart.cpp:630
Vec2f m_position
the position in points
Definition: WKSChart.h:152
librevenge::RVNGString m_legendText
the legend name if defined
Definition: WKSChart.h:224
bool getUniqueColor(WPSColor &col) const
check if the pattern has only one color; if so returns true...
Definition: WPSGraphicStyle.cpp:45
void setPattern(Pattern const &pat)
set the pattern
Definition: WPSGraphicStyle.h:262
bool m_is3DDeep
a flag to know if real 3D or 2D-extended
Definition: WKSChart.h:339
std::string getCellName(Vec2i const &cellPos, Vec2b const &relative)
returns the cell name corresponding to a cell's position
Definition: libwps_internal.cpp:953
~TextZone()
destructor
Definition: WKSChart.cpp:808
Axis m_axis[5]
the x,y,y-second,z and a bad axis
Definition: WKSChart.h:369
Definition: WKSChart.h:168
Definition: WKSChart.h:91
std::map< int, Serie > m_serieMap
the list of series
Definition: WKSChart.h:373
bool m_show
true if the zone is visible
Definition: WKSChart.h:268
librevenge::RVNGString m_sheetName
the cell sheet name
Definition: WKSChart.h:85
Type m_type
the type
Definition: WKSChart.h:212
Generated on Wed Jul 24 2024 03:40:53 for libwps by
doxygen 1.8.16