001: /* ====================================================================
002: Licensed to the Apache Software Foundation (ASF) under one or more
003: contributor license agreements. See the NOTICE file distributed with
004: this work for additional information regarding copyright ownership.
005: The ASF licenses this file to You under the Apache License, Version 2.0
006: (the "License"); you may not use this file except in compliance with
007: the License. You may obtain a copy of the License at
008:
009: http://www.apache.org/licenses/LICENSE-2.0
010:
011: Unless required by applicable law or agreed to in writing, software
012: distributed under the License is distributed on an "AS IS" BASIS,
013: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: See the License for the specific language governing permissions and
015: limitations under the License.
016: ==================================================================== */
017:
018: package org.apache.poi.hwpf.model.types;
019:
020: import org.apache.poi.util.BitField;
021: import org.apache.poi.util.LittleEndian;
022: import org.apache.poi.util.StringUtil;
023: import org.apache.poi.util.HexDump;
024: import org.apache.poi.hdf.model.hdftypes.HDFType;
025: import org.apache.poi.hwpf.usermodel.*;
026:
027: /**
028: * Table Properties.
029: * NOTE: This source is automatically generated please do not modify this file. Either subclass or
030: * remove the record in src/records/definitions.
031:
032: * @author S. Ryan Ackley
033: */
034: public abstract class TAPAbstractType implements HDFType {
035:
036: protected int field_1_jc;
037: protected int field_2_dxaGapHalf;
038: protected int field_3_dyaRowHeight;
039: protected boolean field_4_fCantSplit;
040: protected boolean field_5_fTableHeader;
041: protected int field_6_tlp;
042: protected short field_7_itcMac;
043: protected short[] field_8_rgdxaCenter;
044: protected TableCellDescriptor[] field_9_rgtc;
045: protected ShadingDescriptor[] field_10_rgshd;
046: protected BorderCode field_11_brcBottom;
047: protected BorderCode field_12_brcTop;
048: protected BorderCode field_13_brcLeft;
049: protected BorderCode field_14_brcRight;
050: protected BorderCode field_15_brcVertical;
051: protected BorderCode field_16_brcHorizontal;
052:
053: public TAPAbstractType() {
054:
055: }
056:
057: /**
058: * Size of record (exluding 4 byte header)
059: */
060: public int getSize() {
061: return 4 + +2 + 4 + 4 + 0 + 0 + 4 + 2 + 130 + 0 + 0 + 4 + 4 + 4
062: + 4 + 4 + 4;
063: }
064:
065: /**
066: * Get the jc field for the TAP record.
067: */
068: public int getJc() {
069: return field_1_jc;
070: }
071:
072: /**
073: * Set the jc field for the TAP record.
074: */
075: public void setJc(int field_1_jc) {
076: this .field_1_jc = field_1_jc;
077: }
078:
079: /**
080: * Get the dxaGapHalf field for the TAP record.
081: */
082: public int getDxaGapHalf() {
083: return field_2_dxaGapHalf;
084: }
085:
086: /**
087: * Set the dxaGapHalf field for the TAP record.
088: */
089: public void setDxaGapHalf(int field_2_dxaGapHalf) {
090: this .field_2_dxaGapHalf = field_2_dxaGapHalf;
091: }
092:
093: /**
094: * Get the dyaRowHeight field for the TAP record.
095: */
096: public int getDyaRowHeight() {
097: return field_3_dyaRowHeight;
098: }
099:
100: /**
101: * Set the dyaRowHeight field for the TAP record.
102: */
103: public void setDyaRowHeight(int field_3_dyaRowHeight) {
104: this .field_3_dyaRowHeight = field_3_dyaRowHeight;
105: }
106:
107: /**
108: * Get the fCantSplit field for the TAP record.
109: */
110: public boolean getFCantSplit() {
111: return field_4_fCantSplit;
112: }
113:
114: /**
115: * Set the fCantSplit field for the TAP record.
116: */
117: public void setFCantSplit(boolean field_4_fCantSplit) {
118: this .field_4_fCantSplit = field_4_fCantSplit;
119: }
120:
121: /**
122: * Get the fTableHeader field for the TAP record.
123: */
124: public boolean getFTableHeader() {
125: return field_5_fTableHeader;
126: }
127:
128: /**
129: * Set the fTableHeader field for the TAP record.
130: */
131: public void setFTableHeader(boolean field_5_fTableHeader) {
132: this .field_5_fTableHeader = field_5_fTableHeader;
133: }
134:
135: /**
136: * Get the tlp field for the TAP record.
137: */
138: public int getTlp() {
139: return field_6_tlp;
140: }
141:
142: /**
143: * Set the tlp field for the TAP record.
144: */
145: public void setTlp(int field_6_tlp) {
146: this .field_6_tlp = field_6_tlp;
147: }
148:
149: /**
150: * Get the itcMac field for the TAP record.
151: */
152: public short getItcMac() {
153: return field_7_itcMac;
154: }
155:
156: /**
157: * Set the itcMac field for the TAP record.
158: */
159: public void setItcMac(short field_7_itcMac) {
160: this .field_7_itcMac = field_7_itcMac;
161: }
162:
163: /**
164: * Get the rgdxaCenter field for the TAP record.
165: */
166: public short[] getRgdxaCenter() {
167: return field_8_rgdxaCenter;
168: }
169:
170: /**
171: * Set the rgdxaCenter field for the TAP record.
172: */
173: public void setRgdxaCenter(short[] field_8_rgdxaCenter) {
174: this .field_8_rgdxaCenter = field_8_rgdxaCenter;
175: }
176:
177: /**
178: * Get the rgtc field for the TAP record.
179: */
180: public TableCellDescriptor[] getRgtc() {
181: return field_9_rgtc;
182: }
183:
184: /**
185: * Set the rgtc field for the TAP record.
186: */
187: public void setRgtc(TableCellDescriptor[] field_9_rgtc) {
188: this .field_9_rgtc = field_9_rgtc;
189: }
190:
191: /**
192: * Get the rgshd field for the TAP record.
193: */
194: public ShadingDescriptor[] getRgshd() {
195: return field_10_rgshd;
196: }
197:
198: /**
199: * Set the rgshd field for the TAP record.
200: */
201: public void setRgshd(ShadingDescriptor[] field_10_rgshd) {
202: this .field_10_rgshd = field_10_rgshd;
203: }
204:
205: /**
206: * Get the brcBottom field for the TAP record.
207: */
208: public BorderCode getBrcBottom() {
209: return field_11_brcBottom;
210: }
211:
212: /**
213: * Set the brcBottom field for the TAP record.
214: */
215: public void setBrcBottom(BorderCode field_11_brcBottom) {
216: this .field_11_brcBottom = field_11_brcBottom;
217: }
218:
219: /**
220: * Get the brcTop field for the TAP record.
221: */
222: public BorderCode getBrcTop() {
223: return field_12_brcTop;
224: }
225:
226: /**
227: * Set the brcTop field for the TAP record.
228: */
229: public void setBrcTop(BorderCode field_12_brcTop) {
230: this .field_12_brcTop = field_12_brcTop;
231: }
232:
233: /**
234: * Get the brcLeft field for the TAP record.
235: */
236: public BorderCode getBrcLeft() {
237: return field_13_brcLeft;
238: }
239:
240: /**
241: * Set the brcLeft field for the TAP record.
242: */
243: public void setBrcLeft(BorderCode field_13_brcLeft) {
244: this .field_13_brcLeft = field_13_brcLeft;
245: }
246:
247: /**
248: * Get the brcRight field for the TAP record.
249: */
250: public BorderCode getBrcRight() {
251: return field_14_brcRight;
252: }
253:
254: /**
255: * Set the brcRight field for the TAP record.
256: */
257: public void setBrcRight(BorderCode field_14_brcRight) {
258: this .field_14_brcRight = field_14_brcRight;
259: }
260:
261: /**
262: * Get the brcVertical field for the TAP record.
263: */
264: public BorderCode getBrcVertical() {
265: return field_15_brcVertical;
266: }
267:
268: /**
269: * Set the brcVertical field for the TAP record.
270: */
271: public void setBrcVertical(BorderCode field_15_brcVertical) {
272: this .field_15_brcVertical = field_15_brcVertical;
273: }
274:
275: /**
276: * Get the brcHorizontal field for the TAP record.
277: */
278: public BorderCode getBrcHorizontal() {
279: return field_16_brcHorizontal;
280: }
281:
282: /**
283: * Set the brcHorizontal field for the TAP record.
284: */
285: public void setBrcHorizontal(BorderCode field_16_brcHorizontal) {
286: this .field_16_brcHorizontal = field_16_brcHorizontal;
287: }
288:
289: } // END OF CLASS
|