27#include <librevenge-stream/librevenge-stream.h>
62 void parse(librevenge::RVNGSpreadsheetInterface *documentInterface)
final;
71 std::shared_ptr<WKSContentListener>
createListener(librevenge::RVNGSpreadsheetInterface *interface);
78 bool readZones(librevenge::RVNGSpreadsheetInterface *documentInterface);
80 bool readZone(librevenge::RVNGSpreadsheetInterface *documentInterface);
125 bool readFormula(
long endPos,
Vec2i const &cellPos, std::vector<WKSContentListener::FormulaInstruction> &formula, std::string &extra);
134 std::shared_ptr<PocketExcelParserInternal::State>
m_state;
WKSParser(RVNGInputStreamPtr &input, WPSHeaderPtr &header)
Definition WKSParser.cpp:30
bool readSheetName()
tries to read the sheet name zone: 85
Definition PocketExcel.cpp:820
bool readDefColInfo()
tries to read the default column info: 55
Definition PocketExcel.cpp:914
bool readColInfo()
tries to read the column information: 7d
Definition PocketExcel.cpp:856
bool readSheetInfo()
tries to read the sheet window info: 3e
Definition PocketExcel.cpp:1205
bool readCellFormat()
tries to read a cellule format : e0
Definition PocketExcel.cpp:1475
bool checkHeader(WPSHeader *header, bool strict=false)
checks if the document header is correct (or not)
Definition PocketExcel.cpp:418
bool readPaneInfo()
tries to read the pane information: 41
Definition PocketExcel.cpp:950
bool readBeginZone()
tries to read the begining of a block: 09
Definition PocketExcel.cpp:706
bool readCell()
tries to read a cell: 1: blank, 3: number, 4: label
Definition PocketExcel.cpp:1749
bool readDefRowHeight()
tries to read the default row heights: 25
Definition PocketExcel.cpp:984
bool readNumberFormat()
tries to read a format zone: 1e
Definition PocketExcel.cpp:1082
bool readZones(librevenge::RVNGSpreadsheetInterface *documentInterface)
finds the different zones (spreadsheet, chart, print, ...)
Definition PocketExcel.cpp:473
std::shared_ptr< WKSContentListener > m_listener
Definition PocketExcel.h:132
bool sendSheet(PocketExcelParserInternal::Sheet const &sheet, int id)
try to send a sheet
Definition PocketExcel.cpp:2468
void sendCellContent(PocketExcelParserInternal::Cell const &cell, Vec2i const &pos)
send the cell data
Definition PocketExcel.cpp:2449
bool readZone(librevenge::RVNGSpreadsheetInterface *documentInterface)
tries to read a zone.
Definition PocketExcel.cpp:491
librevenge::RVNGString readString(int N)
try to read a string, ie. N unicode characters
Definition PocketExcel.cpp:1934
bool readFontDescription()
tries to read a font description: 32
Definition PocketExcel.cpp:751
bool readName()
tries to read a defined name: 8
Definition PocketExcel.cpp:1119
~PocketExcelParser() override
destructor
Definition PocketExcel.cpp:343
bool updateCell(int row, int col, int relPos, Vec2i const &actPos, WKSContentListener::FormulaInstruction &instr, int which=0)
try to update a cell position
Definition PocketExcel.cpp:2050
void parse(librevenge::RVNGSpreadsheetInterface *documentInterface) final
called by WPSDocument to parse the file
Definition PocketExcel.cpp:363
bool checkFilePosition(long pos)
return true if the pos is in the file, update the file size if need
Definition PocketExcel.cpp:347
bool readFormula(long endPos, Vec2i const &cellPos, std::vector< WKSContentListener::FormulaInstruction > &formula, std::string &extra)
try to read a formula
Definition PocketExcel.cpp:2060
std::shared_ptr< WKSContentListener > createListener(librevenge::RVNGSpreadsheetInterface *interface)
creates the main listener
Definition PocketExcel.cpp:405
void updateFmtWithUserFormat(WPSCellFormat &fmt, librevenge::RVNGString const &format)
try to update a cell format using the custom string
Definition PocketExcel.cpp:1262
PocketExcelParser(RVNGInputStreamPtr &input, WPSHeaderPtr &header)
constructor
Definition PocketExcel.cpp:336
bool readRowHeight()
tries to read a row height: 8
Definition PocketExcel.cpp:1020
std::shared_ptr< PocketExcelParserInternal::State > m_state
the listener (if set)
Definition PocketExcel.h:134
bool readSelection()
tries to read the current selection: 1d
Definition PocketExcel.cpp:1174
std::shared_ptr< WPSHeader > WPSHeaderPtr
shared pointer to WPSHeader
Definition libwps_internal.h:109
Vec2< int > Vec2i
Vec2 of int.
Definition libwps_internal.h:702
std::shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr
shared pointer to librevenge::RVNGInputStream
Definition libwps_internal.h:87
Internal: namespace to define internal class of PocketExcelParser.
Definition PocketExcel.cpp:53
Definition libwps_internal.cpp:39
small class use to define a formula instruction
Definition WKSContentListener.h:58
a cell
Definition PocketExcel.cpp:78
the sheet data of a PocketExcelParser
Definition PocketExcel.cpp:131
the state of PocketExcelParser
Definition PocketExcel.cpp:249