This class parses Quattro Pro DOS spreadsheet file. More...
#include <QuattroDosSpreadsheet.h>
| Public Member Functions | |
| QuattroDosSpreadsheet (QuattroDosParser &parser) | |
| constructor  More... | |
| ~QuattroDosSpreadsheet () | |
| 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... | |
| int | getNumSpreadsheets () const | 
| returns the number of spreadsheet  More... | |
| librevenge::RVNGString | getSheetName (int id) const | 
| returns the name of the id's spreadsheet  More... | |
| void | sendSpreadsheet (int sId, std::map< Vec2i, Vec2i > const &chartCellMap) | 
| send the sId'th spreadsheet  More... | |
| void | sendCellContent (QuattroDosSpreadsheetInternal::Cell const &cell, int cellChartSheetId=-1, Vec2f const &chartSize=Vec2f()) | 
| send the cell data  More... | |
| bool | readSpreadsheetOpen () | 
| reads a sheet header zone 0:dc (Quattro Pro wq2)  More... | |
| bool | readSpreadsheetClose () | 
| reads a sheet header zone 0:dd (Quattro Pro wq2)  More... | |
| bool | readCell () | 
| reads a cell content data  More... | |
| bool | readCellFormulaResult () | 
| reads the result of a text formula  More... | |
| bool | readSheetSize () | 
| reads sheet size  More... | |
| bool | readSpreadsheetName () | 
| reads a sheet name (zone 0xde), unused...  More... | |
| bool | readColumnSize () | 
| reads the column size ( in ??? )  More... | |
| bool | readRowSize () | 
| reads the column size ( in points )  More... | |
| bool | readHiddenColumns () | 
| reads the list of hidden columns zone ( unused )  More... | |
| bool | readCellProperty () | 
| reads a Quattro Pro property (zone 0x9d)  More... | |
| bool | readCellStyle () | 
| reads a Quattro Pro cell styles (zone 0xd8)  More... | |
| bool | readUserStyle () | 
| reads a Quattro Pro style ( zone 0xc9)  More... | |
| 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 | |
| QuattroDosSpreadsheet (QuattroDosSpreadsheet const &orig)=delete | |
| QuattroDosSpreadsheet & | operator= (QuattroDosSpreadsheet const &orig)=delete | 
| libwps::DebugFile & | ascii () | 
| returns the debug file  More... | |
| Private Attributes | |
| RVNGInputStreamPtr | m_input | 
| the input  More... | |
| std::shared_ptr< WKSContentListener > | m_listener | 
| QuattroDosParser & | m_mainParser | 
| the listener (if set)  More... | |
| std::shared_ptr< QuattroDosSpreadsheetInternal::State > | m_state | 
| the internal state  More... | |
| libwps::DebugFile & | m_asciiFile | 
| the ascii file  More... | |
| Friends | |
| class | QuattroDosParser | 
This class parses Quattro Pro DOS spreadsheet file.
| 
 | explicit | 
constructor
| QuattroDosSpreadsheet::~QuattroDosSpreadsheet | ( | ) | 
destructor
| 
 | privatedelete | 
| 
 | inlineprivate | 
returns the debug file
Referenced by readCell(), readCellFormulaResult(), readCellProperty(), readCellStyle(), readColumnSize(), readFormula(), readHiddenColumns(), readRowSize(), readSheetSize(), readSpreadsheetClose(), readSpreadsheetName(), readSpreadsheetOpen(), and readUserStyle().
| 
 | protected | 
return true if the pos is in the file, update the file size if need
| 
 | protected | 
returns the number of spreadsheet
| 
 | protected | 
returns the name of the id's spreadsheet
| 
 | privatedelete | 
| 
 | protected | 
reads a cell content data
Referenced by readFormula().
| 
 | protected | 
| 
 | protected | 
reads the result of a text formula
| 
 | protected | 
reads a Quattro Pro property (zone 0x9d)
| 
 | protected | 
reads a Quattro Pro cell styles (zone 0xd8)
| 
 | protected | 
reads the column size ( in ??? )
| 
 | protected | 
Referenced by readCell().
| 
 | protected | 
reads the list of hidden columns zone ( unused )
| 
 | protected | 
reads the column size ( in points )
| 
 | protected | 
reads sheet size
| 
 | protected | 
reads a sheet header zone 0:dd (Quattro Pro wq2)
| 
 | protected | 
reads a sheet name (zone 0xde), unused...
| 
 | protected | 
reads a sheet header zone 0:dc (Quattro Pro wq2)
| 
 | protected | 
reads a Quattro Pro style ( zone 0xc9)
| 
 | protected | 
send the cell data
Referenced by sendSpreadsheet().
| 
 | protected | 
send the sId'th spreadsheet
| 
 | inline | 
sets the listener
| 
 | protected | 
return the file version
Referenced by readCell(), readCellFormulaResult(), readCellStyle(), readFormula(), readSheetSize(), and readUserStyle().
| 
 | friend | 
| 
 | private | 
the ascii file
Referenced by ascii().
| 
 | private | 
the input
Referenced by checkFilePosition(), readCell(), readCellFormulaResult(), readCellProperty(), readCellStyle(), readColumnSize(), readFormula(), readHiddenColumns(), readRowSize(), readSheetSize(), readSpreadsheetClose(), readSpreadsheetName(), readSpreadsheetOpen(), readUserStyle(), and sendCellContent().
| 
 | private | 
Referenced by sendCellContent(), sendSpreadsheet(), and setListener().
| 
 | private | 
the listener (if set)
the main parser
Referenced by readCell(), readCellFormulaResult(), readCellProperty(), readCellStyle(), readSpreadsheetName(), readUserStyle(), sendCellContent(), sendSpreadsheet(), and version().
| 
 | private | 
the internal state
Referenced by checkFilePosition(), getNumSpreadsheets(), getSheetName(), readCell(), readCellProperty(), readCellStyle(), readColumnSize(), readRowSize(), readSheetSize(), readSpreadsheetClose(), readSpreadsheetOpen(), readUserStyle(), sendSpreadsheet(), and version().