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