This class parses Microsoft Works spreadsheet file. More...
#include <WKS4Spreadsheet.h>
Public Member Functions | |
WKS4Spreadsheet (WKS4Parser &parser) | |
constructor More... | |
~WKS4Spreadsheet () | |
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... | |
bool | hasLICSCharacters () const |
returns the true if the file has LICS characters More... | |
void | resetInput (RVNGInputStreamPtr input) |
reset the main input More... | |
int | getNumSpreadsheets () const |
returns the number of spreadsheet More... | |
void | sendSpreadsheet (int sId) |
send the sId'th spreadsheet More... | |
void | sendCellContent (WKS4SpreadsheetInternal::Cell const &cell) |
send the cell data More... | |
bool | readReportOpen () |
reads the report's header zone 17:54 More... | |
bool | readReportClose () |
reads the report's end zone 18:54 More... | |
bool | readFilterOpen () |
reads the filter's header zone 10:54 More... | |
bool | readFilterClose () |
reads the filter's end zone 11:54 More... | |
bool | readCell () |
reads a cell content data More... | |
bool | readCellFormulaResult () |
reads the result of a text formula More... | |
bool | readSheetSize () |
reads sheet size More... | |
bool | readColumnSize () |
reads the column size ( in ??? ) More... | |
bool | readHiddenColumns () |
reads the list of hidden columns zone ( unused ) More... | |
bool | readMsWorksDOSFieldProperty () |
reads a field property More... | |
bool | readMsWorksDOSCellProperty () |
reads actualCell properties More... | |
bool | readMsWorksDOSCellExtraProperty () |
reads the actual cell addendum properties ( contains at least the color) More... | |
bool | readMsWorksDOSPageBreak () |
reads a page break (in a dos file) More... | |
bool | readMsWorksColumnSize () |
reads the column size ( in ???) More... | |
bool | readMsWorksRowSize () |
reads the row size ( in ???) More... | |
bool | readMsWorksPageBreak () |
reads a page break More... | |
bool | readMsWorksStyle () |
reads a style More... | |
bool | readCell (Vec2i actPos, WKSContentListener::FormulaInstruction &instr) |
bool | readFormula (long endPos, Vec2i const &pos, std::vector< WKSContentListener::FormulaInstruction > &formula, std::string &error) |
Private Member Functions | |
WKS4Spreadsheet (WKS4Spreadsheet const &orig) | |
WKS4Spreadsheet & | operator= (WKS4Spreadsheet const &orig) |
libwps::DebugFile & | ascii () |
returns the debug file More... | |
Private Attributes | |
RVNGInputStreamPtr | m_input |
the input More... | |
shared_ptr< WKSContentListener > | m_listener |
WKS4Parser & | m_mainParser |
the listener (if set) More... | |
shared_ptr< WKS4SpreadsheetInternal::State > | m_state |
the internal state More... | |
libwps::DebugFile & | m_asciiFile |
the ascii file More... | |
Friends | |
class | WKS4Parser |
This class parses Microsoft Works spreadsheet file.
|
explicit |
constructor
WKS4Spreadsheet::~WKS4Spreadsheet | ( | ) |
destructor
|
private |
|
inlineprivate |
returns the debug file
Referenced by readCell(), readCellFormulaResult(), readColumnSize(), readFilterClose(), readFilterOpen(), readFormula(), readHiddenColumns(), readMsWorksColumnSize(), readMsWorksDOSCellExtraProperty(), readMsWorksDOSCellProperty(), readMsWorksDOSFieldProperty(), readMsWorksDOSPageBreak(), readMsWorksPageBreak(), readMsWorksRowSize(), readMsWorksStyle(), readReportClose(), readReportOpen(), and readSheetSize().
|
protected |
return true if the pos is in the file, update the file size if need
Referenced by readReportOpen().
|
protected |
returns the number of spreadsheet
|
protected |
returns the true if the file has LICS characters
Referenced by sendCellContent().
|
private |
|
protected |
reads a cell content data
Referenced by readCellFormulaResult(), and readFormula().
|
protected |
|
protected |
reads the result of a text formula
|
protected |
reads the column size ( in ??? )
|
protected |
reads the filter's end zone 11:54
|
protected |
reads the filter's header zone 10:54
|
protected |
Referenced by readCell().
|
protected |
reads the list of hidden columns zone ( unused )
|
protected |
reads the column size ( in ???)
|
protected |
reads the actual cell addendum properties ( contains at least the color)
|
protected |
reads actualCell properties
|
protected |
reads a field property
|
protected |
reads a page break (in a dos file)
|
protected |
reads a page break
|
protected |
reads the row size ( in ???)
|
protected |
reads a style
|
protected |
reads the report's end zone 18:54
|
protected |
reads the report's header zone 17:54
|
protected |
reads sheet size
|
protected |
reset the main input
|
protected |
send the cell data
Referenced by sendSpreadsheet().
|
protected |
send the sId'th spreadsheet
|
inline |
sets the listener
|
protected |
return the file version
Referenced by readCell(), readCellFormulaResult(), readFormula(), and sendCellContent().
|
friend |
|
private |
the ascii file
|
private |
the input
Referenced by checkFilePosition(), readCell(), readCellFormulaResult(), readColumnSize(), readFilterClose(), readFilterOpen(), readFormula(), readHiddenColumns(), readMsWorksColumnSize(), readMsWorksDOSCellExtraProperty(), readMsWorksDOSCellProperty(), readMsWorksDOSFieldProperty(), readMsWorksDOSPageBreak(), readMsWorksPageBreak(), readMsWorksRowSize(), readMsWorksStyle(), readReportClose(), readReportOpen(), readSheetSize(), resetInput(), and sendCellContent().
|
private |
Referenced by sendCellContent(), and sendSpreadsheet().
|
private |
the listener (if set)
the main parser
Referenced by hasLICSCharacters(), readCell(), readMsWorksDOSCellExtraProperty(), readMsWorksDOSCellProperty(), readMsWorksDOSFieldProperty(), readMsWorksStyle(), sendCellContent(), and version().
|
private |
the internal state
Referenced by checkFilePosition(), getNumSpreadsheets(), hasLICSCharacters(), readCell(), readColumnSize(), readFilterClose(), readFilterOpen(), readMsWorksColumnSize(), readMsWorksDOSCellExtraProperty(), readMsWorksDOSCellProperty(), readMsWorksDOSPageBreak(), readMsWorksPageBreak(), readMsWorksRowSize(), readMsWorksStyle(), readReportClose(), readReportOpen(), readSheetSize(), sendCellContent(), sendSpreadsheet(), version(), and WKS4Spreadsheet().