MsWksSSParser Class Reference

the main class to read a Microsoft Works spreadsheet file More...

#include <MsWksSSParser.hxx>

Inheritance diagram for MsWksSSParser:
MWAWSpreadsheetParser MWAWParser

List of all members.

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< MWAWEntrym_listZones
 the list of different Zones
shared_ptr< MsWksDocumentm_document
 the actual zone

Friends

class MsWksSSParserInternal::SubDocument

Detailed Description

the main class to read a Microsoft Works spreadsheet file


Constructor & Destructor Documentation

constructor

destructor


Member Function Documentation

bool MsWksSSParser::checkHeader ( MWAWHeader header,
bool  strict = false 
) [virtual]

checks if the document header is correct (or not)

Implements MWAWParser.

Referenced by parse().

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().


Friends And Related Function Documentation

friend class MsWksSSParserInternal::SubDocument [friend]

Member Data Documentation

std::vector<MWAWEntry> MsWksSSParser::m_listZones [protected]

the list of different Zones


The documentation for this class was generated from the following files: