27#include <librevenge-stream/librevenge-stream.h>
63 char const *password=
nullptr);
67 void parse(librevenge::RVNGSpreadsheetInterface *documentInterface) final;
81 bool getField(
int fId, librevenge::RVNGString &text,
83 librevenge::RVNGString const &fileName) const;
153 bool readCString(std::shared_ptr<
WPSStream> const &stream, librevenge::RVNGString &
string,
long maxSize);
This class parses QuattroPro graph file.
Definition QuattroGraph.h:56
Internal: the subdocument of a WPS4Parser.
Definition Quattro.cpp:81
bool readZone341(std::shared_ptr< WPSStream > const &stream)
reads a big zone(chart?) which contains sub zones: 341
Definition Quattro.cpp:2561
bool readExternalData(std::shared_ptr< WPSStream > const &stream)
read a external filename/name: zone 97,98
Definition Quattro.cpp:1804
bool readCString(std::shared_ptr< WPSStream > const &stream, librevenge::RVNGString &string, long maxSize)
try to read a basic C string, knowing the maximum size
Definition Quattro.cpp:1710
bool sendPageGraphics(int sheetId) const
send the page graphic corresponding to a sheet
Definition Quattro.cpp:559
Vec2f getCellPosition(int sheetId, Vec2i const &cell) const
returns the beginning position of a cell
Definition Quattro.cpp:574
int version() const
return the file version
Definition Quattro.cpp:488
friend class QuattroSpreadsheet
Definition Quattro.h:58
bool readZone(std::shared_ptr< WPSStream > const &stream)
try to read a zone
Definition Quattro.cpp:977
bool readFontDef(std::shared_ptr< WPSStream > const &stream)
read a font: zone cf, fc and 110
Definition Quattro.cpp:1853
bool readOLEZones(std::shared_ptr< WPSStream > const &stream)
finds the different OLE zones: wb2
Definition Quattro.cpp:884
bool readHeaderFooter(std::shared_ptr< WPSStream > const &stream, bool header)
reads the header/footer: zone 25,26
Definition Quattro.cpp:2011
static bool readSerieExtension(std::shared_ptr< WPSStream > const &stream)
read the serie extension zone: 2dc
Definition Quattro.cpp:2491
std::shared_ptr< WKSContentListener > m_listener
Definition Quattro.h:176
QuattroParser(RVNGInputStreamPtr &input, WPSHeaderPtr &header, libwps_tools_win::Font::Type encoding=libwps_tools_win::Font::UNKNOWN, char const *password=nullptr)
constructor
Definition Quattro.cpp:473
bool sendGraphics(int sheetId, Vec2i const &cell) const
send the graphic corresponding to a cell
Definition Quattro.cpp:564
bool readPaneAttribute(std::shared_ptr< WPSStream > const &stream)
read the pane attribute: d1
Definition Quattro.cpp:2384
std::shared_ptr< QuattroParserInternal::State > m_state
the listener (if set)
Definition Quattro.h:178
bool readQueryCommand(std::shared_ptr< WPSStream > const &stream)
read the table query command zone: 12f
Definition Quattro.cpp:2171
std::shared_ptr< WKSContentListener > createListener(librevenge::RVNGSpreadsheetInterface *interface)
creates the main listener
Definition Quattro.cpp:646
bool readColorList(std::shared_ptr< WPSStream > const &stream)
read a color lits: zone e8
Definition Quattro.cpp:1916
bool readOleLinkInfo(std::shared_ptr< WPSStream > const &stream, librevenge::RVNGString &link)
try to read the link info sub stream
Definition Quattro.cpp:2629
bool getFont(int id, WPSFont &font, libwps_tools_win::Font::Type &type) const
returns the font corresponding to an id
Definition Quattro.cpp:584
bool getColor(int id, WPSColor &color) const
returns the color corresponding to an id
Definition Quattro.cpp:579
bool readOptimizer(std::shared_ptr< WPSStream > const &stream)
read the first optimizer zone: 103
Definition Quattro.cpp:2050
friend class QuattroGraph
Definition Quattro.h:57
RVNGInputStreamPtr decodeStream(RVNGInputStreamPtr input, std::vector< uint8_t > const &key) const
try to decode a stream, if successful, replace the stream'input by the new one
Definition Quattro.cpp:2684
void sendHeaderFooter(bool header)
send the header/footer
Definition Quattro.cpp:1998
bool readZones()
finds the different zones (spreadsheet, chart, print, ...)
Definition Quattro.cpp:769
std::shared_ptr< QuattroGraph > m_graphParser
the graph manager
Definition Quattro.h:182
static bool readOleBOlePart(std::shared_ptr< WPSStream > const &stream)
try to read the BOlePart sub stream: a zone which contains 5 long
Definition Quattro.cpp:2660
bool checkHeader(WPSHeader *header, bool strict=false)
checks if the document header is correct (or not)
Definition Quattro.cpp:676
bool readFieldName(std::shared_ptr< WPSStream > const &stream)
read a list of field name + ...: zone b
Definition Quattro.cpp:1732
bool readBlockList(std::shared_ptr< WPSStream > const &stream)
reads some cell reference list (potential followed by other data)
Definition Quattro.cpp:2225
static bool readCellPosition(std::shared_ptr< WPSStream > const &stream)
read the cell's position: zone 96
Definition Quattro.cpp:2350
bool getExternalFileName(int fId, librevenge::RVNGString &fName) const
returns the name of the fId file
Definition Quattro.cpp:498
std::shared_ptr< QuattroSpreadsheet > m_spreadsheetParser
the spreadsheet manager
Definition Quattro.h:184
bool parseOLEStream(RVNGInputStreamPtr const &input, std::string const &avoid="")
try to parse the OLE stream(except the main stream)
Definition Quattro.cpp:829
libwps_tools_win::Font::Type getDefaultFontType() const
returns the default font type, ie.
Definition Quattro.cpp:493
void parse(librevenge::RVNGSpreadsheetInterface *documentInterface) final
called by WPSDocument to parse the file
Definition Quattro.cpp:598
bool readStyleName(std::shared_ptr< WPSStream > const &stream)
read a style name: zone d0
Definition Quattro.cpp:1952
bool getField(int fId, librevenge::RVNGString &text, QuattroFormulaInternal::CellReference &ref, librevenge::RVNGString const &fileName) const
returns the text and cell of a field instruction
Definition Quattro.cpp:510
This class parses Quattro Pro spreadsheet file.
Definition QuattroSpreadsheet.h:52
Definition WKSContentListener.h:54
WKSParser(RVNGInputStreamPtr &input, WPSHeaderPtr &header)
Definition WKSParser.cpp:30
define the font properties
Definition WPSFont.h:37
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
Vec2< float > Vec2f
Vec2 of float.
Definition libwps_internal.h:704
std::shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr
shared pointer to librevenge::RVNGInputStream
Definition libwps_internal.h:87
Internal: namespace to define internal class of QuattroParser.
Definition Quattro.cpp:60
the state of QuattroParser
Definition Quattro.cpp:145
the class to store a color
Definition libwps_internal.h:281
small structure use to store a stream and it debug file
Definition WPSStream.h:30