a class used to store a chart associated to a spreadsheet .... More...
#include <MWAWChart.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 | |
| MWAWChart (std::string const &sheetName, MWAWFontConverterPtr fontConverter, Vec2f const &dim=Vec2f()) | |
| the constructor More... | |
| virtual | ~MWAWChart () |
| the destructor More... | |
| void | sendChart (MWAWSpreadsheetListenerPtr &listener, librevenge::RVNGSpreadsheetInterface *interface) |
| send the chart to the listener More... | |
| virtual void | sendContent (TextZone const &zone, MWAWListenerPtr &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... | |
| Vec2f const & | getDimension () const |
| return the chart dimension More... | |
| void | setDimension (Vec2f 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, MWAWListenerPtr &listener) |
| sends a textzone content More... | |
Protected Attributes | |
| std::string | m_sheetName |
| the sheet name More... | |
| Vec2f | 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 [3] |
| the x,y,z 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... | |
| MWAWFontConverterPtr | m_fontConverter |
| the font converter More... | |
Private Member Functions | |
| MWAWChart (MWAWChart const &orig) | |
| MWAWChart & | operator= (MWAWChart const &orig) |
Friends | |
| class | MWAWChartInternal::SubDocument |
a class used to store a chart associated to a spreadsheet ....
| MWAWChart::MWAWChart | ( | std::string const & | sheetName, |
| MWAWFontConverterPtr | fontConverter, | ||
| Vec2f const & | dim = Vec2f() |
||
| ) |
the constructor
|
virtual |
the destructor
|
private |
| void MWAWChart::add | ( | int | coord, |
| MWAWChart::Axis const & | axis | ||
| ) |
adds an axis (corresponding to a coord)
| void MWAWChart::add | ( | MWAWChart::Series const & | series | ) |
adds a series
| void MWAWChart::add | ( | MWAWChart::TextZone const & | textZone | ) |
adds a textzone
| MWAWChart::Axis const & MWAWChart::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 MWAWChart::getTextZone | ( | TextZone::Type | type, |
| MWAWChart::TextZone & | textZone | ||
| ) |
returns a textzone content(if set)
| void MWAWChart::sendChart | ( | MWAWSpreadsheetListenerPtr & | listener, |
| librevenge::RVNGSpreadsheetInterface * | interface | ||
| ) |
send the chart to the listener
Referenced by MWAWSpreadsheetListener::insertChart().
|
pure virtual |
send the zone content (called when the zone is of text type)
Implemented in BeagleWksSSParserInternal::Chart.
Referenced by sendTextZoneContent().
|
protected |
sends a textzone content
Referenced by MWAWChartInternal::SubDocument::parse().
|
inline |
set the legend
|
inline |
sets the chart type
|
inline |
return the chart dimension
Referenced by BeagleWksSSParser::sendSpreadsheet().
|
friend |
|
protected |
the x,y,z axis
Referenced by add(), getAxis(), MWAWChart(), and sendChart().
|
protected |
a flag to know if the data are stacked or not
Referenced by sendChart(), and setDataType().
|
protected |
the chart dimension in point
Referenced by getDimension(), sendChart(), and setDimension().
|
protected |
the font converter
Referenced by sendChart().
|
protected |
the legend
Referenced by getLegend(), sendChart(), and set().
|
protected |
the list of series
Referenced by add(), getSeries(), 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 MWAWChart::Axis::addContentTo(), MWAWChart::Series::addContentTo(), MWAWChart::TextZone::addContentTo(), MWAWChart::Axis::addStyleTo(), sendChart(), and setDataType().