This class provides all the functions an application would need to parse Works documents. More...
#include <MWAWDocument.hxx>
Public Types | |
enum | DocumentType { UNKNOWN, CW, FULLW, MINDW, MSWORD, MSWORKS, MW, MWPRO, NISUSW, WNOW, WPLUS, HMAC, LWTEXT, MARIW, ZWRT, DM, ACT, ED, HMACJ, TEACH, TEDIT } |
an enum to define the different type of document -ACT: Acta (nothing done ) -CW: ClarisWorks/AppleWorks document (basic) -DM: DocMaker (v4) -ED: eDOC (v2) -FULLW: FullWrite Professional (basic) -HMAC: HanMac Word-K ( v2.0.5-2.0.6 ) -HMACJ: HanMac Word-J ( v2.0.4 ) -LWTEXT: LightWayText ( only v4.5 Mac format ) -MARIW: Mariner Write ( only v1.6-v3.5 Mac Classic) -MINDW: MindWrite -MW: MacWrite document -MWPRO: MacWriteII or MacWritePro document -MSWORD: MSWord document (v4 v5: basic done) -MSWORKS: MSWorks document (v1 v2) -NISUSW: Nisus Writer document: v3.4-v6.5 -TEACH: TeachText or SimpleText: v1 -TEDIT: Tex-Edit v2 -WNOW: WriteNow -WPLUS: writerplus document -ZWRT: Z-Write : v1.3 More... | |
enum | DocumentKind { K_UNKNOWN, K_TEXT, K_DRAW, K_PAINT, K_PRESENTATION, K_SPREADSHEET, K_DATABASE } |
an enum to define the kind of document More... | |
Static Public Member Functions | |
static MWAWLIB MWAWConfidence | isFileFormatSupported (WPXInputStream *input, DocumentType &type, DocumentKind &kind) |
Analyzes the content of an input stream to see if it can be parsed. More... | |
static MWAWLIB MWAWResult | parse (WPXInputStream *input, WPXDocumentInterface *documentInterface) |
Parses the input stream content. More... | |
This class provides all the functions an application would need to parse Works documents.
an enum to define the different type of document
-ACT: Acta (nothing done ) -CW: ClarisWorks/AppleWorks document (basic) -DM: DocMaker (v4) -ED: eDOC (v2) -FULLW: FullWrite Professional (basic) -HMAC: HanMac Word-K ( v2.0.5-2.0.6 ) -HMACJ: HanMac Word-J ( v2.0.4 ) -LWTEXT: LightWayText ( only v4.5 Mac format ) -MARIW: Mariner Write ( only v1.6-v3.5 Mac Classic) -MINDW: MindWrite -MW: MacWrite document -MWPRO: MacWriteII or MacWritePro document -MSWORD: MSWord document (v4 v5: basic done) -MSWORKS: MSWorks document (v1 v2) -NISUSW: Nisus Writer document: v3.4-v6.5 -TEACH: TeachText or SimpleText: v1 -TEDIT: Tex-Edit v2 -WNOW: WriteNow -WPLUS: writerplus document -ZWRT: Z-Write : v1.3
Enumerator | |
---|---|
UNKNOWN | |
CW | |
FULLW | |
MINDW | |
MSWORD | |
MSWORKS | |
MW | |
MWPRO | |
NISUSW | |
WNOW | |
WPLUS | |
HMAC | |
LWTEXT | |
MARIW | |
ZWRT | |
DM | |
ACT | |
ED | |
HMACJ | |
TEACH | |
TEDIT |
|
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 ) |
|
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 |