RagTimeSpreadsheet Class Reference

the main class to read the spreadsheet part of ragTime file More...

#include <RagTimeSpreadsheet.hxx>

Public Member Functions

 RagTimeSpreadsheet (RagTimeParser &parser)
 constructor More...
 
virtual ~RagTimeSpreadsheet ()
 destructor More...
 
int version () const
 returns the file version More...
 

Protected Member Functions

bool readSpreadsheet (MWAWEntry &entry)
 try to read a spreadsheet zone: v3-... More...
 
bool readSpreadsheetV2 (MWAWEntry &entry)
 try to read spreadsheet zone ( a big zone):v2 More...
 
bool readSpreadsheetCellsV2 (MWAWEntry &entry, RagTimeSpreadsheetInternal::Spreadsheet &sheet)
 try to read spreadsheet cells :v2 More...
 
bool readSpreadsheetExtraV2 (MWAWEntry &entry, RagTimeSpreadsheetInternal::Spreadsheet &sheet)
 try to read spreadsheet end zone (positions, ...) :v2 More...
 
bool send (int zId, MWAWPosition const &pos)
 send a spreadsheet corresponding to zId More...
 
void flushExtra ()
 flush extra data More...
 
bool readSpreadsheetCellV2 (RagTimeSpreadsheetInternal::Cell &cell, long endPos)
 try to read a cell :v2 More...
 
bool readFormula (Vec2i const &cellPos, std::vector< MWAWCellContent::FormulaInstruction > &formula, long endPos, std::string &extra)
 try to read a formula More...
 
bool readCellInFormula (Vec2i const &pos, bool canBeList, MWAWCellContent::FormulaInstruction &instr, long endPos, std::string &extra)
 try to read a cell in a formula More...
 
bool send (RagTimeSpreadsheetInternal::Spreadsheet &sheet, MWAWSpreadsheetListenerPtr listener)
 send a spreadsheet to a listener More...
 

Protected Attributes

MWAWParserStatePtr m_parserState
 the parser state More...
 
shared_ptr
< RagTimeSpreadsheetInternal::State
m_state
 the state More...
 
RagTimeParserm_mainParser
 the main parser; More...
 

Private Member Functions

 RagTimeSpreadsheet (RagTimeSpreadsheet const &orig)
 
RagTimeSpreadsheetoperator= (RagTimeSpreadsheet const &orig)
 

Friends

class RagTimeParser
 

Detailed Description

the main class to read the spreadsheet part of ragTime file

Constructor & Destructor Documentation

RagTimeSpreadsheet::RagTimeSpreadsheet ( RagTimeParser parser)

constructor

RagTimeSpreadsheet::~RagTimeSpreadsheet ( )
virtual

destructor

RagTimeSpreadsheet::RagTimeSpreadsheet ( RagTimeSpreadsheet const &  orig)
private

Member Function Documentation

void RagTimeSpreadsheet::flushExtra ( )
protected

flush extra data

RagTimeSpreadsheet& RagTimeSpreadsheet::operator= ( RagTimeSpreadsheet const &  orig)
private
bool RagTimeSpreadsheet::readCellInFormula ( Vec2i 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::readFormula ( Vec2i const &  cellPos,
std::vector< MWAWCellContent::FormulaInstruction > &  formula,
long  endPos,
std::string &  extra 
)
protected

try to read a formula

Referenced by readSpreadsheetCellV2().

bool RagTimeSpreadsheet::readSpreadsheet ( MWAWEntry entry)
protected

try to read a spreadsheet zone: v3-...

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::readSpreadsheetExtraV2 ( MWAWEntry entry,
RagTimeSpreadsheetInternal::Spreadsheet sheet 
)
protected

try to read spreadsheet end zone (positions, ...) :v2

Referenced by readSpreadsheetV2().

bool RagTimeSpreadsheet::readSpreadsheetV2 ( MWAWEntry entry)
protected

try to read spreadsheet zone ( a big zone):v2

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 readSpreadsheet(), and readSpreadsheetV2().

Friends And Related Function Documentation

friend class RagTimeParser
friend

Member Data Documentation

RagTimeParser* RagTimeSpreadsheet::m_mainParser
protected

the main parser;

Referenced by readSpreadsheetCellV2().

shared_ptr<RagTimeSpreadsheetInternal::State> RagTimeSpreadsheet::m_state
protected

the state

Referenced by flushExtra(), readSpreadsheetV2(), send(), and version().


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

Generated on Sun Oct 26 2014 05:56:34 for libmwaw by doxygen 1.8.8