KickJava   Java API By Example, From Geeks To Geeks.

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


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  * Comment me
24  *
25  * @author Ryan Ackley
26  */

27
28 public class PAP implements Cloneable JavaDoc
29 {
30   int _istd;//index to style descriptor.
31
byte _jc;//justification code
32
byte _fKeep;//keep entire paragraph on one page if possible
33
byte _fKeepFollow;//keep paragraph on same page with next paragraph if possible
34
byte _fPageBreakBefore;//start this paragraph on new page
35
byte _positionByte;//multiple flags see spec;
36
byte _brcp;//rectangle border codes for Macword 3.0
37
byte _brcl;//border line styles for Macword 3.0
38
byte _ilvl;//when non-zero, list level for this paragraph
39
byte _fNoLnn;//no line numbering for this paragraph. (makes this an exception to the section property of line numbering)
40
int _ilfo;//when non-zero, (1-based) index into the pllfo identifying the list to which the paragraph belongs
41
byte _fSideBySide;//when 1, paragraph is a side by side paragraph
42
byte _fNoAutoHyph;//when 0, text in paragraph may be auto hyphenated.
43
byte _fWindowControl;//when 1, Word will prevent widowed lines in this paragraph from being placed at the beginning of a page
44
int _dxaRight;//indent from right margin (signed).
45
int _dxaLeft;//indent from left margin (signed)
46
int _dxaLeft1;//first line indent; signed number relative to dxaLeft
47
int[] _lspd = new int[2];//line spacing descriptor see spec
48
int _dyaBefore;// vertical spacing before paragraph (unsigned)
49
int _dyaAfter;//vertical spacing after paragraph (unsigned)
50
byte[] _phe = new byte[12];//height of current paragraph
51
byte _fCrLf;//undocumented
52
byte _fUsePgsuSettings;//undocumented
53
byte _fAdjustRight;//undocumented
54
byte _fKinsoku;// when 1, apply kinsoku rules when performing line wrapping
55
byte _fWordWrap;//when 1, perform word wrap
56
byte _fOverflowPunct;//when 1, apply overflow punctuation rules when performing line wrapping
57
byte _fTopLinePunct;//when 1, perform top line punctuation processing
58
byte _fAutoSpaceDE;//when 1, auto space FE and alphabetic characters
59
byte _fAutoSpaceDN;// when 1, auto space FE and numeric characters
60
int _wAlignFont;//font alignment 0 Hanging 1 Centered 2 Roman 3 Variable 4 Auto
61
short _fontAlign;//multiVal see Spec.
62
byte _fInTable;//when 1, paragraph is contained in a table row
63
byte _fTtp;//when 1, paragraph consists only of the row mark special character and marks the end of a table row
64
byte _wr;//Wrap Code for absolute objects
65
byte _fLocked;//when 1, paragraph may not be edited
66
int _dxaAbs;//see spec
67
int _dyaAbs;//see spec
68
int _dxaWidth;//when not == 0, paragraph is constrained to be dxaWidth wide, independent of current margin or column settings
69
short[] _brcTop = new short[2];//spec for border above paragraph
70
short[] _brcLeft = new short[2];//specification for border to the left of
71
short[] _brcBottom = new short[2];//paragraphspecification for border below
72
short[] _brcRight = new short[2];//paragraphspecification for border to the
73
short[] _brcBetween = new short[2];//right of paragraphsee spec
74
short[] _brcBar = new short[2];//specification of border to place on
75
short _brcTop1;//outside of text when facing pages are to be displayed.spec
76
short _brcLeft1;//for border above paragraphspecification for border to the
77
short _brcBottom1;//left ofparagraphspecification for border below
78
short _brcRight1;//paragraphspecification for border to the
79
short _brcBetween1;//right of paragraphsee spec
80
short _brcBar1;//specification of border to place on outside of text when facing pages are to be displayed.
81
int _dxaFromText;//horizontal distance to be maintained between an absolutely positioned paragraph and any non-absolute positioned text
82
int _dyaFromText;//vertical distance to be maintained between an absolutely positioned paragraph and any non-absolute positioned text
83
int _dyaHeight;//see spec
84
int _shd;//shading
85
int _dcs;//drop cap specifier
86
byte[] _anld = new byte[84];//autonumber list descriptor (see ANLD definition)
87
short _fPropRMark;//when 1, properties have been changed with revision marking on
88
short _ibstPropRMark;//index to author IDs stored in hsttbfRMark. used when properties have been changed when revision marking was enabled
89
byte[] _dttmPropRMark = new byte[4];//Date/time at which properties of this were changed for this run of text by the author. (Only recorded when revision marking is on.)
90
byte[] _numrm = new byte[8];//paragraph numbering revision mark data (see NUMRM)
91
short _itbdMac;//number of tabs stops defined for paragraph. Must be >= 0 and <= 64.
92

93
94
95   public PAP()
96   {
97     _fWindowControl = 1;
98     //lspd[0] = 240;
99
_lspd[1] = 1;
100     _ilvl = 9;
101   }
102   public Object JavaDoc clone() throws CloneNotSupportedException JavaDoc
103   {
104       PAP clone = (PAP)super.clone();
105
106       clone._brcBar = new short[2];
107       clone._brcBottom = new short[2];
108       clone._brcLeft = new short[2];
109       clone._brcBetween = new short[2];
110       clone._brcRight = new short[2];
111       clone._brcTop = new short[2];
112       clone._lspd = new int[2];
113       clone._phe = new byte[12];
114       clone._anld = new byte[84];
115       clone._dttmPropRMark = new byte[4];
116       clone._numrm = new byte[8];
117
118       System.arraycopy(_brcBar, 0, clone._brcBar, 0, 2);
119       System.arraycopy(_brcBottom, 0, clone._brcBottom, 0, 2);
120       System.arraycopy(_brcLeft, 0, clone._brcLeft, 0, 2);
121       System.arraycopy(_brcBetween, 0, clone._brcBetween, 0, 2);
122       System.arraycopy(_brcRight, 0, clone._brcRight, 0, 2);
123       System.arraycopy(_brcTop, 0, clone._brcTop, 0, 2);
124       System.arraycopy(_lspd, 0, clone._lspd, 0, 2);
125       System.arraycopy(_phe, 0, clone._phe, 0, 12);
126       System.arraycopy(_anld, 0, clone._anld, 0, 84);
127       System.arraycopy(_dttmPropRMark, 0, clone._dttmPropRMark, 0, 4);
128       System.arraycopy(_numrm, 0, clone._numrm, 0, 8);
129
130       return clone;
131   }
132
133 }
134
Popular Tags