This class parses Quattro Pro spreadsheet: .wq1 and wq2. More...
#include <Quattro.h>
Public Member Functions | |
QuattroParser (RVNGInputStreamPtr &input, WPSHeaderPtr &header, libwps_tools_win::Font::Type encoding=libwps_tools_win::Font::UNKNOWN) | |
constructor More... | |
~QuattroParser () | |
destructor More... | |
void | parse (librevenge::RVNGSpreadsheetInterface *documentInterface) |
called by WPSDocument to parse the file More... | |
bool | checkHeader (WPSHeader *header, bool strict=false) |
checks if the document header is correct (or not) More... | |
![]() | |
WKSParser (RVNGInputStreamPtr &input, WPSHeaderPtr &header) | |
virtual | ~WKSParser () |
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... | |
libwps_tools_win::Font::Type | getDefaultFontType () const |
returns the default font type, ie. More... | |
bool | hasLICSCharacters () const |
returns the true if the file has LICS characters More... | |
bool | getColor (int id, WPSColor &color) const |
returns the color corresponding to an id More... | |
bool | getFont (int id, WPSFont &font, libwps_tools_win::Font::Type &type) const |
returns the font corresponding to an id More... | |
shared_ptr< WKSContentListener > | createListener (librevenge::RVNGSpreadsheetInterface *interface) |
creates the main listener More... | |
void | sendHeaderFooter (bool header) |
send the header/footer More... | |
bool | readZones () |
finds the different zones (spreadsheet, chart, print, ...) More... | |
bool | readZone () |
reads a zone More... | |
bool | readUserFonts () |
reads the user fonts More... | |
bool | readHeaderFooter (bool header) |
reads the header/footer More... | |
bool | readFieldName () |
read a list of field name + ... More... | |
bool | readChartName () |
reads the chart name or title More... | |
bool | readChartDef () |
reads a structure which seems to define a chart More... | |
bool | readWindowRecord () |
reads windows record 0:7|0:9 More... | |
bool | readUnknown1 () |
reads some unknown spreadsheet zones 0:18|0:19|0:20|0:27|0:2a More... | |
![]() | |
RVNGInputStreamPtr & | getInput () |
void | resetInput (RVNGInputStreamPtr newInput) |
RVNGInputStreamPtr | getFileInput () |
WPSHeaderPtr & | getHeader () |
int | version () const |
void | setVersion (int vers) |
libwps::DebugFile & | ascii () |
a DebugFile used to write what we recognize when we parse the document More... | |
Protected Attributes | |
shared_ptr< WKSContentListener > | m_listener |
shared_ptr < QuattroParserInternal::State > | m_state |
the listener (if set) More... | |
shared_ptr< QuattroSpreadsheet > | m_spreadsheetParser |
the spreadsheet manager More... | |
Friends | |
class | QuattroParserInternal::SubDocument |
class | QuattroSpreadsheet |
This class parses Quattro Pro spreadsheet: .wq1 and wq2.
QuattroParser::QuattroParser | ( | RVNGInputStreamPtr & | input, |
WPSHeaderPtr & | header, | ||
libwps_tools_win::Font::Type | encoding = libwps_tools_win::Font::UNKNOWN |
||
) |
constructor
QuattroParser::~QuattroParser | ( | ) |
destructor
|
protected |
return true if the pos is in the file, update the file size if need
Referenced by checkHeader(), readZone(), and readZones().
bool QuattroParser::checkHeader | ( | WPSHeader * | header, |
bool | strict = false |
||
) |
checks if the document header is correct (or not)
Referenced by parse().
|
protected |
creates the main listener
Referenced by parse().
|
protected |
returns the color corresponding to an id
Referenced by QuattroSpreadsheet::readCellStyle(), and QuattroSpreadsheet::readUserStyle().
|
protected |
returns the default font type, ie.
the encoding given by the constructor if given or the encoding deduiced from the version.
Referenced by QuattroSpreadsheet::readCell(), QuattroSpreadsheet::readCellProperty(), QuattroSpreadsheet::readCellStyle(), readUserFonts(), and QuattroSpreadsheet::readUserStyle().
|
protected |
returns the font corresponding to an id
Referenced by QuattroSpreadsheet::readCellProperty().
|
protected |
returns the true if the file has LICS characters
Referenced by QuattroSpreadsheet::hasLICSCharacters(), and sendHeaderFooter().
|
virtual |
called by WPSDocument to parse the file
Implements WKSParser.
|
protected |
reads a structure which seems to define a chart
Referenced by readZone().
|
protected |
reads the chart name or title
Referenced by readZone().
|
protected |
read a list of field name + ...
Referenced by readZone().
|
protected |
reads the header/footer
Referenced by readZone().
|
protected |
reads some unknown spreadsheet zones 0:18|0:19|0:20|0:27|0:2a
Referenced by readZone().
|
protected |
reads the user fonts
Referenced by readZone().
|
protected |
reads windows record 0:7|0:9
Referenced by readZone().
|
protected |
reads a zone
Referenced by checkHeader(), and readZones().
|
protected |
finds the different zones (spreadsheet, chart, print, ...)
Referenced by parse().
|
protected |
send the header/footer
Referenced by QuattroParserInternal::SubDocument::parse().
|
protected |
return the file version
Referenced by hasLICSCharacters(), readUnknown1(), and QuattroSpreadsheet::version().
|
friend |
|
friend |
Referenced by QuattroParser().
|
protected |
Referenced by parse(), and sendHeaderFooter().
|
protected |
the spreadsheet manager
Referenced by parse(), QuattroParser(), readChartDef(), readZone(), and readZones().
|
protected |
the listener (if set)
the internal state
Referenced by checkFilePosition(), checkHeader(), createListener(), getColor(), getDefaultFontType(), getFont(), hasLICSCharacters(), QuattroParser(), readHeaderFooter(), readUserFonts(), sendHeaderFooter(), and version().