This class provides all the functions an application would need to parse Works documents. More...
#include <WPSDocument.h>
Static Public Member Functions | |
static WPSLIB WPSConfidence | isFileFormatSupported (librevenge::RVNGInputStream *input, WPSKind &kind, WPSCreator &creator, bool &needCharSetEncoding) |
Analyzes the content of an input stream to see if it can be parsed. | |
static WPSLIB WPSResult | parse (librevenge::RVNGInputStream *input, librevenge::RVNGTextInterface *documentInterface, char const *password="", char const *encoding="") |
Parses the input stream content. | |
static WPSLIB WPSResult | parse (librevenge::RVNGInputStream *input, librevenge::RVNGSpreadsheetInterface *documentInterface, char const *password="", char const *encoding="") |
Parses the input stream content. |
This class provides all the functions an application would need to parse Works documents.
WPSLIB WPSConfidence WPSDocument::isFileFormatSupported | ( | librevenge::RVNGInputStream * | input, |
WPSKind & | kind, | ||
WPSCreator & | creator, | ||
bool & | needCharSetEncoding | ||
) | [static] |
Analyzes the content of an input stream to see if it can be parsed.
input | The input stream |
kind | The document kind |
creator | The document creator |
needCharSetEncoding | A flag set to true if we need the character set encoding |
WPSLIB WPSResult WPSDocument::parse | ( | librevenge::RVNGInputStream * | input, |
librevenge::RVNGTextInterface * | documentInterface, | ||
char const * | password = "" , |
||
char const * | encoding = "" |
||
) | [static] |
Parses the input stream content.
It will make callbacks to the functions provided by a librevenge::RVNGTextInterface class implementation when needed. This is often commonly called the 'main parsing routine'.
input | The input stream |
documentInterface | A librevenge::RVNGTextInterface implementation |
password | the file password |
encoding | the encoding |
WPSLIB WPSResult WPSDocument::parse | ( | librevenge::RVNGInputStream * | input, |
librevenge::RVNGSpreadsheetInterface * | documentInterface, | ||
char const * | password = "" , |
||
char const * | encoding = "" |
||
) | [static] |
Parses the input stream content.
It will make callbacks to the functions provided by a librevenge::RVNGSpreadsheetInterface class implementation when needed. This is often commonly called the 'main parsing routine'.
input | The input stream |
documentInterface | A librevenge::RVNGSpreadsheetInterface implementation |
password | the file password |
encoding | the encoding |