the main class to read the spreadsheet part of ragTime file More...
#include <RagTimeSpreadsheet.hxx>
Public Member Functions | |
| RagTimeSpreadsheet (RagTimeParser &parser) | |
| constructor | |
| virtual | ~RagTimeSpreadsheet () |
| destructor | |
| int | version () const |
| returns the file version | |
Protected Member Functions | |
| bool | getDateTimeFormat (int dtId, std::string &dtFormat) const |
| returns the ith date format or "" | |
| bool | readNumericFormat (MWAWEntry &entry) |
| try to read the numeric/date format table zone: FoTa | |
| bool | readResource (MWAWEntry &entry) |
| try to read a SpXX resource | |
| bool | readRsrcSpDo (MWAWEntry &entry) |
| try to read the SpDo zone (a spreadsheet zone with id=0) | |
| bool | readRsrcSpDI (MWAWEntry &entry) |
| try to read the SpDI zone (a spreadsheet zone zone with id=0) | |
| bool | readSpreadsheet (MWAWEntry &entry) |
| try to read a spreadsheet zone: v3-... | |
| bool | readSpreadsheetZone9 (MWAWEntry const &entry, RagTimeSpreadsheetInternal::Spreadsheet &sheet) |
| try to read a the last spreadsheet zone | |
| bool | readSpreadsheetSimpleStructure (MWAWEntry const &entry, RagTimeSpreadsheetInternal::Spreadsheet &sheet) |
| try to read a simple structured spreadsheet zone | |
| bool | readSpreadsheetComplexStructure (MWAWEntry const &entry, RagTimeSpreadsheetInternal::Spreadsheet &sheet) |
| try to read a complex structured spreadsheet zone | |
| bool | readSpreadsheetCellContent (RagTimeSpreadsheetInternal::Cell &cell, long endPos) |
| try to read a spreadsheet cells content | |
| bool | readSpreadsheetCellDimension (MWAWVec2i const &cellPos, long endPos, RagTimeSpreadsheetInternal::Spreadsheet &sheet) |
| try to read a spreadsheet cells dimension | |
| bool | readSpreadsheetCellFormat (MWAWVec2i const &cellPos, long endPos, RagTimeSpreadsheetInternal::Cell &cell) |
| try to read a spreadsheet cell's format | |
| bool | readPositionsList (MWAWEntry const &entry, std::vector< long > &posList, long &lastDataPos) |
| try to read a list of position | |
| bool | readBlockHeader (MWAWEntry const &entry, RagTimeSpreadsheetInternal::ComplexBlock &block) |
| try to read a complex bock header | |
| bool | readSpreadsheetV2 (MWAWEntry &entry) |
| try to read spreadsheet zone ( a big zone):v2 | |
| bool | readSpreadsheetCellsV2 (MWAWEntry &entry, RagTimeSpreadsheetInternal::Spreadsheet &sheet) |
| try to read spreadsheet cells :v2 | |
| bool | readSpreadsheetExtraV2 (MWAWEntry &entry, RagTimeSpreadsheetInternal::Spreadsheet &sheet) |
| try to read spreadsheet end zone (positions, ...) :v2 | |
| bool | send (int zId, MWAWPosition const &pos) |
| send a spreadsheet corresponding to zId | |
| void | flushExtra () |
| flush extra data | |
| bool | readSpreadsheetCellV2 (RagTimeSpreadsheetInternal::Cell &cell, long endPos) |
| try to read a cell :v2 | |
| bool | readFormulaV2 (MWAWVec2i const &cellPos, std::vector< MWAWCellContent::FormulaInstruction > &formula, long endPos, std::string &extra) |
| try to read a formula | |
| bool | readFormula (MWAWVec2i const &cellPos, std::vector< MWAWCellContent::FormulaInstruction > &formula, long endPos, std::string &extra) |
| try to read a formula: v3... | |
| bool | readCellInFormulaV2 (MWAWVec2i const &pos, bool canBeList, MWAWCellContent::FormulaInstruction &instr, long endPos, std::string &extra) |
| try to read a cell in a formula | |
| bool | readCellInFormula (MWAWVec2i const &pos, bool canBeList, MWAWCellContent::FormulaInstruction &instr, long endPos, std::string &extra) |
| try to read a cell in a formula | |
| bool | send (RagTimeSpreadsheetInternal::Spreadsheet &sheet, MWAWSpreadsheetListenerPtr listener) |
| send a spreadsheet to a listener | |
Protected Attributes | |
| MWAWParserStatePtr | m_parserState |
| the parser state | |
| shared_ptr < RagTimeSpreadsheetInternal::State > | m_state |
| the state | |
| RagTimeParser * | m_mainParser |
| the main parser; | |
Private Member Functions | |
| RagTimeSpreadsheet (RagTimeSpreadsheet const &orig) | |
| RagTimeSpreadsheet & | operator= (RagTimeSpreadsheet const &orig) |
Friends | |
| class | RagTimeParser |
the main class to read the spreadsheet part of ragTime file
| RagTimeSpreadsheet::RagTimeSpreadsheet | ( | RagTimeParser & | parser | ) |
constructor
| RagTimeSpreadsheet::~RagTimeSpreadsheet | ( | ) | [virtual] |
destructor
| RagTimeSpreadsheet::RagTimeSpreadsheet | ( | RagTimeSpreadsheet const & | orig | ) | [private] |
| void RagTimeSpreadsheet::flushExtra | ( | ) | [protected] |
flush extra data
| bool RagTimeSpreadsheet::getDateTimeFormat | ( | int | dtId, |
| std::string & | dtFormat | ||
| ) | const [protected] |
returns the ith date format or ""
| RagTimeSpreadsheet& RagTimeSpreadsheet::operator= | ( | RagTimeSpreadsheet const & | orig | ) | [private] |
| bool RagTimeSpreadsheet::readBlockHeader | ( | MWAWEntry const & | entry, |
| RagTimeSpreadsheetInternal::ComplexBlock & | block | ||
| ) | [protected] |
try to read a complex bock header
Referenced by readSpreadsheetComplexStructure().
| bool RagTimeSpreadsheet::readCellInFormula | ( | MWAWVec2i const & | pos, |
| bool | canBeList, | ||
| MWAWCellContent::FormulaInstruction & | instr, | ||
| long | endPos, | ||
| std::string & | extra | ||
| ) | [protected] |
try to read a cell in a formula
Referenced by readFormula().
| bool RagTimeSpreadsheet::readCellInFormulaV2 | ( | MWAWVec2i const & | pos, |
| bool | canBeList, | ||
| MWAWCellContent::FormulaInstruction & | instr, | ||
| long | endPos, | ||
| std::string & | extra | ||
| ) | [protected] |
try to read a cell in a formula
Referenced by readFormulaV2().
| bool RagTimeSpreadsheet::readFormula | ( | MWAWVec2i const & | cellPos, |
| std::vector< MWAWCellContent::FormulaInstruction > & | formula, | ||
| long | endPos, | ||
| std::string & | extra | ||
| ) | [protected] |
try to read a formula: v3...
Referenced by readSpreadsheetComplexStructure().
| bool RagTimeSpreadsheet::readFormulaV2 | ( | MWAWVec2i const & | cellPos, |
| std::vector< MWAWCellContent::FormulaInstruction > & | formula, | ||
| long | endPos, | ||
| std::string & | extra | ||
| ) | [protected] |
try to read a formula
Referenced by readSpreadsheetCellV2().
| bool RagTimeSpreadsheet::readNumericFormat | ( | MWAWEntry & | entry | ) | [protected] |
try to read the numeric/date format table zone: FoTa
| bool RagTimeSpreadsheet::readPositionsList | ( | MWAWEntry const & | entry, |
| std::vector< long > & | posList, | ||
| long & | lastDataPos | ||
| ) | [protected] |
try to read a list of position
Referenced by readSpreadsheetComplexStructure().
| bool RagTimeSpreadsheet::readResource | ( | MWAWEntry & | entry | ) | [protected] |
try to read a SpXX resource
| bool RagTimeSpreadsheet::readRsrcSpDI | ( | MWAWEntry & | entry | ) | [protected] |
try to read the SpDI zone (a spreadsheet zone zone with id=0)
Referenced by readResource().
| bool RagTimeSpreadsheet::readRsrcSpDo | ( | MWAWEntry & | entry | ) | [protected] |
try to read the SpDo zone (a spreadsheet zone with id=0)
Referenced by readResource().
| bool RagTimeSpreadsheet::readSpreadsheet | ( | MWAWEntry & | entry | ) | [protected] |
try to read a spreadsheet zone: v3-...
| bool RagTimeSpreadsheet::readSpreadsheetCellContent | ( | RagTimeSpreadsheetInternal::Cell & | cell, |
| long | endPos | ||
| ) | [protected] |
try to read a spreadsheet cells content
Referenced by readSpreadsheetComplexStructure().
| bool RagTimeSpreadsheet::readSpreadsheetCellDimension | ( | MWAWVec2i const & | cellPos, |
| long | endPos, | ||
| RagTimeSpreadsheetInternal::Spreadsheet & | sheet | ||
| ) | [protected] |
try to read a spreadsheet cells dimension
Referenced by readSpreadsheetComplexStructure().
| bool RagTimeSpreadsheet::readSpreadsheetCellFormat | ( | MWAWVec2i const & | cellPos, |
| long | endPos, | ||
| RagTimeSpreadsheetInternal::Cell & | cell | ||
| ) | [protected] |
try to read a spreadsheet cell's format
Referenced by readSpreadsheetComplexStructure().
| bool RagTimeSpreadsheet::readSpreadsheetCellsV2 | ( | MWAWEntry & | entry, |
| RagTimeSpreadsheetInternal::Spreadsheet & | sheet | ||
| ) | [protected] |
try to read spreadsheet cells :v2
Referenced by readSpreadsheetV2().
| bool RagTimeSpreadsheet::readSpreadsheetCellV2 | ( | RagTimeSpreadsheetInternal::Cell & | cell, |
| long | endPos | ||
| ) | [protected] |
try to read a cell :v2
Referenced by readSpreadsheetCellsV2().
| bool RagTimeSpreadsheet::readSpreadsheetComplexStructure | ( | MWAWEntry const & | entry, |
| RagTimeSpreadsheetInternal::Spreadsheet & | sheet | ||
| ) | [protected] |
try to read a complex structured spreadsheet zone
Referenced by readSpreadsheet().
| bool RagTimeSpreadsheet::readSpreadsheetExtraV2 | ( | MWAWEntry & | entry, |
| RagTimeSpreadsheetInternal::Spreadsheet & | sheet | ||
| ) | [protected] |
try to read spreadsheet end zone (positions, ...) :v2
Referenced by readSpreadsheetV2().
| bool RagTimeSpreadsheet::readSpreadsheetSimpleStructure | ( | MWAWEntry const & | entry, |
| RagTimeSpreadsheetInternal::Spreadsheet & | sheet | ||
| ) | [protected] |
try to read a simple structured spreadsheet zone
Referenced by readSpreadsheet().
| bool RagTimeSpreadsheet::readSpreadsheetV2 | ( | MWAWEntry & | entry | ) | [protected] |
try to read spreadsheet zone ( a big zone):v2
| bool RagTimeSpreadsheet::readSpreadsheetZone9 | ( | MWAWEntry const & | entry, |
| RagTimeSpreadsheetInternal::Spreadsheet & | sheet | ||
| ) | [protected] |
try to read a the last spreadsheet zone
Referenced by readSpreadsheet().
| bool RagTimeSpreadsheet::send | ( | int | zId, |
| MWAWPosition const & | pos | ||
| ) | [protected] |
send a spreadsheet corresponding to zId
Referenced by flushExtra().
| bool RagTimeSpreadsheet::send | ( | RagTimeSpreadsheetInternal::Spreadsheet & | sheet, |
| MWAWSpreadsheetListenerPtr | listener | ||
| ) | [protected] |
send a spreadsheet to a listener
| int RagTimeSpreadsheet::version | ( | ) | const |
returns the file version
Referenced by readPositionsList(), readSpreadsheet(), and readSpreadsheetV2().
friend class RagTimeParser [friend] |
RagTimeParser* RagTimeSpreadsheet::m_mainParser [protected] |
the main parser;
Referenced by readResource(), readSpreadsheet(), readSpreadsheetCellContent(), readSpreadsheetCellV2(), and send().
MWAWParserStatePtr RagTimeSpreadsheet::m_parserState [protected] |
the parser state
Referenced by flushExtra(), readBlockHeader(), readCellInFormula(), readCellInFormulaV2(), readFormula(), readFormulaV2(), readNumericFormat(), readPositionsList(), readResource(), readRsrcSpDI(), readRsrcSpDo(), readSpreadsheet(), readSpreadsheetCellContent(), readSpreadsheetCellDimension(), readSpreadsheetCellFormat(), readSpreadsheetCellsV2(), readSpreadsheetCellV2(), readSpreadsheetComplexStructure(), readSpreadsheetExtraV2(), readSpreadsheetSimpleStructure(), readSpreadsheetV2(), readSpreadsheetZone9(), send(), and version().
shared_ptr<RagTimeSpreadsheetInternal::State> RagTimeSpreadsheet::m_state [protected] |
the state
Referenced by flushExtra(), getDateTimeFormat(), readNumericFormat(), readResource(), readSpreadsheet(), readSpreadsheetCellFormat(), readSpreadsheetV2(), send(), and version().