27 #include <librevenge-stream/librevenge-stream.h>
33 namespace WKS4ParserInternal
55 void parse(librevenge::RVNGSpreadsheetInterface *documentInterface);
72 bool getColor(
int id, uint32_t &color)
const;
78 shared_ptr<WKSContentListener>
createListener(librevenge::RVNGSpreadsheetInterface *interface);
142 shared_ptr<WKS4ParserInternal::State>
m_state;
WKS4Parser(RVNGInputStreamPtr &input, WPSHeaderPtr &header)
constructor
Definition: WKS4.cpp:191
bool checkFilePosition(long pos)
return true if the pos is in the file, update the file size if need
Definition: WKS4.cpp:208
bool readChart2Font()
reads a structure which seems to define four chart font (only present in windows file) ...
Definition: WKS4.cpp:1575
bool readPrn2()
reads another printer data. Seem simillar to ZZPrnt
Definition: WKS4.cpp:1303
shared_ptr< WKSContentListener > m_listener
Definition: WKS4.h:141
bool readUnknown0()
reads some unknown zones 0:7|0:9
Definition: WKS4.cpp:1779
bool readChartDef()
reads a structure which seems to define a chart
Definition: WKS4.cpp:1402
void parse(librevenge::RVNGSpreadsheetInterface *documentInterface)
called by WPSDocument to parse the file
Definition: WKS4.cpp:250
Internal: the subdocument of a WPS4Parser.
Definition: WKS4.cpp:63
bool hasLICSCharacters() const
returns the true if the file has LICS characters
Definition: WKS4.cpp:242
define the font properties
Definition: WPSFont.h:37
bool readChartList()
reads a list of int/cellule which seems relative to a chart : CHECKME
Definition: WKS4.cpp:1728
bool readChartFont()
reads a structure which seems to define two chart font (only present in windows file) ...
Definition: WKS4.cpp:1526
This class parses Microsoft Works spreadsheet or a database file.
Definition: WKS4.h:45
bool readHeaderFooter(bool header)
reads the header/footer
Definition: WKS4.cpp:1213
shared_ptr< WPSHeader > WPSHeaderPtr
shared pointer to WPSHeader
Definition: libwps_internal.h:102
bool readFont()
reads the fonts
Definition: WKS4.cpp:1104
bool readFieldName()
read a list of field name + ...
Definition: WKS4.cpp:1348
~WKS4Parser()
destructor
Definition: WKS4.cpp:199
bool readChartUnknown()
reads an unknown structure which seems relative to a chart : CHECKME
Definition: WKS4.cpp:1649
bool checkHeader(WPSHeader *header, bool strict=false)
checks if the document header is correct (or not)
Definition: WKS4.cpp:316
bool readChartName()
reads the chart name or title
Definition: WKS4.cpp:1489
void sendHeaderFooter(bool header)
send the header/footer
Definition: WKS4.cpp:1185
shared_ptr< WKS4Spreadsheet > m_spreadsheetParser
the spreadsheet manager
Definition: WKS4.h:145
int version() const
return the file version
Definition: WKS4.cpp:203
bool readPrnt()
reads a printer data ?
Definition: WKS4.cpp:1256
bool readChartLimit()
reads end/begin of chart (only present in windows file)
Definition: WKS4.cpp:1626
shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr
shared pointer to librevenge::RVNGInputStream
Definition: libwps_internal.h:81
shared_ptr< WKSContentListener > createListener(librevenge::RVNGSpreadsheetInterface *interface)
creates the main listener
Definition: WKS4.cpp:291
bool readZones()
finds the different zones (spreadsheet, chart, print, ...)
Definition: WKS4.cpp:389
bool readUnknown1()
reads some unknown spreadsheet zones 0:18|0:19|0:20|0:27|0:2a
Definition: WKS4.cpp:1828
bool readZone()
reads a zone
Definition: WKS4.cpp:425
This class parses Microsoft Works spreadsheet file.
Definition: WKS4Spreadsheet.h:48
bool getColor(int id, uint32_t &color) const
returns the color corresponding to an id
Definition: WKS4.cpp:224
bool getFont(int id, WPSFont &font, libwps_tools_win::Font::Type &type) const
returns the font corresponding to an id
Definition: WKS4.cpp:229
shared_ptr< WKS4ParserInternal::State > m_state
the listener (if set)
Definition: WKS4.h:143
Definition: WKSParser.h:33