the main class to read the spreadsheet part of RagTime 56 file More...
#include <RagTime5Spreadsheet.hxx>
Public Member Functions | |
RagTime5Spreadsheet (RagTime5Document &doc) | |
constructor More... | |
virtual | ~RagTime5Spreadsheet () |
destructor More... | |
int | version () const |
returns the file version More... | |
int | numPages () const |
returns the number of pages More... | |
bool | getFormulaRef (int sheetId, int refId, MWAWCellContent::FormulaInstruction &instruction) const |
returns a formula instruction corresponding to a sheetId and refId More... | |
Static Public Member Functions | |
static std::string | printType (unsigned long fileType) |
debug: print a file type More... | |
Protected Member Functions | |
bool | send (int zoneId, MWAWListenerPtr listener, MWAWPosition const &pos, int partId=0) |
try to send the cluster zone More... | |
bool | send (RagTime5SpreadsheetInternal::Sheet &sheet, MWAWListenerPtr listener, MWAWPosition const &pos, int partId=0) |
try to send the cluster zone More... | |
bool | send (RagTime5SpreadsheetInternal::Sheet &sheet, int plane, RagTime5SpreadsheetInternal::CellContent const &cell, int numRepeated, MWAWSpreadsheetListenerPtr &listener) |
try to send a cell More... | |
std::vector< int > | getSheetIdList () const |
return the sheet data id list More... | |
void | flushExtra (bool onlyCheck=false) |
sends the data which have not yet been sent to the listener More... | |
std::shared_ptr< RagTime5ClusterManager::Cluster > | readSpreadsheetCluster (RagTime5Zone &zone, int zoneType) |
try to read a spreadsheet cluster More... | |
void | parseSpreadsheetFormulas () |
parses all the formula structure linked to a spreadsheet More... | |
void | storeFormula (int sheetId, std::map< int, std::vector< MWAWCellContent::FormulaInstruction > > const &idToFormula) |
store the formula corresponding to a sheetId More... | |
bool | readSheetDimensions (RagTime5SpreadsheetInternal::Sheet &sheet, RagTime5Zone &zone, RagTime5ClusterManager::Link const &link) |
try to read the spreadsheet dimensions More... | |
bool | readValuesTree (RagTime5SpreadsheetInternal::Sheet &sheet, RagTime5Zone &zone, RagTime5ClusterManager::Link const &link, int rootId, MWAWVec3i const &maxPos) |
try to read a spreadsheet tree of values More... | |
bool | readCellBlocks (RagTime5SpreadsheetInternal::Sheet &sheet, RagTime5Zone &zone, RagTime5ClusterManager::Link const &link, bool unionBlock) |
try to read a spreadsheet referenced/union zones More... | |
bool | readCellRefPos (RagTime5SpreadsheetInternal::Sheet &sheet, RagTime5Zone &zone, RagTime5ClusterManager::Link const &link) |
try to read the cell ref to value zone More... | |
Protected Attributes | |
RagTime5Document & | m_document |
the parser More... | |
std::shared_ptr< RagTime5StructManager > | m_structManager |
the structure manager More... | |
std::shared_ptr< RagTime5StyleManager > | m_styleManager |
the style manager More... | |
MWAWParserStatePtr | m_parserState |
the parser state More... | |
std::shared_ptr< RagTime5SpreadsheetInternal::State > | m_state |
the state More... | |
Private Member Functions | |
RagTime5Spreadsheet (RagTime5Spreadsheet const &orig)=delete | |
RagTime5Spreadsheet & | operator= (RagTime5Spreadsheet const &orig)=delete |
Friends | |
class | RagTime5SpreadsheetInternal::SubDocument |
class | RagTime5Document |
class | RagTime5Formula |
the main class to read the spreadsheet part of RagTime 56 file
|
explicit |
constructor
|
virtual |
destructor
|
privatedelete |
|
protected |
sends the data which have not yet been sent to the listener
bool RagTime5Spreadsheet::getFormulaRef | ( | int | sheetId, |
int | refId, | ||
MWAWCellContent::FormulaInstruction & | instruction | ||
) | const |
returns a formula instruction corresponding to a sheetId and refId
|
protected |
return the sheet data id list
int RagTime5Spreadsheet::numPages | ( | ) | const |
returns the number of pages
|
privatedelete |
|
protected |
parses all the formula structure linked to a spreadsheet
|
inlinestatic |
debug: print a file type
Referenced by RagTime5SpreadsheetInternal::SpreadsheetCParser::parseDataZone(), and RagTime5SpreadsheetInternal::SpreadsheetCParser::parseHeaderZone().
|
protected |
try to read a spreadsheet referenced/union zones
Referenced by readSpreadsheetCluster().
|
protected |
try to read the cell ref to value zone
Referenced by readSpreadsheetCluster().
|
protected |
try to read the spreadsheet dimensions
Referenced by readSpreadsheetCluster().
|
protected |
try to read a spreadsheet cluster
|
protected |
try to read a spreadsheet tree of values
Referenced by readSpreadsheetCluster().
|
protected |
try to send the cluster zone
Referenced by flushExtra(), and send().
|
protected |
try to send a cell
|
protected |
try to send the cluster zone
|
protected |
store the formula corresponding to a sheetId
int RagTime5Spreadsheet::version | ( | ) | const |
returns the file version
|
friend |
|
friend |
|
friend |
|
protected |
the parser
Referenced by parseSpreadsheetFormulas(), readSpreadsheetCluster(), and send().
|
protected |
the parser state
Referenced by flushExtra(), send(), and version().
|
protected |
the state
Referenced by flushExtra(), getFormulaRef(), getSheetIdList(), numPages(), parseSpreadsheetFormulas(), readSpreadsheetCluster(), send(), and storeFormula().
|
protected |
the structure manager
|
protected |
the style manager
Referenced by send().