Go to the documentation of this file.
106 void addContentTo(
int coord, librevenge::RVNGPropertyList &propList)
const;
108 void addStyleTo(librevenge::RVNGPropertyList &propList)
const;
110 friend std::ostream &
operator<<(std::ostream &o,
Axis const &axis);
148 void addContentTo(librevenge::RVNGPropertyList &propList)
const;
150 void addStyleTo(librevenge::RVNGPropertyList &propList)
const;
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 };
196 void addContentTo(librevenge::RVNGPropertyList &propList)
const;
198 void addStyleTo(librevenge::RVNGPropertyList &propList)
const;
236 if (!
m_show)
return false;
242 if (e.valid())
return true;
247 void addContentTo(librevenge::RVNGPropertyList &propList)
const;
249 void addStyleTo(librevenge::RVNGPropertyList &propList)
const;
287 Axis
const &
getAxis(
int coord)
const;
301 Serie *
getSerie(
int id,
bool create);
void parse(STOFFListenerPtr &listener, libstoff::SubDocumentType type) final
the parser function
Definition: STOFFChart.cxx:99
STOFFGraphicStyle m_plotAreaStyle
the ploat area style
Definition: STOFFChart.hxx:342
STOFFVec2f m_position
the position in the zone
Definition: STOFFChart.hxx:259
std::shared_ptr< STOFFListener > STOFFListenerPtr
a smart pointer of STOFFListener
Definition: libstaroffice_internal.hxx:491
librevenge::RVNGPropertyList m_propertyList
the property list
Definition: STOFFGraphicStyle.hxx:66
@ P_Arrow_Up
Definition: STOFFChart.hxx:173
void addContentTo(librevenge::RVNGPropertyList &propList) const
add content to the propList
Definition: STOFFChart.cxx:618
@ S_Circle
Definition: STOFFChart.hxx:169
Definition: STOFFChart.hxx:98
@ S_Scatter
Definition: STOFFChart.hxx:169
PointType m_pointType
the point type
Definition: STOFFChart.hxx:220
basic class to store an entry in a file This contained :
Definition: STOFFEntry.hxx:46
bool m_show
show or not the legend
Definition: STOFFChart.hxx:154
librevenge::RVNGString m_title
the title label
Definition: STOFFChart.hxx:129
void addStyleTo(librevenge::RVNGPropertyList &propList) const
add to the propList
Definition: STOFFChart.cxx:815
@ P_Horizontal_Bar
Definition: STOFFChart.hxx:175
ContentType m_contentType
the content type
Definition: STOFFChart.hxx:255
#define STOFF_DEBUG_MSG(M)
Definition: libstaroffice_internal.hxx:129
Legend & getLegend()
returns the legend
Definition: STOFFChart.hxx:295
@ P_Diamond
Definition: STOFFChart.hxx:172
bool is1DStyle() const
return true if the serie style is 1D
Definition: STOFFChart.hxx:186
bool m_dataStacked
a flag to know if the data are stacked or not
Definition: STOFFChart.hxx:320
@ P_Star
Definition: STOFFChart.hxx:174
STOFFBox2< float > STOFFBox2f
STOFFBox2 of float.
Definition: libstaroffice_internal.hxx:1135
STOFFVec2f m_position
the position in points
Definition: STOFFChart.hxx:160
ContentType
the text content type
Definition: STOFFChart.hxx:227
void addStyleTo(librevenge::RVNGPropertyList &propList) const
add style to the propList
Definition: STOFFChart.cxx:532
STOFFGraphicStyle m_wallStyle
wall
Definition: STOFFChart.hxx:352
a class used to store a chart associated to a spreadsheet ....
Definition: STOFFChart.hxx:57
const std::map< int, Serie > & getIdSerieMap() const
returns the list of defined series
Definition: STOFFChart.hxx:303
bool m_useSecondaryY
use or not the secondary y axis
Definition: STOFFChart.hxx:208
@ A_Logarithmic
Definition: STOFFChart.hxx:100
Type m_type
the type
Definition: STOFFChart.hxx:204
abstract class used to store a subdocument (with a comparison function)
Definition: STOFFSubDocument.hxx:41
friend std::ostream & operator<<(std::ostream &o, Serie const &series)
operator<<
Definition: STOFFChart.cxx:688
@ P_Square
Definition: STOFFChart.hxx:172
bool valid() const
returns true if the textbox is valid
Definition: STOFFChart.hxx:234
bool m_dataPercentStacked
a flag to know if the data are percent stacked or not
Definition: STOFFChart.hxx:322
void sendTextZoneContent(TextZone::Type type, STOFFListenerPtr &listener) const
sends a textzone content
Definition: STOFFChart.cxx:188
std::map< TextZone::Type, TextZone > m_textZoneMap
a map text zone type to text zone
Definition: STOFFChart.hxx:364
bool valid() const
return true if the serie is valid
Definition: STOFFChart.hxx:191
int m_relativePosition
the automatic position libstoff::LeftBit|...
Definition: STOFFChart.hxx:158
std::ostream & operator<<(std::ostream &o, STOFFChart::Position const &pos)
Definition: STOFFChart.cxx:367
@ LeftBit
Definition: libstaroffice_internal.hxx:180
@ P_Arrow_Down
Definition: STOFFChart.hxx:172
@ A_Sequence
Definition: STOFFChart.hxx:100
STOFFVec2i m_pos
the cell column and row
Definition: STOFFChart.hxx:94
STOFFGraphicStyle m_style
the graphic style
Definition: STOFFChart.hxx:218
bool m_showGrid
show or not the grid
Definition: STOFFChart.hxx:118
PointType
the point type
Definition: STOFFChart.hxx:171
Position m_ranges[2]
the data range
Definition: STOFFChart.hxx:206
std::string getCellName(STOFFVec2i const &cellPos, STOFFVec2b const &relative)
returns the cell name corresponding to a cell's position
Definition: libstaroffice_internal.cxx:455
virtual ~Serie()
destructor
Definition: STOFFChart.cxx:579
a legend in a chart
Definition: STOFFChart.hxx:136
the class to store a color
Definition: libstaroffice_internal.hxx:189
STOFFVec2f m_dimension
the chart dimension in point
Definition: STOFFChart.hxx:316
Internal: the structures of a STOFFChart.
Definition: STOFFChart.cxx:57
std::shared_ptr< STOFFSpreadsheetListener > STOFFSpreadsheetListenerPtr
a smart pointer of STOFFSpreadsheetListener
Definition: libstaroffice_internal.hxx:497
TextZone(Type type)
constructor
Definition: STOFFChart.cxx:761
~Axis()
destructor
Definition: STOFFChart.cxx:394
@ T_Title
Definition: STOFFChart.hxx:225
STOFFChart::TextZone::Type m_textZone
the textzone type
Definition: STOFFChart.cxx:93
Serie * getSerie(int id, bool create)
return a serie
Definition: STOFFChart.cxx:168
@ A_Numeric
Definition: STOFFChart.hxx:100
STOFFVec2f m_scaling
the minimum, maximum scaling(if manual)
Definition: STOFFChart.hxx:116
bool m_showLabel
show or not the label
Definition: STOFFChart.hxx:120
std::vector< STOFFEntry > m_textEntryList
the text entry (or the list of text entry)
Definition: STOFFChart.hxx:263
@ P_Circle
Definition: STOFFChart.hxx:174
bool operator!=(STOFFSubDocument const &doc) const final
operator!=
Definition: STOFFChart.cxx:73
STOFFGraphicStyle m_style
the chart style
Definition: STOFFChart.hxx:333
STOFFBox2f m_legendPosition
the legend dimension in percent
Definition: STOFFChart.hxx:347
STOFFChart(STOFFVec2f const &dim=STOFFVec2f())
the constructor
Definition: STOFFChart.cxx:118
void addStyleTo(librevenge::RVNGPropertyList &propList) const
add style to the propList
Definition: STOFFChart.cxx:667
STOFFChart * m_chart
the chart
Definition: STOFFChart.cxx:91
STOFFFont m_font
the font
Definition: STOFFChart.hxx:162
#define STOFF_FALLTHROUGH
fall through attributes
Definition: libstaroffice_internal.hxx:110
Position m_legendRange
the legend range if defined
Definition: STOFFChart.hxx:214
bool m_automaticScaling
automatic scaling (or manual)
Definition: STOFFChart.hxx:114
librevenge::RVNGString m_sheetName
the cell sheet name
Definition: STOFFChart.hxx:96
friend std::ostream & operator<<(std::ostream &o, Axis const &axis)
operator<<
Definition: STOFFChart.cxx:467
Axis & getAxis(int coord)
return an axis (corresponding to a coord)
Definition: STOFFChart.cxx:150
STOFFChart & operator=(STOFFChart const &orig)=delete
STOFFGraphicStyle m_style
the graphic style
Definition: STOFFChart.hxx:133
@ P_Bow_Tie
Definition: STOFFChart.hxx:173
STOFFVec2< T > size() const
the box size
Definition: libstaroffice_internal.hxx:999
virtual void sendContent(TextZone const &zone, STOFFListenerPtr &listener) const =0
send the zone content (called when the zone is of text type)
@ S_Surface
Definition: STOFFChart.hxx:169
friend std::ostream & operator<<(std::ostream &o, Position const &pos)
operator<<
Definition: STOFFChart.cxx:367
std::shared_ptr< STOFFInputStream > STOFFInputStreamPtr
a smart pointer of STOFFInputStream
Definition: libstaroffice_internal.hxx:489
SubDocumentType
Definition: libstaroffice_internal.hxx:185
virtual ~STOFFChart()
the destructor
Definition: STOFFChart.cxx:146
@ S_Radar
Definition: STOFFChart.hxx:169
bool valid(Position const &maxPos) const
return true if the position is valid
Definition: STOFFChart.hxx:75
librevenge::RVNGString getCellName() const
return the cell name
Definition: STOFFChart.cxx:354
librevenge::RVNGString m_subTitle
the subtitle label
Definition: STOFFChart.hxx:131
@ S_Line
Definition: STOFFChart.hxx:169
@ S_Bubble
Definition: STOFFChart.hxx:169
Axis m_axis[5]
the x,y,y-second,z and a bad axis
Definition: STOFFChart.hxx:358
@ P_Plus
Definition: STOFFChart.hxx:174
void addTo(librevenge::RVNGPropertyList &propList) const
add to the propList
Definition: STOFFGraphicStyle.cxx:65
Serie::Type m_type
the chart type (if no series)
Definition: STOFFChart.hxx:318
a text zone a chart
Definition: STOFFChart.hxx:223
librevenge::RVNGString m_name
the chart name
Definition: STOFFChart.hxx:335
@ TopBit
Definition: libstaroffice_internal.hxx:180
@ P_Asterisk
Definition: STOFFChart.hxx:174
Type m_type
the zone type
Definition: STOFFChart.hxx:253
Legend()
constructor
Definition: STOFFChart.hxx:138
SubDocument & operator=(SubDocument const &orig)
@ P_Vertical_Bar
Definition: STOFFChart.hxx:175
STOFFGraphicStyle m_floorStyle
floor
Definition: STOFFChart.hxx:350
@ BottomBit
Definition: libstaroffice_internal.hxx:180
~TextZone()
destructor
Definition: STOFFChart.cxx:774
@ P_Arrow_Right
Definition: STOFFChart.hxx:173
bool m_showTitle
show or not the title/subtitle
Definition: STOFFChart.hxx:125
@ DOC_CHART_ZONE
Definition: libstaroffice_internal.hxx:185
@ A_Sequence_Skip_Empty
Definition: STOFFChart.hxx:100
bool operator!=(Position &pos) const
operator!=
Definition: STOFFChart.hxx:89
@ A_None
Definition: STOFFChart.hxx:100
Class to store font.
Definition: STOFFFont.hxx:43
void setGridColor(STOFFColor const &color)
set the grid color
Definition: STOFFChart.hxx:280
@ P_Automatic
Definition: STOFFChart.hxx:172
void addContentTo(int coord, librevenge::RVNGPropertyList &propList) const
add content to the propList
Definition: STOFFChart.cxx:398
STOFFVec2< float > STOFFVec2f
STOFFVec2 of float.
Definition: libstaroffice_internal.hxx:771
Class to store a graphic style.
Definition: STOFFGraphicStyle.hxx:44
Type
the series type
Definition: STOFFChart.hxx:169
STOFFGraphicStyle m_style
the graphic style
Definition: STOFFChart.hxx:267
a serie in a chart
Definition: STOFFChart.hxx:167
STOFFBox2f m_plotAreaPosition
the plot area dimension in percent
Definition: STOFFChart.hxx:340
bool operator==(STOFFSubDocument const &doc) const
operator==
Definition: STOFFChart.cxx:82
@ C_Text
Definition: STOFFChart.hxx:227
Internal: the subdocument of a STOFFChart.
Definition: STOFFChart.cxx:61
friend std::ostream & operator<<(std::ostream &o, TextZone const &zone)
operator<<
Definition: STOFFChart.cxx:821
TextZone * getTextZone(TextZone::Type type, bool create=false)
returns a textzone content
Definition: STOFFChart.cxx:178
bool m_dataVertical
a flag to know if the data are vertical (for bar)
Definition: STOFFChart.hxx:324
@ P_None
Definition: STOFFChart.hxx:172
@ T_Footer
Definition: STOFFChart.hxx:225
#define STOFF_N_ELEMENTS(m)
Definition: libstaroffice_internal.hxx:119
@ S_Column
Definition: STOFFChart.hxx:169
@ P_Hourglass
Definition: STOFFChart.hxx:173
void addContentTo(librevenge::RVNGPropertyList &propList) const
add content to the propList
Definition: STOFFChart.cxx:510
Position m_cell
the cell position ( or title and subtitle)
Definition: STOFFChart.hxx:261
bool m_autoPosition
automatic position
Definition: STOFFChart.hxx:156
@ S_Ring
Definition: STOFFChart.hxx:169
Serie()
constructor
Definition: STOFFChart.cxx:568
STOFFFont m_font
the zone format
Definition: STOFFChart.hxx:265
SubDocument(STOFFChart *chart, STOFFChart::TextZone::Type textZone)
Definition: STOFFChart.cxx:64
Legend m_legend
the legend
Definition: STOFFChart.hxx:360
@ S_Bar
Definition: STOFFChart.hxx:169
void sendChart(STOFFSpreadsheetListenerPtr &listener, librevenge::RVNGSpreadsheetInterface *interface)
send the chart to the listener
Definition: STOFFChart.cxx:197
Type m_type
the sequence type
Definition: STOFFChart.hxx:112
@ P_Arrow_Left
Definition: STOFFChart.hxx:173
void addStyleTo(librevenge::RVNGPropertyList &propList) const
add style to the propList
Definition: STOFFChart.cxx:453
Position m_labelRanges[2]
the label range if defined
Definition: STOFFChart.hxx:122
@ C_Cell
Definition: STOFFChart.hxx:227
void addContentTo(librevenge::RVNGPropertyList &propList) const
add content to the propList
Definition: STOFFChart.cxx:778
@ T_SubTitle
Definition: STOFFChart.hxx:225
a cell position
Definition: STOFFChart.hxx:62
bool valid() const
return true if the position is valid
Definition: STOFFChart.hxx:70
@ P_X
Definition: STOFFChart.hxx:174
@ S_Gantt
Definition: STOFFChart.hxx:169
@ RightBit
Definition: libstaroffice_internal.hxx:180
const Legend & getLegend() const
returns the legend
Definition: STOFFChart.hxx:290
@ S_Area
Definition: STOFFChart.hxx:169
STOFFGraphicStyle m_style
the graphic style
Definition: STOFFChart.hxx:164
Axis()
constructor
Definition: STOFFChart.cxx:379
@ S_Stock
Definition: STOFFChart.hxx:169
STOFFVec2< int > STOFFVec2i
STOFFVec2 of int.
Definition: libstaroffice_internal.hxx:767
STOFFFont m_font
the label font
Definition: STOFFChart.hxx:210
librevenge::RVNGString m_legendText
the legend name if defined
Definition: STOFFChart.hxx:216
bool m_show
true if the zone is visible
Definition: STOFFChart.hxx:257
namespace used to regroup all libwpd functions, enumerations which we have redefined for internal usa...
Definition: libstaroffice_internal.cxx:50
bool m_is3D
a flag to know if the graphic is 3D
Definition: STOFFChart.hxx:326
static std::string getSerieTypeName(Type type)
returns a string corresponding to a series type
Definition: STOFFChart.cxx:583
Position m_labelRanges[2]
the label ranges if defined(unused)
Definition: STOFFChart.hxx:212
Serie & operator=(Serie const &)=default
bool operator==(Position &pos) const
operator==
Definition: STOFFChart.hxx:84
friend std::ostream & operator<<(std::ostream &o, Legend const &legend)
operator<<
Definition: STOFFChart.cxx:539
bool m_is3DDeep
a flag to know if real 3D or 2D-extended
Definition: STOFFChart.hxx:328
Position(STOFFVec2i pos=STOFFVec2i(-1,-1), librevenge::RVNGString const &sheetName="")
constructor
Definition: STOFFChart.hxx:64
Position m_titleRange
the title cell range
Definition: STOFFChart.hxx:127
Type
the axis content
Definition: STOFFChart.hxx:100
Type
the text type
Definition: STOFFChart.hxx:225
STOFFColor m_gridColor
the grid color
Definition: STOFFChart.hxx:356
std::map< int, Serie > m_serieMap
the list of series
Definition: STOFFChart.hxx:362
~SubDocument() final
destructor
Definition: STOFFChart.cxx:70
Generated on Wed Apr 15 2020 10:48:21 for libstaroffice by
doxygen 1.8.17