a class used to store a chart associated to a spreadsheet .... More...
#include <STOFFChart.hxx>
Classes | |
| struct | Axis |
| a axis in a chart More... | |
| struct | Legend |
| a legend in a chart More... | |
| struct | Series |
| a series in a chart More... | |
| struct | TextZone |
| a text zone a chart More... | |
Public Member Functions | |
| STOFFChart (librevenge::RVNGString const &sheetName, STOFFVec2f const &dim=STOFFVec2f()) | |
| the constructor More... | |
| virtual | ~STOFFChart () |
| the destructor More... | |
| void | sendChart (STOFFSpreadsheetListenerPtr &listener, librevenge::RVNGSpreadsheetInterface *interface) |
| send the chart to the listener More... | |
| virtual void | sendContent (TextZone const &zone, STOFFListenerPtr &listener)=0 |
| send the zone content (called when the zone is of text type) More... | |
| void | setDataType (Series::Type type, bool dataStacked) |
| sets the chart type More... | |
| STOFFVec2f const & | getDimension () const |
| return the chart dimension More... | |
| void | setDimension (STOFFVec2f const &dim) |
| return the chart dimension More... | |
| void | add (int coord, Axis const &axis) |
| adds an axis (corresponding to a coord) More... | |
| Axis const & | getAxis (int coord) const |
| return an axis (corresponding to a coord) More... | |
| void | set (Legend const &legend) |
| set the legend More... | |
| Legend const & | getLegend () const |
| return the legend More... | |
| void | add (Series const &series) |
| adds a series More... | |
| std::vector< Series > const & | getSeries () const |
| return the list of series More... | |
| void | add (TextZone const &textZone) |
| adds a textzone More... | |
| bool | getTextZone (TextZone::Type type, TextZone &textZone) |
| returns a textzone content(if set) More... | |
Protected Member Functions | |
| void | sendTextZoneContent (TextZone::Type type, STOFFListenerPtr &listener) |
| sends a textzone content More... | |
Protected Attributes | |
| librevenge::RVNGString | m_sheetName |
| the sheet name More... | |
| STOFFVec2f | m_dim |
| the chart dimension in point More... | |
| Series::Type | m_type |
| the chart type (if no series) More... | |
| bool | m_dataStacked |
| a flag to know if the data are stacked or not More... | |
| Axis | m_axis [4] |
| the x,y,z axis and a bad axis More... | |
| Legend | m_legend |
| the legend More... | |
| std::vector< Series > | m_seriesList |
| the list of series More... | |
| std::map< TextZone::Type, TextZone > | m_textZoneMap |
| a map text zone type to text zone More... | |
Private Member Functions | |
| STOFFChart (STOFFChart const &orig) | |
| STOFFChart & | operator= (STOFFChart const &orig) |
Friends | |
| class | STOFFChartInternal::SubDocument |
a class used to store a chart associated to a spreadsheet ....
| STOFFChart::STOFFChart | ( | librevenge::RVNGString const & | sheetName, |
| STOFFVec2f const & | dim = STOFFVec2f() |
||
| ) |
the constructor
|
virtual |
the destructor
|
private |
| void STOFFChart::add | ( | int | coord, |
| STOFFChart::Axis const & | axis | ||
| ) |
adds an axis (corresponding to a coord)
| void STOFFChart::add | ( | STOFFChart::Series const & | series | ) |
adds a series
| void STOFFChart::add | ( | STOFFChart::TextZone const & | textZone | ) |
adds a textzone
| STOFFChart::Axis const & STOFFChart::getAxis | ( | int | coord | ) | const |
return an axis (corresponding to a coord)
|
inline |
return the chart dimension
|
inline |
return the legend
|
inline |
return the list of series
| bool STOFFChart::getTextZone | ( | TextZone::Type | type, |
| STOFFChart::TextZone & | textZone | ||
| ) |
returns a textzone content(if set)
|
private |
| void STOFFChart::sendChart | ( | STOFFSpreadsheetListenerPtr & | listener, |
| librevenge::RVNGSpreadsheetInterface * | interface | ||
| ) |
send the chart to the listener
Referenced by STOFFSpreadsheetListener::insertChart().
|
pure virtual |
send the zone content (called when the zone is of text type)
Referenced by sendTextZoneContent().
|
protected |
sends a textzone content
Referenced by STOFFChartInternal::SubDocument::parse().
|
inline |
set the legend
|
inline |
sets the chart type
|
inline |
return the chart dimension
|
friend |
|
protected |
the x,y,z axis and a bad axis
Referenced by add(), getAxis(), sendChart(), and STOFFChart().
|
protected |
a flag to know if the data are stacked or not
Referenced by sendChart().
|
protected |
the chart dimension in point
Referenced by sendChart().
|
protected |
the legend
Referenced by sendChart().
|
protected |
the list of series
Referenced by add(), and sendChart().
|
protected |
the sheet name
Referenced by sendChart().
|
protected |
a map text zone type to text zone
Referenced by add(), getTextZone(), sendChart(), and sendTextZoneContent().
|
protected |
the chart type (if no series)
Referenced by sendChart().