This class parses Microsoft Works chart file. More...
#include <LotusChart.h>
Public Member Functions | |
| LotusChart (LotusParser &parser) | |
| constructor More... | |
| void | cleanState () |
| clean internal state More... | |
| void | updateState () |
| update internal state (must be called one time before sending data) More... | |
| ~LotusChart () | |
| destructor More... | |
| void | setListener (WKSContentListenerPtr &listen) |
| sets the listener More... | |
Protected Member Functions | |
| int | version () const |
| return the file version More... | |
| int | getNumCharts () const |
| return the number of chart More... | |
| std::map< std::string, int > | getNameToChartIdMap () const |
| returns a map chart name to chart id map More... | |
| void | updateChart (LotusChartInternal::Chart &chart, int id) |
| update a chart, so that it can be send More... | |
| bool | sendCharts () |
| try to send the charts(for Windows .wk3 file) More... | |
| bool | sendChart (int cId, WPSPosition const &pos, WPSGraphicStyle const &style) |
| try to send a chart More... | |
| bool | sendText (std::shared_ptr< WPSStream > stream, WPSEntry const &entry) |
| try to send the text More... | |
| bool | readChart (std::shared_ptr< WPSStream > stream) |
| reads a structure which define a chart: 11 More... | |
| bool | readChartName (std::shared_ptr< WPSStream > stream) |
| reads the chart name or title: 12 More... | |
| bool | readMacHeader (std::shared_ptr< WPSStream > stream, long endPos, int &chartId) |
| reads a chart data: 2710 (wk3mac) More... | |
| bool | readMacPlacement (std::shared_ptr< WPSStream > stream, long endPos) |
| reads a placement position(wk3mac): 2774 More... | |
| bool | readMacLegend (std::shared_ptr< WPSStream > stream, long endPos) |
| reads a legend position(wk3mac): 277e More... | |
| bool | readMacPlotArea (std::shared_ptr< WPSStream > stream, long endPos) |
| reads a plot area position(wk3mac): 2788 More... | |
| bool | readMacAxis (std::shared_ptr< WPSStream > stream, long endPos) |
| reads an axis style(wk3mac): 27d8 More... | |
| bool | readMacSerie (std::shared_ptr< WPSStream > stream, long endPos) |
| reads a serie style(wk3mac): 27e2 More... | |
| bool | readMacFloor (std::shared_ptr< WPSStream > stream, long endPos) |
| reads a 3D floor style(wk3mac): 2846 More... | |
| bool | readMacPosition (std::shared_ptr< WPSStream > stream, long endPos) |
| reads a manual position(wk3mac): 2904 More... | |
| bool | readPlotArea (std::shared_ptr< WPSStream > stream, long endPos) |
| reads a plot area style: 2a30 (unsure) More... | |
| bool | readSerie (std::shared_ptr< WPSStream > stream, long endPos) |
| reads a serie style: 2a31 More... | |
| bool | readSerieName (std::shared_ptr< WPSStream > stream, long endPos) |
| reads a serie name: 2a32 (serie 6-...) More... | |
| bool | readSerieWidth (std::shared_ptr< WPSStream > stream, long endPos) |
| reads a serie width style: 2a33 More... | |
| bool | readFontsStyle (std::shared_ptr< WPSStream > stream, long endPos) |
| reads a list of font style: 2a34 More... | |
| bool | readFramesStyle (std::shared_ptr< WPSStream > stream, long endPos) |
| reads a some frame styles: 2a35 More... | |
| bool | convert (LotusParser::Link const &link, WKSChart::Position(&positions)[2]) const |
| convert a link zone in a chart position(if possible) More... | |
Private Member Functions | |
| LotusChart (LotusChart const &orig)=delete | |
| LotusChart & | operator= (LotusChart const &orig)=delete |
Private Attributes | |
| std::shared_ptr< WKSContentListener > | m_listener |
| LotusParser & | m_mainParser |
| the listener (if set) More... | |
| std::shared_ptr< LotusStyleManager > | m_styleManager |
| the style manager More... | |
| std::shared_ptr< LotusChartInternal::State > | m_state |
| the internal state More... | |
Friends | |
| class | LotusParser |
| class | LotusChartInternal::Chart |
This class parses Microsoft Works chart file.
|
explicit |
constructor
| LotusChart::~LotusChart | ( | ) |
destructor
|
privatedelete |
| void LotusChart::cleanState | ( | ) |
clean internal state
|
protected |
convert a link zone in a chart position(if possible)
Referenced by updateChart().
|
protected |
returns a map chart name to chart id map
|
protected |
return the number of chart
|
privatedelete |
|
protected |
reads a structure which define a chart: 11
|
protected |
reads the chart name or title: 12
|
protected |
reads a list of font style: 2a34
|
protected |
reads a some frame styles: 2a35
|
protected |
reads an axis style(wk3mac): 27d8
|
protected |
reads a 3D floor style(wk3mac): 2846
|
protected |
reads a chart data: 2710 (wk3mac)
|
protected |
reads a legend position(wk3mac): 277e
|
protected |
reads a placement position(wk3mac): 2774
|
protected |
reads a plot area position(wk3mac): 2788
|
protected |
reads a manual position(wk3mac): 2904
|
protected |
reads a serie style(wk3mac): 27e2
|
protected |
reads a plot area style: 2a30 (unsure)
|
protected |
reads a serie style: 2a31
|
protected |
reads a serie name: 2a32 (serie 6-...)
|
protected |
reads a serie width style: 2a33
|
protected |
try to send a chart
Referenced by sendCharts().
|
protected |
try to send the charts(for Windows .wk3 file)
try to send the text
Referenced by LotusChartInternal::Chart::sendContent().
|
inline |
sets the listener
|
protected |
update a chart, so that it can be send
Referenced by updateState().
| void LotusChart::updateState | ( | ) |
update internal state (must be called one time before sending data)
|
protected |
return the file version
Referenced by readSerie(), updateChart(), and updateState().
|
friend |
|
friend |
|
private |
Referenced by sendChart(), sendCharts(), and sendText().
|
private |
the listener (if set)
the main parser
Referenced by convert(), readChart(), readChartName(), readSerieName(), sendText(), updateChart(), and version().
|
private |
the internal state
Referenced by cleanState(), getNameToChartIdMap(), getNumCharts(), readChart(), readChartName(), readFramesStyle(), readMacAxis(), readMacFloor(), readMacHeader(), readMacLegend(), readMacPlacement(), readMacPlotArea(), readMacPosition(), readMacSerie(), readPlotArea(), readSerie(), readSerieName(), sendChart(), sendCharts(), updateState(), and version().
|
private |
the style manager
Referenced by readFramesStyle(), readMacFloor(), readMacPlotArea(), readMacSerie(), readSerie(), and updateChart().