This class parses Microsoft Works chart file. More...
#include <WKS4Chart.h>
Public Member Functions | |
WKS4Chart (WKS4Parser &parser) | |
constructor | |
~WKS4Chart () | |
destructor | |
void | setListener (WKSContentListenerPtr &listen) |
sets the listener |
Protected Member Functions | |
bool | checkFilePosition (long pos) |
return true if the pos is in the file, update the file size if need | |
int | version () const |
return the file version | |
void | resetInput (RVNGInputStreamPtr const &input) |
reset the main input | |
int | getNumCharts () const |
return the number of chart | |
void | updateChart (WKS4ChartInternal::Chart &chart) |
update a chart, so that it can be send | |
bool | sendCharts () |
try to send the charts | |
bool | sendText (WPSEntry const &entry) |
try to send the text | |
bool | readChart () |
reads a structure which define a chart: 2d(default), 2e(name + value) | |
bool | readChartAxis () |
reads the axis(or second yaxis) data: zone 0x14 | |
bool | readChartSeries () |
reads a list of series definition: zone 0x15 | |
bool | readChartSeriesStyles () |
reads the series style: zone 0x16 | |
bool | readChartSeriesColorMap () |
reads the chart's series color map: zone 0x31 | |
bool | readChartName () |
reads the chart name or title: 41 | |
bool | readChartDim () |
reads a structure which seems to define some dimension (only present in windows file): 35 | |
bool | readChartFont () |
reads a structure which seems to define two chart font (only present in windows file): 40 | |
bool | readChart3D () |
reads a structure which stores zfront, zfar: 44 | |
bool | readChart2Font () |
reads a structure which seems to define four chart font (only present in windows file): 84 | |
bool | readChartLimit () |
reads end/begin of chart (only present in windows file): 80,81 |
Private Member Functions | |
WKS4Chart (WKS4Chart const &orig)=delete | |
WKS4Chart & | operator= (WKS4Chart const &orig)=delete |
libwps::DebugFile & | ascii () |
returns the debug file |
Private Attributes | |
RVNGInputStreamPtr | m_input |
the input | |
std::shared_ptr< WKSContentListener > | m_listener |
WKS4Parser & | m_mainParser |
the listener (if set) | |
std::shared_ptr< WKS4ChartInternal::State > | m_state |
the internal state | |
libwps::DebugFile & | m_asciiFile |
the ascii file |
Friends | |
class | WKS4Parser |
class | WKS4ChartInternal::Chart |
This class parses Microsoft Works chart file.
|
explicit |
constructor
Referenced by operator=(), and WKS4Chart().
WKS4Chart::~WKS4Chart | ( | ) |
destructor
|
privatedelete |
|
inlineprivate |
returns the debug file
Referenced by readChart(), readChart2Font(), readChart3D(), readChartAxis(), readChartDim(), readChartFont(), readChartLimit(), readChartName(), readChartSeries(), readChartSeriesColorMap(), readChartSeriesStyles(), and WKS4Chart().
|
protected |
return true if the pos is in the file, update the file size if need
|
protected |
return the number of chart
|
protected |
reads a structure which define a chart: 2d(default), 2e(name + value)
|
protected |
reads a structure which seems to define four chart font (only present in windows file): 84
|
protected |
reads a structure which stores zfront, zfar: 44
|
protected |
reads the axis(or second yaxis) data: zone 0x14
|
protected |
reads a structure which seems to define some dimension (only present in windows file): 35
|
protected |
reads a structure which seems to define two chart font (only present in windows file): 40
|
protected |
reads end/begin of chart (only present in windows file): 80,81
|
protected |
reads the chart name or title: 41
|
protected |
reads a list of series definition: zone 0x15
|
protected |
reads the chart's series color map: zone 0x31
|
protected |
reads the series style: zone 0x16
|
protected |
reset the main input
|
protected |
try to send the charts
|
protected |
try to send the text
|
inline |
sets the listener
|
protected |
update a chart, so that it can be send
update the chart type and serie type
times to update the color
Referenced by sendCharts().
|
protected |
return the file version
Referenced by updateChart().
|
friend |
|
friend |
Referenced by WKS4Chart(), WKS4ChartInternal::Chart, and WKS4Parser.
|
private |
the ascii file
Referenced by ascii(), and WKS4Chart().
|
private |
|
private |
Referenced by sendCharts(), sendText(), setListener(), and WKS4Chart().
|
private |
the listener (if set)
the main parser
Referenced by readChart(), readChart2Font(), readChartAxis(), readChartFont(), readChartName(), readChartSeries(), sendText(), updateChart(), version(), and WKS4Chart().
|
private |
the internal state
Referenced by checkFilePosition(), getNumCharts(), readChart(), readChart3D(), readChartAxis(), readChartDim(), readChartName(), readChartSeries(), readChartSeriesStyles(), sendCharts(), updateChart(), version(), and WKS4Chart().