-
Notifications
You must be signed in to change notification settings - Fork 0
/
graphicstate.cpp
102 lines (81 loc) · 2.39 KB
/
graphicstate.cpp
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
/*Copyright 2001
*
* graphicstate.cpp
*
* Author: Gregory Ford greg@reddfish.co.nz
* RTF token parser based on:
* rtf2html by Dmitry Porapov <dpotapov@capitalsoft.com>,
* 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 dubois@primate.wisc.edu
*
* Copying permitted under GNU licence (see COPYING)
*/
// graphicstate.cpp: implementation of the GraphicState class.
//
//////////////////////////////////////////////////////////////////////
#include <string>
using namespace std ;
#include "tag.h"
#include "graphicstate.h"
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
//bool GraphicState::atag = false;
bool GraphicState::table = false;
bool GraphicState::tableCell = false;
bool GraphicState::tableRow = false;
GraphicState::GraphicState()
{
int i;
paragraphFormat = noTag;
for ( i = (int) bTag; i < (int) maxCharTag; i++ ) {
characterFormat[i] = false;
}
//table = false;
//tableCell = false;
//tableRow = false;
listItem = false;
atag = false;
}
GraphicState::~GraphicState()
{
}
//////////////////////////////////////////////////////////////////////
// DesiredGraphicState Class
//////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
//bool DesiredGraphicState::atag = false;
bool DesiredGraphicState::table = false;
bool DesiredGraphicState::tableCell = false;
bool DesiredGraphicState::tableRow = false;
DesiredGraphicState::DesiredGraphicState(DesiredGraphicState *parent)
{
int i;
paragraphFormat = parent->paragraphFormat;
for ( i = (int) bTag; i < (int) maxCharTag; i++ ) {
characterFormat[i] = parent->characterFormat[i];
}
atag = false;
//table = parent->tableCell; // tables are all now static so don't need to copy
//tableCell = parent->tableCell;
//tableRow = parent->tableRow;
listItem = parent->listItem;
}
DesiredGraphicState::DesiredGraphicState()
{
}
DesiredGraphicState::~DesiredGraphicState()
{
}
ActiveGraphicState::ActiveGraphicState()
{
}
ActiveGraphicState::~ActiveGraphicState()
{
}