22 #ifndef QUATTRO_SPREADSHEET_H 23 #define QUATTRO_SPREADSHEET_H 29 #include <librevenge-stream/librevenge-stream.h> 71 std::vector<WKSContentListener::FormulaInstruction>
m_cells;
105 int getNumSpreadsheets()
const;
107 librevenge::RVNGString getSheetName(
int id)
const;
109 void sendSpreadsheet(
int sheetId, std::vector<Vec2i>
const &listGraphicCells);
111 Vec2f getPosition(
int sheetId,
Vec2i const &cell)
const;
116 void addDLLIdName(
int id, librevenge::RVNGString
const &
name,
bool func1);
118 void addUserFormat(
int id, librevenge::RVNGString
const &name);
126 bool readCell(std::shared_ptr<WPSStream> stream);
128 bool readSheetSize(std::shared_ptr<WPSStream> stream);
130 bool readColumnRowDefaultSize(std::shared_ptr<WPSStream> stream);
132 bool readColumnSize(std::shared_ptr<WPSStream> stream);
134 bool readRowSize(std::shared_ptr<WPSStream> stream);
136 bool readRowRangeSize(std::shared_ptr<WPSStream> stream);
139 bool readBeginEndSheet(std::shared_ptr<WPSStream> stream,
int &sheetId);
141 bool readSheetName(std::shared_ptr<WPSStream> stream);
143 bool readCellStyle(std::shared_ptr<WPSStream> stream);
146 bool readViewInfo(std::shared_ptr<WPSStream> stream);
151 bool readFormula(std::shared_ptr<WPSStream> stream,
long endPos,
Vec2i const &pos,
int sheetId,
152 std::vector<WKSContentListener::FormulaInstruction> &formula, std::string &error);
156 bool readCellReference(std::shared_ptr<WPSStream> stream,
long endPos,
158 Vec2i const &pos=
Vec2i(0,0),
int sheetId=0)
const;
167 std::shared_ptr<QuattroSpreadsheetInternal::State>
m_state;
std::shared_ptr< QuattroSpreadsheetInternal::State > m_state
the internal state
Definition: QuattroSpreadsheet.h:167
int version() const
return the file version
Definition: Quattro.cpp:475
void setListener(WKSContentListenerPtr &listen)
sets the listener
Definition: QuattroSpreadsheet.h:91
What m_type
the type
Definition: WKSContentListener.h:77
void addInstruction(WKSContentListener::FormulaInstruction const &instr)
add an instruction
Definition: QuattroSpreadsheet.h:52
Definition: WKSContentListener.h:59
std::string m_content
the content ( if type == F_Operator or type = F_Function or type==F_Text)
Definition: WKSContentListener.h:79
small class use to store Quattro Pro cell reference
Definition: QuattroSpreadsheet.h:43
bool empty() const
return true if we have not read any reference
Definition: QuattroSpreadsheet.h:64
CellReference()
constructor
Definition: QuattroSpreadsheet.h:47
std::shared_ptr< WKSContentListener > m_listener
Definition: QuattroSpreadsheet.h:163
std::vector< WKSContentListener::FormulaInstruction > m_cells
the list of instruction coding each cell's block
Definition: QuattroSpreadsheet.h:71
This class parses Quattro Pro spreadsheet: .wq1 and wq2.
Definition: Quattro.h:53
This class parses Quattro Pro spreadsheet file.
Definition: QuattroSpreadsheet.h:81
friend class QuattroSpreadsheet
Definition: Quattro.h:58
Vec2< int > Vec2i
Vec2 of int.
Definition: libwps_internal.h:702
std::shared_ptr< WKSContentListener > m_listener
Definition: Quattro.h:176
a cellule of a Quattro spreadsheet
Definition: QuattroSpreadsheet.cpp:103
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
friend std::ostream & operator<<(std::ostream &o, CellReference const &ref)
friend operator<<
Definition: QuattroSpreadsheet.cpp:2444