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