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... | |
void | sendSpreadsheet () |
send the data 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 | readStyle () |
reads a style More... | |
bool | readDOSFieldProperty () |
reads a field property More... | |
bool | readDOSCellProperty () |
reads actualCell properties More... | |
bool | readDOSCellExtraProperty () |
reads the actual cell addendum properties ( contains at least the color) More... | |
bool | readDOSPageBreak () |
reads a page break (in a dos file) More... | |
bool | readSheetSize () |
reads sheet size More... | |
bool | readPageBreak () |
reads a page break More... | |
bool | readColumnSize () |
reads the column size ( in ??? ) More... | |
bool | readColumnSize2 () |
reads the column size ( in ???) More... | |
bool | readRowSize2 () |
reads the row size ( in ???) More... | |
bool | readCell (Vec2i actPos, WKSContentListener::FormulaInstruction &instr) |
bool | readNumber (long endPos, double &res) |
bool | readFloat4 (long endPos, double &res) |
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.
WKS4Spreadsheet::WKS4Spreadsheet | ( | WKS4Parser & | parser | ) |
constructor
WKS4Spreadsheet::~WKS4Spreadsheet | ( | ) |
destructor
|
private |
|
inlineprivate |
returns the debug file
Referenced by readCell(), readCellFormulaResult(), readColumnSize(), readColumnSize2(), readDOSCellExtraProperty(), readDOSCellProperty(), readDOSFieldProperty(), readDOSPageBreak(), readFilterClose(), readFilterOpen(), readFloat4(), readPageBreak(), readReportClose(), readReportOpen(), readRowSize2(), readSheetSize(), and readStyle().
|
protected |
return true if the pos is in the file, update the file size if need
Referenced by readReportOpen().
|
private |
|
protected |
reads a cell content data
Referenced by readFormula().
|
protected |
|
protected |
reads the result of a text formula
|
protected |
reads the column size ( in ??? )
|
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 the filter's end zone 11:54
|
protected |
reads the filter's header zone 10:54
|
protected |
first small byte is used to decide if we store 100*N or N. Does the second small bute has also a meaning ? It find some file where the third some bytes is set, so this one is normal...
Referenced by readCell().
|
protected |
Referenced by readCell().
|
protected |
Referenced by readCell(), and readFormula().
|
protected |
reads a page break
|
protected |
reads the report's end zone 18:54
|
protected |
reads the report's header zone 17:54
|
protected |
reads the row size ( in ???)
|
protected |
reads sheet size
|
protected |
reads a style
|
protected |
send the cell data
Referenced by sendSpreadsheet().
|
protected |
send the data
|
inline |
sets the listener
|
protected |
return the file version
Referenced by readCell(), readCellFormulaResult(), readFormula(), readStyle(), and sendCellContent().
|
friend |
|
private |
the ascii file
Referenced by ascii().
|
private |
the input
Referenced by checkFilePosition(), readCell(), readCellFormulaResult(), readColumnSize(), readColumnSize2(), readDOSCellExtraProperty(), readDOSCellProperty(), readDOSFieldProperty(), readDOSPageBreak(), readFilterClose(), readFilterOpen(), readFloat4(), readFormula(), readNumber(), readPageBreak(), readReportClose(), readReportOpen(), readRowSize2(), readSheetSize(), readStyle(), and sendCellContent().
|
private |
Referenced by sendCellContent(), sendSpreadsheet(), and setListener().
|
private |
the listener (if set)
the main parser
Referenced by readDOSCellExtraProperty(), readStyle(), and version().
|
private |
the internal state
Referenced by checkFilePosition(), readCell(), readColumnSize(), readColumnSize2(), readDOSCellExtraProperty(), readDOSCellProperty(), readDOSPageBreak(), readFilterClose(), readFilterOpen(), readPageBreak(), readReportClose(), readReportOpen(), readRowSize2(), readSheetSize(), readStyle(), sendCellContent(), sendSpreadsheet(), version(), and WKS4Spreadsheet().