27 #include <librevenge-stream/librevenge-stream.h> 57 char const *password=
nullptr);
61 void parse(librevenge::RVNGSpreadsheetInterface *documentInterface)
final;
66 bool readCString(librevenge::RVNGString &
string,
long maxSize);
96 std::shared_ptr<WKSContentListener>
createListener(librevenge::RVNGSpreadsheetInterface *interface);
149 std::shared_ptr<WKS4ParserInternal::State>
m_state;
Internal: namespace to define internal class of WKS4Parser.
Definition: WKS4.cpp:52
bool checkFilePosition(long pos)
return true if the pos is in the file, update the file size if need
Definition: WKS4.cpp:265
bool readPrn2()
reads another printer data. Seem simillar to ZZPrnt
Definition: WKS4.cpp:1604
std::shared_ptr< WKS4Chart > m_chartParser
the chart manager
Definition: WKS4.h:152
Internal: the subdocument of a WPS4Parser.
Definition: WKS4.cpp:66
bool readCString(librevenge::RVNGString &string, long maxSize)
try to read a basic C string, knowing the maximum size
Definition: WKS4.cpp:1386
std::shared_ptr< WKSContentListener > createListener(librevenge::RVNGSpreadsheetInterface *interface)
creates the main listener
Definition: WKS4.cpp:386
librevenge::RVNGString getSheetName(int id) const
returns the name of the id's spreadsheet
Definition: WKS4.cpp:316
libwps::WPSCreator getCreator() const
returns the creator
Definition: WKS4.cpp:283
define the font properties
Definition: WPSFont.h:36
void parse(librevenge::RVNGSpreadsheetInterface *documentInterface) final
called by WPSDocument to parse the file
Definition: WKS4.cpp:322
bool readZoneQuattro()
reads a Quattro Pro zone
Definition: WKS4.cpp:1360
std::shared_ptr< WKS4ParserInternal::State > m_state
the listener (if set)
Definition: WKS4.h:150
This class parses Microsoft Works spreadsheet or a database file.
Definition: WKS4.h:48
bool readHeaderFooter(bool header)
reads the header/footer
Definition: WKS4.cpp:1505
int version() const
return the file version
Definition: WKS4.cpp:247
WKS4Parser(RVNGInputStreamPtr &input, WPSHeaderPtr &header, libwps_tools_win::Font::Type encoding=libwps_tools_win::Font::UNKNOWN, char const *password=nullptr)
constructor
Definition: WKS4.cpp:233
bool getColor(int id, WPSColor &color) const
returns the color corresponding to an id
Definition: WKS4.cpp:291
libwps::WPSCreator creator() const
return the file creator
Definition: WKS4.cpp:252
bool readFont()
reads a mswork font
Definition: WKS4.cpp:1412
bool readFieldName()
read a list of field name + ...
Definition: WKS4.cpp:1649
std::shared_ptr< WKSContentListener > m_listener
Definition: WKS4.h:148
bool checkHeader(WPSHeader *header, bool strict=false)
checks if the document header is correct (or not)
Definition: WKS4.cpp:411
bool parseFormatStream()
check for the existence of a format stream, if it exists, parse it
Definition: WKS4.cpp:536
void sendHeaderFooter(bool header)
send the header/footer
Definition: WKS4.cpp:1493
std::shared_ptr< WKS4Spreadsheet > m_spreadsheetParser
the spreadsheet manager
Definition: WKS4.h:154
std::shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr
shared pointer to librevenge::RVNGInputStream
Definition: libwps_internal.h:87
WPSCreator
Definition: WPSDocument.h:48
This class parses Microsoft Works chart file.
Definition: WKS4Chart.h:49
bool readPrnt()
reads a printer data ?
Definition: WKS4.cpp:1553
void resetMainInput(RVNGInputStreamPtr newInput)
reset the main input
Definition: WKS4.cpp:257
the class to store a color
Definition: libwps_internal.h:280
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:1838
bool readZones()
finds the different zones (spreadsheet, chart, print, ...)
Definition: WKS4.cpp:552
bool readUnknown1()
reads some unknown spreadsheet zones 0:18|0:19|0:20|0:27|0:2a
Definition: WKS4.cpp:1766
bool readWindowRecord()
reads windows record 0:7|0:9
Definition: WKS4.cpp:1717
libwps_tools_win::Font::Type getDefaultFontType() const
returns the default font type, ie.
Definition: WKS4.cpp:278
bool readZone()
reads a zone
Definition: WKS4.cpp:608
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:296
std::shared_ptr< WPSHeader > WPSHeaderPtr
shared pointer to WPSHeader
Definition: libwps_internal.h:109
Definition: WKSParser.h:33
bool hasLICSCharacters() const
returns the true if the file has LICS characters
Definition: WKS4.cpp:309
~WKS4Parser() override
destructor
Definition: WKS4.cpp:243