a class used to store a chart associated to a spreadsheet .... More...
#include <WKSChart.h>
Classes | |
| struct | Axis |
| a axis in a chart More... | |
| struct | Legend |
| a legend in a chart More... | |
| struct | Position |
| a cell position More... | |
| struct | Serie |
| a serie in a chart More... | |
| struct | TextZone |
| a text zone a chart More... | |
Public Member Functions | |
| WKSChart (Vec2f const &dim=Vec2f()) | |
| the constructor More... | |
| virtual | ~WKSChart () |
| the destructor More... | |
| void | sendChart (WKSContentListenerPtr &listener, librevenge::RVNGSpreadsheetInterface *interface) const |
| send the chart to the listener More... | |
| virtual void | sendContent (TextZone const &zone, WPSListenerPtr &listener) const =0 |
| send the zone content (called when the zone is of text type) More... | |
| void | setGridColor (WPSColor const &color) |
| set the grid color More... | |
| Axis & | getAxis (int coord) |
| return an axis (corresponding to a coord) More... | |
| const Axis & | getAxis (int coord) const |
| return an axis (corresponding to a coord) More... | |
| const Legend & | getLegend () const |
| returns the legend More... | |
| Legend & | getLegend () |
| returns the legend More... | |
| Serie * | getSerie (int id, bool create) |
| return a serie More... | |
| const std::map< int, Serie > & | getIdSerieMap () const |
| returns the list of defined series More... | |
| TextZone * | getTextZone (TextZone::Type type, bool create=false) |
| returns a textzone content More... | |
Public Attributes | |
| Vec2f | m_dimension |
| the chart dimension in point More... | |
| Serie::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... | |
| bool | m_dataPercentStacked |
| a flag to know if the data are percent stacked or not More... | |
| bool | m_dataVertical |
| a flag to know if the data are vertical (for bar) More... | |
| bool | m_is3D |
| a flag to know if the graphic is 3D More... | |
| bool | m_is3DDeep |
| a flag to know if real 3D or 2D-extended More... | |
| WPSGraphicStyle | m_style |
| the chart style More... | |
| librevenge::RVNGString | m_name |
| the chart name More... | |
| WPSBox2f | m_plotAreaPosition |
| the plot area dimension in percent More... | |
| WPSGraphicStyle | m_plotAreaStyle |
| the ploat area style More... | |
| WPSBox2f | m_legendPosition |
| the legend dimension in percent More... | |
| WPSGraphicStyle | m_floorStyle |
| floor More... | |
| WPSGraphicStyle | m_wallStyle |
| wall More... | |
Protected Member Functions | |
| void | sendTextZoneContent (TextZone::Type type, WPSListenerPtr listener) const |
| sends a textzone content More... | |
Protected Attributes | |
| WPSColor | m_gridColor |
| the grid color More... | |
| Axis | m_axis [5] |
| the x,y,y-second,z and a bad axis More... | |
| Legend | m_legend |
| the legend More... | |
| std::map< int, Serie > | m_serieMap |
| the list of series More... | |
| std::map< TextZone::Type, TextZone > | m_textZoneMap |
| a map text zone type to text zone More... | |
Private Member Functions | |
| WKSChart (WKSChart const &orig)=delete | |
| WKSChart & | operator= (WKSChart const &orig)=delete |
Friends | |
| class | WKSChartInternal::SubDocument |
a class used to store a chart associated to a spreadsheet ....
|
virtual |
the destructor
|
explicitprivatedelete |
| WKSChart::Axis & WKSChart::getAxis | ( | int | coord | ) |
return an axis (corresponding to a coord)
Referenced by WKS4Chart::updateChart(), and LotusChart::updateChart().
| const WKSChart::Axis & WKSChart::getAxis | ( | int | coord | ) | const |
return an axis (corresponding to a coord)
|
inline |
returns the list of defined series
Referenced by LotusChart::updateChart().
|
inline |
returns the legend
|
inline |
returns the legend
Referenced by LotusChart::updateChart().
| WKSChart::Serie * WKSChart::getSerie | ( | int | id, |
| bool | create | ||
| ) |
return a serie
Referenced by WKS4ChartInternal::Chart::empty(), WKS4Chart::updateChart(), and LotusChart::updateChart().
| WKSChart::TextZone * WKSChart::getTextZone | ( | TextZone::Type | type, |
| bool | create = false |
||
| ) |
returns a textzone content
Referenced by LotusChart::updateChart().
| void WKSChart::sendChart | ( | WKSContentListenerPtr & | listener, |
| librevenge::RVNGSpreadsheetInterface * | interface | ||
| ) | const |
send the chart to the listener
Referenced by WKSContentListener::insertChart().
|
pure virtual |
send the zone content (called when the zone is of text type)
Implemented in LotusChartInternal::Chart, WKS4ChartInternal::Chart, and QuattroDosChartInternal::Chart.
Referenced by sendTextZoneContent().
|
protected |
sends a textzone content
Referenced by WKSChartInternal::SubDocument::parse().
|
inline |
set the grid color
|
friend |
|
protected |
the x,y,y-second,z and a bad axis
Referenced by getAxis(), and sendChart().
| bool WKSChart::m_dataPercentStacked |
a flag to know if the data are percent stacked or not
Referenced by sendChart().
| bool WKSChart::m_dataStacked |
a flag to know if the data are stacked or not
Referenced by sendChart(), and WKS4Chart::updateChart().
| bool WKSChart::m_dataVertical |
a flag to know if the data are vertical (for bar)
Referenced by sendChart(), and WKS4Chart::updateChart().
| Vec2f WKSChart::m_dimension |
the chart dimension in point
Referenced by sendChart().
| WPSGraphicStyle WKSChart::m_floorStyle |
floor
Referenced by sendChart(), and WKSChart().
|
protected |
the grid color
Referenced by setGridColor().
| bool WKSChart::m_is3D |
a flag to know if the graphic is 3D
Referenced by sendChart().
| bool WKSChart::m_is3DDeep |
a flag to know if real 3D or 2D-extended
Referenced by sendChart().
|
protected |
the legend
Referenced by getLegend(), and sendChart().
| WPSBox2f WKSChart::m_legendPosition |
the legend dimension in percent
Referenced by sendChart().
| librevenge::RVNGString WKSChart::m_name |
the chart name
Referenced by WKSContentListener::insertChart().
| WPSBox2f WKSChart::m_plotAreaPosition |
the plot area dimension in percent
Referenced by sendChart().
| WPSGraphicStyle WKSChart::m_plotAreaStyle |
the ploat area style
Referenced by sendChart().
|
protected |
the list of series
Referenced by getIdSerieMap(), getSerie(), and sendChart().
| WPSGraphicStyle WKSChart::m_style |
the chart style
Referenced by WKSChart::Axis::addStyleTo(), WKSChart::Legend::addStyleTo(), WKSChart::Serie::addStyleTo(), WKSChart::TextZone::addStyleTo(), sendChart(), and WKSChart::Serie::setPrimaryPattern().
|
protected |
a map text zone type to text zone
Referenced by getTextZone(), sendChart(), and sendTextZoneContent().
| Serie::Type WKSChart::m_type |
the chart type (if no series)
Referenced by WKSChart::Axis::addContentTo(), WKSChart::Serie::addContentTo(), WKSChart::TextZone::addContentTo(), WKSChart::Axis::addStyleTo(), sendChart(), WKS4Chart::updateChart(), and LotusChart::updateChart().
| WPSGraphicStyle WKSChart::m_wallStyle |
wall
Referenced by sendChart(), and WKSChart().