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