27#include <librevenge-stream/librevenge-stream.h>
60 void parse(librevenge::RVNGSpreadsheetInterface *documentInterface) final;
123 bool readPString(librevenge::RVNGString &
string,
long maxSize);
This class parses Quattro Pro DOS chart file.
Definition QuattroDosChart.h:50
Internal: the subdocument of a WPS4Parser.
Definition QuattroDos.cpp:76
std::shared_ptr< QuattroDosParserInternal::State > m_state
the listener (if set)
Definition QuattroDos.h:136
bool readUserFonts()
reads the user fonts
Definition QuattroDos.cpp:890
bool readHeaderFooter(bool header)
reads the header/footer
Definition QuattroDos.cpp:1014
bool readFileName()
read a file name
Definition QuattroDos.cpp:822
friend class QuattroDosSpreadsheet
Definition QuattroDos.h:52
bool getColor(int id, WPSColor &color) const
returns the color corresponding to an id
Definition QuattroDos.cpp:262
bool readUnknown1()
reads some unknown spreadsheet zones 0:18|0:19|0:20|0:27|0:2a
Definition QuattroDos.cpp:1175
bool readZones()
finds the different zones (spreadsheet, chart, print, ...)
Definition QuattroDos.cpp:436
std::shared_ptr< WKSContentListener > createListener(librevenge::RVNGSpreadsheetInterface *interface)
creates the main listener
Definition QuattroDos.cpp:340
friend class QuattroDosChart
Definition QuattroDos.h:51
bool readFont(WPSFont &font, libwps_tools_win::Font::Type &type)
try to read a font
Definition QuattroDos.cpp:938
bool sendChart(int sheetId, Vec2i const &cell, Vec2f const &chartSize)
try to send the chart corresponding to sheetId and a position
Definition QuattroDos.cpp:249
void sendHeaderFooter(bool header)
send the header/footer
Definition QuattroDos.cpp:981
bool checkHeader(WPSHeader *header, bool strict=false)
checks if the document header is correct (or not)
Definition QuattroDos.cpp:365
std::shared_ptr< WKSContentListener > m_listener
Definition QuattroDos.h:134
void parse(librevenge::RVNGSpreadsheetInterface *documentInterface) final
called by WPSDocument to parse the file
Definition QuattroDos.cpp:290
librevenge::RVNGString getSheetName(int id) const
returns the name of the id's spreadsheet
Definition QuattroDos.cpp:257
bool readZone()
reads a zone
Definition QuattroDos.cpp:473
bool readWindowRecord()
reads windows record 0:7|0:9
Definition QuattroDos.cpp:1126
libwps_tools_win::Font::Type getDefaultFontType() const
returns the default font type, ie.
Definition QuattroDos.cpp:241
~QuattroDosParser() final
destructor
Definition QuattroDos.cpp:219
bool getFont(int id, WPSFont &font, libwps_tools_win::Font::Type &type) const
returns the font corresponding to an id
Definition QuattroDos.cpp:267
bool readPString(librevenge::RVNGString &string, long maxSize)
try to read a basic pascal string, knowing the maximum size(excluding string size)
Definition QuattroDos.cpp:867
librevenge::RVNGString getFileName(int fId) const
returns the name of the fId file
Definition QuattroDos.cpp:280
bool readFieldName()
read a list of field name + ...
Definition QuattroDos.cpp:1066
bool checkFilePosition(long pos)
return true if the pos is in the file, update the file size if need
Definition QuattroDos.cpp:228
std::shared_ptr< QuattroDosChart > m_chartParser
the chart manager
Definition QuattroDos.h:140
std::shared_ptr< QuattroDosSpreadsheet > m_spreadsheetParser
the spreadsheet manager
Definition QuattroDos.h:138
int version() const
return the file version
Definition QuattroDos.cpp:223
QuattroDosParser(RVNGInputStreamPtr &input, WPSHeaderPtr &header, libwps_tools_win::Font::Type encoding=libwps_tools_win::Font::UNKNOWN)
constructor
Definition QuattroDos.cpp:209
This class parses Quattro Pro DOS spreadsheet file.
Definition QuattroDosSpreadsheet.h:50
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 QuattroDosParser.
Definition QuattroDos.cpp:52
the state of QuattroDosParser
Definition QuattroDos.cpp:125
the class to store a color
Definition libwps_internal.h:281