27 #include <librevenge-stream/librevenge-stream.h>
55 char const *password=0);
59 void parse(librevenge::RVNGSpreadsheetInterface *documentInterface);
88 shared_ptr<WKSContentListener>
createListener(librevenge::RVNGSpreadsheetInterface *interface);
164 shared_ptr<WKS4ParserInternal::State>
m_state;
Internal: namespace to define internal class of WKS4Parser.
Definition: WKS4.cpp:51
bool checkFilePosition(long pos)
return true if the pos is in the file, update the file size if need
Definition: WKS4.cpp:246
bool readChart2Font()
reads a structure which seems to define four chart font (only present in windows file) ...
Definition: WKS4.cpp:1841
bool readPrn2()
reads another printer data. Seem simillar to ZZPrnt
Definition: WKS4.cpp:1554
shared_ptr< WKSContentListener > m_listener
Definition: WKS4.h:163
bool readChartDef()
reads a structure which seems to define a chart
Definition: WKS4.cpp:1668
void parse(librevenge::RVNGSpreadsheetInterface *documentInterface)
called by WPSDocument to parse the file
Definition: WKS4.cpp:298
Internal: the subdocument of a WPS4Parser.
Definition: WKS4.cpp:65
bool hasLICSCharacters() const
returns the true if the file has LICS characters
Definition: WKS4.cpp:290
define the font properties
Definition: WPSFont.h:36
bool readChartList()
reads a list of int/cellule which seems relative to a chart : CHECKME
Definition: WKS4.cpp:1994
bool readZoneQuattro()
reads a Quattro Pro zone
Definition: WKS4.cpp:1320
bool readChartFont()
reads a structure which seems to define two chart font (only present in windows file) ...
Definition: WKS4.cpp:1792
This class parses Microsoft Works spreadsheet or a database file.
Definition: WKS4.h:47
bool readHeaderFooter(bool header)
reads the header/footer
Definition: WKS4.cpp:1455
bool getColor(int id, WPSColor &color) const
returns the color corresponding to an id
Definition: WKS4.cpp:272
shared_ptr< WPSHeader > WPSHeaderPtr
shared pointer to WPSHeader
Definition: libwps_internal.h:124
bool readFont()
reads a mswork font
Definition: WKS4.cpp:1346
bool readFieldName()
read a list of field name + ...
Definition: WKS4.cpp:1599
~WKS4Parser()
destructor
Definition: WKS4.cpp:230
bool readChartUnknown()
reads an unknown structure which seems relative to a chart : CHECKME
Definition: WKS4.cpp:1915
libwps::WPSCreator getCreator() const
returns the creator
Definition: WKS4.cpp:264
bool checkHeader(WPSHeader *header, bool strict=false)
checks if the document header is correct (or not)
Definition: WKS4.cpp:376
bool parseFormatStream()
check for the existence of a format stream, if it exists, parse it
Definition: WKS4.cpp:510
bool readChartName()
reads the chart name or title
Definition: WKS4.cpp:1755
void sendHeaderFooter(bool header)
send the header/footer
Definition: WKS4.cpp:1427
WKS4Parser(RVNGInputStreamPtr &input, WPSHeaderPtr &header, libwps_tools_win::Font::Type encoding=libwps_tools_win::Font::UNKNOWN, char const *password=0)
constructor
Definition: WKS4.cpp:221
shared_ptr< WKS4Spreadsheet > m_spreadsheetParser
the spreadsheet manager
Definition: WKS4.h:167
WPSCreator
Definition: WPSDocument.h:48
int version() const
return the file version
Definition: WKS4.cpp:234
bool readPrnt()
reads a printer data ?
Definition: WKS4.cpp:1507
bool readChartLimit()
reads end/begin of chart (only present in windows file)
Definition: WKS4.cpp:1892
void resetMainInput(RVNGInputStreamPtr newInput)
reset the main input
Definition: WKS4.cpp:239
shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr
shared pointer to librevenge::RVNGInputStream
Definition: libwps_internal.h:102
shared_ptr< WKSContentListener > createListener(librevenge::RVNGSpreadsheetInterface *interface)
creates the main listener
Definition: WKS4.cpp:351
the class to store a color
Definition: libwps_internal.h:287
static RVNGInputStreamPtr decodeStream(RVNGInputStreamPtr input, long endPos, std::vector< uint8_t > const &key)
try to decode a stream, if successful, replace the stream'input by the new one
Definition: WKS4.cpp:2166
bool readZones()
finds the different zones (spreadsheet, chart, print, ...)
Definition: WKS4.cpp:526
bool readUnknown1()
reads some unknown spreadsheet zones 0:18|0:19|0:20|0:27|0:2a
Definition: WKS4.cpp:2094
bool readWindowRecord()
reads windows record 0:7|0:9
Definition: WKS4.cpp:2045
libwps_tools_win::Font::Type getDefaultFontType() const
returns the default font type, ie.
Definition: WKS4.cpp:259
bool readZone()
reads a zone
Definition: WKS4.cpp:582
This class parses Microsoft Works spreadsheet file.
Definition: WKS4Spreadsheet.h:48
bool getFont(int id, WPSFont &font, libwps_tools_win::Font::Type &type) const
returns the font corresponding to an id
Definition: WKS4.cpp:277
shared_ptr< WKS4ParserInternal::State > m_state
the listener (if set)
Definition: WKS4.h:165
Definition: WKSParser.h:33