This class provides all the functions needed by applications to parse many pre-MacOSX documents. More...
#include <MWAWDocument.hxx>
Public Types | |
| enum | Confidence { MWAW_C_NONE = 0, MWAW_C_UNSUPPORTED_ENCRYPTION, MWAW_C_SUPPORTED_ENCRYPTION, MWAW_C_EXCELLENT } |
| an enum which defines if we have confidence that a file is supported More... | |
| enum | Kind { MWAW_K_UNKNOWN = 0, MWAW_K_TEXT, MWAW_K_DRAW, MWAW_K_PAINT, MWAW_K_PRESENTATION, MWAW_K_SPREADSHEET, MWAW_K_DATABASE } |
| an enum to define the kind of document More... | |
| enum | Result { MWAW_R_OK = 0, MWAW_R_FILE_ACCESS_ERROR, MWAW_R_OLE_ERROR, MWAW_R_PARSE_ERROR, MWAW_R_PASSWORD_MISSMATCH_ERROR, MWAW_R_UNKNOWN_ERROR } |
| an enum which defines the result of the file parsing More... | |
| enum | Type { MWAW_T_UNKNOWN = 0, MWAW_T_ACTA, MWAW_T_ADOBEILLUSTRATOR, MWAW_T_BEAGLEWORKS, MWAW_T_CLARISRESOLVE, MWAW_T_CLARISWORKS, MWAW_T_DBASE, MWAW_T_DOCMAKER, MWAW_T_EDOC, MWAW_T_FAMILYTREEMAKER, MWAW_T_FILEMAKER, MWAW_T_FOXBASE, MWAW_T_FRAMEMAKER, MWAW_T_FULLIMPACT, MWAW_T_FULLPAINT, MWAW_T_FULLWRITE, MWAW_T_GREATWORKS, MWAW_T_HANMACWORDJ, MWAW_T_HANMACWORDK, MWAW_T_INFOGENIE, MWAW_T_KALEIDAGRAPH, MWAW_T_LIGHTWAYTEXT, MWAW_T_MACDOC, MWAW_T_MACDRAFT, MWAW_T_MACDRAW, MWAW_T_MACDRAWPRO, MWAW_T_MACPAINT, MWAW_T_MARINERWRITE, MWAW_T_MINDWRITE, MWAW_T_MORE, MWAW_T_MICROSOFTFILE, MWAW_T_MICROSOFTMULTIPLAN, MWAW_T_MICROSOFTWORD, MWAW_T_MICROSOFTWORKS, MWAW_T_MACWRITE, MWAW_T_MACWRITEPRO, MWAW_T_NISUSWRITER, MWAW_T_OVERVUE, MWAW_T_PAGEMAKER, MWAW_T_PIXELPAINT, MWAW_T_RAGTIME, MWAW_T_READYSETGO, MWAW_T_SUPERPAINT, MWAW_T_SYMPOSIUM, MWAW_T_TEACHTEXT, MWAW_T_TEXEDIT, MWAW_T_TRAPEZE, MWAW_T_WINGZ, MWAW_T_WRITENOW, MWAW_T_WRITERPLUS, MWAW_T_XPRESS, MWAW_T_ZWRITE, MWAW_T_4DIMENSION, MWAW_T_RESERVED1, MWAW_T_RESERVED2, MWAW_T_RESERVED3, MWAW_T_RESERVED4, MWAW_T_RESERVED5, MWAW_T_RESERVED6, MWAW_T_RESERVED7, MWAW_T_RESERVED8, MWAW_T_RESERVED9 } |
| an enum to define the different type of document More... | |
Static Public Member Functions | |
| static MWAWLIB Confidence | isFileFormatSupported (librevenge::RVNGInputStream *input, Type &type, Kind &kind) |
| Analyzes the content of an input stream to see if it can be parsed. | |
| static MWAWLIB Result | parse (librevenge::RVNGInputStream *input, librevenge::RVNGTextInterface *documentInterface, char const *password=0) |
| Parses the input stream content. | |
| static MWAWLIB Result | parse (librevenge::RVNGInputStream *input, librevenge::RVNGDrawingInterface *documentInterface, char const *password=0) |
| Parses the input stream content. | |
| static MWAWLIB Result | parse (librevenge::RVNGInputStream *input, librevenge::RVNGPresentationInterface *documentInterface, char const *password=0) |
| Parses the input stream content. | |
| static MWAWLIB Result | parse (librevenge::RVNGInputStream *input, librevenge::RVNGSpreadsheetInterface *documentInterface, char const *password=0) |
| Parses the input stream content. | |
| static MWAWLIB bool | decodeGraphic (librevenge::RVNGBinaryData const &binary, librevenge::RVNGDrawingInterface *documentInterface) |
| Parses the graphic contained in the binary data and called documentInterface to reconstruct a graphic. | |
| static MWAWLIB bool | decodeSpreadsheet (librevenge::RVNGBinaryData const &binary, librevenge::RVNGSpreadsheetInterface *documentInterface) |
| Parses the spreadsheet contained in the binary data and called documentInterface to reconstruct a spreadsheet. | |
| static MWAWLIB bool | decodeText (librevenge::RVNGBinaryData const &binary, librevenge::RVNGTextInterface *documentInterface) |
| Parses the text contained in the binary data and called documentInterface to reconstruct a text. | |
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 | ( | librevenge::RVNGBinaryData const & | binary, |
| librevenge::RVNGDrawingInterface * | documentInterface | ||
| ) | [static] |
Parses the graphic contained in the binary data and called documentInterface to reconstruct a graphic.
The input is normally send to a librevenge::RVNGXXXInterface with mimeType="image/mwaw-odg", ie. it must correspond to a picture created by the MWAWGraphicEncoder class via a MWAWPropertyEncoder.
| binary | a list of librevenge::RVNGDrawingInterface stored in a documentInterface, |
| documentInterface | the RVNGDrawingInterface which will convert the graphic is some specific format. |
| bool MWAWDocument::decodeSpreadsheet | ( | librevenge::RVNGBinaryData const & | binary, |
| librevenge::RVNGSpreadsheetInterface * | documentInterface | ||
| ) | [static] |
Parses the spreadsheet contained in the binary data and called documentInterface to reconstruct a spreadsheet.
The input is normally send to a librevenge::RVNGXXXInterface with mimeType="image/mwaw-ods", ie. it must correspond to a spreadsheet created by the MWAWSpreadsheetInterface class via a MWAWPropertyEncoder.
| binary | a list of librevenge::RVNGSpreadsheetInterface stored in a documentInterface, |
| documentInterface | the RVNGSpreadsheetInterface which will convert the spreadsheet is some specific format. |
| bool MWAWDocument::decodeText | ( | librevenge::RVNGBinaryData const & | binary, |
| librevenge::RVNGTextInterface * | documentInterface | ||
| ) | [static] |
Parses the text contained in the binary data and called documentInterface to reconstruct a text.
The input is normally send to a librevenge::RVNGXXXInterface with mimeType="image/mwaw-odt", ie. it must correspond to a text created by the MWAWTextInterface class via a MWAWPropertyEncoder.
| binary | a list of librevenge::RVNGTextInterface stored in a documentInterface, |
| documentInterface | the RVNGTextInterface which will convert the text is some specific format. |
| MWAWDocument::Confidence MWAWDocument::isFileFormatSupported | ( | librevenge::RVNGInputStream * | 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 | ( | librevenge::RVNGInputStream * | input, |
| librevenge::RVNGTextInterface * | documentInterface, | ||
| char const * | password = 0 |
||
| ) | [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 RVNGTextInterface implementation |
| password | The file password |
| MWAWDocument::Result MWAWDocument::parse | ( | librevenge::RVNGInputStream * | input, |
| librevenge::RVNGDrawingInterface * | documentInterface, | ||
| char const * | password = 0 |
||
| ) | [static] |
Parses the input stream content.
It will make callbacks to the functions provided by a librevenge::RVNGDrawingInterface class implementation when needed. This is often commonly called the 'main parsing routine'.
| input | The input stream |
| documentInterface | A RVNGDrawingInterface implementation |
| password | The file password |
| MWAWDocument::Result MWAWDocument::parse | ( | librevenge::RVNGInputStream * | input, |
| librevenge::RVNGPresentationInterface * | documentInterface, | ||
| char const * | password = 0 |
||
| ) | [static] |
Parses the input stream content.
It will make callbacks to the functions provided by a librevenge::RVNGPresentationInterface class implementation when needed. This is often commonly called the 'main parsing routine'.
| input | The input stream |
| documentInterface | A RVNGPresentationInterface implementation |
| password | The file password |
| MWAWDocument::Result MWAWDocument::parse | ( | librevenge::RVNGInputStream * | input, |
| librevenge::RVNGSpreadsheetInterface * | documentInterface, | ||
| char const * | password = 0 |
||
| ) | [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 RVNGSpreadsheetInterface implementation |
| password | The file password |