RagTime5Spreadsheet Class Reference

the main class to read the spreadsheet part of RagTime 56 file More...

#include <RagTime5Spreadsheet.hxx>

Public Member Functions

 RagTime5Spreadsheet (RagTime5Parser &parser)
 constructor More...
 
virtual ~RagTime5Spreadsheet ()
 destructor More...
 
int version () const
 returns the file version More...
 
int numPages () const
 returns the number of pages 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, RagTime5SpreadsheetInternal::CellContent const &cell, int numRepeated, MWAWSpreadsheetListenerPtr &listener)
 try to send a cell More...
 
void flushExtra ()
 sends the data which have not yet been sent to the listener More...
 
shared_ptr< RagTime5ClusterManager::ClusterreadSpreadsheetCluster (RagTime5Zone &zone, int zoneType)
 try to read a spreadsheet cluster 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 (RagTime5Zone &zone, RagTime5ClusterManager::Link const &link)
 try to read the cell ref ??? zone More...
 

Protected Attributes

RagTime5Parserm_mainParser
 the parser More...
 
shared_ptr< RagTime5StructManagerm_structManager
 the structure manager More...
 
shared_ptr< RagTime5StyleManagerm_styleManager
 the style manager More...
 
MWAWParserStatePtr m_parserState
 the parser state More...
 
shared_ptr< RagTime5SpreadsheetInternal::Statem_state
 the state More...
 

Private Member Functions

 RagTime5Spreadsheet (RagTime5Spreadsheet const &orig)
 
RagTime5Spreadsheetoperator= (RagTime5Spreadsheet const &orig)
 

Friends

class RagTime5SpreadsheetInternal::SubDocument
 
class RagTime5Parser
 

Detailed Description

the main class to read the spreadsheet part of RagTime 56 file

Constructor & Destructor Documentation

RagTime5Spreadsheet::RagTime5Spreadsheet ( RagTime5Parser parser)
explicit

constructor

RagTime5Spreadsheet::~RagTime5Spreadsheet ( )
virtual

destructor

RagTime5Spreadsheet::RagTime5Spreadsheet ( RagTime5Spreadsheet const &  orig)
private

Member Function Documentation

void RagTime5Spreadsheet::flushExtra ( )
protected

sends the data which have not yet been sent to the listener

int RagTime5Spreadsheet::numPages ( ) const

returns the number of pages

RagTime5Spreadsheet& RagTime5Spreadsheet::operator= ( RagTime5Spreadsheet const &  orig)
private
bool RagTime5Spreadsheet::readCellBlocks ( RagTime5SpreadsheetInternal::Sheet sheet,
RagTime5Zone zone,
RagTime5ClusterManager::Link const &  link,
bool  unionBlock 
)
protected

try to read a spreadsheet referenced/union zones

Referenced by readSpreadsheetCluster().

bool RagTime5Spreadsheet::readCellRefPos ( RagTime5Zone zone,
RagTime5ClusterManager::Link const &  link 
)
protected

try to read the cell ref ??? zone

Referenced by readSpreadsheetCluster().

bool RagTime5Spreadsheet::readSheetDimensions ( RagTime5SpreadsheetInternal::Sheet sheet,
RagTime5Zone zone,
RagTime5ClusterManager::Link const &  link 
)
protected

try to read the spreadsheet dimensions

Referenced by readSpreadsheetCluster().

shared_ptr< RagTime5ClusterManager::Cluster > RagTime5Spreadsheet::readSpreadsheetCluster ( RagTime5Zone zone,
int  zoneType 
)
protected

try to read a spreadsheet cluster

bool RagTime5Spreadsheet::readValuesTree ( RagTime5SpreadsheetInternal::Sheet sheet,
RagTime5Zone zone,
RagTime5ClusterManager::Link const &  link,
int  rootId,
MWAWVec3i const &  maxPos 
)
protected

try to read a spreadsheet tree of values

Referenced by readSpreadsheetCluster().

bool RagTime5Spreadsheet::send ( int  zoneId,
MWAWListenerPtr  listener,
MWAWPosition const &  pos,
int  partId = 0 
)
protected

try to send the cluster zone

Referenced by flushExtra(), and send().

bool RagTime5Spreadsheet::send ( RagTime5SpreadsheetInternal::Sheet sheet,
MWAWListenerPtr  listener,
MWAWPosition const &  pos,
int  partId = 0 
)
protected

try to send the cluster zone

bool RagTime5Spreadsheet::send ( RagTime5SpreadsheetInternal::Sheet sheet,
RagTime5SpreadsheetInternal::CellContent const &  cell,
int  numRepeated,
MWAWSpreadsheetListenerPtr listener 
)
protected

try to send a cell

int RagTime5Spreadsheet::version ( ) const

returns the file version

Friends And Related Function Documentation

friend class RagTime5Parser
friend
friend class RagTime5SpreadsheetInternal::SubDocument
friend

Member Data Documentation

RagTime5Parser& RagTime5Spreadsheet::m_mainParser
protected

the parser

Referenced by readSpreadsheetCluster(), and send().

MWAWParserStatePtr RagTime5Spreadsheet::m_parserState
protected

the parser state

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

shared_ptr<RagTime5SpreadsheetInternal::State> RagTime5Spreadsheet::m_state
protected

the state

Referenced by flushExtra(), numPages(), readSpreadsheetCluster(), and send().

shared_ptr<RagTime5StructManager> RagTime5Spreadsheet::m_structManager
protected

the structure manager

shared_ptr<RagTime5StyleManager> RagTime5Spreadsheet::m_styleManager
protected

the style manager

Referenced by send().


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

Generated on Mon Feb 6 2017 11:34:31 for libmwaw by doxygen 1.8.11