38#ifndef RAGTIME5_SPREADSHEET
39# define RAGTIME5_SPREADSHEET
45#include <librevenge/librevenge.h>
125 void storeFormula(
int sheetId, std::map<
int, std::vector<MWAWCellContent::FormulaInstruction> >
const &idToFormula);
174 std::shared_ptr<RagTime5SpreadsheetInternal::State>
m_state;
Defines MWAWCell (cell content and format)
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: MWAWPosition.hxx:48
the main class to read a RagTime v5 file
Definition: RagTime5Document.hxx:77
the main class to read the spreadsheet part of RagTime 56 file
Definition: RagTime5Spreadsheet.hxx:78
bool readSheetDimensions(RagTime5SpreadsheetInternal::Sheet &sheet, RagTime5Zone &zone, RagTime5ClusterManager::Link const &link)
try to read the spreadsheet dimensions
Definition: RagTime5Spreadsheet.cxx:1514
friend class RagTime5SpreadsheetInternal::SubDocument
Definition: RagTime5Spreadsheet.hxx:79
bool send(int zoneId, MWAWListenerPtr listener, MWAWPosition const &pos, int partId=0)
try to send the cluster zone
Definition: RagTime5Spreadsheet.cxx:1920
std::shared_ptr< RagTime5StyleManager > m_styleManager
the style manager
Definition: RagTime5Spreadsheet.hxx:169
int version() const
returns the file version
Definition: RagTime5Spreadsheet.cxx:1454
std::shared_ptr< RagTime5ClusterManager::Cluster > readSpreadsheetCluster(RagTime5Zone &zone, int zoneType)
try to read a spreadsheet cluster
Definition: RagTime5Spreadsheet.cxx:3142
bool readValuesTree(RagTime5SpreadsheetInternal::Sheet &sheet, RagTime5Zone &zone, RagTime5ClusterManager::Link const &link, int rootId, MWAWVec3i const &maxPos)
try to read a spreadsheet tree of values
Definition: RagTime5Spreadsheet.cxx:1719
RagTime5Document & m_document
the parser
Definition: RagTime5Spreadsheet.hxx:164
std::shared_ptr< RagTime5SpreadsheetInternal::State > m_state
the state
Definition: RagTime5Spreadsheet.hxx:174
bool getFormulaRef(int sheetId, int refId, MWAWCellContent::FormulaInstruction &instruction) const
returns a formula instruction corresponding to a sheetId and refId
Definition: RagTime5Spreadsheet.cxx:1472
virtual ~RagTime5Spreadsheet()
destructor
Definition: RagTime5Spreadsheet.cxx:1450
RagTime5Spreadsheet(RagTime5Spreadsheet const &orig)=delete
void flushExtra(bool onlyCheck=false)
sends the data which have not yet been sent to the listener
Definition: RagTime5Spreadsheet.cxx:2149
RagTime5Spreadsheet & operator=(RagTime5Spreadsheet const &orig)=delete
void storeFormula(int sheetId, std::map< int, std::vector< MWAWCellContent::FormulaInstruction > > const &idToFormula)
store the formula corresponding to a sheetId
Definition: RagTime5Spreadsheet.cxx:1499
void parseSpreadsheetFormulas()
parses all the formula structure linked to a spreadsheet
Definition: RagTime5Spreadsheet.cxx:1489
std::shared_ptr< RagTime5StructManager > m_structManager
the structure manager
Definition: RagTime5Spreadsheet.hxx:167
int numPages() const
returns the number of pages
Definition: RagTime5Spreadsheet.cxx:1459
MWAWParserStatePtr m_parserState
the parser state
Definition: RagTime5Spreadsheet.hxx:171
static std::string printType(unsigned long fileType)
debug: print a file type
Definition: RagTime5Spreadsheet.hxx:150
std::vector< int > getSheetIdList() const
return the sheet data id list
Definition: RagTime5Spreadsheet.cxx:1464
bool readCellBlocks(RagTime5SpreadsheetInternal::Sheet &sheet, RagTime5Zone &zone, RagTime5ClusterManager::Link const &link, bool unionBlock)
try to read a spreadsheet referenced/union zones
Definition: RagTime5Spreadsheet.cxx:1597
bool readCellRefPos(RagTime5SpreadsheetInternal::Sheet &sheet, RagTime5Zone &zone, RagTime5ClusterManager::Link const &link)
try to read the cell ref to value zone
Definition: RagTime5Spreadsheet.cxx:1848
basic class used to store RagTime 5/6 structures
Definition: RagTime5StructManager.hxx:175
static std::string printType(unsigned long fileType)
debug: print a file type
Definition: RagTime5StructManager.cxx:94
basic class used to read/store RagTime 5/6 styles
Definition: RagTime5StyleManager.hxx:61
main zone in a RagTime v5-v6 document
Definition: RagTime5StructManager.hxx:51
std::shared_ptr< MWAWSpreadsheetListener > MWAWSpreadsheetListenerPtr
a smart pointer of MWAWSpreadsheetListener
Definition: libmwaw_internal.hxx:563
std::shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:557
std::shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:553
Internal: the structures of a RagTime5Spreadsheet.
Definition: RagTime5Spreadsheet.cxx:69
small class use to define a formula instruction
Definition: MWAWCell.hxx:397
a link to a small zone (or set of zones) in RagTime 5/6 documents
Definition: RagTime5ClusterManager.hxx:113
a struct to store what a cell contains
Definition: RagTime5Spreadsheet.cxx:172
internal: a structure used to store a sheet in RagTime5SpreadsheetInternal
Definition: RagTime5Spreadsheet.cxx:462