22 #ifndef QUATTRO9_SPREADSHEET_H 23 #define QUATTRO9_SPREADSHEET_H 29 #include <librevenge-stream/librevenge-stream.h> 82 int getNumSpreadsheets()
const;
84 librevenge::RVNGString getSheetName(
int id)
const;
86 void sendSpreadsheet(
int sheetId);
88 Vec2f getPosition(
int sheetId,
Vec2i const &cell)
const;
90 void addDLLIdName(
int id, librevenge::RVNGString
const &
name,
bool func1);
92 void addUserFormat(
int id, librevenge::RVNGString
const &name);
95 std::vector<Quattro9ParserInternal::TextEntry>
const &entries);
105 bool readCellStyles(std::shared_ptr<WPSStream>
const &stream);
107 bool readDocumentFormulas(std::shared_ptr<WPSStream>
const &stream);
109 bool readBeginSheet(std::shared_ptr<WPSStream>
const &stream,
int &sheetId);
111 bool readEndSheet(std::shared_ptr<WPSStream>
const &stream);
113 bool readPageBreak(std::shared_ptr<WPSStream>
const &stream);
115 bool readMergedCells(std::shared_ptr<WPSStream>
const &stream);
117 bool readColRowDefault(std::shared_ptr<WPSStream>
const &stream);
119 bool readColRowDimension(std::shared_ptr<WPSStream>
const &stream);
121 bool readColRowDimensions(std::shared_ptr<WPSStream>
const &stream);
123 bool readBeginColumn(std::shared_ptr<WPSStream>
const &stream);
125 bool readEndColumn(std::shared_ptr<WPSStream>
const &stream);
127 bool readCellList(std::shared_ptr<WPSStream>
const &stream);
129 bool readCellResult(std::shared_ptr<WPSStream>
const &stream);
134 bool readCellReference(std::shared_ptr<WPSStream>
const &stream,
long endPos,
136 Vec2i const &pos=
Vec2i(0,0),
int sheetId=0)
const;
146 std::shared_ptr<Quattro9SpreadsheetInternal::State>
m_state;
std::shared_ptr< WKSContentListener > m_listener
Definition: Quattro9Spreadsheet.h:142
friend class Quattro9Spreadsheet
Definition: Quattro9.h:93
void setListener(WKSContentListenerPtr &listen)
sets the listener
Definition: Quattro9Spreadsheet.h:66
Definition: Quattro9Spreadsheet.cpp:50
a class used to store the cell(s) content of a Quattro Spreadsheet
Definition: Quattro9Spreadsheet.cpp:233
This class parses Quattro9 Pro spreadsheet file.
Definition: Quattro9Spreadsheet.h:56
Vec2< int > Vec2i
Vec2 of int.
Definition: libwps_internal.h:702
std::shared_ptr< Quattro9SpreadsheetInternal::State > m_state
the internal state
Definition: Quattro9Spreadsheet.h:146
This class parses Quattro Pro WP spreadsheet: .qpw.
Definition: Quattro9.h:89
WKSParser & operator=(const WKSParser &)=delete
std::shared_ptr< WKSContentListener > m_listener
Definition: Quattro9.h:202
std::shared_ptr< WKSContentListener > WKSContentListenerPtr
shared pointer to WKSContentListener
Definition: libwps_internal.h:114
int version() const
return the file version
Definition: Quattro9.cpp:417
Internal: namespace to define internal class of Quattro9Parser.
Definition: Quattro9.cpp:57
small class use to define a formula instruction
Definition: WKSContentListener.h:57
void addDocumentStrings()
add the document strings to the spreadsheetParser
Definition: Quattro9.cpp:525