This class parses Quattro Pro DOS chart file. More...
#include <QuattroDosChart.h>
Public Member Functions | |
QuattroDosChart (QuattroDosParser &parser) | |
constructor | |
~QuattroDosChart () | |
destructor | |
void | setListener (WKSContentListenerPtr &listen) |
sets the listener | |
bool | readChartSetType () |
reads the chart type: b8(3d) or ca(bubble) | |
bool | readChartName () |
reads the chart name: b9 | |
bool | readChart () |
reads a structure which define a chart: 2d(default), 2e(name + value) | |
int | getNumSpreadsheets () const |
returns the number of spreadsheet | |
void | getChartPositionMap (int sheetId, std::map< Vec2i, Vec2i > &cellMap) const |
returns the list of cell's begin to end corresponding to a chart | |
bool | sendChart (int sheetId, Vec2i const &cell, Vec2f const &chartSize) |
try to send the chart corresponding to sheetId and a position |
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 | |
bool | sendText (WPSEntry const &entry) |
try to send the text | |
bool | updateSpreadsheetNames (QuattroDosChartInternal::Chart &chart) |
update the chart spreadsheet name |
Private Member Functions | |
QuattroDosChart (QuattroDosChart const &orig)=delete | |
QuattroDosChart & | operator= (QuattroDosChart const &orig)=delete |
libwps::DebugFile & | ascii () |
returns the debug file |
Private Attributes | |
RVNGInputStreamPtr | m_input |
the input | |
std::shared_ptr< WKSContentListener > | m_listener |
QuattroDosParser & | m_mainParser |
the listener (if set) | |
std::shared_ptr< QuattroDosChartInternal::State > | m_state |
the internal state | |
libwps::DebugFile & | m_asciiFile |
the ascii file |
Friends | |
class | QuattroDosParser |
class | QuattroDosChartInternal::Chart |
This class parses Quattro Pro DOS chart file.
|
explicit |
constructor
Referenced by operator=(), and QuattroDosChart().
QuattroDosChart::~QuattroDosChart | ( | ) |
destructor
|
privatedelete |
|
inlineprivate |
returns the debug file
Referenced by QuattroDosChart(), readChart(), readChartName(), and readChartSetType().
|
protected |
return true if the pos is in the file, update the file size if need
returns the list of cell's begin to end corresponding to a chart
int QuattroDosChart::getNumSpreadsheets | ( | ) | const |
returns the number of spreadsheet
|
privatedelete |
bool QuattroDosChart::readChart | ( | ) |
reads a structure which define a chart: 2d(default), 2e(name + value)
bool QuattroDosChart::readChartName | ( | ) |
reads the chart name: b9
bool QuattroDosChart::readChartSetType | ( | ) |
reads the chart type: b8(3d) or ca(bubble)
try to send the chart corresponding to sheetId and a position
|
protected |
try to send the text
|
inline |
sets the listener
|
protected |
update the chart spreadsheet name
Referenced by sendChart().
|
protected |
return the file version
Referenced by readChart().
|
friend |
|
friend |
Referenced by QuattroDosChart(), QuattroDosChartInternal::Chart, and QuattroDosParser.
|
private |
the ascii file
Referenced by ascii(), and QuattroDosChart().
|
private |
the input
Referenced by checkFilePosition(), QuattroDosChart(), readChart(), readChartName(), readChartSetType(), and sendText().
|
private |
Referenced by QuattroDosChart(), sendChart(), sendText(), and setListener().
|
private |
the listener (if set)
the main parser
Referenced by QuattroDosChart(), readChart(), readChartName(), sendText(), updateSpreadsheetNames(), and version().
|
private |
the internal state
Referenced by checkFilePosition(), getChartPositionMap(), getNumSpreadsheets(), QuattroDosChart(), readChart(), readChartSetType(), sendChart(), and version().