This class parses Microsoft Works spreadsheet file. More...
#include <LotusSpreadsheet.h>
Public Member Functions | |
| LotusSpreadsheet (LotusParser &parser) | |
| constructor More... | |
| ~LotusSpreadsheet () | |
| destructor More... | |
| void | cleanState () |
| clean internal state More... | |
| void | updateState () |
| update internal state (must be called one time before sending data) More... | |
| void | setListener (WKSContentListenerPtr &listen) |
| sets the listener More... | |
| void | setLastSpreadsheetId (int id) |
| set the last spreadsheet number ( default 0) 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 | hasSomeSpreadsheetData () const |
| returns true if some spreadsheet are defined More... | |
| void | sendSpreadsheet (int sheetId) |
| send the data More... | |
| void | sendRowContent (LotusSpreadsheetInternal::Spreadsheet const &sheet, int row) |
| send the cell data in a row More... | |
| void | sendCellContent (LotusSpreadsheetInternal::Cell const &cell, LotusSpreadsheetInternal::Style const &style, int numRepeated=1) |
| send the cell data More... | |
| bool | readSheetName () |
| reads a sheet name More... | |
| bool | readColumnDefinition () |
| reads the columns definitions More... | |
| bool | readColumnSizes () |
| reads the column sizes ( in char ) More... | |
| bool | readRowFormats () |
| reads the row formats More... | |
| bool | readRowFormat (LotusSpreadsheetInternal::Style &style, int &numCell, long endPos) |
| reads a cell's row format More... | |
| bool | readRowSizes (long endPos) |
| reads the row size ( in pt*32 ) More... | |
| bool | readCell () |
| reads a cell More... | |
| bool | readCellName () |
| reads a cell or list of cell name More... | |
| bool | readCell (int sId, bool isList, WKSContentListener::FormulaInstruction &instr) |
| bool | readFormula (long endPos, int sId, bool newFormula, std::vector< WKSContentListener::FormulaInstruction > &formula, std::string &error) |
Private Member Functions | |
| LotusSpreadsheet (LotusSpreadsheet const &orig) | |
| LotusSpreadsheet & | operator= (LotusSpreadsheet const &orig) |
| libwps::DebugFile & | ascii () |
| returns the debug file More... | |
Private Attributes | |
| RVNGInputStreamPtr | m_input |
| the input More... | |
| shared_ptr< WKSContentListener > | m_listener |
| LotusParser & | m_mainParser |
| the listener (if set) More... | |
| shared_ptr< LotusStyleManager > | m_styleManager |
| the style manager More... | |
| shared_ptr< LotusSpreadsheetInternal::State > | m_state |
| the internal state More... | |
| libwps::DebugFile & | m_asciiFile |
| the ascii file More... | |
Friends | |
| class | LotusParser |
This class parses Microsoft Works spreadsheet file.
|
explicit |
constructor
| LotusSpreadsheet::~LotusSpreadsheet | ( | ) |
destructor
|
private |
|
inlineprivate |
returns the debug file
Referenced by readCell(), readCellName(), readColumnDefinition(), readColumnSizes(), readRowFormats(), readRowSizes(), and readSheetName().
|
protected |
return true if the pos is in the file, update the file size if need
| void LotusSpreadsheet::cleanState | ( | ) |
clean internal state
|
protected |
returns true if some spreadsheet are defined
|
private |
|
protected |
reads a cell
Referenced by readFormula().
|
protected |
|
protected |
reads a cell or list of cell name
|
protected |
reads the columns definitions
|
protected |
reads the column sizes ( in char )
|
protected |
Referenced by readCell().
|
protected |
reads a cell's row format
Referenced by readRowFormats().
|
protected |
reads the row formats
|
protected |
reads the row size ( in pt*32 )
|
protected |
reads a sheet name
|
protected |
send the cell data
Referenced by sendRowContent().
|
protected |
send the cell data in a row
Referenced by sendSpreadsheet().
|
protected |
send the data
| void LotusSpreadsheet::setLastSpreadsheetId | ( | int | id | ) |
set the last spreadsheet number ( default 0)
|
inline |
sets the listener
| void LotusSpreadsheet::updateState | ( | ) |
update internal state (must be called one time before sending data)
|
protected |
return the file version
|
friend |
|
private |
the ascii file
|
private |
the input
Referenced by checkFilePosition(), readCell(), readCellName(), readColumnDefinition(), readColumnSizes(), readFormula(), readRowFormat(), readRowFormats(), readRowSizes(), readSheetName(), and sendCellContent().
|
private |
Referenced by sendCellContent(), sendRowContent(), and sendSpreadsheet().
|
private |
the listener (if set)
the main parser
Referenced by readRowFormats(), readSheetName(), sendRowContent(), sendSpreadsheet(), and version().
|
private |
the internal state
Referenced by checkFilePosition(), cleanState(), hasSomeSpreadsheetData(), LotusSpreadsheet(), readCell(), readCellName(), readColumnDefinition(), readColumnSizes(), readFormula(), readRowFormats(), readRowSizes(), readSheetName(), sendRowContent(), sendSpreadsheet(), setLastSpreadsheetId(), updateState(), and version().
|
private |
the style manager
Referenced by readRowFormat().