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 const &fontConverter, MWAWVec2f const &dim=MWAWVec2f()) | |
| the constructor | |
| virtual | ~MWAWChart () |
| the destructor | |
| void | sendChart (MWAWSpreadsheetListenerPtr &listener, librevenge::RVNGSpreadsheetInterface *interface) |
| send the chart to the listener | |
| virtual void | sendContent (TextZone const &zone, MWAWListenerPtr &listener)=0 |
| send the zone content (called when the zone is of text type) | |
| void | setDataType (Series::Type type, bool dataStacked) |
| sets the chart type | |
| MWAWVec2f const & | getDimension () const |
| return the chart dimension | |
| void | setDimension (MWAWVec2f const &dim) |
| return the chart dimension | |
| void | add (int coord, Axis const &axis) |
| adds an axis (corresponding to a coord) | |
| Axis const & | getAxis (int coord) const |
| return an axis (corresponding to a coord) | |
| void | set (Legend const &legend) |
| set the legend | |
| Legend const & | getLegend () const |
| return the legend | |
| void | add (Series const &series) |
| adds a series | |
| std::vector< Series > const & | getSeries () const |
| return the list of series | |
| void | add (TextZone const &textZone) |
| adds a textzone | |
| bool | getTextZone (TextZone::Type type, TextZone &textZone) |
| returns a textzone content(if set) | |
Protected Member Functions | |
| void | sendTextZoneContent (TextZone::Type type, MWAWListenerPtr &listener) |
| sends a textzone content | |
Protected Attributes | |
| std::string | m_sheetName |
| the sheet name | |
| MWAWVec2f | m_dim |
| the chart dimension in point | |
| Series::Type | m_type |
| the chart type (if no series) | |
| bool | m_dataStacked |
| a flag to know if the data are stacked or not | |
| Axis | m_axis [4] |
| the x,y,z and a bad axis | |
| Legend | m_legend |
| the legend | |
| std::vector< Series > | m_seriesList |
| the list of series | |
| std::map< TextZone::Type, TextZone > | m_textZoneMap |
| a map text zone type to text zone | |
| MWAWFontConverterPtr | m_fontConverter |
| the font converter | |
Private Member Functions | |
| MWAWChart (MWAWChart const &orig)=delete | |
| MWAWChart & | operator= (MWAWChart const &orig)=delete |
Friends | |
| class | MWAWChartInternal::SubDocument |
a class used to store a chart associated to a spreadsheet ....
| MWAWChart::MWAWChart | ( | std::string const & | sheetName, |
| MWAWFontConverterPtr const & | fontConverter, | ||
| MWAWVec2f const & | dim = MWAWVec2f() ) |
the constructor
|
virtual |
the destructor
|
explicitprivatedelete |
| 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
|
friend |
|
protected |
the x,y,z and a bad axis
Referenced by add(), getAxis(), 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().