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, 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 [3] |
| the x,y,z 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) | |
| 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, | ||
| MWAWVec2f const & | dim = MWAWVec2f() |
||
| ) |
the constructor
| MWAWChart::~MWAWChart | ( | ) | [virtual] |
the destructor
| MWAWChart::MWAWChart | ( | MWAWChart const & | orig | ) | [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)
| MWAWVec2f const& MWAWChart::getDimension | ( | ) | const [inline] |
return the chart dimension
| Legend const& MWAWChart::getLegend | ( | ) | const [inline] |
return the legend
| std::vector<Series> const& MWAWChart::getSeries | ( | ) | const [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().
| virtual void MWAWChart::sendContent | ( | TextZone const & | zone, |
| MWAWListenerPtr & | listener | ||
| ) | [pure virtual] |
send the zone content (called when the zone is of text type)
Implemented in BeagleWksSSParserInternal::Chart.
Referenced by sendTextZoneContent().
| void MWAWChart::sendTextZoneContent | ( | TextZone::Type | type, |
| MWAWListenerPtr & | listener | ||
| ) | [protected] |
sends a textzone content
Referenced by MWAWChartInternal::SubDocument::parse().
| void MWAWChart::set | ( | Legend const & | legend | ) | [inline] |
set the legend
| void MWAWChart::setDataType | ( | Series::Type | type, |
| bool | dataStacked | ||
| ) | [inline] |
sets the chart type
| void MWAWChart::setDimension | ( | MWAWVec2f const & | dim | ) | [inline] |
return the chart dimension
Referenced by BeagleWksSSParser::sendSpreadsheet().
friend class MWAWChartInternal::SubDocument [friend] |
Axis MWAWChart::m_axis[3] [protected] |
the x,y,z axis
Referenced by add(), getAxis(), MWAWChart(), and sendChart().
bool MWAWChart::m_dataStacked [protected] |
a flag to know if the data are stacked or not
Referenced by sendChart(), and setDataType().
MWAWVec2f MWAWChart::m_dim [protected] |
the chart dimension in point
Referenced by getDimension(), sendChart(), and setDimension().
MWAWFontConverterPtr MWAWChart::m_fontConverter [protected] |
the font converter
Referenced by sendChart().
Legend MWAWChart::m_legend [protected] |
the legend
Referenced by getLegend(), sendChart(), and set().
std::vector<Series> MWAWChart::m_seriesList [protected] |
the list of series
Referenced by add(), getSeries(), and sendChart().
std::string MWAWChart::m_sheetName [protected] |
the sheet name
Referenced by sendChart().
std::map<TextZone::Type, TextZone> MWAWChart::m_textZoneMap [protected] |
a map text zone type to text zone
Referenced by add(), getTextZone(), sendChart(), and sendTextZoneContent().
Series::Type MWAWChart::m_type [protected] |
the chart type (if no series)
Referenced by MWAWChart::Axis::addContentTo(), MWAWChart::Series::addContentTo(), MWAWChart::TextZone::addContentTo(), MWAWChart::Axis::addStyleTo(), sendChart(), and setDataType().