27#include <librevenge-stream/librevenge-stream.h>
55 char const *password=
nullptr);
59 void parse(librevenge::RVNGSpreadsheetInterface *documentInterface)
final;
74 static std::shared_ptr<WKSContentListener>
createListener(librevenge::RVNGSpreadsheetInterface *interface);
97 bool readFilename(
int pos, librevenge::RVNGString &filename);
124 bool readFormula(
Vec2i const &cellPos, std::vector<WKSContentListener::FormulaInstruction> &formula,
long endPos, std::string &extra);
126 bool readFormulaV2(
Vec2i const &cellPos, std::vector<WKSContentListener::FormulaInstruction> &formula,
long endPos, std::string &extra);
130 std::shared_ptr<MultiplanParserInternal::State>
m_state;
WKSParser(RVNGInputStreamPtr &input, WPSHeaderPtr &header)
Definition WKSParser.cpp:30
basic class to store an entry in a file This contained :
Definition WPSEntry.h:39
bool readDouble(double &value)
try to read a double value
Definition Multiplan.cpp:904
bool readFormula(Vec2i const &cellPos, std::vector< WKSContentListener::FormulaInstruction > &formula, long endPos, std::string &extra)
try to read a formula
Definition Multiplan.cpp:1046
bool readName(int pos, WKSContentListener::FormulaInstruction &instruction)
reads a name and returns the cell's instruction
Definition Multiplan.cpp:1989
bool readZones()
finds the different zones (spreadsheet, chart, print, ...)
Definition Multiplan.cpp:472
bool checkHeader(WPSHeader *header, bool strict=false)
checks if the document header is correct (or not)
Definition Multiplan.cpp:317
bool readZoneB()
read an unknown zone
Definition Multiplan.cpp:2237
int version() const
return the file version
Definition Multiplan.cpp:233
bool readZonesListV2()
read the spreadsheet zone list v2
Definition Multiplan.cpp:692
libwps_tools_win::Font::Type getDefaultFontType() const
returns the default font type, ie.
Definition Multiplan.cpp:251
~MultiplanParser() override
destructor
Definition Multiplan.cpp:229
bool sendCell(Vec2i const &cellPos, int pos)
try to send a cell
Definition Multiplan.cpp:2306
MultiplanParser(RVNGInputStreamPtr &input, WPSHeaderPtr &header, libwps_tools_win::Font::Type encoding=libwps_tools_win::Font::UNKNOWN, char const *password=nullptr)
constructor
Definition Multiplan.cpp:221
bool retrievePasswordKeys()
try to guess a password supposing that the Zone0 content is default
Definition Multiplan.cpp:2791
static std::shared_ptr< WKSContentListener > createListener(librevenge::RVNGSpreadsheetInterface *interface)
creates the main listener
Definition Multiplan.cpp:304
void parse(librevenge::RVNGSpreadsheetInterface *documentInterface) final
called by WPSDocument to parse the file
Definition Multiplan.cpp:259
bool readLink(int pos, WKSContentListener::FormulaInstruction &instruction)
read a link
Definition Multiplan.cpp:1872
std::shared_ptr< MultiplanParserInternal::State > m_state
the listener (if set)
Definition Multiplan.h:130
bool readCellDataPosition(WPSEntry const &entry)
read the cell data position
Definition Multiplan.cpp:1827
bool sendSpreadsheet()
try to send the main spreadsheet
Definition Multiplan.cpp:2660
bool readZonesList()
read the spreadsheet zone list
Definition Multiplan.cpp:610
std::shared_ptr< WKSContentListener > m_listener
Definition Multiplan.h:128
bool readSharedData(int pos, int cellType, Vec2i const &cellPos, WKSContentListener::CellContent &content)
read a shared data
Definition Multiplan.cpp:2092
bool readFilename(int pos, librevenge::RVNGString &filename)
read a link filename
Definition Multiplan.cpp:1957
bool checkFilePosition(long pos)
return true if the pos is in the file, update the file size if need
Definition Multiplan.cpp:238
bool checkPassword(char const *password) const
check if the password corresponds to a ket
Definition Multiplan.cpp:2707
bool readFormulaV2(Vec2i const &cellPos, std::vector< WKSContentListener::FormulaInstruction > &formula, long endPos, std::string &extra)
try to read a formula V2
Definition Multiplan.cpp:1399
bool readFunctionNamesList()
try to read the function names: v2
Definition Multiplan.cpp:876
bool readColumnsWidth()
read the columns width
Definition Multiplan.cpp:581
RVNGInputStreamPtr decodeStream(RVNGInputStreamPtr input)
try to decode a stream, if successful, replace the stream'input by the new one
Definition Multiplan.cpp:2840
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 MultiplanParser.
Definition Multiplan.cpp:52
Definition libwps_internal.cpp:39
small class use to define a sheet cell content
Definition WKSContentListener.h:100
small class use to define a formula instruction
Definition WKSContentListener.h:58
the state of MultiplanParser
Definition Multiplan.cpp:129