22 #ifndef QUATTRO_SPREADSHEET_H 23 #define QUATTRO_SPREADSHEET_H 29 #include <librevenge-stream/librevenge-stream.h> 73 int getNumSpreadsheets()
const;
75 librevenge::RVNGString getSheetName(
int id)
const;
77 void sendSpreadsheet(
int sheetId, std::vector<Vec2i>
const &listGraphicCells);
82 void addDLLIdName(
int id, librevenge::RVNGString
const &
name,
bool func1);
84 void addUserFormat(
int id, librevenge::RVNGString
const &name);
92 bool readCell(std::shared_ptr<WPSStream> stream);
94 bool readSheetSize(std::shared_ptr<WPSStream> stream);
96 bool readColumnSize(std::shared_ptr<WPSStream> stream);
98 bool readRowSize(std::shared_ptr<WPSStream> stream);
101 bool readBeginEndSheet(std::shared_ptr<WPSStream> stream,
int &sheetId);
103 bool readSheetName(std::shared_ptr<WPSStream> stream);
105 bool readCellStyle(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;
std::shared_ptr< QuattroSpreadsheetInternal::State > m_state
the internal state
Definition: QuattroSpreadsheet.h:124
int version() const
return the file version
Definition: Quattro.cpp:235
void setListener(WKSContentListenerPtr &listen)
sets the listener
Definition: QuattroSpreadsheet.h:59
std::shared_ptr< WKSContentListener > m_listener
Definition: QuattroSpreadsheet.h:120
This class parses Quattro Pro spreadsheet: .wq1 and wq2.
Definition: Quattro.h:51
This class parses Quattro Pro DOS spreadsheet file.
Definition: QuattroSpreadsheet.h:49
friend class QuattroSpreadsheet
Definition: Quattro.h:56
std::shared_ptr< WKSContentListener > m_listener
Definition: Quattro.h:165
a cellule of a Quattro spreadsheet
Definition: QuattroSpreadsheet.cpp:104
WKSParser & operator=(const WKSParser &)=delete
std::shared_ptr< WKSContentListener > WKSContentListenerPtr
shared pointer to WKSContentListener
Definition: libwps_internal.h:114
small class use to define a formula instruction
Definition: WKSContentListener.h:57
Definition: QuattroSpreadsheet.cpp:49