KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > poi > hdf > extractor > CHP


1
2 /* ====================================================================
3    Copyright 2002-2004 Apache Software Foundation
4
5    Licensed under the Apache License, Version 2.0 (the "License");
6    you may not use this file except in compliance with the License.
7    You may obtain a copy of the License at
8
9        http://www.apache.org/licenses/LICENSE-2.0
10
11    Unless required by applicable law or agreed to in writing, software
12    distributed under the License is distributed on an "AS IS" BASIS,
13    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14    See the License for the specific language governing permissions and
15    limitations under the License.
16 ==================================================================== */

17         
18
19
20 package org.apache.poi.hdf.extractor;
21
22
23 /**
24  * Comment me
25  *
26  * @author Ryan Ackley
27  */

28
29 public class CHP implements Cloneable JavaDoc
30 {
31   boolean _bold;
32   boolean _italic;
33   boolean _fRMarkDel;
34   boolean _fOutline;
35   boolean _fSmallCaps;
36   boolean _fCaps;
37   boolean _fVanish;
38   boolean _fRMark;
39   boolean _fSpec;
40   boolean _fStrike;
41   boolean _fObj;
42   boolean _fShadow;
43   boolean _fLowerCase;
44   boolean _fData;
45   boolean _fOle2;
46   boolean _fEmboss;
47   boolean _fImprint;
48   boolean _fDStrike;
49
50   short _ftcAscii;
51   short _ftcFE;
52   short _ftcOther;
53   short _ftc;
54   int _hps;//font size in half points
55
int _dxaSpace;//space following each character in the run expressed in twip units
56
byte _iss;//superscript/subscript indices 0 means no super/subscripting 1 means text in run is superscripted 2 means text in run is subscripted
57
byte _kul;//underline code see spec
58
byte _ico;//color of text see spec
59
short _hpsPos;//super/subscript position in half points; positive means text is raised; negative means text is lowered
60
short _lidDefault;//language for non-Far East text
61
short _lidFE;//language for Far East text
62
byte _idctHint;
63   int _wCharScale;
64   short _chse;
65
66   int _specialFC;//varies depending on whether this is a special char
67
short _ibstRMark;//index to author IDs stored in hsttbfRMark. used when text in run was newly typed when revision marking was enabled
68
short _ibstRMarkDel;//index to author IDs stored in hsttbfRMark. used when text in run was newly typed when revision marking was enabled
69
int[] _dttmRMark = new int[2];//Date/time at which this run of text was
70
int[] _dttmRMarkDel = new int[2];//entered/modified by the author. (Only
71
//recorded when revision marking is on.)Date/time at which this run of text was deleted by the author. (Only recorded when revision marking is on.)
72
int _istd;
73   int _baseIstd = -1;
74   int _fcPic;
75   short _ftcSym;// see spec
76
short _xchSym;//see spec
77
byte _ysr;//hyphenation rules
78
byte _chYsr;//used for hyphenation see spec
79
int _hpsKern;//kerning distance for characters in run recorded in half points
80
int _fcObj;
81   byte _icoHighlight;//highlight color
82
boolean _fChsDiff;
83   boolean _highlighted;//when true characters are highlighted with color specified by chp.icoHighlight
84
boolean _fPropMark;//when true, properties have been changed with revision marking on
85
short _ibstPropRMark;//index to author IDs stored in hsttbfRMark. used when properties have been changed when revision marking was enabled
86
int _dttmPropRMark;//Date/time at which properties of this were changed for this run of text by the author
87
byte _sfxtText;//text animation see spec
88
boolean _fDispFldRMark;//see spec
89
short _ibstDispFldRMark;//Index to author IDs stored in hsttbfRMark. used when ListNum field numbering has been changed when revision marking was enabled
90
int _dttmDispFldRMark;//The date for the ListNum field number change
91
byte[] _xstDispFldRMark = new byte[32];//The string value of the ListNum field when revision mark tracking began
92
short _shd;//shading
93
short[] _brc = new short[2];//border
94
short _paddingStart = 0;
95   short _paddingEnd = 0;
96
97   public CHP()
98   {
99       _istd = 10;
100       _hps = 20;
101       _lidDefault = 0x0400;
102       _lidFE = 0x0400;
103
104   }
105   public void copy(CHP toCopy)
106   {
107       _bold = toCopy._bold;
108       _italic = toCopy._italic;
109        _fRMarkDel = toCopy._fRMarkDel;
110        _fOutline = toCopy._fOutline;
111        _fSmallCaps = toCopy._fSmallCaps;
112        _fCaps = toCopy._fCaps;
113        _fVanish = toCopy._fVanish;
114        _fRMark = toCopy._fRMark;
115        _fSpec = toCopy._fSpec;
116        _fStrike = toCopy._fStrike;
117        _fObj = toCopy._fObj;
118        _fShadow = toCopy._fShadow;
119        _fLowerCase = toCopy._fLowerCase;
120        _fData = toCopy._fData;
121        _fOle2 = toCopy._fOle2;
122        _fEmboss = toCopy._fEmboss;
123        _fImprint = toCopy._fImprint;
124        _fDStrike = toCopy._fDStrike;
125
126        _ftcAscii = toCopy._ftcAscii;
127        _ftcFE = toCopy._ftcFE;
128        _ftcOther = toCopy._ftcOther;
129        _ftc = toCopy._ftc;
130        _hps = toCopy._hps;
131        _dxaSpace = toCopy._dxaSpace;
132        _iss = toCopy._iss;
133        _kul = toCopy._kul;
134        _ico = toCopy._ico;
135        _hpsPos = toCopy._hpsPos;
136        _lidDefault = toCopy._lidDefault;
137        _lidFE = toCopy._lidFE;
138        _idctHint = toCopy._idctHint;
139        _wCharScale = toCopy._wCharScale;
140        _chse = toCopy._chse;
141
142        _specialFC = toCopy._specialFC;
143        _ibstRMark = toCopy._ibstRMark;
144        _ibstRMarkDel = toCopy._ibstRMarkDel;
145        _dttmRMark = toCopy._dttmRMark;
146        _dttmRMarkDel = toCopy._dttmRMarkDel;
147
148        _istd = toCopy._istd;
149        _baseIstd = toCopy._baseIstd;
150        _fcPic = toCopy._fcPic;
151        _ftcSym = toCopy._ftcSym;
152        _xchSym = toCopy._xchSym;
153        _ysr = toCopy._ysr;
154        _chYsr = toCopy._chYsr;
155        _hpsKern = toCopy._hpsKern;
156        _fcObj = toCopy._fcObj;
157        _icoHighlight = toCopy._icoHighlight;
158        _fChsDiff = toCopy._fChsDiff;
159        _highlighted = toCopy._highlighted;
160        _fPropMark = toCopy._fPropMark;
161        _ibstPropRMark = toCopy._ibstPropRMark;
162        _dttmPropRMark = toCopy._dttmPropRMark;
163        _sfxtText = toCopy._sfxtText;
164        _fDispFldRMark = toCopy._fDispFldRMark;
165        _ibstDispFldRMark = toCopy._ibstDispFldRMark;
166        _dttmDispFldRMark = toCopy._dttmDispFldRMark;
167        _xstDispFldRMark = toCopy._xstDispFldRMark;
168        _shd = toCopy._shd;
169        _brc = toCopy._brc;
170
171   }
172
173   public Object JavaDoc clone() throws CloneNotSupportedException JavaDoc
174   {
175     CHP clone = (CHP)super.clone();
176     clone._brc = new short[2];
177     System.arraycopy(_brc, 0, clone._brc, 0, 2);
178     return clone;
179   }
180 }
181
Popular Tags