the main class to read a Microsoft Works spreadsheet file More...
#include <MsWksSSParser.hxx>
Public Member Functions | |
| MsWksSSParser (MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header) | |
| constructor | |
| virtual | ~MsWksSSParser () |
| destructor | |
| bool | checkHeader (MWAWHeader *header, bool strict=false) |
| checks if the document header is correct (or not) | |
| void | parse (librevenge::RVNGSpreadsheetInterface *documentInterface) |
| virtual function used to parse the input | |
Protected Member Functions | |
| void | init () |
| inits all internal variables | |
| void | createDocument (librevenge::RVNGSpreadsheetInterface *documentInterface) |
| creates the listener which will be associated to the document | |
| bool | createZones () |
| finds the different objects zones | |
| bool | readSSheetZone () |
| try to read the spreadsheet data zone | |
| void | sendNote (int id) |
| try to send a note | |
| bool | sendSpreadsheet () |
| try to send the main spreadsheet | |
| bool | readEndHeader () |
| reads the end of the header | |
| bool | readCell (int sz, MWAWVec2i const &cellPos, MsWksSSParserInternal::Cell &cell) |
| reads a cell content data | |
Protected Attributes | |
| shared_ptr < MsWksSSParserInternal::State > | m_state |
| the state | |
| std::vector< MWAWEntry > | m_listZones |
| the list of different Zones | |
| shared_ptr< MsWksDocument > | m_document |
| the actual zone | |
Friends | |
| class | MsWksSSParserInternal::SubDocument |
the main class to read a Microsoft Works spreadsheet file
| MsWksSSParser::MsWksSSParser | ( | MWAWInputStreamPtr | input, |
| MWAWRSRCParserPtr | rsrcParser, | ||
| MWAWHeader * | header | ||
| ) |
constructor
| MsWksSSParser::~MsWksSSParser | ( | ) | [virtual] |
destructor
| bool MsWksSSParser::checkHeader | ( | MWAWHeader * | header, |
| bool | strict = false |
||
| ) | [virtual] |
| void MsWksSSParser::createDocument | ( | librevenge::RVNGSpreadsheetInterface * | documentInterface | ) | [protected] |
creates the listener which will be associated to the document
Referenced by parse().
| bool MsWksSSParser::createZones | ( | ) | [protected] |
finds the different objects zones
Referenced by parse().
| void MsWksSSParser::init | ( | ) | [protected] |
inits all internal variables
Referenced by MsWksSSParser().
| void MsWksSSParser::parse | ( | librevenge::RVNGSpreadsheetInterface * | documentInterface | ) | [virtual] |
virtual function used to parse the input
Implements MWAWSpreadsheetParser.
| bool MsWksSSParser::readCell | ( | int | sz, |
| MWAWVec2i const & | cellPos, | ||
| MsWksSSParserInternal::Cell & | cell | ||
| ) | [protected] |
reads a cell content data
Referenced by readSSheetZone().
| bool MsWksSSParser::readEndHeader | ( | ) | [protected] |
reads the end of the header
| bool MsWksSSParser::readSSheetZone | ( | ) | [protected] |
try to read the spreadsheet data zone
Referenced by createZones().
| void MsWksSSParser::sendNote | ( | int | id | ) | [protected] |
try to send a note
Referenced by MsWksSSParserInternal::SubDocument::parse().
| bool MsWksSSParser::sendSpreadsheet | ( | ) | [protected] |
try to send the main spreadsheet
Referenced by parse().
friend class MsWksSSParserInternal::SubDocument [friend] |
shared_ptr<MsWksDocument> MsWksSSParser::m_document [protected] |
the actual zone
Referenced by checkHeader(), createDocument(), createZones(), MsWksSSParser(), parse(), readCell(), readSSheetZone(), sendNote(), and sendSpreadsheet().
std::vector<MWAWEntry> MsWksSSParser::m_listZones [protected] |
the list of different Zones
shared_ptr<MsWksSSParserInternal::State> MsWksSSParser::m_state [protected] |
the state
Referenced by checkHeader(), createDocument(), createZones(), init(), parse(), readCell(), readSSheetZone(), sendNote(), and sendSpreadsheet().