This class provides all the functions needed by applications to parse many pre-MacOSX documents. More...
#include <MWAWDocument.hxx>
This class provides all the functions needed by applications to parse many pre-MacOSX documents.
enum MWAWDocument::Kind |
enum MWAWDocument::Result |
an enum which defines the result of the file parsing
enum MWAWDocument::Type |
an enum to define the different type of document
bool MWAWDocument::decodeGraphic | ( | WPXBinaryData const & | binary, |
libwpg::WPGPaintInterface * | paintInterface | ||
) | [static] |
Parses the graphic contained in the binary data and called paintInterface to reconstruct a graphic.
The input is normally send to a WPXDocumentInterface with mimeType="image/mwaw-odg", ie. it must correspond to a picture created by the MWAWGraphicInterface class via a MWAWPropertyEncoder.
binary | a list of WPGPaintInterface stored in a paintInterface, |
paintInterface | the paint interface which will convert the graphic is some specific format (ODG, SVG, ...) |
MWAWDocument::Confidence MWAWDocument::isFileFormatSupported | ( | WPXInputStream * | input, |
MWAWDocument::Type & | type, | ||
Kind & | kind | ||
) | [static] |
Analyzes the content of an input stream to see if it can be parsed.
input | The input stream |
type | The document type ( filled if the file is supported ) |
kind | The document kind ( filled if the file is supported ) |
MWAWDocument::Result MWAWDocument::parse | ( | WPXInputStream * | input, |
WPXDocumentInterface * | documentInterface, | ||
char const * | password = 0 |
||
) | [static] |
Parses the input stream content.
It will make callbacks to the functions provided by a WPXDocumentInterface class implementation when needed. This is often commonly called the 'main parsing routine'.
input | The input stream |
documentInterface | A MWAWListener implementation |
password | The file password |