22 #ifndef QUATTRO_SPREADSHEET_H 23 #define QUATTRO_SPREADSHEET_H 29 #include <librevenge-stream/librevenge-stream.h> 77 void sendSpreadsheet(
int sheetId, std::vector<Vec2i>
const &listGraphicCells);
92 bool readCell(std::shared_ptr<WPSStream> stream);
98 bool readRowSize(std::shared_ptr<WPSStream> stream);
108 bool readZone197(std::shared_ptr<WPSStream> stream);
113 bool readFormula(std::shared_ptr<WPSStream> stream,
long endPos,
Vec2i const &pos,
int sheetId,
114 std::vector<WKSContentListener::FormulaInstruction> &formula, std::string &error);
124 std::shared_ptr<QuattroSpreadsheetInternal::State>
m_state;
void updateCellWithUserFormat(QuattroSpreadsheetInternal::Cell &cell, librevenge::RVNGString const &format)
try to update the cell's format using the user format
Definition: QuattroSpreadsheet.cpp:1805
std::shared_ptr< QuattroSpreadsheetInternal::State > m_state
the internal state
Definition: QuattroSpreadsheet.h:124
librevenge::RVNGString getSheetName(int id) const
returns the name of the id's spreadsheet
Definition: QuattroSpreadsheet.cpp:506
void cleanState()
clean internal state
Definition: QuattroSpreadsheet.cpp:481
bool readFormula(std::shared_ptr< WPSStream > stream, long endPos, Vec2i const &pos, int sheetId, std::vector< WKSContentListener::FormulaInstruction > &formula, std::string &error)
Definition: QuattroSpreadsheet.cpp:1337
bool readSheetName(std::shared_ptr< WPSStream > stream)
reads sheet name: zone cc
Definition: QuattroSpreadsheet.cpp:1148
void setListener(WKSContentListenerPtr &listen)
sets the listener
Definition: QuattroSpreadsheet.h:59
void addDLLIdName(int id, librevenge::RVNGString const &name, bool func1)
add a dll's correspondance between an id and a name
Definition: QuattroSpreadsheet.cpp:511
~QuattroSpreadsheet()
destructor
Definition: QuattroSpreadsheet.cpp:477
QuattroSpreadsheet & operator=(QuattroSpreadsheet const &orig)=delete
QuattroParser & m_mainParser
the listener (if set)
Definition: QuattroSpreadsheet.h:122
bool readColumnSize(std::shared_ptr< WPSStream > stream)
reads the column size ( in ??? )
Definition: QuattroSpreadsheet.cpp:997
std::shared_ptr< WKSContentListener > m_listener
Definition: QuattroSpreadsheet.h:120
bool readZone197(std::shared_ptr< WPSStream > stream)
reads a unknown sheet zone(one by sheet): zone 192
Definition: QuattroSpreadsheet.cpp:1190
void sendSpreadsheet(int sheetId, std::vector< Vec2i > const &listGraphicCells)
send the sId'th spreadsheet
Definition: QuattroSpreadsheet.cpp:1717
This class parses Quattro Pro spreadsheet: .wq1 and wq2.
Definition: Quattro.h:51
bool readCell(std::shared_ptr< WPSStream > stream)
reads a cell content data: zone 0xc-0x10 or 33
Definition: QuattroSpreadsheet.cpp:548
This class parses Quattro Pro DOS spreadsheet file.
Definition: QuattroSpreadsheet.h:49
void sendCellContent(QuattroSpreadsheetInternal::Cell const &cell, int sheetId)
send the cell data
Definition: QuattroSpreadsheet.cpp:2030
bool readBeginEndSheet(std::shared_ptr< WPSStream > stream, int &sheetId)
read the begin/end of a sheet zone: zone ca and cb
Definition: QuattroSpreadsheet.cpp:1100
bool readCellStyle(std::shared_ptr< WPSStream > stream)
reads a cell attribute: zone 0xce
Definition: QuattroSpreadsheet.cpp:722
bool readSheetSize(std::shared_ptr< WPSStream > stream)
reads sheet size: zone 06
Definition: QuattroSpreadsheet.cpp:956
void addUserFormat(int id, librevenge::RVNGString const &name)
add a user format's correspondance between an id and a name
Definition: QuattroSpreadsheet.cpp:527
bool readRowSize(std::shared_ptr< WPSStream > stream)
reads the row size: zone d6
Definition: QuattroSpreadsheet.cpp:1051
a cellule of a Quattro spreadsheet
Definition: QuattroSpreadsheet.cpp:104
std::shared_ptr< WKSContentListener > WKSContentListenerPtr
shared pointer to WKSContentListener
Definition: libwps_internal.h:114
QuattroSpreadsheet(QuattroParser &parser)
constructor
Definition: QuattroSpreadsheet.cpp:470
small class use to define a formula instruction
Definition: WKSContentListener.h:57
int version() const
return the file version
Definition: QuattroSpreadsheet.cpp:490
void updateState()
update the state (need to be called before sending data)
Definition: QuattroSpreadsheet.cpp:486
int getNumSpreadsheets() const
returns the number of spreadsheet
Definition: QuattroSpreadsheet.cpp:497
Definition: QuattroSpreadsheet.cpp:49