filters

#include <parser.h>

Public Member Functions

bool parse (const TQString &filename)

Static Public Member Functions

static unsigned int ExtCharToUnicode (int charset, int charcode)

Public Attributes

int version
TQString docTitle
TQString docAuthor
TQString docAbstract
TQPtrList< Token > tokens
TQPtrList< Packet > packets

Detailed Description

This class implements a functional parser for WordPerfect documents.

Author
Ariya Hidayat
See also
Token

Definition at line 165 of file parser.h.

Constructor & Destructor Documentation

◆ Parser()

Parser::Parser ( )

Definition at line 92 of file parser.cpp.

Member Function Documentation

◆ ExtCharToUnicode()

unsigned Parser::ExtCharToUnicode ( int charset,
int charcode )
static

Maps WordPerfect extended character to its Unicode equivalent.

Supported character sets at the moment are Multinational (charset 1), Phonetic Symbol (charset 2), Typographic Symbol (charset 4), Iconic Symbol (charset 5), Math/Scientific (charset 6 and 7), Greek (charset 8), Hebrew (harset 9), and Cyrillic (charset 10)

Definition at line 1282 of file parser.cpp.

◆ parse()

bool Parser::parse ( const TQString & filename)

Parses given filename.

Returns
true if parsing was successful, otherwise false.

Definition at line 99 of file parser.cpp.

Member Data Documentation

◆ docAbstract

TQString WP::Parser::docAbstract

Definition at line 181 of file parser.h.

◆ docAuthor

TQString WP::Parser::docAuthor

Definition at line 181 of file parser.h.

◆ docTitle

TQString WP::Parser::docTitle

Definition at line 181 of file parser.h.

◆ packets

TQPtrList<Packet> WP::Parser::packets

Definition at line 184 of file parser.h.

◆ tokens

TQPtrList<Token> WP::Parser::tokens

Definition at line 183 of file parser.h.

◆ version

int WP::Parser::version

Definition at line 179 of file parser.h.


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