QuattroSpreadsheet Class Reference

This class parses Quattro Pro DOS spreadsheet file. More...

#include <QuattroSpreadsheet.h>

List of all members.

Public Member Functions

 QuattroSpreadsheet (QuattroParser &parser)
 constructor
 ~QuattroSpreadsheet ()
 destructor
void setListener (WKSContentListenerPtr &listen)
 sets the listener

Protected Member Functions

bool checkFilePosition (long pos)
 return true if the pos is in the file, update the file size if need
int version () const
 return the file version
bool hasLICSCharacters () const
 returns the true if the file has LICS characters
int getNumSpreadsheets () const
 returns the number of spreadsheet
void sendSpreadsheet (int sId)
 send the sId'th spreadsheet
void sendCellContent (QuattroSpreadsheetInternal::Cell const &cell)
 send the cell data
bool readSpreadsheetOpen ()
 reads a sheet header zone 0:dc (Quattro Pro wq2)
bool readSpreadsheetClose ()
 reads a sheet header zone 0:dd (Quattro Pro wq2)
bool readCell ()
 reads a cell content data
bool readCellFormulaResult ()
 reads the result of a text formula
bool readSheetSize ()
 reads sheet size
bool readSpreadsheetName ()
 reads a sheet name (zone 0xde), unused...
bool readColumnSize ()
 reads the column size ( in ??? )
bool readRowSize ()
 reads the column size ( in points )
bool readHiddenColumns ()
 reads the list of hidden columns zone ( unused )
bool readCellProperty ()
 reads a Quattro Pro property (zone 0x9d)
bool readCellStyle ()
 reads a Quattro Pro cell styles (zone 0xd8)
bool readUserStyle ()
 reads a Quattro Pro style ( zone 0xc9)
bool readCell (Vec2i actPos, WKSContentListener::FormulaInstruction &instr, bool hasSheetId=false, int sheetId=0)
bool readFormula (long endPos, Vec2i const &pos, int sheetId, std::vector< WKSContentListener::FormulaInstruction > &formula, std::string &error)

Private Member Functions

 QuattroSpreadsheet (QuattroSpreadsheet const &orig)
QuattroSpreadsheetoperator= (QuattroSpreadsheet const &orig)
libwps::DebugFileascii ()
 returns the debug file

Private Attributes

RVNGInputStreamPtr m_input
 the input
shared_ptr< WKSContentListenerm_listener
QuattroParserm_mainParser
 the listener (if set)
shared_ptr
< QuattroSpreadsheetInternal::State
m_state
 the internal state
libwps::DebugFilem_asciiFile
 the ascii file

Friends

class QuattroParser

Detailed Description

This class parses Quattro Pro DOS spreadsheet file.


Constructor & Destructor Documentation


Member Function Documentation

bool QuattroSpreadsheet::checkFilePosition ( long  pos) [protected]

return true if the pos is in the file, update the file size if need

int QuattroSpreadsheet::getNumSpreadsheets ( ) const [protected]

returns the number of spreadsheet

bool QuattroSpreadsheet::hasLICSCharacters ( ) const [protected]

returns the true if the file has LICS characters

Referenced by sendCellContent().

QuattroSpreadsheet& QuattroSpreadsheet::operator= ( QuattroSpreadsheet const &  orig) [private]
bool QuattroSpreadsheet::readCell ( ) [protected]

reads a cell content data

Referenced by readFormula().

bool QuattroSpreadsheet::readCell ( Vec2i  actPos,
WKSContentListener::FormulaInstruction instr,
bool  hasSheetId = false,
int  sheetId = 0 
) [protected]

reads the result of a text formula

reads a Quattro Pro property (zone 0x9d)

bool QuattroSpreadsheet::readCellStyle ( ) [protected]

reads a Quattro Pro cell styles (zone 0xd8)

bool QuattroSpreadsheet::readColumnSize ( ) [protected]

reads the column size ( in ??? )

bool QuattroSpreadsheet::readFormula ( long  endPos,
Vec2i const &  pos,
int  sheetId,
std::vector< WKSContentListener::FormulaInstruction > &  formula,
std::string &  error 
) [protected]

Referenced by readCell().

reads the list of hidden columns zone ( unused )

bool QuattroSpreadsheet::readRowSize ( ) [protected]

reads the column size ( in points )

bool QuattroSpreadsheet::readSheetSize ( ) [protected]

reads sheet size

reads a sheet header zone 0:dd (Quattro Pro wq2)

reads a sheet name (zone 0xde), unused...

reads a sheet header zone 0:dc (Quattro Pro wq2)

bool QuattroSpreadsheet::readUserStyle ( ) [protected]

reads a Quattro Pro style ( zone 0xc9)

send the cell data

Referenced by sendSpreadsheet().

void QuattroSpreadsheet::sendSpreadsheet ( int  sId) [protected]

send the sId'th spreadsheet

sets the listener

int QuattroSpreadsheet::version ( ) const [protected]

return the file version

Referenced by readCell(), readCellFormulaResult(), readCellStyle(), readFormula(), and readUserStyle().


Friends And Related Function Documentation

friend class QuattroParser [friend]

Member Data Documentation

the ascii file

Referenced by ascii().


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