libwps::WPSDocument Class Reference

This class provides all the functions an application would need to parse Works documents. More...

#include <WPSDocument.h>

List of all members.

Static Public Member Functions

static WPSLIB WPSConfidence isFileFormatSupported (librevenge::RVNGInputStream *input, WPSKind &kind)
 Analyzes the content of an input stream to see if it can be parsed.
static WPSLIB WPSResult parse (librevenge::RVNGInputStream *input, librevenge::RVNGTextInterface *documentInterface)
 Parses the input stream content.
static WPSLIB WPSResult parse (librevenge::RVNGInputStream *input, librevenge::RVNGSpreadsheetInterface *documentInterface)
 Parses the input stream content.

Detailed Description

This class provides all the functions an application would need to parse Works documents.


Member Function Documentation

WPSLIB WPSConfidence WPSDocument::isFileFormatSupported ( librevenge::RVNGInputStream *  ip,
WPSKind kind 
) [static]

Analyzes the content of an input stream to see if it can be parsed.

Parameters:
ipThe input stream
kindThe document kind
Returns:
A confidence value which represents the likelyhood that the content from the input stream can be parsed
WPSLIB WPSResult WPSDocument::parse ( librevenge::RVNGInputStream *  ip,
librevenge::RVNGTextInterface *  documentInterface 
) [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'.

Parameters:
ipThe input stream
documentInterfaceA WPSListener implementation
WPSLIB WPSResult WPSDocument::parse ( librevenge::RVNGInputStream *  ip,
librevenge::RVNGSpreadsheetInterface *  documentInterface 
) [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'.

Parameters:
ipThe input stream
documentInterfaceA SpreadsheetInterface implementation

The documentation for this class was generated from the following files: