-
Notifications
You must be signed in to change notification settings - Fork 0
/
rtfparser.h
executable file
·44 lines (39 loc) · 1.08 KB
/
rtfparser.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*Copyright 2001
*
* rtfparser.h
*
* Author: Gregory Ford [email protected]
* RTF token parser based on:
* rtf2html by Dmitry Porapov <[email protected]>,
* based on earlier work of Chuck Shotton.
* distributed under BSD-style license
* RTF token lists and hashing algorithm based on
* RTF Tools, Release 1.10
* 6 April 1994
* Paul DuBois [email protected]
*
* Copying permitted under GNU licence (see COPYING)
*/
// rtfparser.h: interface for the RtfParser class.
//
//////////////////////////////////////////////////////////////////////
class RtfParser
{
public:
void unSetDestination(Destination *dest);
RtfParser( CharOutput * out );
Destination * SetDestination( int minorCode );
void parseDocument( CharSource *source, CharOutput *out );
RtfParser();
virtual ~RtfParser();
private:
Destination *currDestination;
BodyDestination *body;
FootnoteDest *footnote;
FieldDest *field;
IgnoreDestination *ignore;
StyleSheetDestination *styleSheet;
InfoDestination *info;
StyleMap styleMap;
LinkTracker linkTracker;
};