From cdc2beac4038e09c89474bfe033ffd800255a5d5 Mon Sep 17 00:00:00 2001 From: Said Ryan Ackley Date: Thu, 5 Jun 2003 01:58:53 +0000 Subject: [PATCH] commiting the latest HWPF stuff formerly HDF git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353120 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/org/apache/poi/hwpf/HWPFDocument.java | 97 + .../poi/hwpf/model/hdftypes/CHPBinTable.java | 92 + .../model/hdftypes/CHPFormattedDiskPage.java | 193 + .../apache/poi/hwpf/model/hdftypes/CHPX.java | 77 + .../hwpf/model/hdftypes/ComplexFileTable.java | 90 + .../model/hdftypes/DocumentProperties.java | 92 + .../model/hdftypes/FileInformationBlock.java | 361 + .../model/hdftypes/FormattedDiskPage.java | 121 + .../poi/hwpf/model/hdftypes/HDFType.java | 16 + .../poi/hwpf/model/hdftypes/PAPBinTable.java | 92 + .../model/hdftypes/PAPFormattedDiskPage.java | 206 + .../apache/poi/hwpf/model/hdftypes/PAPX.java | 86 + .../hwpf/model/hdftypes/ParagraphHeight.java | 113 + .../hwpf/model/hdftypes/PieceDescriptor.java | 133 + .../poi/hwpf/model/hdftypes/PlexOfCps.java | 139 + .../poi/hwpf/model/hdftypes/PropertyNode.java | 121 + .../apache/poi/hwpf/model/hdftypes/SEPX.java | 73 + .../model/hdftypes/SectionDescriptor.java | 85 + .../poi/hwpf/model/hdftypes/SectionTable.java | 96 + .../poi/hwpf/model/hdftypes/TextPiece.java | 90 + .../hwpf/model/hdftypes/TextPieceTable.java | 108 + .../hdftypes/definitions/CHPAbstractType.java | 1425 ++++ .../hdftypes/definitions/DOPAbstractType.java | 3508 +++++++++ .../hdftypes/definitions/FIBAbstractType.java | 6293 +++++++++++++++++ .../hdftypes/definitions/PAPAbstractType.java | 1305 ++++ .../hdftypes/definitions/SEPAbstractType.java | 1103 +++ .../hdftypes/definitions/TAPAbstractType.java | 372 + .../hdftypes/definitions/TCAbstractType.java | 378 + 28 files changed, 16865 insertions(+) create mode 100644 src/scratchpad/src/org/apache/poi/hwpf/HWPFDocument.java create mode 100644 src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/CHPBinTable.java create mode 100644 src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/CHPFormattedDiskPage.java create mode 100644 src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/CHPX.java create mode 100644 src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/ComplexFileTable.java create mode 100644 src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/DocumentProperties.java create mode 100644 src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/FileInformationBlock.java create mode 100644 src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/FormattedDiskPage.java create mode 100644 src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/HDFType.java create mode 100644 src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/PAPBinTable.java create mode 100644 src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/PAPFormattedDiskPage.java create mode 100644 src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/PAPX.java create mode 100644 src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/ParagraphHeight.java create mode 100644 src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/PieceDescriptor.java create mode 100644 src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/PlexOfCps.java create mode 100644 src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/PropertyNode.java create mode 100644 src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/SEPX.java create mode 100644 src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/SectionDescriptor.java create mode 100644 src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/SectionTable.java create mode 100644 src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/TextPiece.java create mode 100644 src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/TextPieceTable.java create mode 100644 src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/definitions/CHPAbstractType.java create mode 100644 src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/definitions/DOPAbstractType.java create mode 100644 src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/definitions/FIBAbstractType.java create mode 100644 src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/definitions/PAPAbstractType.java create mode 100644 src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/definitions/SEPAbstractType.java create mode 100644 src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/definitions/TAPAbstractType.java create mode 100644 src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/definitions/TCAbstractType.java diff --git a/src/scratchpad/src/org/apache/poi/hwpf/HWPFDocument.java b/src/scratchpad/src/org/apache/poi/hwpf/HWPFDocument.java new file mode 100644 index 0000000000..11ea7fbb02 --- /dev/null +++ b/src/scratchpad/src/org/apache/poi/hwpf/HWPFDocument.java @@ -0,0 +1,97 @@ +/* + * ==================================================================== + * The Apache Software License, Version 1.1 + * + * Copyright (c) 2003 The Apache Software Foundation. All rights + * reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * 3. The end-user documentation included with the redistribution, + * if any, must include the following acknowledgment: + * "This product includes software developed by the + * Apache Software Foundation (http://www.apache.org/)." + * Alternately, this acknowledgment may appear in the software itself, + * if and wherever such third-party acknowledgments normally appear. + * + * 4. The names "Apache" and "Apache Software Foundation" and + * "Apache POI" must not be used to endorse or promote products + * derived from this software without prior written permission. For + * written permission, please contact apache@apache.org. + * + * 5. Products derived from this software may not be called "Apache", + * "Apache POI", nor may "Apache" appear in their name, without + * prior written permission of the Apache Software Foundation. + * + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * ==================================================================== + * + * This software consists of voluntary contributions made by many + * individuals on behalf of the Apache Software Foundation. For more + * information on the Apache Software Foundation, please see + * . + */ +package org.apache.poi.hwpf; + +import java.io.InputStream; +import java.io.IOException; + +import org.apache.poi.poifs.filesystem.POIFSFileSystem; +import org.apache.poi.poifs.filesystem.DocumentEntry; + +import org.apache.poi.hwpf.model.hdftypes.*; + + +/** + * @author Ryan Ackley + */ +public class HWPFDocument +{ + /** OLE stuff*/ + private POIFSFileSystem _filesystem; + + /** The FIB*/ + private FileInformationBlock _fib; + + /** main document stream buffer*/ + byte[] _mainDocument; + + /** table stream buffer*/ + byte[] _tableBuffer; + + public HWPFDocument(InputStream istream) throws IOException + { + //do Ole stuff + _filesystem = new POIFSFileSystem(istream); + + DocumentEntry headerProps = + (DocumentEntry)_filesystem.getRoot().getEntry("WordDocument"); + + _mainDocument = new byte[headerProps.getSize()]; + _filesystem.createDocumentInputStream("WordDocument").read(_mainDocument); + + _fib = new FileInformationBlock(_mainDocument); + } + +} diff --git a/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/CHPBinTable.java b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/CHPBinTable.java new file mode 100644 index 0000000000..e8a8f6f509 --- /dev/null +++ b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/CHPBinTable.java @@ -0,0 +1,92 @@ +/* + * ==================================================================== + * The Apache Software License, Version 1.1 + * + * Copyright (c) 2003 The Apache Software Foundation. All rights + * reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * 3. The end-user documentation included with the redistribution, + * if any, must include the following acknowledgment: + * "This product includes software developed by the + * Apache Software Foundation (http://www.apache.org/)." + * Alternately, this acknowledgment may appear in the software itself, + * if and wherever such third-party acknowledgments normally appear. + * + * 4. The names "Apache" and "Apache Software Foundation" and + * "Apache POI" must not be used to endorse or promote products + * derived from this software without prior written permission. For + * written permission, please contact apache@apache.org. + * + * 5. Products derived from this software may not be called "Apache", + * "Apache POI", nor may "Apache" appear in their name, without + * prior written permission of the Apache Software Foundation. + * + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * ==================================================================== + * + * This software consists of voluntary contributions made by many + * individuals on behalf of the Apache Software Foundation. For more + * information on the Apache Software Foundation, please see + * . + */ + + +package org.apache.poi.hwpf.model.hdftypes; + +import java.util.ArrayList; + +import org.apache.poi.poifs.common.POIFSConstants; +import org.apache.poi.util.LittleEndian; + +public class CHPBinTable +{ + ArrayList _textRuns; + + public CHPBinTable(byte[] documentStream, byte[] tableStream, int offset, int size) + { + PlexOfCps binTable = new PlexOfCps(tableStream, offset, size, 4); + + int length = binTable.length(); + for (int x = 0; x < length; x++) + { + PropertyNode node = binTable.getProperty(x); + + int pageNum = LittleEndian.getInt(node.getBuf()); + int pageOffset = POIFSConstants.BIG_BLOCK_SIZE * pageNum; + + CHPFormattedDiskPage cfkp = new CHPFormattedDiskPage(documentStream, + pageOffset); + + int fkpSize = cfkp.size(); + + for (int y = 0; y < fkpSize; y++) + { + _textRuns.add(cfkp.getCHPX(y)); + } + } + } + +} diff --git a/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/CHPFormattedDiskPage.java b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/CHPFormattedDiskPage.java new file mode 100644 index 0000000000..2b27541199 --- /dev/null +++ b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/CHPFormattedDiskPage.java @@ -0,0 +1,193 @@ +/* ==================================================================== + * The Apache Software License, Version 1.1 + * + * Copyright (c) 2003 The Apache Software Foundation. All rights + * reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * 3. The end-user documentation included with the redistribution, + * if any, must include the following acknowledgment: + * "This product includes software developed by the + * Apache Software Foundation (http://www.apache.org/)." + * Alternately, this acknowledgment may appear in the software itself, + * if and wherever such third-party acknowledgments normally appear. + * + * 4. The names "Apache" and "Apache Software Foundation" and + * "Apache POI" must not be used to endorse or promote products + * derived from this software without prior written permission. For + * written permission, please contact apache@apache.org. + * + * 5. Products derived from this software may not be called "Apache", + * "Apache POI", nor may "Apache" appear in their name, without + * prior written permission of the Apache Software Foundation. + * + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * ==================================================================== + * + * This software consists of voluntary contributions made by many + * individuals on behalf of the Apache Software Foundation. For more + * information on the Apache Software Foundation, please see + * . + */ +package org.apache.poi.hwpf.model.hdftypes; + +import java.util.ArrayList; + +import org.apache.poi.util.LittleEndian; + +/** + * Represents a CHP fkp. The style properties for paragraph and character runs + * are stored in fkps. There are PAP fkps for paragraph properties and CHP fkps + * for character run properties. The first part of the fkp for both CHP and PAP + * fkps consists of an array of 4 byte int offsets that represent a + * Paragraph's or Character run's text offset in the main stream. The ending + * offset is the next value in the array. For example, if an fkp has X number of + * Paragraph's stored in it then there are (x + 1) 4 byte ints in the beginning + * array. The number X is determined by the last byte in a 512 byte fkp. + * + * CHP and PAP fkps also store the compressed styles(grpprl) that correspond to + * the offsets on the front of the fkp. The offset of the grpprls is determined + * differently for CHP fkps and PAP fkps. + * + * @author Ryan Ackley + */ +public class CHPFormattedDiskPage extends FormattedDiskPage +{ + private static final int FC_SIZE = 4; + + private ArrayList _chpxList = new ArrayList(); + private ArrayList _overFlow; + + /** + * This constructs a CHPFormattedDiskPage from a raw fkp (512 byte array + * read from a Word file). + * + * @param fkp The 512 byte array to read data from + */ + public CHPFormattedDiskPage(byte[] documentStream, int offset) + { + super(documentStream, offset); + + for (int x = 0; x < _crun; x++) + { + _chpxList.add(new CHPX(getStart(x), getEnd(x), getGrpprl(x))); + } + } + + public CHPX getCHPX(int index) + { + return (CHPX)_chpxList.get(index); + } + + /** + * Gets the chpx for the character run at index in this fkp. + * + * @param index The index of the chpx to get. + * @return a chpx grpprl. + */ + protected byte[] getGrpprl(int index) + { + int chpxOffset = 2 * LittleEndian.getUnsignedByte(_fkp, _offset + (((_crun + 1) * 4) + index)); + + //optimization if offset == 0 use "Normal" style + if(chpxOffset == 0) + { + return new byte[0]; + } + + int size = LittleEndian.getUnsignedByte(_fkp, chpxOffset); + + byte[] chpx = new byte[size]; + + System.arraycopy(_fkp, ++chpxOffset, chpx, 0, size); + return chpx; + } + + protected byte[] toByteArray() + { + byte[] buf = new byte[512]; + int size = _chpxList.size(); + int grpprlOffset = 0; + int offsetOffset = 0; + int fcOffset = 0; + + // total size is currently the size of one FC + int totalSize = FC_SIZE; + + int index = 0; + for (; index < size; index++) + { + int grpprlLength = ((CHPX)_chpxList.get(index)).getGrpprl().length; + + // check to see if we have enough room for an FC, a byte, and the grpprl. + totalSize += (FC_SIZE + 1 + grpprlLength); + // if size is uneven we will have to add one so the first grpprl falls + // on a word boundary + if (totalSize > 511 + (index % 2)) + { + totalSize -= (FC_SIZE + 1 + grpprlLength); + break; + } + + // grpprls must fall on word boundaries + if (grpprlLength % 2 > 0) + { + totalSize += 1; + } + } + + // see if we couldn't fit some + if (index != size) + { + _overFlow = new ArrayList(); + _overFlow.addAll(index, _chpxList); + } + + // index should equal number of CHPXs that will be in this fkp now. + buf[511] = (byte)index; + + offsetOffset = (FC_SIZE * index) + FC_SIZE; + grpprlOffset = offsetOffset + index + (grpprlOffset % 2); + + CHPX chpx = null; + for (int x = 0; x < index; x++) + { + chpx = (CHPX)_chpxList.get(x); + byte[] grpprl = chpx.getGrpprl(); + + LittleEndian.putInt(buf, fcOffset, chpx.getStart()); + buf[offsetOffset] = (byte)(grpprlOffset/2); + System.arraycopy(grpprl, 0, buf, grpprlOffset, grpprl.length); + + grpprlOffset += grpprl.length + (grpprl.length % 2); + offsetOffset += 1; + fcOffset += FC_SIZE; + } + // put the last papx's end in + LittleEndian.putInt(buf, fcOffset, chpx.getEnd()); + return buf; + } + +} diff --git a/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/CHPX.java b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/CHPX.java new file mode 100644 index 0000000000..f14115509a --- /dev/null +++ b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/CHPX.java @@ -0,0 +1,77 @@ +/* ==================================================================== + * The Apache Software License, Version 1.1 + * + * Copyright (c) 2003 The Apache Software Foundation. All rights + * reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * 3. The end-user documentation included with the redistribution, + * if any, must include the following acknowledgment: + * "This product includes software developed by the + * Apache Software Foundation (http://www.apache.org/)." + * Alternately, this acknowledgment may appear in the software itself, + * if and wherever such third-party acknowledgments normally appear. + * + * 4. The names "Apache" and "Apache Software Foundation" and + * "Apache POI" must not be used to endorse or promote products + * derived from this software without prior written permission. For + * written permission, please contact apache@apache.org. + * + * 5. Products derived from this software may not be called "Apache", + * "Apache POI", nor may "Apache" appear in their name, without + * prior written permission of the Apache Software Foundation. + * + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * ==================================================================== + * + * This software consists of voluntary contributions made by many + * individuals on behalf of the Apache Software Foundation. For more + * information on the Apache Software Foundation, please see + * . + */ + + +package org.apache.poi.hwpf.model.hdftypes; + + +/** + * Comment me + * + * @author Ryan Ackley + */ + +public class CHPX extends PropertyNode +{ + public CHPX(int fcStart, int fcEnd, byte[] grpprl) + { + super(fcStart, fcEnd, grpprl); + } + + public byte[] getGrpprl() + { + return super.getBuf(); + } + +} diff --git a/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/ComplexFileTable.java b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/ComplexFileTable.java new file mode 100644 index 0000000000..644fd54cf5 --- /dev/null +++ b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/ComplexFileTable.java @@ -0,0 +1,90 @@ +/* + * ==================================================================== + * The Apache Software License, Version 1.1 + * + * Copyright (c) 2003 The Apache Software Foundation. All rights + * reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * 3. The end-user documentation included with the redistribution, + * if any, must include the following acknowledgment: + * "This product includes software developed by the + * Apache Software Foundation (http://www.apache.org/)." + * Alternately, this acknowledgment may appear in the software itself, + * if and wherever such third-party acknowledgments normally appear. + * + * 4. The names "Apache" and "Apache Software Foundation" and + * "Apache POI" must not be used to endorse or promote products + * derived from this software without prior written permission. For + * written permission, please contact apache@apache.org. + * + * 5. Products derived from this software may not be called "Apache", + * "Apache POI", nor may "Apache" appear in their name, without + * prior written permission of the Apache Software Foundation. + * + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * ==================================================================== + * + * This software consists of voluntary contributions made by many + * individuals on behalf of the Apache Software Foundation. For more + * information on the Apache Software Foundation, please see + * . + */ + + +package org.apache.poi.hwpf.model.hdftypes; + +import java.io.IOException; + +import org.apache.poi.util.LittleEndian; + +public class ComplexFileTable +{ + + TextPieceTable _tpt; + + public ComplexFileTable(byte[] documentStream, byte[] tableStream, int offset) throws IOException + { + //skips through the prms before we reach the piece table. These contain data + //for actual fast saved files + while (tableStream[offset] == 1) + { + offset++; + int skip = LittleEndian.getShort(tableStream, offset); + offset += 2 + skip; + } + if(tableStream[offset] != 2) + { + throw new IOException("The text piece table is corrupted"); + } + else + { + int pieceTableSize = LittleEndian.getInt(tableStream, ++offset); + offset += LittleEndian.INT_SIZE; + _tpt = new TextPieceTable(documentStream, tableStream, offset, pieceTableSize); + } + } + +} diff --git a/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/DocumentProperties.java b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/DocumentProperties.java new file mode 100644 index 0000000000..0e3d48a5ea --- /dev/null +++ b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/DocumentProperties.java @@ -0,0 +1,92 @@ + + +/* ==================================================================== + * The Apache Software License, Version 1.1 + * + * Copyright (c) 2003 The Apache Software Foundation. All rights + * reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * 3. The end-user documentation included with the redistribution, + * if any, must include the following acknowledgment: + * "This product includes software developed by the + * Apache Software Foundation (http://www.apache.org/)." + * Alternately, this acknowledgment may appear in the software itself, + * if and wherever such third-party acknowledgments normally appear. + * + * 4. The names "Apache" and "Apache Software Foundation" and + * "Apache POI" must not be used to endorse or promote products + * derived from this software without prior written permission. For + * written permission, please contact apache@apache.org. + * + * 5. Products derived from this software may not be called "Apache", + * "Apache POI", nor may "Apache" appear in their name, without + * prior written permission of the Apache Software Foundation. + * + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * ==================================================================== + * + * This software consists of voluntary contributions made by many + * individuals on behalf of the Apache Software Foundation. For more + * information on the Apache Software Foundation, please see + * . + */ + + +package org.apache.poi.hwpf.model.hdftypes; + +import org.apache.poi.util.LittleEndian; +/** + * Comment me + * + * @author Ryan Ackley + */ + +public class DocumentProperties implements HDFType +{ + + public boolean _fFacingPages; + public int _fpc; + public int _epc; + public int _rncFtn; + public int _nFtn; + public int _rncEdn; + public int _nEdn; + + public DocumentProperties(byte[] dopArray) + { + _fFacingPages = (dopArray[0] & 0x1) > 0; + _fpc = (dopArray[0] & 0x60) >> 5; + + short num = LittleEndian.getShort(dopArray, 2); + _rncFtn = (num & 0x3); + _nFtn = (short)(num & 0xfffc) >> 2; + num = LittleEndian.getShort(dopArray, 52); + _rncEdn = num & 0x3; + _nEdn = (short)(num & 0xfffc) >> 2; + num = LittleEndian.getShort(dopArray, 54); + _epc = num & 0x3; + } +} diff --git a/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/FileInformationBlock.java b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/FileInformationBlock.java new file mode 100644 index 0000000000..3b939603fc --- /dev/null +++ b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/FileInformationBlock.java @@ -0,0 +1,361 @@ +/* + * ==================================================================== + * The Apache Software License, Version 1.1 + * + * Copyright (c) 2003 The Apache Software Foundation. All rights + * reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * 3. The end-user documentation included with the redistribution, + * if any, must include the following acknowledgment: + * "This product includes software developed by the + * Apache Software Foundation (http://www.apache.org/)." + * Alternately, this acknowledgment may appear in the software itself, + * if and wherever such third-party acknowledgments normally appear. + * + * 4. The names "Apache" and "Apache Software Foundation" and + * "Apache POI" must not be used to endorse or promote products + * derived from this software without prior written permission. For + * written permission, please contact apache@apache.org. + * + * 5. Products derived from this software may not be called "Apache", + * "Apache POI", nor may "Apache" appear in their name, without + * prior written permission of the Apache Software Foundation. + * + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * ==================================================================== + * + * This software consists of voluntary contributions made by many + * individuals on behalf of the Apache Software Foundation. For more + * information on the Apache Software Foundation, please see + * . + */ + +package org.apache.poi.hwpf.model.hdftypes; + +import org.apache.poi.util.BitField; +import org.apache.poi.util.LittleEndian; + + +import org.apache.poi.hwpf.model.hdftypes.definitions.FIBAbstractType; + +/** + * + * @author andy + */ +public class FileInformationBlock extends FIBAbstractType +{ +/* + private short field_1_id; + private short field_2_version; // 101 = Word 6.0 + + private short field_3_product_version; + private short field_4_language_stamp; + private short field_5_unknown; + private short field_6_options; + + private static final BitField template = new BitField(0x0001); + private static final BitField glossary = new BitField(0x0002); + private static final BitField quicksave = new BitField(0x0004); + private static final BitField haspictr = new BitField(0x0008); + private static final BitField nquicksaves = new BitField(0x00F0); + private static final BitField encrypted = new BitField(0x0100); + private static final BitField tabletype = new BitField(0x0200); + private static final BitField readonly = new BitField(0x0400); + private static final BitField writeReservation = new BitField(0x0800); + private static final BitField extendedCharacter = new BitField(0x1000); + private static final BitField loadOverride = new BitField(0x2000); + private static final BitField farEast = new BitField(0x4000); + private static final BitField crypto = new BitField(0x8000); + + private short field_7_minversion; + private short field_8_encrypted_key; + private short field_9_environment; // 0 or 1 - windows or mac + private short field_10_history; + + private static final BitField history_mac = new BitField(0x01); + private static final BitField empty_special = new BitField(0x02); + private static final BitField load_override = new BitField(0x04); + private static final BitField future_undo = new BitField(0x08); + private static final BitField w97_saved = new BitField(0x10); + private static final BitField spare = new BitField(0xfe); + + private short field_11_default_charset; + private short field_12_default_extcharset; + private int field_13_offset_first_char; + private int field_14_offset_last_char; + private short field_15_count_shorts; + + private short field_16_beg_shorts; //why same offset? + + private short field_16_creator_id; + private short field_17_revisor_id; + private short field_18_creator_private; + private short field_19_revisor_private; + + private short field_20_unused; + private short field_21_unused; + private short field_22_unused; + private short field_23_unused; + private short field_24_unused; + private short field_25_unused; + private short field_26_unused; + private short field_27_unused; + private short field_28_unused; + + private short field_29_fareastid; + private short field_30_count_ints; + + private int field_31_beg_ints; //why same offset? + + private int field_31_last_byte; + + private int field_32_creator_build_date; + private int field_33_revisor_build_date; */ + /** length of main document text stream*/ +// private int field_34_main_streamlen; + /**length of footnote subdocument text stream*/ +/* private int field_35_footnote_streamlen; + private int field_36_header_streamlen; + private int field_37_macro_streamlen; + private int field_38_annotation_streamlen; + private int field_39_endnote_streamlen; + private int field_40_textbox_streamlen; + private int field_41_headbox_streamlen; */ + /**offset in table stream of character property bin table*/ +// private int field_42_pointer_to_plc_list_chp; //rename me! +// private int field_43_first_chp; //rename me +// private int field_44_count_chps; //rename me + /**offset in table stream of paragraph property bin */ + /* private int field_45_pointer_to_plc_list_pap; //rename me. + private int field_46_first_pap; //rename me + private int field_47_count_paps; //rename me + private int field_48_pointer_to_plc_list_lvc; //rename me + private int field_49_first_lvc; //rename me + private int field_50_count_lvc; //rename me + + private int field_51_unknown; + private int field_52_unknown; */ + //not sure about this array. +/* + private short field_53_fc_lcb_array_size; + private int field_54_original_stylesheet_offset; + private int field_55_original_stylesheet_size; + private int field_56_stylesheet_offset; + private int field_57_stylesheet_size; + private int field_58_footnote_ref_offset; + private int field_59_footnote_ref_size; + private int field_60_footnote_plc_offset; + private int field_61_footnote_plc_size; + private int field_62_annotation_ref_offset; + private int field_63_annotation_ref_size; + private int field_64_annotation_plc_offset; + private int field_65_annotation_plc_size; */ + /** offset in table stream of section descriptor SED PLC*/ +/* private int field_66_section_plc_offset; + private int field_67_section_plc_size; + private int field_68_unused; + private int field_69_unused; + private int field_70_pheplc_offset; + private int field_71_pheplc_size; + private int field_72_glossaryST_offset; + private int field_73_glossaryST_size; + private int field_74_glossaryPLC_offset; + private int field_75_glossaryPLC_size; + private int field_76_headerPLC_offset; + private int field_77_headerPLC_size; + private int field_78_chp_bin_table_offset; + private int field_79_chp_bin_table_size; + private int field_80_pap_bin_table_offset; + private int field_81_pap_bin_table_size; + private int field_82_sea_plc_offset; + private int field_83_sea_plc_size; + private int field_84_fonts_offset; + private int field_85_fonts_size; + private int field_86_main_fields_offset; + private int field_87_main_fields_size; + private int field_88_header_fields_offset; + private int field_89_header_fields_size; + private int field_90_footnote_fields_offset; + private int field_91_footnote_fields_size; + private int field_92_ann_fields_offset; + private int field_93_ann_fields_size; + private int field_94_unused; + private int field_95_unused; + private int field_96_bookmark_names_offset; + private int field_97_bookmark_names_size; + private int field_98_bookmark_offsets_offset; + private int field_99_bookmark_offsets_size; + private int field_100_macros_offset; + private int field_101_macros_size; + private int field_102_unused; + private int field_103_unused; + private int field_104_unused; + private int field_105_unused; + private int field_106_printer_offset; + private int field_107_printer_size; + private int field_108_printer_portrait_offset; + private int field_109_printer_portrait_size; + private int field_110_printer_landscape_offset; + private int field_111_printer_landscape_size; + private int field_112_wss_offset; + private int field_113_wss_size; + private int field_114_DOP_offset; + private int field_115_DOP_size; + private int field_116_sttbfassoc_offset; + private int field_117_sttbfassoc_size; */ + /**offset in table stream of beginning of information for complex files. + * Also, this is the beginning of the Text piece table*/ /* + private int field_118_textPieceTable_offset; + private int field_119_textPieceTable_size; + private int field_199_list_format_offset; + private int field_200_list_format_size; + private int field_201_list_format_override_offset; + private int field_202_list_format_override_size; + + + + +^/ + /** Creates a new instance of FileInformationBlock */ + public FileInformationBlock(byte[] mainDocument) + { + fillFields(mainDocument, (short)0, (short)0); +/* field_1_id = LittleEndian.getShort(mainDocument, 0); + field_2_version = LittleEndian.getShort(mainDocument, 0x2); // 101 = Word 6.0 + + field_3_product_version = LittleEndian.getShort(mainDocument, 0x4); + field_4_language_stamp = LittleEndian.getShort(mainDocument, 0x6); + field_5_unknown = LittleEndian.getShort(mainDocument, 0x8); + field_6_options = LittleEndian.getShort(mainDocument, 0xa); + + + + field_13_offset_first_char = LittleEndian.getInt(mainDocument, 0x18); + field_34_main_streamlen = LittleEndian.getInt(mainDocument, 0x4c); + field_35_footnote_streamlen = LittleEndian.getInt(mainDocument, 0x50); + + field_56_stylesheet_offset = LittleEndian.getInt(mainDocument, 0xa2); + field_57_stylesheet_size = LittleEndian.getInt(mainDocument, 0xa6); + field_66_section_plc_offset = LittleEndian.getInt(mainDocument, 0xca); + field_67_section_plc_size = LittleEndian.getInt(mainDocument, 0xce); + + field_78_chp_bin_table_offset = LittleEndian.getInt(mainDocument, 0xfa); + field_79_chp_bin_table_size = LittleEndian.getInt(mainDocument, 0xfe); + field_80_pap_bin_table_offset = LittleEndian.getInt(mainDocument, 0x102); + field_81_pap_bin_table_size = LittleEndian.getInt(mainDocument, 0x106); + + field_84_fonts_offset = LittleEndian.getInt(mainDocument, 0x112); + field_85_fonts_size = LittleEndian.getInt(mainDocument, 0x116); + + field_114_DOP_offset = LittleEndian.getInt(mainDocument, 0x192); + field_115_DOP_size = LittleEndian.getInt(mainDocument, 0x196); + field_118_textPieceTable_offset = LittleEndian.getInt(mainDocument, 0x1a2); + + field_199_list_format_offset = LittleEndian.getInt(mainDocument, 0x2e2); + field_200_list_format_size = LittleEndian.getInt(mainDocument, 0x2e6); + field_201_list_format_override_offset = LittleEndian.getInt(mainDocument, 0x2ea); + field_202_list_format_override_size= LittleEndian.getInt(mainDocument, 0x2ee);*/ + + } +/* + public boolean useTable1() + { + return tabletype.setShort(field_6_options) > 0; + } + public int getFirstCharOffset() + { + return field_13_offset_first_char; + } + public int getStshOffset() + { + return field_56_stylesheet_offset; + } + public int getStshSize() + { + return field_57_stylesheet_size; + } + public int getSectionDescriptorOffset() + { + return field_66_section_plc_offset; + } + public int getSectionDescriptorSize() + { + return field_67_section_plc_size; + } + public int getChpBinTableOffset() + { + return field_78_chp_bin_table_offset; + } + public int getChpBinTableSize() + { + return field_79_chp_bin_table_size; + } + public int getPapBinTableOffset() + { + return field_80_pap_bin_table_offset; + } + public int getPapBinTableSize() + { + return field_81_pap_bin_table_size; + } + public int getFontsOffset() + { + return field_84_fonts_offset; + } + public int getFontsSize() + { + return field_85_fonts_size; + } + public int getDOPOffset() + { + return field_114_DOP_offset; + } + public int getDOPSize() + { + return field_115_DOP_size; + } + public int getComplexOffset() + { + return field_118_textPieceTable_offset; + } + public int getLSTOffset() + { + return field_199_list_format_offset; + } + public int getLSTSize() + { + return field_200_list_format_size; + } + public int getLFOOffset() + { + return field_201_list_format_override_offset; + } + public int getLFOSize() + { + return field_202_list_format_override_size; + } +*/ + +} + diff --git a/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/FormattedDiskPage.java b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/FormattedDiskPage.java new file mode 100644 index 0000000000..3971cc9d20 --- /dev/null +++ b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/FormattedDiskPage.java @@ -0,0 +1,121 @@ +/* ==================================================================== + * The Apache Software License, Version 1.1 + * + * Copyright (c) 2003 The Apache Software Foundation. All rights + * reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * 3. The end-user documentation included with the redistribution, + * if any, must include the following acknowledgment: + * "This product includes software developed by the + * Apache Software Foundation (http://www.apache.org/)." + * Alternately, this acknowledgment may appear in the software itself, + * if and wherever such third-party acknowledgments normally appear. + * + * 4. The names "Apache" and "Apache Software Foundation" and + * "Apache POI" must not be used to endorse or promote products + * derived from this software without prior written permission. For + * written permission, please contact apache@apache.org. + * + * 5. Products derived from this software may not be called "Apache", + * "Apache POI", nor may "Apache" appear in their name, without + * prior written permission of the Apache Software Foundation. + * + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * ==================================================================== + * + * This software consists of voluntary contributions made by many + * individuals on behalf of the Apache Software Foundation. For more + * information on the Apache Software Foundation, please see + * . + */ + +package org.apache.poi.hwpf.model.hdftypes; + +import org.apache.poi.util.LittleEndian; + +/** + * Represents an FKP data structure. This data structure is used to store the + * grpprls of the paragraph and character properties of the document. A grpprl + * is a list of sprms(decompression operations) to perform on a parent style. + * + * The style properties for paragraph and character runs + * are stored in fkps. There are PAP fkps for paragraph properties and CHP fkps + * for character run properties. The first part of the fkp for both CHP and PAP + * fkps consists of an array of 4 byte int offsets in the main stream for that + * Paragraph's or Character run's text. The ending offset is the next + * value in the array. For example, if an fkp has X number of Paragraph's + * stored in it then there are (x + 1) 4 byte ints in the beginning array. The + * number X is determined by the last byte in a 512 byte fkp. + * + * CHP and PAP fkps also store the compressed styles(grpprl) that correspond to + * the offsets on the front of the fkp. The offset of the grpprls is determined + * differently for CHP fkps and PAP fkps. + * + * @author Ryan Ackley + */ +public abstract class FormattedDiskPage +{ + protected byte[] _fkp; + protected int _crun; + protected int _offset; + + /** + * Uses a 512-byte array to create a FKP + */ + public FormattedDiskPage(byte[] documentStream, int offset) + { + _crun = LittleEndian.getUnsignedByte(documentStream, offset + 511); + _fkp = documentStream; + } + /** + * Used to get a text offset corresponding to a grpprl in this fkp. + * @param index The index of the property in this FKP + * @return an int representing an offset in the "WordDocument" stream + */ + protected int getStart(int index) + { + return LittleEndian.getInt(_fkp, _offset + (index * 4)); + } + /** + * Used to get the end of the text corresponding to a grpprl in this fkp. + * @param index The index of the property in this fkp. + * @return an int representing an offset in the "WordDocument" stream + */ + protected int getEnd(int index) + { + return LittleEndian.getInt(_fkp, _offset + ((index + 1) * 4)); + } + /** + * Used to get the total number of grrprl's stored int this FKP + * @return The number of grpprls in this FKP + */ + public int size() + { + return _crun; + } + + protected abstract byte[] getGrpprl(int index); +} diff --git a/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/HDFType.java b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/HDFType.java new file mode 100644 index 0000000000..c3f12e6b39 --- /dev/null +++ b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/HDFType.java @@ -0,0 +1,16 @@ +/* + * HDFType.java + * + * Created on February 24, 2002, 2:37 PM + */ + +package org.apache.poi.hwpf.model.hdftypes; + +/** + * + * @author andy + */ +public interface HDFType { + +} + diff --git a/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/PAPBinTable.java b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/PAPBinTable.java new file mode 100644 index 0000000000..2e7e508905 --- /dev/null +++ b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/PAPBinTable.java @@ -0,0 +1,92 @@ +/* + * ==================================================================== + * The Apache Software License, Version 1.1 + * + * Copyright (c) 2003 The Apache Software Foundation. All rights + * reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * 3. The end-user documentation included with the redistribution, + * if any, must include the following acknowledgment: + * "This product includes software developed by the + * Apache Software Foundation (http://www.apache.org/)." + * Alternately, this acknowledgment may appear in the software itself, + * if and wherever such third-party acknowledgments normally appear. + * + * 4. The names "Apache" and "Apache Software Foundation" and + * "Apache POI" must not be used to endorse or promote products + * derived from this software without prior written permission. For + * written permission, please contact apache@apache.org. + * + * 5. Products derived from this software may not be called "Apache", + * "Apache POI", nor may "Apache" appear in their name, without + * prior written permission of the Apache Software Foundation. + * + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * ==================================================================== + * + * This software consists of voluntary contributions made by many + * individuals on behalf of the Apache Software Foundation. For more + * information on the Apache Software Foundation, please see + * . + */ + +package org.apache.poi.hwpf.model.hdftypes; + +import java.util.ArrayList; + +import org.apache.poi.poifs.common.POIFSConstants; +import org.apache.poi.util.LittleEndian; + +public class PAPBinTable +{ + ArrayList _paragraphs; + + public PAPBinTable(byte[] documentStream, byte[] tableStream, int offset, int size) + { + PlexOfCps binTable = new PlexOfCps(tableStream, offset, size, 4); + + int length = binTable.length(); + for (int x = 0; x < length; x++) + { + PropertyNode node = binTable.getProperty(x); + + int pageNum = LittleEndian.getInt(node.getBuf()); + int pageOffset = POIFSConstants.BIG_BLOCK_SIZE * pageNum; + + PAPFormattedDiskPage pfkp = new PAPFormattedDiskPage(documentStream, + pageOffset); + + int fkpSize = pfkp.size(); + + for (int y = 0; y < fkpSize; y++) + { + _paragraphs.add(pfkp.getPAPX(y)); + } + } + } + +} + diff --git a/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/PAPFormattedDiskPage.java b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/PAPFormattedDiskPage.java new file mode 100644 index 0000000000..e054ddbd5a --- /dev/null +++ b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/PAPFormattedDiskPage.java @@ -0,0 +1,206 @@ +/* ==================================================================== + * The Apache Software License, Version 1.1 + * + * Copyright (c) 2003 The Apache Software Foundation. All rights + * reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * 3. The end-user documentation included with the redistribution, + * if any, must include the following acknowledgment: + * "This product includes software developed by the + * Apache Software Foundation (http://www.apache.org/)." + * Alternately, this acknowledgment may appear in the software itself, + * if and wherever such third-party acknowledgments normally appear. + * + * 4. The names "Apache" and "Apache Software Foundation" and + * "Apache POI" must not be used to endorse or promote products + * derived from this software without prior written permission. For + * written permission, please contact apache@apache.org. + * + * 5. Products derived from this software may not be called "Apache", + * "Apache POI", nor may "Apache" appear in their name, without + * prior written permission of the Apache Software Foundation. + * + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * ==================================================================== + * + * This software consists of voluntary contributions made by many + * individuals on behalf of the Apache Software Foundation. For more + * information on the Apache Software Foundation, please see + * . + */ +package org.apache.poi.hwpf.model.hdftypes; + +import org.apache.poi.poifs.common.POIFSConstants; +import org.apache.poi.util.LittleEndian; + +import java.util.ArrayList; + +/** + * Represents a PAP FKP. The style properties for paragraph and character runs + * are stored in fkps. There are PAP fkps for paragraph properties and CHP fkps + * for character run properties. The first part of the fkp for both CHP and PAP + * fkps consists of an array of 4 byte int offsets in the main stream for that + * Paragraph's or Character run's text. The ending offset is the next + * value in the array. For example, if an fkp has X number of Paragraph's + * stored in it then there are (x + 1) 4 byte ints in the beginning array. The + * number X is determined by the last byte in a 512 byte fkp. + * + * CHP and PAP fkps also store the compressed styles(grpprl) that correspond to + * the offsets on the front of the fkp. The offset of the grpprls is determined + * differently for CHP fkps and PAP fkps. + * + * @author Ryan Ackley + */ +public class PAPFormattedDiskPage extends FormattedDiskPage +{ + + private static final int BX_SIZE = 13; + private static final int FC_SIZE = 4; + + private ArrayList _papxList = new ArrayList(); + private ArrayList _overFlow; + + /** + * Creates a PAPFormattedDiskPage from a 512 byte array + * + * @param fkp a 512 byte array. + */ + public PAPFormattedDiskPage(byte[] documentStream, int offset) + { + super(documentStream, offset); + + for (int x = 0; x < _crun; x++) + { + _papxList.add(new PAPX(getStart(x), getEnd(x), getGrpprl(x), getParagraphHeight(x))); + } + _fkp = null; + } + + public PAPX getPAPX(int index) + { + return (PAPX)_papxList.get(index); + } + + /** + * Gets the papx for the paragraph at index in this fkp. + * + * @param index The index of the papx to get. + * @return a papx grpprl. + */ + protected byte[] getGrpprl(int index) + { + int papxOffset = 2 * LittleEndian.getUnsignedByte(_fkp, _offset + (((_crun + 1) * FC_SIZE) + (index * BX_SIZE))); + int size = 2 * LittleEndian.getUnsignedByte(_fkp, papxOffset); + if(size == 0) + { + size = 2 * LittleEndian.getUnsignedByte(_fkp, ++papxOffset); + } + else + { + size--; + } + + byte[] papx = new byte[size]; + System.arraycopy(_fkp, ++papxOffset, papx, 0, size); + return papx; + } + + protected byte[] toByteArray() + { + byte[] buf = new byte[512]; + int size = _papxList.size(); + int grpprlOffset = 0; + int bxOffset = 0; + int fcOffset = 0; + + // total size is currently the size of one FC + int totalSize = FC_SIZE; + + int index = 0; + for (; index < size; index++) + { + int grpprlLength = ((PAPX)_papxList.get(index)).getGrpprl().length; + + // check to see if we have enough room for an FC, a BX, and the grpprl. + totalSize += (FC_SIZE + BX_SIZE + grpprlLength); + // if size is uneven we will have to add one so the first grpprl falls + // on a word boundary + if (totalSize > 511 + (index % 2)) + { + totalSize -= (FC_SIZE + BX_SIZE + grpprlLength); + break; + } + + // grpprls must fall on word boundaries + if (grpprlLength % 2 > 0) + { + totalSize += 1; + } + } + + // see if we couldn't fit some + if (index != size) + { + _overFlow = new ArrayList(); + _overFlow.addAll(index, _papxList); + } + + // index should equal number of papxs that will be in this fkp now. + buf[511] = (byte)index; + + bxOffset = (FC_SIZE * index) + FC_SIZE; + grpprlOffset = bxOffset + (BX_SIZE * index) + (grpprlOffset % 2); + + PAPX papx = null; + for (int x = 0; x < index; x++) + { + papx = (PAPX)_papxList.get(x); + byte[] phe = papx.getParagraphHeight().toByteArray(); + byte[] grpprl = papx.getGrpprl(); + + LittleEndian.putInt(buf, fcOffset, papx.getStart()); + buf[bxOffset] = (byte)(grpprlOffset/2); + System.arraycopy(phe, 0, buf, bxOffset + 1, phe.length); + System.arraycopy(grpprl, 0, buf, grpprlOffset, grpprl.length); + + grpprlOffset += grpprl.length + (grpprl.length % 2); + bxOffset += BX_SIZE; + fcOffset += FC_SIZE; + } + // put the last papx's end in + LittleEndian.putInt(buf, fcOffset, papx.getEnd()); + return buf; + } + + private ParagraphHeight getParagraphHeight(int index) + { + int pheOffset = 1 + (2 * LittleEndian.getUnsignedByte(_fkp, _offset + (((_crun + 1) * 4) + (index * 13)))); + + ParagraphHeight phe = new ParagraphHeight(_fkp, pheOffset); + + return phe; + } +} diff --git a/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/PAPX.java b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/PAPX.java new file mode 100644 index 0000000000..95ddb53a7e --- /dev/null +++ b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/PAPX.java @@ -0,0 +1,86 @@ +/* ==================================================================== + * The Apache Software License, Version 1.1 + * + * Copyright (c) 2003 The Apache Software Foundation. All rights + * reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * 3. The end-user documentation included with the redistribution, + * if any, must include the following acknowledgment: + * "This product includes software developed by the + * Apache Software Foundation (http://www.apache.org/)." + * Alternately, this acknowledgment may appear in the software itself, + * if and wherever such third-party acknowledgments normally appear. + * + * 4. The names "Apache" and "Apache Software Foundation" and + * "Apache POI" must not be used to endorse or promote products + * derived from this software without prior written permission. For + * written permission, please contact apache@apache.org. + * + * 5. Products derived from this software may not be called "Apache", + * "Apache POI", nor may "Apache" appear in their name, without + * prior written permission of the Apache Software Foundation. + * + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * ==================================================================== + * + * This software consists of voluntary contributions made by many + * individuals on behalf of the Apache Software Foundation. For more + * information on the Apache Software Foundation, please see + * . + */ + + +package org.apache.poi.hwpf.model.hdftypes; + +/** + * Comment me + * + * @author Ryan Ackley + */ + +public class PAPX extends PropertyNode +{ + + private ParagraphHeight _phe; + + public PAPX(int fcStart, int fcEnd, byte[] papx, ParagraphHeight phe) + { + super(fcStart, fcEnd, papx); + _phe = phe; + } + + public ParagraphHeight getParagraphHeight() + { + return _phe; + } + + public byte[] getGrpprl() + { + return super.getBuf(); + } + + +} diff --git a/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/ParagraphHeight.java b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/ParagraphHeight.java new file mode 100644 index 0000000000..c35cfd30a7 --- /dev/null +++ b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/ParagraphHeight.java @@ -0,0 +1,113 @@ +/* + * ==================================================================== + * The Apache Software License, Version 1.1 + * + * Copyright (c) 2003 The Apache Software Foundation. All rights + * reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * 3. The end-user documentation included with the redistribution, + * if any, must include the following acknowledgment: + * "This product includes software developed by the + * Apache Software Foundation (http://www.apache.org/)." + * Alternately, this acknowledgment may appear in the software itself, + * if and wherever such third-party acknowledgments normally appear. + * + * 4. The names "Apache" and "Apache Software Foundation" and + * "Apache POI" must not be used to endorse or promote products + * derived from this software without prior written permission. For + * written permission, please contact apache@apache.org. + * + * 5. Products derived from this software may not be called "Apache", + * "Apache POI", nor may "Apache" appear in their name, without + * prior written permission of the Apache Software Foundation. + * + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * ==================================================================== + * + * This software consists of voluntary contributions made by many + * individuals on behalf of the Apache Software Foundation. For more + * information on the Apache Software Foundation, please see + * . + */ + + +package org.apache.poi.hwpf.model.hdftypes; + +import java.io.OutputStream; +import java.io.IOException; + +import org.apache.poi.util.BitField; +import org.apache.poi.util.LittleEndian; + +public class ParagraphHeight +{ + private short infoField; + private BitField fSpare = new BitField(0x0001); + private BitField fUnk = new BitField(0x0002); + private BitField fDiffLines = new BitField(0x0004); + private BitField clMac = new BitField(0xff00); + private short reserved; + private int dxaCol; + private int dymLine; + private int dymHeight; + + public ParagraphHeight(byte[] buf, int offset) + { + infoField = LittleEndian.getShort(buf, offset); + offset += LittleEndian.SHORT_SIZE; + reserved = LittleEndian.getShort(buf, offset); + offset += LittleEndian.SHORT_SIZE; + dxaCol = LittleEndian.getInt(buf, offset); + offset += LittleEndian.INT_SIZE; + dymLine = LittleEndian.getInt(buf, offset); + offset += LittleEndian.INT_SIZE; + dymHeight = LittleEndian.getInt(buf, offset); + } + + public void write(OutputStream out) + throws IOException + { + out.write(toByteArray()); + } + + protected byte[] toByteArray() + { + byte[] buf = new byte[12]; + int offset = 0; + LittleEndian.putShort(buf, offset, infoField); + offset += LittleEndian.SHORT_SIZE; + LittleEndian.putShort(buf, offset, reserved); + offset += LittleEndian.SHORT_SIZE; + LittleEndian.putInt(buf, offset, dxaCol); + offset += LittleEndian.INT_SIZE; + LittleEndian.putInt(buf, offset, dymLine); + offset += LittleEndian.INT_SIZE; + LittleEndian.putInt(buf, offset, dymHeight); + + return buf; + } + +} diff --git a/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/PieceDescriptor.java b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/PieceDescriptor.java new file mode 100644 index 0000000000..a180050302 --- /dev/null +++ b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/PieceDescriptor.java @@ -0,0 +1,133 @@ +/* + * ==================================================================== + * The Apache Software License, Version 1.1 + * + * Copyright (c) 2003 The Apache Software Foundation. All rights + * reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * 3. The end-user documentation included with the redistribution, + * if any, must include the following acknowledgment: + * "This product includes software developed by the + * Apache Software Foundation (http://www.apache.org/)." + * Alternately, this acknowledgment may appear in the software itself, + * if and wherever such third-party acknowledgments normally appear. + * + * 4. The names "Apache" and "Apache Software Foundation" and + * "Apache POI" must not be used to endorse or promote products + * derived from this software without prior written permission. For + * written permission, please contact apache@apache.org. + * + * 5. Products derived from this software may not be called "Apache", + * "Apache POI", nor may "Apache" appear in their name, without + * prior written permission of the Apache Software Foundation. + * + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * ==================================================================== + * + * This software consists of voluntary contributions made by many + * individuals on behalf of the Apache Software Foundation. For more + * information on the Apache Software Foundation, please see + * . + */ + + +package org.apache.poi.hwpf.model.hdftypes; + +import org.apache.poi.util.BitField; +import org.apache.poi.util.LittleEndian; + +public class PieceDescriptor +{ + + short descriptor; + BitField fNoParaLast = new BitField(0x01); + BitField fPaphNil = new BitField(0x02); + BitField fCopied = new BitField(0x04); + int fc; + short prm; + boolean unicode; + + + public PieceDescriptor(byte[] buf, int offset) + { + descriptor = LittleEndian.getShort(buf, offset); + offset += LittleEndian.SHORT_SIZE; + fc = LittleEndian.getInt(buf, offset); + offset += LittleEndian.INT_SIZE; + prm = LittleEndian.getShort(buf, offset); + + // see if this piece uses unicode. + if ((fc & 0x40000000) == 0) + { + unicode = true; + } + else + { + unicode = false; + fc &= ~(0x40000000);//gives me FC in doc stream + fc /= 2; + } + + } + + public int getFilePosition() + { + return fc; + } + + public boolean isUnicode() + { + return unicode; + } + + protected byte[] toByteArray() + { + // set up the fc + int tempFc = fc; + if (!unicode) + { + tempFc *= 2; + tempFc |= (0x40000000); + } + + int offset = 0; + byte[] buf = new byte[8]; + LittleEndian.putShort(buf, offset, descriptor); + offset += LittleEndian.SHORT_SIZE; + LittleEndian.putInt(buf, offset, tempFc); + offset += LittleEndian.INT_SIZE; + LittleEndian.putShort(buf, offset, prm); + + return buf; + + } + + public static int getSizeInBytes() + { + return 8; + } + +} diff --git a/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/PlexOfCps.java b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/PlexOfCps.java new file mode 100644 index 0000000000..e610d6eb8d --- /dev/null +++ b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/PlexOfCps.java @@ -0,0 +1,139 @@ +/* ==================================================================== + * The Apache Software License, Version 1.1 + * + * Copyright (c) 2003 The Apache Software Foundation. All rights + * reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * 3. The end-user documentation included with the redistribution, + * if any, must include the following acknowledgment: + * "This product includes software developed by the + * Apache Software Foundation (http://www.apache.org/)." + * Alternately, this acknowledgment may appear in the software itself, + * if and wherever such third-party acknowledgments normally appear. + * + * 4. The names "Apache" and "Apache Software Foundation" and + * "Apache POI" must not be used to endorse or promote products + * derived from this software without prior written permission. For + * written permission, please contact apache@apache.org. + * + * 5. Products derived from this software may not be called "Apache", + * "Apache POI", nor may "Apache" appear in their name, without + * prior written permission of the Apache Software Foundation. + * + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * ==================================================================== + * + * This software consists of voluntary contributions made by many + * individuals on behalf of the Apache Software Foundation. For more + * information on the Apache Software Foundation, please see + * . + */ +package org.apache.poi.hwpf.model.hdftypes; + +import java.util.ArrayList; + +import org.apache.poi.util.LittleEndian; + + + +/** + * common data structure in a Word file. Contains an array of 4 byte ints in + * the front that relate to an array of abitrary data structures in the back. + * + * + * @author Ryan Ackley + */ +public class PlexOfCps +{ + private int _count; + private int _offset; + private int _sizeOfStruct; + private ArrayList _props; + + /** + * Constructor + * + * @param size The size in bytes of this PlexOfCps + * @param sizeOfStruct The size of the data structure type stored in + * this PlexOfCps. + */ + public PlexOfCps(byte[] buf, int start, int size, int sizeOfStruct) + { + _count = (size - 4)/(4 + sizeOfStruct); + _sizeOfStruct = sizeOfStruct; + _props = new ArrayList(_count); + + for (int x = 0; x < _count; x++) + { + _props.add(getProperty(x, buf, start)); + } + } + + public PropertyNode getProperty(int index) + { + return (PropertyNode)_props.get(index); + } + + protected PropertyNode getProperty(int index, byte[] buf, int offset) + { + int start = LittleEndian.getInt(buf, offset + getIntOffset(index)); + int end = LittleEndian.getInt(buf, offset + getIntOffset(index+1)); + + byte[] struct = new byte[_sizeOfStruct]; + System.arraycopy(buf, offset + getStructOffset(index), struct, 0, _sizeOfStruct); + + return new PropertyNode(start, end, struct); + } + + protected int getIntOffset(int index) + { + return index * 4; + } + + /** + * returns the number of data structures in this PlexOfCps. + * + * @return The number of data structures in this PlexOfCps + */ + public int length() + { + return _count; + } + + /** + * Returns the offset, in bytes, from the beginning if this PlexOfCps to + * the data structure at index. + * + * @param index The index of the data structure. + * + * @return The offset, in bytes, from the beginning if this PlexOfCps to + * the data structure at index. + */ + protected int getStructOffset(int index) + { + return (4 * (_count + 1)) + (_sizeOfStruct * index); + } +} diff --git a/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/PropertyNode.java b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/PropertyNode.java new file mode 100644 index 0000000000..a682225773 --- /dev/null +++ b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/PropertyNode.java @@ -0,0 +1,121 @@ +/* ==================================================================== + * The Apache Software License, Version 1.1 + * + * Copyright (c) 2003 The Apache Software Foundation. All rights + * reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * 3. The end-user documentation included with the redistribution, + * if any, must include the following acknowledgment: + * "This product includes software developed by the + * Apache Software Foundation (http://www.apache.org/)." + * Alternately, this acknowledgment may appear in the software itself, + * if and wherever such third-party acknowledgments normally appear. + * + * 4. The names "Apache" and "Apache Software Foundation" and + * "Apache POI" must not be used to endorse or promote products + * derived from this software without prior written permission. For + * written permission, please contact apache@apache.org. + * + * 5. Products derived from this software may not be called "Apache", + * "Apache POI", nor may "Apache" appear in their name, without + * prior written permission of the Apache Software Foundation. + * + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * ==================================================================== + * + * This software consists of voluntary contributions made by many + * individuals on behalf of the Apache Software Foundation. For more + * information on the Apache Software Foundation, please see + * . + */ +package org.apache.poi.hwpf.model.hdftypes; + + + +/** + * Represents a lightweight node in the Trees used to store content + * properties. + * + * @author Ryan Ackley + */ +public class PropertyNode implements Comparable +{ + private byte[] _buf; + private int _fcStart; + private int _fcEnd; + + /** + * @param fcStart The start of the text for this property. + * @param fcEnd The end of the text for this property. + * @param grpprl The property description in compressed form. + */ + public PropertyNode(int fcStart, int fcEnd, byte[] buf) + { + _fcStart = fcStart; + _fcEnd = fcEnd; + _buf = buf; + } + /** + * @return The offset of this property's text. + */ + public int getStart() + { + return _fcStart; + } + /** + * @retrun The offset of the end of this property's text. + */ + public int getEnd() + { + return _fcEnd; + } + /** + * @return This property's property in copmpressed form. + */ + public byte[] getBuf() + { + return _buf; + } + /** + * Used for sorting in collections. + */ + public int compareTo(Object o) + { + int fcEnd = ((PropertyNode)o).getEnd(); + if(_fcEnd == fcEnd) + { + return 0; + } + else if(_fcEnd < fcEnd) + { + return -1; + } + else + { + return 1; + } + } +} diff --git a/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/SEPX.java b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/SEPX.java new file mode 100644 index 0000000000..7dcb92af6c --- /dev/null +++ b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/SEPX.java @@ -0,0 +1,73 @@ +/* + * ==================================================================== + * The Apache Software License, Version 1.1 + * + * Copyright (c) 2003 The Apache Software Foundation. All rights + * reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * 3. The end-user documentation included with the redistribution, + * if any, must include the following acknowledgment: + * "This product includes software developed by the + * Apache Software Foundation (http://www.apache.org/)." + * Alternately, this acknowledgment may appear in the software itself, + * if and wherever such third-party acknowledgments normally appear. + * + * 4. The names "Apache" and "Apache Software Foundation" and + * "Apache POI" must not be used to endorse or promote products + * derived from this software without prior written permission. For + * written permission, please contact apache@apache.org. + * + * 5. Products derived from this software may not be called "Apache", + * "Apache POI", nor may "Apache" appear in their name, without + * prior written permission of the Apache Software Foundation. + * + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * ==================================================================== + * + * This software consists of voluntary contributions made by many + * individuals on behalf of the Apache Software Foundation. For more + * information on the Apache Software Foundation, please see + * . + */ + + +package org.apache.poi.hwpf.model.hdftypes; + + +public class SEPX extends PropertyNode +{ + + public SEPX(int start, int end, byte[] grpprl) + { + super(start, end, grpprl); + } + + public byte[] getGrpprl() + { + return super.getBuf(); + } + +} diff --git a/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/SectionDescriptor.java b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/SectionDescriptor.java new file mode 100644 index 0000000000..d3a6be9b5c --- /dev/null +++ b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/SectionDescriptor.java @@ -0,0 +1,85 @@ +/* + * ==================================================================== + * The Apache Software License, Version 1.1 + * + * Copyright (c) 2003 The Apache Software Foundation. All rights + * reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * 3. The end-user documentation included with the redistribution, + * if any, must include the following acknowledgment: + * "This product includes software developed by the + * Apache Software Foundation (http://www.apache.org/)." + * Alternately, this acknowledgment may appear in the software itself, + * if and wherever such third-party acknowledgments normally appear. + * + * 4. The names "Apache" and "Apache Software Foundation" and + * "Apache POI" must not be used to endorse or promote products + * derived from this software without prior written permission. For + * written permission, please contact apache@apache.org. + * + * 5. Products derived from this software may not be called "Apache", + * "Apache POI", nor may "Apache" appear in their name, without + * prior written permission of the Apache Software Foundation. + * + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * ==================================================================== + * + * This software consists of voluntary contributions made by many + * individuals on behalf of the Apache Software Foundation. For more + * information on the Apache Software Foundation, please see + * . + */ + + +package org.apache.poi.hwpf.model.hdftypes; + +import org.apache.poi.util.LittleEndian; + +public class SectionDescriptor +{ + + private short fn; + private int fc; + private short fnMpr; + private int fcMpr; + + public SectionDescriptor(byte[] buf, int offset) + { + fn = LittleEndian.getShort(buf, offset); + offset += LittleEndian.SHORT_SIZE; + fc = LittleEndian.getInt(buf, offset); + offset += LittleEndian.INT_SIZE; + fnMpr = LittleEndian.getShort(buf, offset); + offset += LittleEndian.SHORT_SIZE; + fcMpr = LittleEndian.getInt(buf, offset); + } + + public int getFc() + { + return fc; + } + +} diff --git a/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/SectionTable.java b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/SectionTable.java new file mode 100644 index 0000000000..94773da1f2 --- /dev/null +++ b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/SectionTable.java @@ -0,0 +1,96 @@ +/* + * ==================================================================== + * The Apache Software License, Version 1.1 + * + * Copyright (c) 2003 The Apache Software Foundation. All rights + * reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * 3. The end-user documentation included with the redistribution, + * if any, must include the following acknowledgment: + * "This product includes software developed by the + * Apache Software Foundation (http://www.apache.org/)." + * Alternately, this acknowledgment may appear in the software itself, + * if and wherever such third-party acknowledgments normally appear. + * + * 4. The names "Apache" and "Apache Software Foundation" and + * "Apache POI" must not be used to endorse or promote products + * derived from this software without prior written permission. For + * written permission, please contact apache@apache.org. + * + * 5. Products derived from this software may not be called "Apache", + * "Apache POI", nor may "Apache" appear in their name, without + * prior written permission of the Apache Software Foundation. + * + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * ==================================================================== + * + * This software consists of voluntary contributions made by many + * individuals on behalf of the Apache Software Foundation. For more + * information on the Apache Software Foundation, please see + * . + */ + + +package org.apache.poi.hwpf.model.hdftypes; + +import java.util.ArrayList; + +public class SectionTable +{ + private static final int SED_SIZE = 12; + + private ArrayList sections; + + public SectionTable(byte[] documentStream, byte[] tableStream, int offset, + int size) + { + PlexOfCps sedPlex = new PlexOfCps(tableStream, offset, size, SED_SIZE); + + int length = sedPlex.length(); + + for (int x = 0; x < length; x++) + { + PropertyNode node = sedPlex.getProperty(x); + SectionDescriptor sed = new SectionDescriptor(node.getBuf(), 0); + + int fileOffset = sed.getFc(); + + // check for the optimization + if (fileOffset == 0xffffffff) + { + sections.add(new SEPX(node.getStart(), node.getEnd(), new byte[0])); + } + else + { + // The first byte at the offset is the size of the grpprl. + byte[] buf = new byte[documentStream[fileOffset++]]; + System.arraycopy(documentStream, fileOffset, buf, 0, buf.length); + sections.add(new SEPX(node.getStart(), node.getEnd(), buf)); + } + } + } + +} diff --git a/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/TextPiece.java b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/TextPiece.java new file mode 100644 index 0000000000..de840221c1 --- /dev/null +++ b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/TextPiece.java @@ -0,0 +1,90 @@ +/* ==================================================================== + * The Apache Software License, Version 1.1 + * + * Copyright (c) 2003 The Apache Software Foundation. All rights + * reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * 3. The end-user documentation included with the redistribution, + * if any, must include the following acknowledgment: + * "This product includes software developed by the + * Apache Software Foundation (http://www.apache.org/)." + * Alternately, this acknowledgment may appear in the software itself, + * if and wherever such third-party acknowledgments normally appear. + * + * 4. The names "Apache" and "Apache Software Foundation" and + * "Apache POI" must not be used to endorse or promote products + * derived from this software without prior written permission. For + * written permission, please contact apache@apache.org. + * + * 5. Products derived from this software may not be called "Apache", + * "Apache POI", nor may "Apache" appear in their name, without + * prior written permission of the Apache Software Foundation. + * + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * ==================================================================== + * + * This software consists of voluntary contributions made by many + * individuals on behalf of the Apache Software Foundation. For more + * information on the Apache Software Foundation, please see + * . + */ + +package org.apache.poi.hwpf.model.hdftypes; + + + +/** + * Lightweight representation of a text piece. + * + * @author Ryan Ackley + */ + +public class TextPiece extends PropertyNode implements Comparable +{ + private boolean _usesUnicode; + private int _length; + + /** + * @param start Offset in main document stream. + * @param length The total length of the text in bytes. Note: 1 character + * does not necessarily refer to 1 byte. + * @param unicode true if this text is unicode. + */ + public TextPiece(int start, int length, boolean unicode) + { + super(start, start + length, null); + _usesUnicode = unicode; + _length = length; + + } + /** + * @return If this text piece uses unicode + */ + public boolean usesUnicode() + { + return _usesUnicode; + } +} diff --git a/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/TextPieceTable.java b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/TextPieceTable.java new file mode 100644 index 0000000000..97373bb5b6 --- /dev/null +++ b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/TextPieceTable.java @@ -0,0 +1,108 @@ +/* + * ==================================================================== + * The Apache Software License, Version 1.1 + * + * Copyright (c) 2003 The Apache Software Foundation. All rights + * reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * 3. The end-user documentation included with the redistribution, + * if any, must include the following acknowledgment: + * "This product includes software developed by the + * Apache Software Foundation (http://www.apache.org/)." + * Alternately, this acknowledgment may appear in the software itself, + * if and wherever such third-party acknowledgments normally appear. + * + * 4. The names "Apache" and "Apache Software Foundation" and + * "Apache POI" must not be used to endorse or promote products + * derived from this software without prior written permission. For + * written permission, please contact apache@apache.org. + * + * 5. Products derived from this software may not be called "Apache", + * "Apache POI", nor may "Apache" appear in their name, without + * prior written permission of the Apache Software Foundation. + * + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * ==================================================================== + * + * This software consists of voluntary contributions made by many + * individuals on behalf of the Apache Software Foundation. For more + * information on the Apache Software Foundation, please see + * . + */ + + +package org.apache.poi.hwpf.model.hdftypes; + + +import java.io.UnsupportedEncodingException; + +public class TextPieceTable +{ + StringBuffer _text = new StringBuffer(); + + public TextPieceTable(byte[] documentStream, byte[] tableStream, int offset, int size) + throws UnsupportedEncodingException + { + PlexOfCps pieceTable = new PlexOfCps(tableStream, offset, size, PieceDescriptor.getSizeInBytes()); + + int multiple = 2; + int length = pieceTable.length(); + PieceDescriptor[] pieces = new PieceDescriptor[length]; + + for (int x = 0; x < length; x++) + { + PropertyNode node = pieceTable.getProperty(x); + pieces[x] = new PieceDescriptor(node.getBuf(), 0); + + if (!pieces[x].isUnicode()) + { + multiple = 1; + } + + } + + for (int x = 0; x < pieces.length; x++) + { + int start = pieces[x].getFilePosition(); + PropertyNode node = pieceTable.getProperty(x); + int textSize = node.getEnd() - node.getStart(); + + boolean unicode = pieces[x].isUnicode(); + String toStr = null; + if (unicode) + { + toStr = new String(documentStream, start, length * multiple, "UTF-16LE"); + } + else + { + toStr = new String(documentStream, start, length, "ISO-8859-1"); + } + _text.append(toStr); + } + + } + +} diff --git a/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/definitions/CHPAbstractType.java b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/definitions/CHPAbstractType.java new file mode 100644 index 0000000000..563720ea69 --- /dev/null +++ b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/definitions/CHPAbstractType.java @@ -0,0 +1,1425 @@ + +/* ==================================================================== + * The Apache Software License, Version 1.1 + * + * Copyright (c) 2003 The Apache Software Foundation. All rights + * reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * 3. The end-user documentation included with the redistribution, + * if any, must include the following acknowledgment: + * "This product includes software developed by the + * Apache Software Foundation (http://www.apache.org/)." + * Alternately, this acknowledgment may appear in the software itself, + * if and wherever such third-party acknowledgments normally appear. + * + * 4. The names "Apache" and "Apache Software Foundation" and + * "Apache POI" must not be used to endorse or promote products + * derived from this software without prior written permission. For + * written permission, please contact apache@apache.org. + * + * 5. Products derived from this software may not be called "Apache", + * "Apache POI", nor may "Apache" appear in their name, without + * prior written permission of the Apache Software Foundation. + * + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * ==================================================================== + * + * This software consists of voluntary contributions made by many + * individuals on behalf of the Apache Software Foundation. For more + * information on the Apache Software Foundation, please see + * . + */ + + +package org.apache.poi.hwpf.model.hdftypes.definitions; + + + +import org.apache.poi.util.BitField; +import org.apache.poi.util.LittleEndian; +import org.apache.poi.util.StringUtil; +import org.apache.poi.util.HexDump; +import org.apache.poi.hwpf.model.hdftypes.HDFType; + +/** + * Character Properties. + * NOTE: This source is automatically generated please do not modify this file. Either subclass or + * remove the record in src/records/definitions. + + * @author S. Ryan Ackley + */ +public abstract class CHPAbstractType + implements HDFType +{ + + private short field_1_chse; + private int field_2_format_flags; + private BitField fBold = new BitField(0x0001); + private BitField fItalic = new BitField(0x0002); + private BitField fRMarkDel = new BitField(0x0004); + private BitField fOutline = new BitField(0x0008); + private BitField fFldVanish = new BitField(0x0010); + private BitField fSmallCaps = new BitField(0x0020); + private BitField fCaps = new BitField(0x0040); + private BitField fVanish = new BitField(0x0080); + private BitField fRMark = new BitField(0x0100); + private BitField fSpec = new BitField(0x0200); + private BitField fStrike = new BitField(0x0400); + private BitField fObj = new BitField(0x0800); + private BitField fShadow = new BitField(0x1000); + private BitField fLowerCase = new BitField(0x2000); + private BitField fData = new BitField(0x4000); + private BitField fOle2 = new BitField(0x8000); + private int field_3_format_flags1; + private BitField fEmboss = new BitField(0x0001); + private BitField fImprint = new BitField(0x0002); + private BitField fDStrike = new BitField(0x0004); + private BitField fUsePgsuSettings = new BitField(0x0008); + private int field_4_ftcAscii; + private int field_5_ftcFE; + private int field_6_ftcOther; + private int field_7_hps; + private int field_8_dxaSpace; + private byte field_9_iss; + private byte field_10_kul; + private byte field_11_ico; + private int field_12_hpsPos; + private int field_13_lidDefault; + private int field_14_lidFE; + private byte field_15_idctHint; + private int field_16_wCharScale; + private int field_17_fcPic; + private int field_18_fcObj; + private int field_19_lTagObj; + private int field_20_ibstRMark; + private int field_21_ibstRMarkDel; + private short[] field_22_dttmRMark; + private short[] field_23_dttmRMarkDel; + private int field_24_istd; + private int field_25_baseIstd; + private int field_26_ftcSym; + private int field_27_xchSym; + private int field_28_idslRMReason; + private int field_29_idslReasonDel; + private byte field_30_ysr; + private byte field_31_chYsr; + private int field_32_hpsKern; + private short field_33_Highlight; + private BitField icoHighlight = new BitField(0x001f); + private BitField fHighlight = new BitField(0x0020); + private BitField kcd = new BitField(0x01c0); + private BitField fNavHighlight = new BitField(0x0200); + private BitField fChsDiff = new BitField(0x0400); + private BitField fMacChs = new BitField(0x0800); + private BitField fFtcAsciSym = new BitField(0x1000); + private short field_34_fPropMark; + private int field_35_ibstPropRMark; + private int field_36_dttmPropRMark; + private byte field_37_sfxtText; + private byte field_38_fDispFldRMark; + private int field_39_ibstDispFldRMark; + private int field_40_dttmDispFldRMark; + private byte[] field_41_xstDispFldRMark; + private int field_42_shd; + private short[] field_43_brc; + + + public CHPAbstractType() + { + + } + + /** + * Size of record (exluding 4 byte header) + */ + public int getSize() + { + return 4 + + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 4 + 1 + 1 + 1 + 2 + 2 + 2 + 1 + 2 + 4 + 4 + 4 + 2 + 2 + 4 + 4 + 2 + 2 + 2 + 2 + 2 + 2 + 1 + 1 + 2 + 2 + 2 + 2 + 4 + 1 + 1 + 2 + 4 + 32 + 2 + 4; + } + + + + /** + * Get the chse field for the CHP record. + */ + public short getChse() + { + return field_1_chse; + } + + /** + * Set the chse field for the CHP record. + */ + public void setChse(short field_1_chse) + { + this.field_1_chse = field_1_chse; + } + + /** + * Get the format_flags field for the CHP record. + */ + public int getFormat_flags() + { + return field_2_format_flags; + } + + /** + * Set the format_flags field for the CHP record. + */ + public void setFormat_flags(int field_2_format_flags) + { + this.field_2_format_flags = field_2_format_flags; + } + + /** + * Get the format_flags1 field for the CHP record. + */ + public int getFormat_flags1() + { + return field_3_format_flags1; + } + + /** + * Set the format_flags1 field for the CHP record. + */ + public void setFormat_flags1(int field_3_format_flags1) + { + this.field_3_format_flags1 = field_3_format_flags1; + } + + /** + * Get the ftcAscii field for the CHP record. + */ + public int getFtcAscii() + { + return field_4_ftcAscii; + } + + /** + * Set the ftcAscii field for the CHP record. + */ + public void setFtcAscii(int field_4_ftcAscii) + { + this.field_4_ftcAscii = field_4_ftcAscii; + } + + /** + * Get the ftcFE field for the CHP record. + */ + public int getFtcFE() + { + return field_5_ftcFE; + } + + /** + * Set the ftcFE field for the CHP record. + */ + public void setFtcFE(int field_5_ftcFE) + { + this.field_5_ftcFE = field_5_ftcFE; + } + + /** + * Get the ftcOther field for the CHP record. + */ + public int getFtcOther() + { + return field_6_ftcOther; + } + + /** + * Set the ftcOther field for the CHP record. + */ + public void setFtcOther(int field_6_ftcOther) + { + this.field_6_ftcOther = field_6_ftcOther; + } + + /** + * Get the hps field for the CHP record. + */ + public int getHps() + { + return field_7_hps; + } + + /** + * Set the hps field for the CHP record. + */ + public void setHps(int field_7_hps) + { + this.field_7_hps = field_7_hps; + } + + /** + * Get the dxaSpace field for the CHP record. + */ + public int getDxaSpace() + { + return field_8_dxaSpace; + } + + /** + * Set the dxaSpace field for the CHP record. + */ + public void setDxaSpace(int field_8_dxaSpace) + { + this.field_8_dxaSpace = field_8_dxaSpace; + } + + /** + * Get the iss field for the CHP record. + */ + public byte getIss() + { + return field_9_iss; + } + + /** + * Set the iss field for the CHP record. + */ + public void setIss(byte field_9_iss) + { + this.field_9_iss = field_9_iss; + } + + /** + * Get the kul field for the CHP record. + */ + public byte getKul() + { + return field_10_kul; + } + + /** + * Set the kul field for the CHP record. + */ + public void setKul(byte field_10_kul) + { + this.field_10_kul = field_10_kul; + } + + /** + * Get the ico field for the CHP record. + */ + public byte getIco() + { + return field_11_ico; + } + + /** + * Set the ico field for the CHP record. + */ + public void setIco(byte field_11_ico) + { + this.field_11_ico = field_11_ico; + } + + /** + * Get the hpsPos field for the CHP record. + */ + public int getHpsPos() + { + return field_12_hpsPos; + } + + /** + * Set the hpsPos field for the CHP record. + */ + public void setHpsPos(int field_12_hpsPos) + { + this.field_12_hpsPos = field_12_hpsPos; + } + + /** + * Get the lidDefault field for the CHP record. + */ + public int getLidDefault() + { + return field_13_lidDefault; + } + + /** + * Set the lidDefault field for the CHP record. + */ + public void setLidDefault(int field_13_lidDefault) + { + this.field_13_lidDefault = field_13_lidDefault; + } + + /** + * Get the lidFE field for the CHP record. + */ + public int getLidFE() + { + return field_14_lidFE; + } + + /** + * Set the lidFE field for the CHP record. + */ + public void setLidFE(int field_14_lidFE) + { + this.field_14_lidFE = field_14_lidFE; + } + + /** + * Get the idctHint field for the CHP record. + */ + public byte getIdctHint() + { + return field_15_idctHint; + } + + /** + * Set the idctHint field for the CHP record. + */ + public void setIdctHint(byte field_15_idctHint) + { + this.field_15_idctHint = field_15_idctHint; + } + + /** + * Get the wCharScale field for the CHP record. + */ + public int getWCharScale() + { + return field_16_wCharScale; + } + + /** + * Set the wCharScale field for the CHP record. + */ + public void setWCharScale(int field_16_wCharScale) + { + this.field_16_wCharScale = field_16_wCharScale; + } + + /** + * Get the fcPic field for the CHP record. + */ + public int getFcPic() + { + return field_17_fcPic; + } + + /** + * Set the fcPic field for the CHP record. + */ + public void setFcPic(int field_17_fcPic) + { + this.field_17_fcPic = field_17_fcPic; + } + + /** + * Get the fcObj field for the CHP record. + */ + public int getFcObj() + { + return field_18_fcObj; + } + + /** + * Set the fcObj field for the CHP record. + */ + public void setFcObj(int field_18_fcObj) + { + this.field_18_fcObj = field_18_fcObj; + } + + /** + * Get the lTagObj field for the CHP record. + */ + public int getLTagObj() + { + return field_19_lTagObj; + } + + /** + * Set the lTagObj field for the CHP record. + */ + public void setLTagObj(int field_19_lTagObj) + { + this.field_19_lTagObj = field_19_lTagObj; + } + + /** + * Get the ibstRMark field for the CHP record. + */ + public int getIbstRMark() + { + return field_20_ibstRMark; + } + + /** + * Set the ibstRMark field for the CHP record. + */ + public void setIbstRMark(int field_20_ibstRMark) + { + this.field_20_ibstRMark = field_20_ibstRMark; + } + + /** + * Get the ibstRMarkDel field for the CHP record. + */ + public int getIbstRMarkDel() + { + return field_21_ibstRMarkDel; + } + + /** + * Set the ibstRMarkDel field for the CHP record. + */ + public void setIbstRMarkDel(int field_21_ibstRMarkDel) + { + this.field_21_ibstRMarkDel = field_21_ibstRMarkDel; + } + + /** + * Get the dttmRMark field for the CHP record. + */ + public short[] getDttmRMark() + { + return field_22_dttmRMark; + } + + /** + * Set the dttmRMark field for the CHP record. + */ + public void setDttmRMark(short[] field_22_dttmRMark) + { + this.field_22_dttmRMark = field_22_dttmRMark; + } + + /** + * Get the dttmRMarkDel field for the CHP record. + */ + public short[] getDttmRMarkDel() + { + return field_23_dttmRMarkDel; + } + + /** + * Set the dttmRMarkDel field for the CHP record. + */ + public void setDttmRMarkDel(short[] field_23_dttmRMarkDel) + { + this.field_23_dttmRMarkDel = field_23_dttmRMarkDel; + } + + /** + * Get the istd field for the CHP record. + */ + public int getIstd() + { + return field_24_istd; + } + + /** + * Set the istd field for the CHP record. + */ + public void setIstd(int field_24_istd) + { + this.field_24_istd = field_24_istd; + } + + /** + * Get the baseIstd field for the CHP record. + */ + public int getBaseIstd() + { + return field_25_baseIstd; + } + + /** + * Set the baseIstd field for the CHP record. + */ + public void setBaseIstd(int field_25_baseIstd) + { + this.field_25_baseIstd = field_25_baseIstd; + } + + /** + * Get the ftcSym field for the CHP record. + */ + public int getFtcSym() + { + return field_26_ftcSym; + } + + /** + * Set the ftcSym field for the CHP record. + */ + public void setFtcSym(int field_26_ftcSym) + { + this.field_26_ftcSym = field_26_ftcSym; + } + + /** + * Get the xchSym field for the CHP record. + */ + public int getXchSym() + { + return field_27_xchSym; + } + + /** + * Set the xchSym field for the CHP record. + */ + public void setXchSym(int field_27_xchSym) + { + this.field_27_xchSym = field_27_xchSym; + } + + /** + * Get the idslRMReason field for the CHP record. + */ + public int getIdslRMReason() + { + return field_28_idslRMReason; + } + + /** + * Set the idslRMReason field for the CHP record. + */ + public void setIdslRMReason(int field_28_idslRMReason) + { + this.field_28_idslRMReason = field_28_idslRMReason; + } + + /** + * Get the idslReasonDel field for the CHP record. + */ + public int getIdslReasonDel() + { + return field_29_idslReasonDel; + } + + /** + * Set the idslReasonDel field for the CHP record. + */ + public void setIdslReasonDel(int field_29_idslReasonDel) + { + this.field_29_idslReasonDel = field_29_idslReasonDel; + } + + /** + * Get the ysr field for the CHP record. + */ + public byte getYsr() + { + return field_30_ysr; + } + + /** + * Set the ysr field for the CHP record. + */ + public void setYsr(byte field_30_ysr) + { + this.field_30_ysr = field_30_ysr; + } + + /** + * Get the chYsr field for the CHP record. + */ + public byte getChYsr() + { + return field_31_chYsr; + } + + /** + * Set the chYsr field for the CHP record. + */ + public void setChYsr(byte field_31_chYsr) + { + this.field_31_chYsr = field_31_chYsr; + } + + /** + * Get the hpsKern field for the CHP record. + */ + public int getHpsKern() + { + return field_32_hpsKern; + } + + /** + * Set the hpsKern field for the CHP record. + */ + public void setHpsKern(int field_32_hpsKern) + { + this.field_32_hpsKern = field_32_hpsKern; + } + + /** + * Get the Highlight field for the CHP record. + */ + public short getHighlight() + { + return field_33_Highlight; + } + + /** + * Set the Highlight field for the CHP record. + */ + public void setHighlight(short field_33_Highlight) + { + this.field_33_Highlight = field_33_Highlight; + } + + /** + * Get the fPropMark field for the CHP record. + */ + public short getFPropMark() + { + return field_34_fPropMark; + } + + /** + * Set the fPropMark field for the CHP record. + */ + public void setFPropMark(short field_34_fPropMark) + { + this.field_34_fPropMark = field_34_fPropMark; + } + + /** + * Get the ibstPropRMark field for the CHP record. + */ + public int getIbstPropRMark() + { + return field_35_ibstPropRMark; + } + + /** + * Set the ibstPropRMark field for the CHP record. + */ + public void setIbstPropRMark(int field_35_ibstPropRMark) + { + this.field_35_ibstPropRMark = field_35_ibstPropRMark; + } + + /** + * Get the dttmPropRMark field for the CHP record. + */ + public int getDttmPropRMark() + { + return field_36_dttmPropRMark; + } + + /** + * Set the dttmPropRMark field for the CHP record. + */ + public void setDttmPropRMark(int field_36_dttmPropRMark) + { + this.field_36_dttmPropRMark = field_36_dttmPropRMark; + } + + /** + * Get the sfxtText field for the CHP record. + */ + public byte getSfxtText() + { + return field_37_sfxtText; + } + + /** + * Set the sfxtText field for the CHP record. + */ + public void setSfxtText(byte field_37_sfxtText) + { + this.field_37_sfxtText = field_37_sfxtText; + } + + /** + * Get the fDispFldRMark field for the CHP record. + */ + public byte getFDispFldRMark() + { + return field_38_fDispFldRMark; + } + + /** + * Set the fDispFldRMark field for the CHP record. + */ + public void setFDispFldRMark(byte field_38_fDispFldRMark) + { + this.field_38_fDispFldRMark = field_38_fDispFldRMark; + } + + /** + * Get the ibstDispFldRMark field for the CHP record. + */ + public int getIbstDispFldRMark() + { + return field_39_ibstDispFldRMark; + } + + /** + * Set the ibstDispFldRMark field for the CHP record. + */ + public void setIbstDispFldRMark(int field_39_ibstDispFldRMark) + { + this.field_39_ibstDispFldRMark = field_39_ibstDispFldRMark; + } + + /** + * Get the dttmDispFldRMark field for the CHP record. + */ + public int getDttmDispFldRMark() + { + return field_40_dttmDispFldRMark; + } + + /** + * Set the dttmDispFldRMark field for the CHP record. + */ + public void setDttmDispFldRMark(int field_40_dttmDispFldRMark) + { + this.field_40_dttmDispFldRMark = field_40_dttmDispFldRMark; + } + + /** + * Get the xstDispFldRMark field for the CHP record. + */ + public byte[] getXstDispFldRMark() + { + return field_41_xstDispFldRMark; + } + + /** + * Set the xstDispFldRMark field for the CHP record. + */ + public void setXstDispFldRMark(byte[] field_41_xstDispFldRMark) + { + this.field_41_xstDispFldRMark = field_41_xstDispFldRMark; + } + + /** + * Get the shd field for the CHP record. + */ + public int getShd() + { + return field_42_shd; + } + + /** + * Set the shd field for the CHP record. + */ + public void setShd(int field_42_shd) + { + this.field_42_shd = field_42_shd; + } + + /** + * Get the brc field for the CHP record. + */ + public short[] getBrc() + { + return field_43_brc; + } + + /** + * Set the brc field for the CHP record. + */ + public void setBrc(short[] field_43_brc) + { + this.field_43_brc = field_43_brc; + } + + /** + * Sets the fBold field value. + * + */ + public void setFBold(boolean value) + { + field_2_format_flags = (int)fBold.setBoolean(field_2_format_flags, value); + + + } + + /** + * + * @return the fBold field value. + */ + public boolean isFBold() + { + return fBold.isSet(field_2_format_flags); + + } + + /** + * Sets the fItalic field value. + * + */ + public void setFItalic(boolean value) + { + field_2_format_flags = (int)fItalic.setBoolean(field_2_format_flags, value); + + + } + + /** + * + * @return the fItalic field value. + */ + public boolean isFItalic() + { + return fItalic.isSet(field_2_format_flags); + + } + + /** + * Sets the fRMarkDel field value. + * + */ + public void setFRMarkDel(boolean value) + { + field_2_format_flags = (int)fRMarkDel.setBoolean(field_2_format_flags, value); + + + } + + /** + * + * @return the fRMarkDel field value. + */ + public boolean isFRMarkDel() + { + return fRMarkDel.isSet(field_2_format_flags); + + } + + /** + * Sets the fOutline field value. + * + */ + public void setFOutline(boolean value) + { + field_2_format_flags = (int)fOutline.setBoolean(field_2_format_flags, value); + + + } + + /** + * + * @return the fOutline field value. + */ + public boolean isFOutline() + { + return fOutline.isSet(field_2_format_flags); + + } + + /** + * Sets the fFldVanish field value. + * + */ + public void setFFldVanish(boolean value) + { + field_2_format_flags = (int)fFldVanish.setBoolean(field_2_format_flags, value); + + + } + + /** + * + * @return the fFldVanish field value. + */ + public boolean isFFldVanish() + { + return fFldVanish.isSet(field_2_format_flags); + + } + + /** + * Sets the fSmallCaps field value. + * + */ + public void setFSmallCaps(boolean value) + { + field_2_format_flags = (int)fSmallCaps.setBoolean(field_2_format_flags, value); + + + } + + /** + * + * @return the fSmallCaps field value. + */ + public boolean isFSmallCaps() + { + return fSmallCaps.isSet(field_2_format_flags); + + } + + /** + * Sets the fCaps field value. + * + */ + public void setFCaps(boolean value) + { + field_2_format_flags = (int)fCaps.setBoolean(field_2_format_flags, value); + + + } + + /** + * + * @return the fCaps field value. + */ + public boolean isFCaps() + { + return fCaps.isSet(field_2_format_flags); + + } + + /** + * Sets the fVanish field value. + * + */ + public void setFVanish(boolean value) + { + field_2_format_flags = (int)fVanish.setBoolean(field_2_format_flags, value); + + + } + + /** + * + * @return the fVanish field value. + */ + public boolean isFVanish() + { + return fVanish.isSet(field_2_format_flags); + + } + + /** + * Sets the fRMark field value. + * + */ + public void setFRMark(boolean value) + { + field_2_format_flags = (int)fRMark.setBoolean(field_2_format_flags, value); + + + } + + /** + * + * @return the fRMark field value. + */ + public boolean isFRMark() + { + return fRMark.isSet(field_2_format_flags); + + } + + /** + * Sets the fSpec field value. + * + */ + public void setFSpec(boolean value) + { + field_2_format_flags = (int)fSpec.setBoolean(field_2_format_flags, value); + + + } + + /** + * + * @return the fSpec field value. + */ + public boolean isFSpec() + { + return fSpec.isSet(field_2_format_flags); + + } + + /** + * Sets the fStrike field value. + * + */ + public void setFStrike(boolean value) + { + field_2_format_flags = (int)fStrike.setBoolean(field_2_format_flags, value); + + + } + + /** + * + * @return the fStrike field value. + */ + public boolean isFStrike() + { + return fStrike.isSet(field_2_format_flags); + + } + + /** + * Sets the fObj field value. + * + */ + public void setFObj(boolean value) + { + field_2_format_flags = (int)fObj.setBoolean(field_2_format_flags, value); + + + } + + /** + * + * @return the fObj field value. + */ + public boolean isFObj() + { + return fObj.isSet(field_2_format_flags); + + } + + /** + * Sets the fShadow field value. + * + */ + public void setFShadow(boolean value) + { + field_2_format_flags = (int)fShadow.setBoolean(field_2_format_flags, value); + + + } + + /** + * + * @return the fShadow field value. + */ + public boolean isFShadow() + { + return fShadow.isSet(field_2_format_flags); + + } + + /** + * Sets the fLowerCase field value. + * + */ + public void setFLowerCase(boolean value) + { + field_2_format_flags = (int)fLowerCase.setBoolean(field_2_format_flags, value); + + + } + + /** + * + * @return the fLowerCase field value. + */ + public boolean isFLowerCase() + { + return fLowerCase.isSet(field_2_format_flags); + + } + + /** + * Sets the fData field value. + * + */ + public void setFData(boolean value) + { + field_2_format_flags = (int)fData.setBoolean(field_2_format_flags, value); + + + } + + /** + * + * @return the fData field value. + */ + public boolean isFData() + { + return fData.isSet(field_2_format_flags); + + } + + /** + * Sets the fOle2 field value. + * + */ + public void setFOle2(boolean value) + { + field_2_format_flags = (int)fOle2.setBoolean(field_2_format_flags, value); + + + } + + /** + * + * @return the fOle2 field value. + */ + public boolean isFOle2() + { + return fOle2.isSet(field_2_format_flags); + + } + + /** + * Sets the fEmboss field value. + * + */ + public void setFEmboss(boolean value) + { + field_3_format_flags1 = (int)fEmboss.setBoolean(field_3_format_flags1, value); + + + } + + /** + * + * @return the fEmboss field value. + */ + public boolean isFEmboss() + { + return fEmboss.isSet(field_3_format_flags1); + + } + + /** + * Sets the fImprint field value. + * + */ + public void setFImprint(boolean value) + { + field_3_format_flags1 = (int)fImprint.setBoolean(field_3_format_flags1, value); + + + } + + /** + * + * @return the fImprint field value. + */ + public boolean isFImprint() + { + return fImprint.isSet(field_3_format_flags1); + + } + + /** + * Sets the fDStrike field value. + * + */ + public void setFDStrike(boolean value) + { + field_3_format_flags1 = (int)fDStrike.setBoolean(field_3_format_flags1, value); + + + } + + /** + * + * @return the fDStrike field value. + */ + public boolean isFDStrike() + { + return fDStrike.isSet(field_3_format_flags1); + + } + + /** + * Sets the fUsePgsuSettings field value. + * + */ + public void setFUsePgsuSettings(boolean value) + { + field_3_format_flags1 = (int)fUsePgsuSettings.setBoolean(field_3_format_flags1, value); + + + } + + /** + * + * @return the fUsePgsuSettings field value. + */ + public boolean isFUsePgsuSettings() + { + return fUsePgsuSettings.isSet(field_3_format_flags1); + + } + + /** + * Sets the icoHighlight field value. + * + */ + public void setIcoHighlight(byte value) + { + field_33_Highlight = (short)icoHighlight.setValue(field_33_Highlight, value); + + + } + + /** + * + * @return the icoHighlight field value. + */ + public byte getIcoHighlight() + { + return ( byte )icoHighlight.getValue(field_33_Highlight); + + } + + /** + * Sets the fHighlight field value. + * + */ + public void setFHighlight(boolean value) + { + field_33_Highlight = (short)fHighlight.setBoolean(field_33_Highlight, value); + + + } + + /** + * + * @return the fHighlight field value. + */ + public boolean isFHighlight() + { + return fHighlight.isSet(field_33_Highlight); + + } + + /** + * Sets the kcd field value. + * + */ + public void setKcd(byte value) + { + field_33_Highlight = (short)kcd.setValue(field_33_Highlight, value); + + + } + + /** + * + * @return the kcd field value. + */ + public byte getKcd() + { + return ( byte )kcd.getValue(field_33_Highlight); + + } + + /** + * Sets the fNavHighlight field value. + * + */ + public void setFNavHighlight(boolean value) + { + field_33_Highlight = (short)fNavHighlight.setBoolean(field_33_Highlight, value); + + + } + + /** + * + * @return the fNavHighlight field value. + */ + public boolean isFNavHighlight() + { + return fNavHighlight.isSet(field_33_Highlight); + + } + + /** + * Sets the fChsDiff field value. + * + */ + public void setFChsDiff(boolean value) + { + field_33_Highlight = (short)fChsDiff.setBoolean(field_33_Highlight, value); + + + } + + /** + * + * @return the fChsDiff field value. + */ + public boolean isFChsDiff() + { + return fChsDiff.isSet(field_33_Highlight); + + } + + /** + * Sets the fMacChs field value. + * + */ + public void setFMacChs(boolean value) + { + field_33_Highlight = (short)fMacChs.setBoolean(field_33_Highlight, value); + + + } + + /** + * + * @return the fMacChs field value. + */ + public boolean isFMacChs() + { + return fMacChs.isSet(field_33_Highlight); + + } + + /** + * Sets the fFtcAsciSym field value. + * + */ + public void setFFtcAsciSym(boolean value) + { + field_33_Highlight = (short)fFtcAsciSym.setBoolean(field_33_Highlight, value); + + + } + + /** + * + * @return the fFtcAsciSym field value. + */ + public boolean isFFtcAsciSym() + { + return fFtcAsciSym.isSet(field_33_Highlight); + + } + + +} // END OF CLASS + + + + diff --git a/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/definitions/DOPAbstractType.java b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/definitions/DOPAbstractType.java new file mode 100644 index 0000000000..10f84beb08 --- /dev/null +++ b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/definitions/DOPAbstractType.java @@ -0,0 +1,3508 @@ + +/* ==================================================================== + * The Apache Software License, Version 1.1 + * + * Copyright (c) 2003 The Apache Software Foundation. All rights + * reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * 3. The end-user documentation included with the redistribution, + * if any, must include the following acknowledgment: + * "This product includes software developed by the + * Apache Software Foundation (http://www.apache.org/)." + * Alternately, this acknowledgment may appear in the software itself, + * if and wherever such third-party acknowledgments normally appear. + * + * 4. The names "Apache" and "Apache Software Foundation" and + * "Apache POI" must not be used to endorse or promote products + * derived from this software without prior written permission. For + * written permission, please contact apache@apache.org. + * + * 5. Products derived from this software may not be called "Apache", + * "Apache POI", nor may "Apache" appear in their name, without + * prior written permission of the Apache Software Foundation. + * + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * ==================================================================== + * + * This software consists of voluntary contributions made by many + * individuals on behalf of the Apache Software Foundation. For more + * information on the Apache Software Foundation, please see + * . + */ + + +package org.apache.poi.hwpf.model.hdftypes.definitions; + + + +import org.apache.poi.util.BitField; +import org.apache.poi.util.LittleEndian; +import org.apache.poi.util.StringUtil; +import org.apache.poi.util.HexDump; +import org.apache.poi.hwpf.model.hdftypes.HDFType; + +/** + * Document Properties. + * NOTE: This source is automatically generated please do not modify this file. Either subclass or + * remove the record in src/records/definitions. + + * @author S. Ryan Ackley + */ +public abstract class DOPAbstractType + implements HDFType +{ + + private byte field_1_formatFlags; + private BitField fFacingPages = new BitField(0x01); + private BitField fWidowControl = new BitField(0x02); + private BitField fPMHMainDoc = new BitField(0x04); + private BitField grfSupression = new BitField(0x18); + private BitField fpc = new BitField(0x60); + private BitField unused1 = new BitField(0x80); + private short field_2_unused2; + private short field_3_footnoteInfo; + private BitField rncFtn = new BitField(0x0003); + private BitField nFtn = new BitField(0xfffc); + private byte field_4_fOutlineDirtySave; + private byte field_5_docinfo; + private BitField fOnlyMacPics = new BitField(0x01); + private BitField fOnlyWinPics = new BitField(0x02); + private BitField fLabelDoc = new BitField(0x04); + private BitField fHyphCapitals = new BitField(0x08); + private BitField fAutoHyphen = new BitField(0x10); + private BitField fFormNoFields = new BitField(0x20); + private BitField fLinkStyles = new BitField(0x40); + private BitField fRevMarking = new BitField(0x80); + private byte field_6_docinfo1; + private BitField fBackup = new BitField(0x01); + private BitField fExactCWords = new BitField(0x02); + private BitField fPagHidden = new BitField(0x04); + private BitField fPagResults = new BitField(0x08); + private BitField fLockAtn = new BitField(0x10); + private BitField fMirrorMargins = new BitField(0x20); + private BitField unused3 = new BitField(0x40); + private BitField fDfltTrueType = new BitField(0x80); + private byte field_7_docinfo2; + private BitField fPagSupressTopSpacing = new BitField(0x01); + private BitField fProtEnabled = new BitField(0x02); + private BitField fDispFormFldSel = new BitField(0x04); + private BitField fRMView = new BitField(0x08); + private BitField fRMPrint = new BitField(0x10); + private BitField unused4 = new BitField(0x20); + private BitField fLockRev = new BitField(0x40); + private BitField fEmbedFonts = new BitField(0x80); + private short field_8_docinfo3; + private BitField oldfNoTabForInd = new BitField(0x0001); + private BitField oldfNoSpaceRaiseLower = new BitField(0x0002); + private BitField oldfSuppressSpbfAfterPageBreak = new BitField(0x0004); + private BitField oldfWrapTrailSpaces = new BitField(0x0008); + private BitField oldfMapPrintTextColor = new BitField(0x0010); + private BitField oldfNoColumnBalance = new BitField(0x0020); + private BitField oldfConvMailMergeEsc = new BitField(0x0040); + private BitField oldfSupressTopSpacing = new BitField(0x0080); + private BitField oldfOrigWordTableRules = new BitField(0x0100); + private BitField oldfTransparentMetafiles = new BitField(0x0200); + private BitField oldfShowBreaksInFrames = new BitField(0x0400); + private BitField oldfSwapBordersFacingPgs = new BitField(0x0800); + private BitField unused5 = new BitField(0xf000); + private int field_9_dxaTab; + private int field_10_wSpare; + private int field_11_dxaHotz; + private int field_12_cConsexHypLim; + private int field_13_wSpare2; + private int field_14_dttmCreated; + private int field_15_dttmRevised; + private int field_16_dttmLastPrint; + private int field_17_nRevision; + private int field_18_tmEdited; + private int field_19_cWords; + private int field_20_cCh; + private int field_21_cPg; + private int field_22_cParas; + private short field_23_Edn; + private BitField rncEdn = new BitField(0x0003); + private BitField nEdn = new BitField(0xfffc); + private short field_24_Edn1; + private BitField epc = new BitField(0x0003); + private BitField nfcFtnRef1 = new BitField(0x003c); + private BitField nfcEdnRef1 = new BitField(0x03c0); + private BitField fPrintFormData = new BitField(0x0400); + private BitField fSaveFormData = new BitField(0x0800); + private BitField fShadeFormData = new BitField(0x1000); + private BitField fWCFtnEdn = new BitField(0x8000); + private int field_25_cLines; + private int field_26_cWordsFtnEnd; + private int field_27_cChFtnEdn; + private short field_28_cPgFtnEdn; + private int field_29_cParasFtnEdn; + private int field_30_cLinesFtnEdn; + private int field_31_lKeyProtDoc; + private short field_32_view; + private BitField wvkSaved = new BitField(0x0007); + private BitField wScaleSaved = new BitField(0x0ff8); + private BitField zkSaved = new BitField(0x3000); + private BitField fRotateFontW6 = new BitField(0x4000); + private BitField iGutterPos = new BitField(0x8000); + private int field_33_docinfo4; + private BitField fNoTabForInd = new BitField(0x00000001); + private BitField fNoSpaceRaiseLower = new BitField(0x00000002); + private BitField fSupressSpdfAfterPageBreak = new BitField(0x00000004); + private BitField fWrapTrailSpaces = new BitField(0x00000008); + private BitField fMapPrintTextColor = new BitField(0x00000010); + private BitField fNoColumnBalance = new BitField(0x00000020); + private BitField fConvMailMergeEsc = new BitField(0x00000040); + private BitField fSupressTopSpacing = new BitField(0x00000080); + private BitField fOrigWordTableRules = new BitField(0x00000100); + private BitField fTransparentMetafiles = new BitField(0x00000200); + private BitField fShowBreaksInFrames = new BitField(0x00000400); + private BitField fSwapBordersFacingPgs = new BitField(0x00000800); + private BitField fSuppressTopSPacingMac5 = new BitField(0x00010000); + private BitField fTruncDxaExpand = new BitField(0x00020000); + private BitField fPrintBodyBeforeHdr = new BitField(0x00040000); + private BitField fNoLeading = new BitField(0x00080000); + private BitField fMWSmallCaps = new BitField(0x00200000); + private short field_34_adt; + private byte[] field_35_doptypography; + private byte[] field_36_dogrid; + private short field_37_docinfo5; + private BitField lvl = new BitField(0x001e); + private BitField fGramAllDone = new BitField(0x0020); + private BitField fGramAllClean = new BitField(0x0040); + private BitField fSubsetFonts = new BitField(0x0080); + private BitField fHideLastVersion = new BitField(0x0100); + private BitField fHtmlDoc = new BitField(0x0200); + private BitField fSnapBorder = new BitField(0x0800); + private BitField fIncludeHeader = new BitField(0x1000); + private BitField fIncludeFooter = new BitField(0x2000); + private BitField fForcePageSizePag = new BitField(0x4000); + private BitField fMinFontSizePag = new BitField(0x8000); + private short field_38_docinfo6; + private BitField fHaveVersions = new BitField(0x0001); + private BitField fAutoVersions = new BitField(0x0002); + private byte[] field_39_asumyi; + private int field_40_cChWS; + private int field_41_cChWSFtnEdn; + private int field_42_grfDocEvents; + private int field_43_virusinfo; + private BitField fVirusPrompted = new BitField(0x0001); + private BitField fVirusLoadSafe = new BitField(0x0002); + private BitField KeyVirusSession30 = new BitField(0xfffffffc); + private byte[] field_44_Spare; + private int field_45_reserved1; + private int field_46_reserved2; + private int field_47_cDBC; + private int field_48_cDBCFtnEdn; + private int field_49_reserved; + private short field_50_nfcFtnRef; + private short field_51_nfcEdnRef; + private short field_52_hpsZoonFontPag; + private short field_53_dywDispPag; + + + public DOPAbstractType() + { + + } + + protected void fillFields(byte [] data, short size, int offset) + { + field_1_formatFlags = data[ 0x0 + offset ]; + field_2_unused2 = LittleEndian.getShort(data, 0x1 + offset); + field_3_footnoteInfo = LittleEndian.getShort(data, 0x3 + offset); + field_4_fOutlineDirtySave = data[ 0x5 + offset ]; + field_5_docinfo = data[ 0x6 + offset ]; + field_6_docinfo1 = data[ 0x7 + offset ]; + field_7_docinfo2 = data[ 0x8 + offset ]; + field_8_docinfo3 = LittleEndian.getShort(data, 0x9 + offset); + field_9_dxaTab = LittleEndian.getShort(data, 0xb + offset); + field_10_wSpare = LittleEndian.getShort(data, 0xd + offset); + field_11_dxaHotz = LittleEndian.getShort(data, 0xf + offset); + field_12_cConsexHypLim = LittleEndian.getShort(data, 0x11 + offset); + field_13_wSpare2 = LittleEndian.getShort(data, 0x13 + offset); + field_14_dttmCreated = LittleEndian.getInt(data, 0x15 + offset); + field_15_dttmRevised = LittleEndian.getInt(data, 0x19 + offset); + field_16_dttmLastPrint = LittleEndian.getInt(data, 0x1d + offset); + field_17_nRevision = LittleEndian.getShort(data, 0x21 + offset); + field_18_tmEdited = LittleEndian.getInt(data, 0x23 + offset); + field_19_cWords = LittleEndian.getInt(data, 0x27 + offset); + field_20_cCh = LittleEndian.getInt(data, 0x2b + offset); + field_21_cPg = LittleEndian.getShort(data, 0x2f + offset); + field_22_cParas = LittleEndian.getInt(data, 0x31 + offset); + field_23_Edn = LittleEndian.getShort(data, 0x35 + offset); + field_24_Edn1 = LittleEndian.getShort(data, 0x37 + offset); + field_25_cLines = LittleEndian.getInt(data, 0x39 + offset); + field_26_cWordsFtnEnd = LittleEndian.getInt(data, 0x3d + offset); + field_27_cChFtnEdn = LittleEndian.getInt(data, 0x41 + offset); + field_28_cPgFtnEdn = LittleEndian.getShort(data, 0x45 + offset); + field_29_cParasFtnEdn = LittleEndian.getInt(data, 0x47 + offset); + field_30_cLinesFtnEdn = LittleEndian.getInt(data, 0x4b + offset); + field_31_lKeyProtDoc = LittleEndian.getInt(data, 0x4f + offset); + field_32_view = LittleEndian.getShort(data, 0x53 + offset); + field_33_docinfo4 = LittleEndian.getInt(data, 0x55 + offset); + field_34_adt = LittleEndian.getShort(data, 0x59 + offset); + field_35_doptypography = LittleEndian.getByteArray(data, 0x5b + offset,310); + field_36_dogrid = LittleEndian.getByteArray(data, 0x191 + offset,10); + field_37_docinfo5 = LittleEndian.getShort(data, 0x19b + offset); + field_38_docinfo6 = LittleEndian.getShort(data, 0x19d + offset); + field_39_asumyi = LittleEndian.getByteArray(data, 0x19f + offset,12); + field_40_cChWS = LittleEndian.getInt(data, 0x1ab + offset); + field_41_cChWSFtnEdn = LittleEndian.getInt(data, 0x1af + offset); + field_42_grfDocEvents = LittleEndian.getInt(data, 0x1b3 + offset); + field_43_virusinfo = LittleEndian.getInt(data, 0x1b7 + offset); + field_44_Spare = LittleEndian.getByteArray(data, 0x1bb + offset,30); + field_45_reserved1 = LittleEndian.getInt(data, 0x1d9 + offset); + field_46_reserved2 = LittleEndian.getInt(data, 0x1dd + offset); + field_47_cDBC = LittleEndian.getInt(data, 0x1e1 + offset); + field_48_cDBCFtnEdn = LittleEndian.getInt(data, 0x1e5 + offset); + field_49_reserved = LittleEndian.getInt(data, 0x1e9 + offset); + field_50_nfcFtnRef = LittleEndian.getShort(data, 0x1ed + offset); + field_51_nfcEdnRef = LittleEndian.getShort(data, 0x1ef + offset); + field_52_hpsZoonFontPag = LittleEndian.getShort(data, 0x1f1 + offset); + field_53_dywDispPag = LittleEndian.getShort(data, 0x1f3 + offset); + + } + + public void serialize(byte[] data, int offset) + { + data[ 0x0 + offset] = field_1_formatFlags;; + LittleEndian.putShort(data, 0x1 + offset, (short)field_2_unused2);; + LittleEndian.putShort(data, 0x3 + offset, (short)field_3_footnoteInfo);; + data[ 0x5 + offset] = field_4_fOutlineDirtySave;; + data[ 0x6 + offset] = field_5_docinfo;; + data[ 0x7 + offset] = field_6_docinfo1;; + data[ 0x8 + offset] = field_7_docinfo2;; + LittleEndian.putShort(data, 0x9 + offset, (short)field_8_docinfo3);; + LittleEndian.putShort(data, 0xb + offset, (short)field_9_dxaTab);; + LittleEndian.putShort(data, 0xd + offset, (short)field_10_wSpare);; + LittleEndian.putShort(data, 0xf + offset, (short)field_11_dxaHotz);; + LittleEndian.putShort(data, 0x11 + offset, (short)field_12_cConsexHypLim);; + LittleEndian.putShort(data, 0x13 + offset, (short)field_13_wSpare2);; + LittleEndian.putInt(data, 0x15 + offset, field_14_dttmCreated);; + LittleEndian.putInt(data, 0x19 + offset, field_15_dttmRevised);; + LittleEndian.putInt(data, 0x1d + offset, field_16_dttmLastPrint);; + LittleEndian.putShort(data, 0x21 + offset, (short)field_17_nRevision);; + LittleEndian.putInt(data, 0x23 + offset, field_18_tmEdited);; + LittleEndian.putInt(data, 0x27 + offset, field_19_cWords);; + LittleEndian.putInt(data, 0x2b + offset, field_20_cCh);; + LittleEndian.putShort(data, 0x2f + offset, (short)field_21_cPg);; + LittleEndian.putInt(data, 0x31 + offset, field_22_cParas);; + LittleEndian.putShort(data, 0x35 + offset, (short)field_23_Edn);; + LittleEndian.putShort(data, 0x37 + offset, (short)field_24_Edn1);; + LittleEndian.putInt(data, 0x39 + offset, field_25_cLines);; + LittleEndian.putInt(data, 0x3d + offset, field_26_cWordsFtnEnd);; + LittleEndian.putInt(data, 0x41 + offset, field_27_cChFtnEdn);; + LittleEndian.putShort(data, 0x45 + offset, (short)field_28_cPgFtnEdn);; + LittleEndian.putInt(data, 0x47 + offset, field_29_cParasFtnEdn);; + LittleEndian.putInt(data, 0x4b + offset, field_30_cLinesFtnEdn);; + LittleEndian.putInt(data, 0x4f + offset, field_31_lKeyProtDoc);; + LittleEndian.putShort(data, 0x53 + offset, (short)field_32_view);; + LittleEndian.putInt(data, 0x55 + offset, field_33_docinfo4);; + LittleEndian.putShort(data, 0x59 + offset, (short)field_34_adt);; + ; + ; + LittleEndian.putShort(data, 0x19b + offset, (short)field_37_docinfo5);; + LittleEndian.putShort(data, 0x19d + offset, (short)field_38_docinfo6);; + ; + LittleEndian.putInt(data, 0x1ab + offset, field_40_cChWS);; + LittleEndian.putInt(data, 0x1af + offset, field_41_cChWSFtnEdn);; + LittleEndian.putInt(data, 0x1b3 + offset, field_42_grfDocEvents);; + LittleEndian.putInt(data, 0x1b7 + offset, field_43_virusinfo);; + ; + LittleEndian.putInt(data, 0x1d9 + offset, field_45_reserved1);; + LittleEndian.putInt(data, 0x1dd + offset, field_46_reserved2);; + LittleEndian.putInt(data, 0x1e1 + offset, field_47_cDBC);; + LittleEndian.putInt(data, 0x1e5 + offset, field_48_cDBCFtnEdn);; + LittleEndian.putInt(data, 0x1e9 + offset, field_49_reserved);; + LittleEndian.putShort(data, 0x1ed + offset, (short)field_50_nfcFtnRef);; + LittleEndian.putShort(data, 0x1ef + offset, (short)field_51_nfcEdnRef);; + LittleEndian.putShort(data, 0x1f1 + offset, (short)field_52_hpsZoonFontPag);; + LittleEndian.putShort(data, 0x1f3 + offset, (short)field_53_dywDispPag);; + + } + + public String toString() + { + StringBuffer buffer = new StringBuffer(); + + buffer.append("[DOP]\n"); + + buffer.append(" .formatFlags = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((byte)getFormatFlags())); + buffer.append(" (").append(getFormatFlags()).append(" )\n"); + buffer.append(" .fFacingPages = ").append(isFFacingPages()).append('\n'); + buffer.append(" .fWidowControl = ").append(isFWidowControl()).append('\n'); + buffer.append(" .fPMHMainDoc = ").append(isFPMHMainDoc()).append('\n'); + buffer.append(" .grfSupression = ").append(getGrfSupression()).append('\n'); + buffer.append(" .fpc = ").append(getFpc()).append('\n'); + buffer.append(" .unused1 = ").append(isUnused1()).append('\n'); + + buffer.append(" .unused2 = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((short)getUnused2())); + buffer.append(" (").append(getUnused2()).append(" )\n"); + + buffer.append(" .footnoteInfo = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((short)getFootnoteInfo())); + buffer.append(" (").append(getFootnoteInfo()).append(" )\n"); + buffer.append(" .rncFtn = ").append(getRncFtn()).append('\n'); + buffer.append(" .nFtn = ").append(getNFtn()).append('\n'); + + buffer.append(" .fOutlineDirtySave = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((byte)getFOutlineDirtySave())); + buffer.append(" (").append(getFOutlineDirtySave()).append(" )\n"); + + buffer.append(" .docinfo = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((byte)getDocinfo())); + buffer.append(" (").append(getDocinfo()).append(" )\n"); + buffer.append(" .fOnlyMacPics = ").append(isFOnlyMacPics()).append('\n'); + buffer.append(" .fOnlyWinPics = ").append(isFOnlyWinPics()).append('\n'); + buffer.append(" .fLabelDoc = ").append(isFLabelDoc()).append('\n'); + buffer.append(" .fHyphCapitals = ").append(isFHyphCapitals()).append('\n'); + buffer.append(" .fAutoHyphen = ").append(isFAutoHyphen()).append('\n'); + buffer.append(" .fFormNoFields = ").append(isFFormNoFields()).append('\n'); + buffer.append(" .fLinkStyles = ").append(isFLinkStyles()).append('\n'); + buffer.append(" .fRevMarking = ").append(isFRevMarking()).append('\n'); + + buffer.append(" .docinfo1 = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((byte)getDocinfo1())); + buffer.append(" (").append(getDocinfo1()).append(" )\n"); + buffer.append(" .fBackup = ").append(isFBackup()).append('\n'); + buffer.append(" .fExactCWords = ").append(isFExactCWords()).append('\n'); + buffer.append(" .fPagHidden = ").append(isFPagHidden()).append('\n'); + buffer.append(" .fPagResults = ").append(isFPagResults()).append('\n'); + buffer.append(" .fLockAtn = ").append(isFLockAtn()).append('\n'); + buffer.append(" .fMirrorMargins = ").append(isFMirrorMargins()).append('\n'); + buffer.append(" .unused3 = ").append(isUnused3()).append('\n'); + buffer.append(" .fDfltTrueType = ").append(isFDfltTrueType()).append('\n'); + + buffer.append(" .docinfo2 = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((byte)getDocinfo2())); + buffer.append(" (").append(getDocinfo2()).append(" )\n"); + buffer.append(" .fPagSupressTopSpacing = ").append(isFPagSupressTopSpacing()).append('\n'); + buffer.append(" .fProtEnabled = ").append(isFProtEnabled()).append('\n'); + buffer.append(" .fDispFormFldSel = ").append(isFDispFormFldSel()).append('\n'); + buffer.append(" .fRMView = ").append(isFRMView()).append('\n'); + buffer.append(" .fRMPrint = ").append(isFRMPrint()).append('\n'); + buffer.append(" .unused4 = ").append(isUnused4()).append('\n'); + buffer.append(" .fLockRev = ").append(isFLockRev()).append('\n'); + buffer.append(" .fEmbedFonts = ").append(isFEmbedFonts()).append('\n'); + + buffer.append(" .docinfo3 = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((short)getDocinfo3())); + buffer.append(" (").append(getDocinfo3()).append(" )\n"); + buffer.append(" .oldfNoTabForInd = ").append(isOldfNoTabForInd()).append('\n'); + buffer.append(" .oldfNoSpaceRaiseLower = ").append(isOldfNoSpaceRaiseLower()).append('\n'); + buffer.append(" .oldfSuppressSpbfAfterPageBreak = ").append(isOldfSuppressSpbfAfterPageBreak()).append('\n'); + buffer.append(" .oldfWrapTrailSpaces = ").append(isOldfWrapTrailSpaces()).append('\n'); + buffer.append(" .oldfMapPrintTextColor = ").append(isOldfMapPrintTextColor()).append('\n'); + buffer.append(" .oldfNoColumnBalance = ").append(isOldfNoColumnBalance()).append('\n'); + buffer.append(" .oldfConvMailMergeEsc = ").append(isOldfConvMailMergeEsc()).append('\n'); + buffer.append(" .oldfSupressTopSpacing = ").append(isOldfSupressTopSpacing()).append('\n'); + buffer.append(" .oldfOrigWordTableRules = ").append(isOldfOrigWordTableRules()).append('\n'); + buffer.append(" .oldfTransparentMetafiles = ").append(isOldfTransparentMetafiles()).append('\n'); + buffer.append(" .oldfShowBreaksInFrames = ").append(isOldfShowBreaksInFrames()).append('\n'); + buffer.append(" .oldfSwapBordersFacingPgs = ").append(isOldfSwapBordersFacingPgs()).append('\n'); + buffer.append(" .unused5 = ").append(getUnused5()).append('\n'); + + buffer.append(" .dxaTab = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getDxaTab())); + buffer.append(" (").append(getDxaTab()).append(" )\n"); + + buffer.append(" .wSpare = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getWSpare())); + buffer.append(" (").append(getWSpare()).append(" )\n"); + + buffer.append(" .dxaHotz = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getDxaHotz())); + buffer.append(" (").append(getDxaHotz()).append(" )\n"); + + buffer.append(" .cConsexHypLim = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getCConsexHypLim())); + buffer.append(" (").append(getCConsexHypLim()).append(" )\n"); + + buffer.append(" .wSpare2 = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getWSpare2())); + buffer.append(" (").append(getWSpare2()).append(" )\n"); + + buffer.append(" .dttmCreated = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getDttmCreated())); + buffer.append(" (").append(getDttmCreated()).append(" )\n"); + + buffer.append(" .dttmRevised = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getDttmRevised())); + buffer.append(" (").append(getDttmRevised()).append(" )\n"); + + buffer.append(" .dttmLastPrint = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getDttmLastPrint())); + buffer.append(" (").append(getDttmLastPrint()).append(" )\n"); + + buffer.append(" .nRevision = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getNRevision())); + buffer.append(" (").append(getNRevision()).append(" )\n"); + + buffer.append(" .tmEdited = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getTmEdited())); + buffer.append(" (").append(getTmEdited()).append(" )\n"); + + buffer.append(" .cWords = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getCWords())); + buffer.append(" (").append(getCWords()).append(" )\n"); + + buffer.append(" .cCh = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getCCh())); + buffer.append(" (").append(getCCh()).append(" )\n"); + + buffer.append(" .cPg = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getCPg())); + buffer.append(" (").append(getCPg()).append(" )\n"); + + buffer.append(" .cParas = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getCParas())); + buffer.append(" (").append(getCParas()).append(" )\n"); + + buffer.append(" .Edn = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((short)getEdn())); + buffer.append(" (").append(getEdn()).append(" )\n"); + buffer.append(" .rncEdn = ").append(getRncEdn()).append('\n'); + buffer.append(" .nEdn = ").append(getNEdn()).append('\n'); + + buffer.append(" .Edn1 = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((short)getEdn1())); + buffer.append(" (").append(getEdn1()).append(" )\n"); + buffer.append(" .epc = ").append(getEpc()).append('\n'); + buffer.append(" .nfcFtnRef1 = ").append(getNfcFtnRef1()).append('\n'); + buffer.append(" .nfcEdnRef1 = ").append(getNfcEdnRef1()).append('\n'); + buffer.append(" .fPrintFormData = ").append(isFPrintFormData()).append('\n'); + buffer.append(" .fSaveFormData = ").append(isFSaveFormData()).append('\n'); + buffer.append(" .fShadeFormData = ").append(isFShadeFormData()).append('\n'); + buffer.append(" .fWCFtnEdn = ").append(isFWCFtnEdn()).append('\n'); + + buffer.append(" .cLines = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getCLines())); + buffer.append(" (").append(getCLines()).append(" )\n"); + + buffer.append(" .cWordsFtnEnd = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getCWordsFtnEnd())); + buffer.append(" (").append(getCWordsFtnEnd()).append(" )\n"); + + buffer.append(" .cChFtnEdn = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getCChFtnEdn())); + buffer.append(" (").append(getCChFtnEdn()).append(" )\n"); + + buffer.append(" .cPgFtnEdn = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((short)getCPgFtnEdn())); + buffer.append(" (").append(getCPgFtnEdn()).append(" )\n"); + + buffer.append(" .cParasFtnEdn = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getCParasFtnEdn())); + buffer.append(" (").append(getCParasFtnEdn()).append(" )\n"); + + buffer.append(" .cLinesFtnEdn = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getCLinesFtnEdn())); + buffer.append(" (").append(getCLinesFtnEdn()).append(" )\n"); + + buffer.append(" .lKeyProtDoc = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLKeyProtDoc())); + buffer.append(" (").append(getLKeyProtDoc()).append(" )\n"); + + buffer.append(" .view = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((short)getView())); + buffer.append(" (").append(getView()).append(" )\n"); + buffer.append(" .wvkSaved = ").append(getWvkSaved()).append('\n'); + buffer.append(" .wScaleSaved = ").append(getWScaleSaved()).append('\n'); + buffer.append(" .zkSaved = ").append(getZkSaved()).append('\n'); + buffer.append(" .fRotateFontW6 = ").append(isFRotateFontW6()).append('\n'); + buffer.append(" .iGutterPos = ").append(isIGutterPos()).append('\n'); + + buffer.append(" .docinfo4 = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getDocinfo4())); + buffer.append(" (").append(getDocinfo4()).append(" )\n"); + buffer.append(" .fNoTabForInd = ").append(isFNoTabForInd()).append('\n'); + buffer.append(" .fNoSpaceRaiseLower = ").append(isFNoSpaceRaiseLower()).append('\n'); + buffer.append(" .fSupressSpdfAfterPageBreak = ").append(isFSupressSpdfAfterPageBreak()).append('\n'); + buffer.append(" .fWrapTrailSpaces = ").append(isFWrapTrailSpaces()).append('\n'); + buffer.append(" .fMapPrintTextColor = ").append(isFMapPrintTextColor()).append('\n'); + buffer.append(" .fNoColumnBalance = ").append(isFNoColumnBalance()).append('\n'); + buffer.append(" .fConvMailMergeEsc = ").append(isFConvMailMergeEsc()).append('\n'); + buffer.append(" .fSupressTopSpacing = ").append(isFSupressTopSpacing()).append('\n'); + buffer.append(" .fOrigWordTableRules = ").append(isFOrigWordTableRules()).append('\n'); + buffer.append(" .fTransparentMetafiles = ").append(isFTransparentMetafiles()).append('\n'); + buffer.append(" .fShowBreaksInFrames = ").append(isFShowBreaksInFrames()).append('\n'); + buffer.append(" .fSwapBordersFacingPgs = ").append(isFSwapBordersFacingPgs()).append('\n'); + buffer.append(" .fSuppressTopSPacingMac5 = ").append(isFSuppressTopSPacingMac5()).append('\n'); + buffer.append(" .fTruncDxaExpand = ").append(isFTruncDxaExpand()).append('\n'); + buffer.append(" .fPrintBodyBeforeHdr = ").append(isFPrintBodyBeforeHdr()).append('\n'); + buffer.append(" .fNoLeading = ").append(isFNoLeading()).append('\n'); + buffer.append(" .fMWSmallCaps = ").append(isFMWSmallCaps()).append('\n'); + + buffer.append(" .adt = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((short)getAdt())); + buffer.append(" (").append(getAdt()).append(" )\n"); + + buffer.append(" .doptypography = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((byte[])getDoptypography())); + buffer.append(" (").append(getDoptypography()).append(" )\n"); + + buffer.append(" .dogrid = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((byte[])getDogrid())); + buffer.append(" (").append(getDogrid()).append(" )\n"); + + buffer.append(" .docinfo5 = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((short)getDocinfo5())); + buffer.append(" (").append(getDocinfo5()).append(" )\n"); + buffer.append(" .lvl = ").append(getLvl()).append('\n'); + buffer.append(" .fGramAllDone = ").append(isFGramAllDone()).append('\n'); + buffer.append(" .fGramAllClean = ").append(isFGramAllClean()).append('\n'); + buffer.append(" .fSubsetFonts = ").append(isFSubsetFonts()).append('\n'); + buffer.append(" .fHideLastVersion = ").append(isFHideLastVersion()).append('\n'); + buffer.append(" .fHtmlDoc = ").append(isFHtmlDoc()).append('\n'); + buffer.append(" .fSnapBorder = ").append(isFSnapBorder()).append('\n'); + buffer.append(" .fIncludeHeader = ").append(isFIncludeHeader()).append('\n'); + buffer.append(" .fIncludeFooter = ").append(isFIncludeFooter()).append('\n'); + buffer.append(" .fForcePageSizePag = ").append(isFForcePageSizePag()).append('\n'); + buffer.append(" .fMinFontSizePag = ").append(isFMinFontSizePag()).append('\n'); + + buffer.append(" .docinfo6 = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((short)getDocinfo6())); + buffer.append(" (").append(getDocinfo6()).append(" )\n"); + buffer.append(" .fHaveVersions = ").append(isFHaveVersions()).append('\n'); + buffer.append(" .fAutoVersions = ").append(isFAutoVersions()).append('\n'); + + buffer.append(" .asumyi = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((byte[])getAsumyi())); + buffer.append(" (").append(getAsumyi()).append(" )\n"); + + buffer.append(" .cChWS = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getCChWS())); + buffer.append(" (").append(getCChWS()).append(" )\n"); + + buffer.append(" .cChWSFtnEdn = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getCChWSFtnEdn())); + buffer.append(" (").append(getCChWSFtnEdn()).append(" )\n"); + + buffer.append(" .grfDocEvents = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getGrfDocEvents())); + buffer.append(" (").append(getGrfDocEvents()).append(" )\n"); + + buffer.append(" .virusinfo = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getVirusinfo())); + buffer.append(" (").append(getVirusinfo()).append(" )\n"); + buffer.append(" .fVirusPrompted = ").append(isFVirusPrompted()).append('\n'); + buffer.append(" .fVirusLoadSafe = ").append(isFVirusLoadSafe()).append('\n'); + buffer.append(" .KeyVirusSession30 = ").append(getKeyVirusSession30()).append('\n'); + + buffer.append(" .Spare = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((byte[])getSpare())); + buffer.append(" (").append(getSpare()).append(" )\n"); + + buffer.append(" .reserved1 = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getReserved1())); + buffer.append(" (").append(getReserved1()).append(" )\n"); + + buffer.append(" .reserved2 = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getReserved2())); + buffer.append(" (").append(getReserved2()).append(" )\n"); + + buffer.append(" .cDBC = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getCDBC())); + buffer.append(" (").append(getCDBC()).append(" )\n"); + + buffer.append(" .cDBCFtnEdn = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getCDBCFtnEdn())); + buffer.append(" (").append(getCDBCFtnEdn()).append(" )\n"); + + buffer.append(" .reserved = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getReserved())); + buffer.append(" (").append(getReserved()).append(" )\n"); + + buffer.append(" .nfcFtnRef = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((short)getNfcFtnRef())); + buffer.append(" (").append(getNfcFtnRef()).append(" )\n"); + + buffer.append(" .nfcEdnRef = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((short)getNfcEdnRef())); + buffer.append(" (").append(getNfcEdnRef()).append(" )\n"); + + buffer.append(" .hpsZoonFontPag = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((short)getHpsZoonFontPag())); + buffer.append(" (").append(getHpsZoonFontPag()).append(" )\n"); + + buffer.append(" .dywDispPag = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((short)getDywDispPag())); + buffer.append(" (").append(getDywDispPag()).append(" )\n"); + + buffer.append("[/DOP]\n"); + return buffer.toString(); + } + + /** + * Size of record (exluding 4 byte header) + */ + public int getSize() + { + return 4 + + 1 + 2 + 2 + 1 + 1 + 1 + 1 + 2 + 2 + 2 + 2 + 2 + 2 + 4 + 4 + 4 + 2 + 4 + 4 + 4 + 2 + 4 + 2 + 2 + 4 + 4 + 4 + 2 + 4 + 4 + 4 + 2 + 4 + 2 + 310 + 10 + 2 + 2 + 12 + 4 + 4 + 4 + 4 + 30 + 4 + 4 + 4 + 4 + 4 + 2 + 2 + 2 + 2; + } + + + + /** + * Get the formatFlags field for the DOP record. + */ + public byte getFormatFlags() + { + return field_1_formatFlags; + } + + /** + * Set the formatFlags field for the DOP record. + */ + public void setFormatFlags(byte field_1_formatFlags) + { + this.field_1_formatFlags = field_1_formatFlags; + } + + /** + * Get the unused2 field for the DOP record. + */ + public short getUnused2() + { + return field_2_unused2; + } + + /** + * Set the unused2 field for the DOP record. + */ + public void setUnused2(short field_2_unused2) + { + this.field_2_unused2 = field_2_unused2; + } + + /** + * Get the footnoteInfo field for the DOP record. + */ + public short getFootnoteInfo() + { + return field_3_footnoteInfo; + } + + /** + * Set the footnoteInfo field for the DOP record. + */ + public void setFootnoteInfo(short field_3_footnoteInfo) + { + this.field_3_footnoteInfo = field_3_footnoteInfo; + } + + /** + * Get the fOutlineDirtySave field for the DOP record. + */ + public byte getFOutlineDirtySave() + { + return field_4_fOutlineDirtySave; + } + + /** + * Set the fOutlineDirtySave field for the DOP record. + */ + public void setFOutlineDirtySave(byte field_4_fOutlineDirtySave) + { + this.field_4_fOutlineDirtySave = field_4_fOutlineDirtySave; + } + + /** + * Get the docinfo field for the DOP record. + */ + public byte getDocinfo() + { + return field_5_docinfo; + } + + /** + * Set the docinfo field for the DOP record. + */ + public void setDocinfo(byte field_5_docinfo) + { + this.field_5_docinfo = field_5_docinfo; + } + + /** + * Get the docinfo1 field for the DOP record. + */ + public byte getDocinfo1() + { + return field_6_docinfo1; + } + + /** + * Set the docinfo1 field for the DOP record. + */ + public void setDocinfo1(byte field_6_docinfo1) + { + this.field_6_docinfo1 = field_6_docinfo1; + } + + /** + * Get the docinfo2 field for the DOP record. + */ + public byte getDocinfo2() + { + return field_7_docinfo2; + } + + /** + * Set the docinfo2 field for the DOP record. + */ + public void setDocinfo2(byte field_7_docinfo2) + { + this.field_7_docinfo2 = field_7_docinfo2; + } + + /** + * Get the docinfo3 field for the DOP record. + */ + public short getDocinfo3() + { + return field_8_docinfo3; + } + + /** + * Set the docinfo3 field for the DOP record. + */ + public void setDocinfo3(short field_8_docinfo3) + { + this.field_8_docinfo3 = field_8_docinfo3; + } + + /** + * Get the dxaTab field for the DOP record. + */ + public int getDxaTab() + { + return field_9_dxaTab; + } + + /** + * Set the dxaTab field for the DOP record. + */ + public void setDxaTab(int field_9_dxaTab) + { + this.field_9_dxaTab = field_9_dxaTab; + } + + /** + * Get the wSpare field for the DOP record. + */ + public int getWSpare() + { + return field_10_wSpare; + } + + /** + * Set the wSpare field for the DOP record. + */ + public void setWSpare(int field_10_wSpare) + { + this.field_10_wSpare = field_10_wSpare; + } + + /** + * Get the dxaHotz field for the DOP record. + */ + public int getDxaHotz() + { + return field_11_dxaHotz; + } + + /** + * Set the dxaHotz field for the DOP record. + */ + public void setDxaHotz(int field_11_dxaHotz) + { + this.field_11_dxaHotz = field_11_dxaHotz; + } + + /** + * Get the cConsexHypLim field for the DOP record. + */ + public int getCConsexHypLim() + { + return field_12_cConsexHypLim; + } + + /** + * Set the cConsexHypLim field for the DOP record. + */ + public void setCConsexHypLim(int field_12_cConsexHypLim) + { + this.field_12_cConsexHypLim = field_12_cConsexHypLim; + } + + /** + * Get the wSpare2 field for the DOP record. + */ + public int getWSpare2() + { + return field_13_wSpare2; + } + + /** + * Set the wSpare2 field for the DOP record. + */ + public void setWSpare2(int field_13_wSpare2) + { + this.field_13_wSpare2 = field_13_wSpare2; + } + + /** + * Get the dttmCreated field for the DOP record. + */ + public int getDttmCreated() + { + return field_14_dttmCreated; + } + + /** + * Set the dttmCreated field for the DOP record. + */ + public void setDttmCreated(int field_14_dttmCreated) + { + this.field_14_dttmCreated = field_14_dttmCreated; + } + + /** + * Get the dttmRevised field for the DOP record. + */ + public int getDttmRevised() + { + return field_15_dttmRevised; + } + + /** + * Set the dttmRevised field for the DOP record. + */ + public void setDttmRevised(int field_15_dttmRevised) + { + this.field_15_dttmRevised = field_15_dttmRevised; + } + + /** + * Get the dttmLastPrint field for the DOP record. + */ + public int getDttmLastPrint() + { + return field_16_dttmLastPrint; + } + + /** + * Set the dttmLastPrint field for the DOP record. + */ + public void setDttmLastPrint(int field_16_dttmLastPrint) + { + this.field_16_dttmLastPrint = field_16_dttmLastPrint; + } + + /** + * Get the nRevision field for the DOP record. + */ + public int getNRevision() + { + return field_17_nRevision; + } + + /** + * Set the nRevision field for the DOP record. + */ + public void setNRevision(int field_17_nRevision) + { + this.field_17_nRevision = field_17_nRevision; + } + + /** + * Get the tmEdited field for the DOP record. + */ + public int getTmEdited() + { + return field_18_tmEdited; + } + + /** + * Set the tmEdited field for the DOP record. + */ + public void setTmEdited(int field_18_tmEdited) + { + this.field_18_tmEdited = field_18_tmEdited; + } + + /** + * Get the cWords field for the DOP record. + */ + public int getCWords() + { + return field_19_cWords; + } + + /** + * Set the cWords field for the DOP record. + */ + public void setCWords(int field_19_cWords) + { + this.field_19_cWords = field_19_cWords; + } + + /** + * Get the cCh field for the DOP record. + */ + public int getCCh() + { + return field_20_cCh; + } + + /** + * Set the cCh field for the DOP record. + */ + public void setCCh(int field_20_cCh) + { + this.field_20_cCh = field_20_cCh; + } + + /** + * Get the cPg field for the DOP record. + */ + public int getCPg() + { + return field_21_cPg; + } + + /** + * Set the cPg field for the DOP record. + */ + public void setCPg(int field_21_cPg) + { + this.field_21_cPg = field_21_cPg; + } + + /** + * Get the cParas field for the DOP record. + */ + public int getCParas() + { + return field_22_cParas; + } + + /** + * Set the cParas field for the DOP record. + */ + public void setCParas(int field_22_cParas) + { + this.field_22_cParas = field_22_cParas; + } + + /** + * Get the Edn field for the DOP record. + */ + public short getEdn() + { + return field_23_Edn; + } + + /** + * Set the Edn field for the DOP record. + */ + public void setEdn(short field_23_Edn) + { + this.field_23_Edn = field_23_Edn; + } + + /** + * Get the Edn1 field for the DOP record. + */ + public short getEdn1() + { + return field_24_Edn1; + } + + /** + * Set the Edn1 field for the DOP record. + */ + public void setEdn1(short field_24_Edn1) + { + this.field_24_Edn1 = field_24_Edn1; + } + + /** + * Get the cLines field for the DOP record. + */ + public int getCLines() + { + return field_25_cLines; + } + + /** + * Set the cLines field for the DOP record. + */ + public void setCLines(int field_25_cLines) + { + this.field_25_cLines = field_25_cLines; + } + + /** + * Get the cWordsFtnEnd field for the DOP record. + */ + public int getCWordsFtnEnd() + { + return field_26_cWordsFtnEnd; + } + + /** + * Set the cWordsFtnEnd field for the DOP record. + */ + public void setCWordsFtnEnd(int field_26_cWordsFtnEnd) + { + this.field_26_cWordsFtnEnd = field_26_cWordsFtnEnd; + } + + /** + * Get the cChFtnEdn field for the DOP record. + */ + public int getCChFtnEdn() + { + return field_27_cChFtnEdn; + } + + /** + * Set the cChFtnEdn field for the DOP record. + */ + public void setCChFtnEdn(int field_27_cChFtnEdn) + { + this.field_27_cChFtnEdn = field_27_cChFtnEdn; + } + + /** + * Get the cPgFtnEdn field for the DOP record. + */ + public short getCPgFtnEdn() + { + return field_28_cPgFtnEdn; + } + + /** + * Set the cPgFtnEdn field for the DOP record. + */ + public void setCPgFtnEdn(short field_28_cPgFtnEdn) + { + this.field_28_cPgFtnEdn = field_28_cPgFtnEdn; + } + + /** + * Get the cParasFtnEdn field for the DOP record. + */ + public int getCParasFtnEdn() + { + return field_29_cParasFtnEdn; + } + + /** + * Set the cParasFtnEdn field for the DOP record. + */ + public void setCParasFtnEdn(int field_29_cParasFtnEdn) + { + this.field_29_cParasFtnEdn = field_29_cParasFtnEdn; + } + + /** + * Get the cLinesFtnEdn field for the DOP record. + */ + public int getCLinesFtnEdn() + { + return field_30_cLinesFtnEdn; + } + + /** + * Set the cLinesFtnEdn field for the DOP record. + */ + public void setCLinesFtnEdn(int field_30_cLinesFtnEdn) + { + this.field_30_cLinesFtnEdn = field_30_cLinesFtnEdn; + } + + /** + * Get the lKeyProtDoc field for the DOP record. + */ + public int getLKeyProtDoc() + { + return field_31_lKeyProtDoc; + } + + /** + * Set the lKeyProtDoc field for the DOP record. + */ + public void setLKeyProtDoc(int field_31_lKeyProtDoc) + { + this.field_31_lKeyProtDoc = field_31_lKeyProtDoc; + } + + /** + * Get the view field for the DOP record. + */ + public short getView() + { + return field_32_view; + } + + /** + * Set the view field for the DOP record. + */ + public void setView(short field_32_view) + { + this.field_32_view = field_32_view; + } + + /** + * Get the docinfo4 field for the DOP record. + */ + public int getDocinfo4() + { + return field_33_docinfo4; + } + + /** + * Set the docinfo4 field for the DOP record. + */ + public void setDocinfo4(int field_33_docinfo4) + { + this.field_33_docinfo4 = field_33_docinfo4; + } + + /** + * Get the adt field for the DOP record. + */ + public short getAdt() + { + return field_34_adt; + } + + /** + * Set the adt field for the DOP record. + */ + public void setAdt(short field_34_adt) + { + this.field_34_adt = field_34_adt; + } + + /** + * Get the doptypography field for the DOP record. + */ + public byte[] getDoptypography() + { + return field_35_doptypography; + } + + /** + * Set the doptypography field for the DOP record. + */ + public void setDoptypography(byte[] field_35_doptypography) + { + this.field_35_doptypography = field_35_doptypography; + } + + /** + * Get the dogrid field for the DOP record. + */ + public byte[] getDogrid() + { + return field_36_dogrid; + } + + /** + * Set the dogrid field for the DOP record. + */ + public void setDogrid(byte[] field_36_dogrid) + { + this.field_36_dogrid = field_36_dogrid; + } + + /** + * Get the docinfo5 field for the DOP record. + */ + public short getDocinfo5() + { + return field_37_docinfo5; + } + + /** + * Set the docinfo5 field for the DOP record. + */ + public void setDocinfo5(short field_37_docinfo5) + { + this.field_37_docinfo5 = field_37_docinfo5; + } + + /** + * Get the docinfo6 field for the DOP record. + */ + public short getDocinfo6() + { + return field_38_docinfo6; + } + + /** + * Set the docinfo6 field for the DOP record. + */ + public void setDocinfo6(short field_38_docinfo6) + { + this.field_38_docinfo6 = field_38_docinfo6; + } + + /** + * Get the asumyi field for the DOP record. + */ + public byte[] getAsumyi() + { + return field_39_asumyi; + } + + /** + * Set the asumyi field for the DOP record. + */ + public void setAsumyi(byte[] field_39_asumyi) + { + this.field_39_asumyi = field_39_asumyi; + } + + /** + * Get the cChWS field for the DOP record. + */ + public int getCChWS() + { + return field_40_cChWS; + } + + /** + * Set the cChWS field for the DOP record. + */ + public void setCChWS(int field_40_cChWS) + { + this.field_40_cChWS = field_40_cChWS; + } + + /** + * Get the cChWSFtnEdn field for the DOP record. + */ + public int getCChWSFtnEdn() + { + return field_41_cChWSFtnEdn; + } + + /** + * Set the cChWSFtnEdn field for the DOP record. + */ + public void setCChWSFtnEdn(int field_41_cChWSFtnEdn) + { + this.field_41_cChWSFtnEdn = field_41_cChWSFtnEdn; + } + + /** + * Get the grfDocEvents field for the DOP record. + */ + public int getGrfDocEvents() + { + return field_42_grfDocEvents; + } + + /** + * Set the grfDocEvents field for the DOP record. + */ + public void setGrfDocEvents(int field_42_grfDocEvents) + { + this.field_42_grfDocEvents = field_42_grfDocEvents; + } + + /** + * Get the virusinfo field for the DOP record. + */ + public int getVirusinfo() + { + return field_43_virusinfo; + } + + /** + * Set the virusinfo field for the DOP record. + */ + public void setVirusinfo(int field_43_virusinfo) + { + this.field_43_virusinfo = field_43_virusinfo; + } + + /** + * Get the Spare field for the DOP record. + */ + public byte[] getSpare() + { + return field_44_Spare; + } + + /** + * Set the Spare field for the DOP record. + */ + public void setSpare(byte[] field_44_Spare) + { + this.field_44_Spare = field_44_Spare; + } + + /** + * Get the reserved1 field for the DOP record. + */ + public int getReserved1() + { + return field_45_reserved1; + } + + /** + * Set the reserved1 field for the DOP record. + */ + public void setReserved1(int field_45_reserved1) + { + this.field_45_reserved1 = field_45_reserved1; + } + + /** + * Get the reserved2 field for the DOP record. + */ + public int getReserved2() + { + return field_46_reserved2; + } + + /** + * Set the reserved2 field for the DOP record. + */ + public void setReserved2(int field_46_reserved2) + { + this.field_46_reserved2 = field_46_reserved2; + } + + /** + * Get the cDBC field for the DOP record. + */ + public int getCDBC() + { + return field_47_cDBC; + } + + /** + * Set the cDBC field for the DOP record. + */ + public void setCDBC(int field_47_cDBC) + { + this.field_47_cDBC = field_47_cDBC; + } + + /** + * Get the cDBCFtnEdn field for the DOP record. + */ + public int getCDBCFtnEdn() + { + return field_48_cDBCFtnEdn; + } + + /** + * Set the cDBCFtnEdn field for the DOP record. + */ + public void setCDBCFtnEdn(int field_48_cDBCFtnEdn) + { + this.field_48_cDBCFtnEdn = field_48_cDBCFtnEdn; + } + + /** + * Get the reserved field for the DOP record. + */ + public int getReserved() + { + return field_49_reserved; + } + + /** + * Set the reserved field for the DOP record. + */ + public void setReserved(int field_49_reserved) + { + this.field_49_reserved = field_49_reserved; + } + + /** + * Get the nfcFtnRef field for the DOP record. + */ + public short getNfcFtnRef() + { + return field_50_nfcFtnRef; + } + + /** + * Set the nfcFtnRef field for the DOP record. + */ + public void setNfcFtnRef(short field_50_nfcFtnRef) + { + this.field_50_nfcFtnRef = field_50_nfcFtnRef; + } + + /** + * Get the nfcEdnRef field for the DOP record. + */ + public short getNfcEdnRef() + { + return field_51_nfcEdnRef; + } + + /** + * Set the nfcEdnRef field for the DOP record. + */ + public void setNfcEdnRef(short field_51_nfcEdnRef) + { + this.field_51_nfcEdnRef = field_51_nfcEdnRef; + } + + /** + * Get the hpsZoonFontPag field for the DOP record. + */ + public short getHpsZoonFontPag() + { + return field_52_hpsZoonFontPag; + } + + /** + * Set the hpsZoonFontPag field for the DOP record. + */ + public void setHpsZoonFontPag(short field_52_hpsZoonFontPag) + { + this.field_52_hpsZoonFontPag = field_52_hpsZoonFontPag; + } + + /** + * Get the dywDispPag field for the DOP record. + */ + public short getDywDispPag() + { + return field_53_dywDispPag; + } + + /** + * Set the dywDispPag field for the DOP record. + */ + public void setDywDispPag(short field_53_dywDispPag) + { + this.field_53_dywDispPag = field_53_dywDispPag; + } + + /** + * Sets the fFacingPages field value. + * + */ + public void setFFacingPages(boolean value) + { + field_1_formatFlags = (byte)fFacingPages.setBoolean(field_1_formatFlags, value); + + + } + + /** + * + * @return the fFacingPages field value. + */ + public boolean isFFacingPages() + { + return fFacingPages.isSet(field_1_formatFlags); + + } + + /** + * Sets the fWidowControl field value. + * + */ + public void setFWidowControl(boolean value) + { + field_1_formatFlags = (byte)fWidowControl.setBoolean(field_1_formatFlags, value); + + + } + + /** + * + * @return the fWidowControl field value. + */ + public boolean isFWidowControl() + { + return fWidowControl.isSet(field_1_formatFlags); + + } + + /** + * Sets the fPMHMainDoc field value. + * + */ + public void setFPMHMainDoc(boolean value) + { + field_1_formatFlags = (byte)fPMHMainDoc.setBoolean(field_1_formatFlags, value); + + + } + + /** + * + * @return the fPMHMainDoc field value. + */ + public boolean isFPMHMainDoc() + { + return fPMHMainDoc.isSet(field_1_formatFlags); + + } + + /** + * Sets the grfSupression field value. + * + */ + public void setGrfSupression(byte value) + { + field_1_formatFlags = (byte)grfSupression.setValue(field_1_formatFlags, value); + + + } + + /** + * + * @return the grfSupression field value. + */ + public byte getGrfSupression() + { + return ( byte )grfSupression.getValue(field_1_formatFlags); + + } + + /** + * Sets the fpc field value. + * + */ + public void setFpc(byte value) + { + field_1_formatFlags = (byte)fpc.setValue(field_1_formatFlags, value); + + + } + + /** + * + * @return the fpc field value. + */ + public byte getFpc() + { + return ( byte )fpc.getValue(field_1_formatFlags); + + } + + /** + * Sets the unused1 field value. + * + */ + public void setUnused1(boolean value) + { + field_1_formatFlags = (byte)unused1.setBoolean(field_1_formatFlags, value); + + + } + + /** + * + * @return the unused1 field value. + */ + public boolean isUnused1() + { + return unused1.isSet(field_1_formatFlags); + + } + + /** + * Sets the rncFtn field value. + * + */ + public void setRncFtn(byte value) + { + field_3_footnoteInfo = (short)rncFtn.setValue(field_3_footnoteInfo, value); + + + } + + /** + * + * @return the rncFtn field value. + */ + public byte getRncFtn() + { + return ( byte )rncFtn.getValue(field_3_footnoteInfo); + + } + + /** + * Sets the nFtn field value. + * + */ + public void setNFtn(short value) + { + field_3_footnoteInfo = (short)nFtn.setValue(field_3_footnoteInfo, value); + + + } + + /** + * + * @return the nFtn field value. + */ + public short getNFtn() + { + return ( short )nFtn.getValue(field_3_footnoteInfo); + + } + + /** + * Sets the fOnlyMacPics field value. + * + */ + public void setFOnlyMacPics(boolean value) + { + field_5_docinfo = (byte)fOnlyMacPics.setBoolean(field_5_docinfo, value); + + + } + + /** + * + * @return the fOnlyMacPics field value. + */ + public boolean isFOnlyMacPics() + { + return fOnlyMacPics.isSet(field_5_docinfo); + + } + + /** + * Sets the fOnlyWinPics field value. + * + */ + public void setFOnlyWinPics(boolean value) + { + field_5_docinfo = (byte)fOnlyWinPics.setBoolean(field_5_docinfo, value); + + + } + + /** + * + * @return the fOnlyWinPics field value. + */ + public boolean isFOnlyWinPics() + { + return fOnlyWinPics.isSet(field_5_docinfo); + + } + + /** + * Sets the fLabelDoc field value. + * + */ + public void setFLabelDoc(boolean value) + { + field_5_docinfo = (byte)fLabelDoc.setBoolean(field_5_docinfo, value); + + + } + + /** + * + * @return the fLabelDoc field value. + */ + public boolean isFLabelDoc() + { + return fLabelDoc.isSet(field_5_docinfo); + + } + + /** + * Sets the fHyphCapitals field value. + * + */ + public void setFHyphCapitals(boolean value) + { + field_5_docinfo = (byte)fHyphCapitals.setBoolean(field_5_docinfo, value); + + + } + + /** + * + * @return the fHyphCapitals field value. + */ + public boolean isFHyphCapitals() + { + return fHyphCapitals.isSet(field_5_docinfo); + + } + + /** + * Sets the fAutoHyphen field value. + * + */ + public void setFAutoHyphen(boolean value) + { + field_5_docinfo = (byte)fAutoHyphen.setBoolean(field_5_docinfo, value); + + + } + + /** + * + * @return the fAutoHyphen field value. + */ + public boolean isFAutoHyphen() + { + return fAutoHyphen.isSet(field_5_docinfo); + + } + + /** + * Sets the fFormNoFields field value. + * + */ + public void setFFormNoFields(boolean value) + { + field_5_docinfo = (byte)fFormNoFields.setBoolean(field_5_docinfo, value); + + + } + + /** + * + * @return the fFormNoFields field value. + */ + public boolean isFFormNoFields() + { + return fFormNoFields.isSet(field_5_docinfo); + + } + + /** + * Sets the fLinkStyles field value. + * + */ + public void setFLinkStyles(boolean value) + { + field_5_docinfo = (byte)fLinkStyles.setBoolean(field_5_docinfo, value); + + + } + + /** + * + * @return the fLinkStyles field value. + */ + public boolean isFLinkStyles() + { + return fLinkStyles.isSet(field_5_docinfo); + + } + + /** + * Sets the fRevMarking field value. + * + */ + public void setFRevMarking(boolean value) + { + field_5_docinfo = (byte)fRevMarking.setBoolean(field_5_docinfo, value); + + + } + + /** + * + * @return the fRevMarking field value. + */ + public boolean isFRevMarking() + { + return fRevMarking.isSet(field_5_docinfo); + + } + + /** + * Sets the fBackup field value. + * + */ + public void setFBackup(boolean value) + { + field_6_docinfo1 = (byte)fBackup.setBoolean(field_6_docinfo1, value); + + + } + + /** + * + * @return the fBackup field value. + */ + public boolean isFBackup() + { + return fBackup.isSet(field_6_docinfo1); + + } + + /** + * Sets the fExactCWords field value. + * + */ + public void setFExactCWords(boolean value) + { + field_6_docinfo1 = (byte)fExactCWords.setBoolean(field_6_docinfo1, value); + + + } + + /** + * + * @return the fExactCWords field value. + */ + public boolean isFExactCWords() + { + return fExactCWords.isSet(field_6_docinfo1); + + } + + /** + * Sets the fPagHidden field value. + * + */ + public void setFPagHidden(boolean value) + { + field_6_docinfo1 = (byte)fPagHidden.setBoolean(field_6_docinfo1, value); + + + } + + /** + * + * @return the fPagHidden field value. + */ + public boolean isFPagHidden() + { + return fPagHidden.isSet(field_6_docinfo1); + + } + + /** + * Sets the fPagResults field value. + * + */ + public void setFPagResults(boolean value) + { + field_6_docinfo1 = (byte)fPagResults.setBoolean(field_6_docinfo1, value); + + + } + + /** + * + * @return the fPagResults field value. + */ + public boolean isFPagResults() + { + return fPagResults.isSet(field_6_docinfo1); + + } + + /** + * Sets the fLockAtn field value. + * + */ + public void setFLockAtn(boolean value) + { + field_6_docinfo1 = (byte)fLockAtn.setBoolean(field_6_docinfo1, value); + + + } + + /** + * + * @return the fLockAtn field value. + */ + public boolean isFLockAtn() + { + return fLockAtn.isSet(field_6_docinfo1); + + } + + /** + * Sets the fMirrorMargins field value. + * + */ + public void setFMirrorMargins(boolean value) + { + field_6_docinfo1 = (byte)fMirrorMargins.setBoolean(field_6_docinfo1, value); + + + } + + /** + * + * @return the fMirrorMargins field value. + */ + public boolean isFMirrorMargins() + { + return fMirrorMargins.isSet(field_6_docinfo1); + + } + + /** + * Sets the unused3 field value. + * + */ + public void setUnused3(boolean value) + { + field_6_docinfo1 = (byte)unused3.setBoolean(field_6_docinfo1, value); + + + } + + /** + * + * @return the unused3 field value. + */ + public boolean isUnused3() + { + return unused3.isSet(field_6_docinfo1); + + } + + /** + * Sets the fDfltTrueType field value. + * + */ + public void setFDfltTrueType(boolean value) + { + field_6_docinfo1 = (byte)fDfltTrueType.setBoolean(field_6_docinfo1, value); + + + } + + /** + * + * @return the fDfltTrueType field value. + */ + public boolean isFDfltTrueType() + { + return fDfltTrueType.isSet(field_6_docinfo1); + + } + + /** + * Sets the fPagSupressTopSpacing field value. + * + */ + public void setFPagSupressTopSpacing(boolean value) + { + field_7_docinfo2 = (byte)fPagSupressTopSpacing.setBoolean(field_7_docinfo2, value); + + + } + + /** + * + * @return the fPagSupressTopSpacing field value. + */ + public boolean isFPagSupressTopSpacing() + { + return fPagSupressTopSpacing.isSet(field_7_docinfo2); + + } + + /** + * Sets the fProtEnabled field value. + * + */ + public void setFProtEnabled(boolean value) + { + field_7_docinfo2 = (byte)fProtEnabled.setBoolean(field_7_docinfo2, value); + + + } + + /** + * + * @return the fProtEnabled field value. + */ + public boolean isFProtEnabled() + { + return fProtEnabled.isSet(field_7_docinfo2); + + } + + /** + * Sets the fDispFormFldSel field value. + * + */ + public void setFDispFormFldSel(boolean value) + { + field_7_docinfo2 = (byte)fDispFormFldSel.setBoolean(field_7_docinfo2, value); + + + } + + /** + * + * @return the fDispFormFldSel field value. + */ + public boolean isFDispFormFldSel() + { + return fDispFormFldSel.isSet(field_7_docinfo2); + + } + + /** + * Sets the fRMView field value. + * + */ + public void setFRMView(boolean value) + { + field_7_docinfo2 = (byte)fRMView.setBoolean(field_7_docinfo2, value); + + + } + + /** + * + * @return the fRMView field value. + */ + public boolean isFRMView() + { + return fRMView.isSet(field_7_docinfo2); + + } + + /** + * Sets the fRMPrint field value. + * + */ + public void setFRMPrint(boolean value) + { + field_7_docinfo2 = (byte)fRMPrint.setBoolean(field_7_docinfo2, value); + + + } + + /** + * + * @return the fRMPrint field value. + */ + public boolean isFRMPrint() + { + return fRMPrint.isSet(field_7_docinfo2); + + } + + /** + * Sets the unused4 field value. + * + */ + public void setUnused4(boolean value) + { + field_7_docinfo2 = (byte)unused4.setBoolean(field_7_docinfo2, value); + + + } + + /** + * + * @return the unused4 field value. + */ + public boolean isUnused4() + { + return unused4.isSet(field_7_docinfo2); + + } + + /** + * Sets the fLockRev field value. + * + */ + public void setFLockRev(boolean value) + { + field_7_docinfo2 = (byte)fLockRev.setBoolean(field_7_docinfo2, value); + + + } + + /** + * + * @return the fLockRev field value. + */ + public boolean isFLockRev() + { + return fLockRev.isSet(field_7_docinfo2); + + } + + /** + * Sets the fEmbedFonts field value. + * + */ + public void setFEmbedFonts(boolean value) + { + field_7_docinfo2 = (byte)fEmbedFonts.setBoolean(field_7_docinfo2, value); + + + } + + /** + * + * @return the fEmbedFonts field value. + */ + public boolean isFEmbedFonts() + { + return fEmbedFonts.isSet(field_7_docinfo2); + + } + + /** + * Sets the oldfNoTabForInd field value. + * + */ + public void setOldfNoTabForInd(boolean value) + { + field_8_docinfo3 = (short)oldfNoTabForInd.setBoolean(field_8_docinfo3, value); + + + } + + /** + * + * @return the oldfNoTabForInd field value. + */ + public boolean isOldfNoTabForInd() + { + return oldfNoTabForInd.isSet(field_8_docinfo3); + + } + + /** + * Sets the oldfNoSpaceRaiseLower field value. + * + */ + public void setOldfNoSpaceRaiseLower(boolean value) + { + field_8_docinfo3 = (short)oldfNoSpaceRaiseLower.setBoolean(field_8_docinfo3, value); + + + } + + /** + * + * @return the oldfNoSpaceRaiseLower field value. + */ + public boolean isOldfNoSpaceRaiseLower() + { + return oldfNoSpaceRaiseLower.isSet(field_8_docinfo3); + + } + + /** + * Sets the oldfSuppressSpbfAfterPageBreak field value. + * + */ + public void setOldfSuppressSpbfAfterPageBreak(boolean value) + { + field_8_docinfo3 = (short)oldfSuppressSpbfAfterPageBreak.setBoolean(field_8_docinfo3, value); + + + } + + /** + * + * @return the oldfSuppressSpbfAfterPageBreak field value. + */ + public boolean isOldfSuppressSpbfAfterPageBreak() + { + return oldfSuppressSpbfAfterPageBreak.isSet(field_8_docinfo3); + + } + + /** + * Sets the oldfWrapTrailSpaces field value. + * + */ + public void setOldfWrapTrailSpaces(boolean value) + { + field_8_docinfo3 = (short)oldfWrapTrailSpaces.setBoolean(field_8_docinfo3, value); + + + } + + /** + * + * @return the oldfWrapTrailSpaces field value. + */ + public boolean isOldfWrapTrailSpaces() + { + return oldfWrapTrailSpaces.isSet(field_8_docinfo3); + + } + + /** + * Sets the oldfMapPrintTextColor field value. + * + */ + public void setOldfMapPrintTextColor(boolean value) + { + field_8_docinfo3 = (short)oldfMapPrintTextColor.setBoolean(field_8_docinfo3, value); + + + } + + /** + * + * @return the oldfMapPrintTextColor field value. + */ + public boolean isOldfMapPrintTextColor() + { + return oldfMapPrintTextColor.isSet(field_8_docinfo3); + + } + + /** + * Sets the oldfNoColumnBalance field value. + * + */ + public void setOldfNoColumnBalance(boolean value) + { + field_8_docinfo3 = (short)oldfNoColumnBalance.setBoolean(field_8_docinfo3, value); + + + } + + /** + * + * @return the oldfNoColumnBalance field value. + */ + public boolean isOldfNoColumnBalance() + { + return oldfNoColumnBalance.isSet(field_8_docinfo3); + + } + + /** + * Sets the oldfConvMailMergeEsc field value. + * + */ + public void setOldfConvMailMergeEsc(boolean value) + { + field_8_docinfo3 = (short)oldfConvMailMergeEsc.setBoolean(field_8_docinfo3, value); + + + } + + /** + * + * @return the oldfConvMailMergeEsc field value. + */ + public boolean isOldfConvMailMergeEsc() + { + return oldfConvMailMergeEsc.isSet(field_8_docinfo3); + + } + + /** + * Sets the oldfSupressTopSpacing field value. + * + */ + public void setOldfSupressTopSpacing(boolean value) + { + field_8_docinfo3 = (short)oldfSupressTopSpacing.setBoolean(field_8_docinfo3, value); + + + } + + /** + * + * @return the oldfSupressTopSpacing field value. + */ + public boolean isOldfSupressTopSpacing() + { + return oldfSupressTopSpacing.isSet(field_8_docinfo3); + + } + + /** + * Sets the oldfOrigWordTableRules field value. + * + */ + public void setOldfOrigWordTableRules(boolean value) + { + field_8_docinfo3 = (short)oldfOrigWordTableRules.setBoolean(field_8_docinfo3, value); + + + } + + /** + * + * @return the oldfOrigWordTableRules field value. + */ + public boolean isOldfOrigWordTableRules() + { + return oldfOrigWordTableRules.isSet(field_8_docinfo3); + + } + + /** + * Sets the oldfTransparentMetafiles field value. + * + */ + public void setOldfTransparentMetafiles(boolean value) + { + field_8_docinfo3 = (short)oldfTransparentMetafiles.setBoolean(field_8_docinfo3, value); + + + } + + /** + * + * @return the oldfTransparentMetafiles field value. + */ + public boolean isOldfTransparentMetafiles() + { + return oldfTransparentMetafiles.isSet(field_8_docinfo3); + + } + + /** + * Sets the oldfShowBreaksInFrames field value. + * + */ + public void setOldfShowBreaksInFrames(boolean value) + { + field_8_docinfo3 = (short)oldfShowBreaksInFrames.setBoolean(field_8_docinfo3, value); + + + } + + /** + * + * @return the oldfShowBreaksInFrames field value. + */ + public boolean isOldfShowBreaksInFrames() + { + return oldfShowBreaksInFrames.isSet(field_8_docinfo3); + + } + + /** + * Sets the oldfSwapBordersFacingPgs field value. + * + */ + public void setOldfSwapBordersFacingPgs(boolean value) + { + field_8_docinfo3 = (short)oldfSwapBordersFacingPgs.setBoolean(field_8_docinfo3, value); + + + } + + /** + * + * @return the oldfSwapBordersFacingPgs field value. + */ + public boolean isOldfSwapBordersFacingPgs() + { + return oldfSwapBordersFacingPgs.isSet(field_8_docinfo3); + + } + + /** + * Sets the unused5 field value. + * + */ + public void setUnused5(byte value) + { + field_8_docinfo3 = (short)unused5.setValue(field_8_docinfo3, value); + + + } + + /** + * + * @return the unused5 field value. + */ + public byte getUnused5() + { + return ( byte )unused5.getValue(field_8_docinfo3); + + } + + /** + * Sets the rncEdn field value. + * + */ + public void setRncEdn(byte value) + { + field_23_Edn = (short)rncEdn.setValue(field_23_Edn, value); + + + } + + /** + * + * @return the rncEdn field value. + */ + public byte getRncEdn() + { + return ( byte )rncEdn.getValue(field_23_Edn); + + } + + /** + * Sets the nEdn field value. + * + */ + public void setNEdn(short value) + { + field_23_Edn = (short)nEdn.setValue(field_23_Edn, value); + + + } + + /** + * + * @return the nEdn field value. + */ + public short getNEdn() + { + return ( short )nEdn.getValue(field_23_Edn); + + } + + /** + * Sets the epc field value. + * + */ + public void setEpc(byte value) + { + field_24_Edn1 = (short)epc.setValue(field_24_Edn1, value); + + + } + + /** + * + * @return the epc field value. + */ + public byte getEpc() + { + return ( byte )epc.getValue(field_24_Edn1); + + } + + /** + * Sets the nfcFtnRef1 field value. + * + */ + public void setNfcFtnRef1(byte value) + { + field_24_Edn1 = (short)nfcFtnRef1.setValue(field_24_Edn1, value); + + + } + + /** + * + * @return the nfcFtnRef1 field value. + */ + public byte getNfcFtnRef1() + { + return ( byte )nfcFtnRef1.getValue(field_24_Edn1); + + } + + /** + * Sets the nfcEdnRef1 field value. + * + */ + public void setNfcEdnRef1(byte value) + { + field_24_Edn1 = (short)nfcEdnRef1.setValue(field_24_Edn1, value); + + + } + + /** + * + * @return the nfcEdnRef1 field value. + */ + public byte getNfcEdnRef1() + { + return ( byte )nfcEdnRef1.getValue(field_24_Edn1); + + } + + /** + * Sets the fPrintFormData field value. + * + */ + public void setFPrintFormData(boolean value) + { + field_24_Edn1 = (short)fPrintFormData.setBoolean(field_24_Edn1, value); + + + } + + /** + * + * @return the fPrintFormData field value. + */ + public boolean isFPrintFormData() + { + return fPrintFormData.isSet(field_24_Edn1); + + } + + /** + * Sets the fSaveFormData field value. + * + */ + public void setFSaveFormData(boolean value) + { + field_24_Edn1 = (short)fSaveFormData.setBoolean(field_24_Edn1, value); + + + } + + /** + * + * @return the fSaveFormData field value. + */ + public boolean isFSaveFormData() + { + return fSaveFormData.isSet(field_24_Edn1); + + } + + /** + * Sets the fShadeFormData field value. + * + */ + public void setFShadeFormData(boolean value) + { + field_24_Edn1 = (short)fShadeFormData.setBoolean(field_24_Edn1, value); + + + } + + /** + * + * @return the fShadeFormData field value. + */ + public boolean isFShadeFormData() + { + return fShadeFormData.isSet(field_24_Edn1); + + } + + /** + * Sets the fWCFtnEdn field value. + * + */ + public void setFWCFtnEdn(boolean value) + { + field_24_Edn1 = (short)fWCFtnEdn.setBoolean(field_24_Edn1, value); + + + } + + /** + * + * @return the fWCFtnEdn field value. + */ + public boolean isFWCFtnEdn() + { + return fWCFtnEdn.isSet(field_24_Edn1); + + } + + /** + * Sets the wvkSaved field value. + * + */ + public void setWvkSaved(byte value) + { + field_32_view = (short)wvkSaved.setValue(field_32_view, value); + + + } + + /** + * + * @return the wvkSaved field value. + */ + public byte getWvkSaved() + { + return ( byte )wvkSaved.getValue(field_32_view); + + } + + /** + * Sets the wScaleSaved field value. + * + */ + public void setWScaleSaved(short value) + { + field_32_view = (short)wScaleSaved.setValue(field_32_view, value); + + + } + + /** + * + * @return the wScaleSaved field value. + */ + public short getWScaleSaved() + { + return ( short )wScaleSaved.getValue(field_32_view); + + } + + /** + * Sets the zkSaved field value. + * + */ + public void setZkSaved(byte value) + { + field_32_view = (short)zkSaved.setValue(field_32_view, value); + + + } + + /** + * + * @return the zkSaved field value. + */ + public byte getZkSaved() + { + return ( byte )zkSaved.getValue(field_32_view); + + } + + /** + * Sets the fRotateFontW6 field value. + * + */ + public void setFRotateFontW6(boolean value) + { + field_32_view = (short)fRotateFontW6.setBoolean(field_32_view, value); + + + } + + /** + * + * @return the fRotateFontW6 field value. + */ + public boolean isFRotateFontW6() + { + return fRotateFontW6.isSet(field_32_view); + + } + + /** + * Sets the iGutterPos field value. + * + */ + public void setIGutterPos(boolean value) + { + field_32_view = (short)iGutterPos.setBoolean(field_32_view, value); + + + } + + /** + * + * @return the iGutterPos field value. + */ + public boolean isIGutterPos() + { + return iGutterPos.isSet(field_32_view); + + } + + /** + * Sets the fNoTabForInd field value. + * + */ + public void setFNoTabForInd(boolean value) + { + field_33_docinfo4 = (int)fNoTabForInd.setBoolean(field_33_docinfo4, value); + + + } + + /** + * + * @return the fNoTabForInd field value. + */ + public boolean isFNoTabForInd() + { + return fNoTabForInd.isSet(field_33_docinfo4); + + } + + /** + * Sets the fNoSpaceRaiseLower field value. + * + */ + public void setFNoSpaceRaiseLower(boolean value) + { + field_33_docinfo4 = (int)fNoSpaceRaiseLower.setBoolean(field_33_docinfo4, value); + + + } + + /** + * + * @return the fNoSpaceRaiseLower field value. + */ + public boolean isFNoSpaceRaiseLower() + { + return fNoSpaceRaiseLower.isSet(field_33_docinfo4); + + } + + /** + * Sets the fSupressSpdfAfterPageBreak field value. + * + */ + public void setFSupressSpdfAfterPageBreak(boolean value) + { + field_33_docinfo4 = (int)fSupressSpdfAfterPageBreak.setBoolean(field_33_docinfo4, value); + + + } + + /** + * + * @return the fSupressSpdfAfterPageBreak field value. + */ + public boolean isFSupressSpdfAfterPageBreak() + { + return fSupressSpdfAfterPageBreak.isSet(field_33_docinfo4); + + } + + /** + * Sets the fWrapTrailSpaces field value. + * + */ + public void setFWrapTrailSpaces(boolean value) + { + field_33_docinfo4 = (int)fWrapTrailSpaces.setBoolean(field_33_docinfo4, value); + + + } + + /** + * + * @return the fWrapTrailSpaces field value. + */ + public boolean isFWrapTrailSpaces() + { + return fWrapTrailSpaces.isSet(field_33_docinfo4); + + } + + /** + * Sets the fMapPrintTextColor field value. + * + */ + public void setFMapPrintTextColor(boolean value) + { + field_33_docinfo4 = (int)fMapPrintTextColor.setBoolean(field_33_docinfo4, value); + + + } + + /** + * + * @return the fMapPrintTextColor field value. + */ + public boolean isFMapPrintTextColor() + { + return fMapPrintTextColor.isSet(field_33_docinfo4); + + } + + /** + * Sets the fNoColumnBalance field value. + * + */ + public void setFNoColumnBalance(boolean value) + { + field_33_docinfo4 = (int)fNoColumnBalance.setBoolean(field_33_docinfo4, value); + + + } + + /** + * + * @return the fNoColumnBalance field value. + */ + public boolean isFNoColumnBalance() + { + return fNoColumnBalance.isSet(field_33_docinfo4); + + } + + /** + * Sets the fConvMailMergeEsc field value. + * + */ + public void setFConvMailMergeEsc(boolean value) + { + field_33_docinfo4 = (int)fConvMailMergeEsc.setBoolean(field_33_docinfo4, value); + + + } + + /** + * + * @return the fConvMailMergeEsc field value. + */ + public boolean isFConvMailMergeEsc() + { + return fConvMailMergeEsc.isSet(field_33_docinfo4); + + } + + /** + * Sets the fSupressTopSpacing field value. + * + */ + public void setFSupressTopSpacing(boolean value) + { + field_33_docinfo4 = (int)fSupressTopSpacing.setBoolean(field_33_docinfo4, value); + + + } + + /** + * + * @return the fSupressTopSpacing field value. + */ + public boolean isFSupressTopSpacing() + { + return fSupressTopSpacing.isSet(field_33_docinfo4); + + } + + /** + * Sets the fOrigWordTableRules field value. + * + */ + public void setFOrigWordTableRules(boolean value) + { + field_33_docinfo4 = (int)fOrigWordTableRules.setBoolean(field_33_docinfo4, value); + + + } + + /** + * + * @return the fOrigWordTableRules field value. + */ + public boolean isFOrigWordTableRules() + { + return fOrigWordTableRules.isSet(field_33_docinfo4); + + } + + /** + * Sets the fTransparentMetafiles field value. + * + */ + public void setFTransparentMetafiles(boolean value) + { + field_33_docinfo4 = (int)fTransparentMetafiles.setBoolean(field_33_docinfo4, value); + + + } + + /** + * + * @return the fTransparentMetafiles field value. + */ + public boolean isFTransparentMetafiles() + { + return fTransparentMetafiles.isSet(field_33_docinfo4); + + } + + /** + * Sets the fShowBreaksInFrames field value. + * + */ + public void setFShowBreaksInFrames(boolean value) + { + field_33_docinfo4 = (int)fShowBreaksInFrames.setBoolean(field_33_docinfo4, value); + + + } + + /** + * + * @return the fShowBreaksInFrames field value. + */ + public boolean isFShowBreaksInFrames() + { + return fShowBreaksInFrames.isSet(field_33_docinfo4); + + } + + /** + * Sets the fSwapBordersFacingPgs field value. + * + */ + public void setFSwapBordersFacingPgs(boolean value) + { + field_33_docinfo4 = (int)fSwapBordersFacingPgs.setBoolean(field_33_docinfo4, value); + + + } + + /** + * + * @return the fSwapBordersFacingPgs field value. + */ + public boolean isFSwapBordersFacingPgs() + { + return fSwapBordersFacingPgs.isSet(field_33_docinfo4); + + } + + /** + * Sets the fSuppressTopSPacingMac5 field value. + * + */ + public void setFSuppressTopSPacingMac5(boolean value) + { + field_33_docinfo4 = (int)fSuppressTopSPacingMac5.setBoolean(field_33_docinfo4, value); + + + } + + /** + * + * @return the fSuppressTopSPacingMac5 field value. + */ + public boolean isFSuppressTopSPacingMac5() + { + return fSuppressTopSPacingMac5.isSet(field_33_docinfo4); + + } + + /** + * Sets the fTruncDxaExpand field value. + * + */ + public void setFTruncDxaExpand(boolean value) + { + field_33_docinfo4 = (int)fTruncDxaExpand.setBoolean(field_33_docinfo4, value); + + + } + + /** + * + * @return the fTruncDxaExpand field value. + */ + public boolean isFTruncDxaExpand() + { + return fTruncDxaExpand.isSet(field_33_docinfo4); + + } + + /** + * Sets the fPrintBodyBeforeHdr field value. + * + */ + public void setFPrintBodyBeforeHdr(boolean value) + { + field_33_docinfo4 = (int)fPrintBodyBeforeHdr.setBoolean(field_33_docinfo4, value); + + + } + + /** + * + * @return the fPrintBodyBeforeHdr field value. + */ + public boolean isFPrintBodyBeforeHdr() + { + return fPrintBodyBeforeHdr.isSet(field_33_docinfo4); + + } + + /** + * Sets the fNoLeading field value. + * + */ + public void setFNoLeading(boolean value) + { + field_33_docinfo4 = (int)fNoLeading.setBoolean(field_33_docinfo4, value); + + + } + + /** + * + * @return the fNoLeading field value. + */ + public boolean isFNoLeading() + { + return fNoLeading.isSet(field_33_docinfo4); + + } + + /** + * Sets the fMWSmallCaps field value. + * + */ + public void setFMWSmallCaps(boolean value) + { + field_33_docinfo4 = (int)fMWSmallCaps.setBoolean(field_33_docinfo4, value); + + + } + + /** + * + * @return the fMWSmallCaps field value. + */ + public boolean isFMWSmallCaps() + { + return fMWSmallCaps.isSet(field_33_docinfo4); + + } + + /** + * Sets the lvl field value. + * + */ + public void setLvl(byte value) + { + field_37_docinfo5 = (short)lvl.setValue(field_37_docinfo5, value); + + + } + + /** + * + * @return the lvl field value. + */ + public byte getLvl() + { + return ( byte )lvl.getValue(field_37_docinfo5); + + } + + /** + * Sets the fGramAllDone field value. + * + */ + public void setFGramAllDone(boolean value) + { + field_37_docinfo5 = (short)fGramAllDone.setBoolean(field_37_docinfo5, value); + + + } + + /** + * + * @return the fGramAllDone field value. + */ + public boolean isFGramAllDone() + { + return fGramAllDone.isSet(field_37_docinfo5); + + } + + /** + * Sets the fGramAllClean field value. + * + */ + public void setFGramAllClean(boolean value) + { + field_37_docinfo5 = (short)fGramAllClean.setBoolean(field_37_docinfo5, value); + + + } + + /** + * + * @return the fGramAllClean field value. + */ + public boolean isFGramAllClean() + { + return fGramAllClean.isSet(field_37_docinfo5); + + } + + /** + * Sets the fSubsetFonts field value. + * + */ + public void setFSubsetFonts(boolean value) + { + field_37_docinfo5 = (short)fSubsetFonts.setBoolean(field_37_docinfo5, value); + + + } + + /** + * + * @return the fSubsetFonts field value. + */ + public boolean isFSubsetFonts() + { + return fSubsetFonts.isSet(field_37_docinfo5); + + } + + /** + * Sets the fHideLastVersion field value. + * + */ + public void setFHideLastVersion(boolean value) + { + field_37_docinfo5 = (short)fHideLastVersion.setBoolean(field_37_docinfo5, value); + + + } + + /** + * + * @return the fHideLastVersion field value. + */ + public boolean isFHideLastVersion() + { + return fHideLastVersion.isSet(field_37_docinfo5); + + } + + /** + * Sets the fHtmlDoc field value. + * + */ + public void setFHtmlDoc(boolean value) + { + field_37_docinfo5 = (short)fHtmlDoc.setBoolean(field_37_docinfo5, value); + + + } + + /** + * + * @return the fHtmlDoc field value. + */ + public boolean isFHtmlDoc() + { + return fHtmlDoc.isSet(field_37_docinfo5); + + } + + /** + * Sets the fSnapBorder field value. + * + */ + public void setFSnapBorder(boolean value) + { + field_37_docinfo5 = (short)fSnapBorder.setBoolean(field_37_docinfo5, value); + + + } + + /** + * + * @return the fSnapBorder field value. + */ + public boolean isFSnapBorder() + { + return fSnapBorder.isSet(field_37_docinfo5); + + } + + /** + * Sets the fIncludeHeader field value. + * + */ + public void setFIncludeHeader(boolean value) + { + field_37_docinfo5 = (short)fIncludeHeader.setBoolean(field_37_docinfo5, value); + + + } + + /** + * + * @return the fIncludeHeader field value. + */ + public boolean isFIncludeHeader() + { + return fIncludeHeader.isSet(field_37_docinfo5); + + } + + /** + * Sets the fIncludeFooter field value. + * + */ + public void setFIncludeFooter(boolean value) + { + field_37_docinfo5 = (short)fIncludeFooter.setBoolean(field_37_docinfo5, value); + + + } + + /** + * + * @return the fIncludeFooter field value. + */ + public boolean isFIncludeFooter() + { + return fIncludeFooter.isSet(field_37_docinfo5); + + } + + /** + * Sets the fForcePageSizePag field value. + * + */ + public void setFForcePageSizePag(boolean value) + { + field_37_docinfo5 = (short)fForcePageSizePag.setBoolean(field_37_docinfo5, value); + + + } + + /** + * + * @return the fForcePageSizePag field value. + */ + public boolean isFForcePageSizePag() + { + return fForcePageSizePag.isSet(field_37_docinfo5); + + } + + /** + * Sets the fMinFontSizePag field value. + * + */ + public void setFMinFontSizePag(boolean value) + { + field_37_docinfo5 = (short)fMinFontSizePag.setBoolean(field_37_docinfo5, value); + + + } + + /** + * + * @return the fMinFontSizePag field value. + */ + public boolean isFMinFontSizePag() + { + return fMinFontSizePag.isSet(field_37_docinfo5); + + } + + /** + * Sets the fHaveVersions field value. + * + */ + public void setFHaveVersions(boolean value) + { + field_38_docinfo6 = (short)fHaveVersions.setBoolean(field_38_docinfo6, value); + + + } + + /** + * + * @return the fHaveVersions field value. + */ + public boolean isFHaveVersions() + { + return fHaveVersions.isSet(field_38_docinfo6); + + } + + /** + * Sets the fAutoVersions field value. + * + */ + public void setFAutoVersions(boolean value) + { + field_38_docinfo6 = (short)fAutoVersions.setBoolean(field_38_docinfo6, value); + + + } + + /** + * + * @return the fAutoVersions field value. + */ + public boolean isFAutoVersions() + { + return fAutoVersions.isSet(field_38_docinfo6); + + } + + /** + * Sets the fVirusPrompted field value. + * + */ + public void setFVirusPrompted(boolean value) + { + field_43_virusinfo = (int)fVirusPrompted.setBoolean(field_43_virusinfo, value); + + + } + + /** + * + * @return the fVirusPrompted field value. + */ + public boolean isFVirusPrompted() + { + return fVirusPrompted.isSet(field_43_virusinfo); + + } + + /** + * Sets the fVirusLoadSafe field value. + * + */ + public void setFVirusLoadSafe(boolean value) + { + field_43_virusinfo = (int)fVirusLoadSafe.setBoolean(field_43_virusinfo, value); + + + } + + /** + * + * @return the fVirusLoadSafe field value. + */ + public boolean isFVirusLoadSafe() + { + return fVirusLoadSafe.isSet(field_43_virusinfo); + + } + + /** + * Sets the KeyVirusSession30 field value. + * + */ + public void setKeyVirusSession30(int value) + { + field_43_virusinfo = (int)KeyVirusSession30.setValue(field_43_virusinfo, value); + + + } + + /** + * + * @return the KeyVirusSession30 field value. + */ + public int getKeyVirusSession30() + { + return ( int )KeyVirusSession30.getValue(field_43_virusinfo); + + } + + +} // END OF CLASS + + + + diff --git a/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/definitions/FIBAbstractType.java b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/definitions/FIBAbstractType.java new file mode 100644 index 0000000000..7f22f20bef --- /dev/null +++ b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/definitions/FIBAbstractType.java @@ -0,0 +1,6293 @@ + +/* ==================================================================== + * The Apache Software License, Version 1.1 + * + * Copyright (c) 2003 The Apache Software Foundation. All rights + * reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * 3. The end-user documentation included with the redistribution, + * if any, must include the following acknowledgment: + * "This product includes software developed by the + * Apache Software Foundation (http://www.apache.org/)." + * Alternately, this acknowledgment may appear in the software itself, + * if and wherever such third-party acknowledgments normally appear. + * + * 4. The names "Apache" and "Apache Software Foundation" and + * "Apache POI" must not be used to endorse or promote products + * derived from this software without prior written permission. For + * written permission, please contact apache@apache.org. + * + * 5. Products derived from this software may not be called "Apache", + * "Apache POI", nor may "Apache" appear in their name, without + * prior written permission of the Apache Software Foundation. + * + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * ==================================================================== + * + * This software consists of voluntary contributions made by many + * individuals on behalf of the Apache Software Foundation. For more + * information on the Apache Software Foundation, please see + * . + */ + + +package org.apache.poi.hwpf.model.hdftypes.definitions; + + + +import org.apache.poi.util.BitField; +import org.apache.poi.util.LittleEndian; +import org.apache.poi.util.StringUtil; +import org.apache.poi.util.HexDump; +import org.apache.poi.hwpf.model.hdftypes.HDFType; + +/** + * File information Block. + * NOTE: This source is automatically generated please do not modify this file. Either subclass or + * remove the record in src/records/definitions. + + * @author Andrew C. Oliver + */ +public abstract class FIBAbstractType + implements HDFType +{ + + private int field_1_wIdent; + private int field_2_nFib; + private int field_3_nProduct; + private int field_4_lid; + private int field_5_pnNext; + private short field_6_options; + private BitField fDot = new BitField(0x0001); + private BitField fGlsy = new BitField(0x0002); + private BitField fComplex = new BitField(0x0004); + private BitField fHasPic = new BitField(0x0008); + private BitField cQuickSaves = new BitField(0x00F0); + private BitField fEncrypted = new BitField(0x0100); + private BitField fWhichTblStm = new BitField(0x0200); + private BitField fReadOnlyRecommended = new BitField(0x0400); + private BitField fWriteReservation = new BitField(0x0800); + private BitField fExtChar = new BitField(0x1000); + private BitField fLoadOverride = new BitField(0x2000); + private BitField fFarEast = new BitField(0x4000); + private BitField fCrypto = new BitField(0x8000); + private int field_7_nFibBack; + private int field_8_lKey; + private int field_9_envr; + private short field_10_history; + private BitField fMac = new BitField(0x0001); + private BitField fEmptySpecial = new BitField(0x0002); + private BitField fLoadOverridePage = new BitField(0x0004); + private BitField fFutureSavedUndo = new BitField(0x0008); + private BitField fWord97Saved = new BitField(0x0010); + private BitField fSpare0 = new BitField(0x00FE); + private int field_11_chs; + private int field_12_chsTables; + private int field_13_fcMin; + private int field_14_fcMac; + private int field_15_csw; + private int field_16_wMagicCreated; + private int field_17_wMagicRevised; + private int field_18_wMagicCreatedPrivate; + private int field_19_wMagicRevisedPrivate; + private int field_20_pnFbpChpFirst_W6; + private int field_21_pnChpFirst_W6; + private int field_22_cpnBteChp_W6; + private int field_23_pnFbpPapFirst_W6; + private int field_24_pnPapFirst_W6; + private int field_25_cpnBtePap_W6; + private int field_26_pnFbpLvcFirst_W6; + private int field_27_pnLvcFirst_W6; + private int field_28_cpnBteLvc_W6; + private int field_29_lidFE; + private int field_30_clw; + private int field_31_cbMac; + private int field_32_lProductCreated; + private int field_33_lProductRevised; + private int field_34_ccpText; + private int field_35_ccpFtn; + private int field_36_ccpHdd; + private int field_37_ccpMcr; + private int field_38_ccpAtn; + private int field_39_ccpEdn; + private int field_40_ccpTxbx; + private int field_41_ccpHdrTxbx; + private int field_42_pnFbpChpFirst; + private int field_43_pnChpFirst; + private int field_44_cpnBteChp; + private int field_45_pnFbpPapFirst; + private int field_46_pnPapFirst; + private int field_47_cpnBtePap; + private int field_48_pnFbpLvcFirst; + private int field_49_pnLvcFirst; + private int field_50_cpnBteLvc; + private int field_51_fcIslandFirst; + private int field_52_fcIslandLim; + private int field_53_cfclcb; + private int field_54_fcStshfOrig; + private int field_55_lcbStshfOrig; + private int field_56_fcStshf; + private int field_57_lcbStshf; + private int field_58_fcPlcffndRef; + private int field_59_lcbPlcffndRef; + private int field_60_fcPlcffndTxt; + private int field_61_lcbPlcffndTxt; + private int field_62_fcPlcfandRef; + private int field_63_lcbPlcfandRef; + private int field_64_fcPlcfandTxt; + private int field_65_lcbPlcfandTxt; + private int field_66_fcPlcfsed; + private int field_67_lcbPlcfsed; + private int field_68_fcPlcpad; + private int field_69_lcbPlcpad; + private int field_70_fcPlcfphe; + private int field_71_lcbPlcfphe; + private int field_72_fcSttbfglsy; + private int field_73_lcbSttbfglsy; + private int field_74_fcPlcfglsy; + private int field_75_lcbPlcfglsy; + private int field_76_fcPlcfhdd; + private int field_77_lcbPlcfhdd; + private int field_78_fcPlcfbteChpx; + private int field_79_lcbPlcfbteChpx; + private int field_80_fcPlcfbtePapx; + private int field_81_lcbPlcfbtePapx; + private int field_82_fcPlcfsea; + private int field_83_lcbPlcfsea; + private int field_84_fcSttbfffn; + private int field_85_lcbSttbfffn; + private int field_86_fcPlcffldMom; + private int field_87_lcbPlcffldMom; + private int field_88_fcPlcffldHdr; + private int field_89_lcbPlcffldHdr; + private int field_90_fcPlcffldFtn; + private int field_91_lcbPlcffldFtn; + private int field_92_fcPlcffldAtn; + private int field_93_lcbPlcffldAtn; + private int field_94_fcPlcffldMcr; + private int field_95_lcbPlcffldMcr; + private int field_96_fcSttbfbkmk; + private int field_97_lcbSttbfbkmk; + private int field_98_fcPlcfbkf; + private int field_99_lcbPlcfbkf; + private int field_100_fcPlcfbkl; + private int field_101_lcbPlcfbkl; + private int field_102_fcCmds; + private int field_103_lcbCmds; + private int field_104_fcPlcmcr; + private int field_105_lcbPlcmcr; + private int field_106_fcSttbfmcr; + private int field_107_lcbSttbfmcr; + private int field_108_fcPrDrvr; + private int field_109_lcbPrDrvr; + private int field_110_fcPrEnvPort; + private int field_111_lcbPrEnvPort; + private int field_112_fcPrEnvLand; + private int field_113_lcbPrEnvLand; + private int field_114_fcWss; + private int field_115_lcbWss; + private int field_116_fcDop; + private int field_117_lcbDop; + private int field_118_fcSttbfAssoc; + private int field_119_lcbSttbfAssoc; + private int field_120_fcClx; + private int field_121_lcbClx; + private int field_122_fcPlcfpgdFtn; + private int field_123_lcbPlcfpgdFtn; + private int field_124_fcAutosaveSource; + private int field_125_lcbAutosaveSource; + private int field_126_fcGrpXstAtnOwners; + private int field_127_lcbGrpXstAtnOwners; + private int field_128_fcSttbfAtnbkmk; + private int field_129_lcbSttbfAtnbkmk; + private int field_130_fcPlcdoaMom; + private int field_131_lcbPlcdoaMom; + private int field_132_fcPlcdoaHdr; + private int field_133_lcbPlcdoaHdr; + private int field_134_fcPlcspaMom; + private int field_135_lcbPlcspaMom; + private int field_136_fcPlcspaHdr; + private int field_137_lcbPlcspaHdr; + private int field_138_fcPlcfAtnbkf; + private int field_139_lcbPlcfAtnbkf; + private int field_140_fcPlcfAtnbkl; + private int field_141_lcbPlcfAtnbkl; + private int field_142_fcPms; + private int field_143_lcbPms; + private int field_144_fcFormFldSttbs; + private int field_145_lcbFormFldSttbs; + private int field_146_fcPlcfendRef; + private int field_147_lcbPlcfendRef; + private int field_148_fcPlcfendTxt; + private int field_149_lcbPlcfendTxt; + private int field_150_fcPlcffldEdn; + private int field_151_lcbPlcffldEdn; + private int field_152_fcPlcfpgdEdn; + private int field_153_lcbPlcfpgdEdn; + private int field_154_fcDggInfo; + private int field_155_lcbDggInfo; + private int field_156_fcSttbfRMark; + private int field_157_lcbSttbfRMark; + private int field_158_fcSttbCaption; + private int field_159_lcbSttbCaption; + private int field_160_fcSttbAutoCaption; + private int field_161_lcbSttbAutoCaption; + private int field_162_fcPlcfwkb; + private int field_163_lcbPlcfwkb; + private int field_164_fcPlcfspl; + private int field_165_lcbPlcfspl; + private int field_166_fcPlcftxbxTxt; + private int field_167_lcbPlcftxbxTxt; + private int field_168_fcPlcffldTxbx; + private int field_169_lcbPlcffldTxbx; + private int field_170_fcPlcfhdrtxbxTxt; + private int field_171_lcbPlcfhdrtxbxTxt; + private int field_172_fcPlcffldHdrTxbx; + private int field_173_lcbPlcffldHdrTxbx; + private int field_174_fcStwUser; + private int field_175_lcbStwUser; + private int field_176_fcSttbttmbd; + private int field_177_cbSttbttmbd; + private int field_178_fcUnused; + private int field_179_lcbUnused; + private int field_180_fcPgdMother; + private int field_181_lcbPgdMother; + private int field_182_fcBkdMother; + private int field_183_lcbBkdMother; + private int field_184_fcPgdFtn; + private int field_185_lcbPgdFtn; + private int field_186_fcBkdFtn; + private int field_187_lcbBkdFtn; + private int field_188_fcPgdEdn; + private int field_189_lcbPgdEdn; + private int field_190_fcBkdEdn; + private int field_191_lcbBkdEdn; + private int field_192_fcSttbfIntlFld; + private int field_193_lcbSttbfIntlFld; + private int field_194_fcRouteSlip; + private int field_195_lcbRouteSlip; + private int field_196_fcSttbSavedBy; + private int field_197_lcbSttbSavedBy; + private int field_198_fcSttbFnm; + private int field_199_lcbSttbFnm; + private int field_200_fcPlcfLst; + private int field_201_lcbPlcfLst; + private int field_202_fcPlfLfo; + private int field_203_lcbPlfLfo; + private int field_204_fcPlcftxbxBkd; + private int field_205_lcbPlcftxbxBkd; + private int field_206_fcPlcftxbxHdrBkd; + private int field_207_lcbPlcftxbxHdrBkd; + private int field_208_fcDocUndo; + private int field_209_lcbDocUndo; + private int field_210_fcRgbuse; + private int field_211_lcbRgbuse; + private int field_212_fcUsp; + private int field_213_lcbUsp; + private int field_214_fcUskf; + private int field_215_lcbUskf; + private int field_216_fcPlcupcRgbuse; + private int field_217_lcbPlcupcRgbuse; + private int field_218_fcPlcupcUsp; + private int field_219_lcbPlcupcUsp; + private int field_220_fcSttbGlsyStyle; + private int field_221_lcbSttbGlsyStyle; + private int field_222_fcPlgosl; + private int field_223_lcbPlgosl; + private int field_224_fcPlcocx; + private int field_225_lcbPlcocx; + private int field_226_fcPlcfbteLvc; + private int field_227_lcbPlcfbteLvc; + private int field_228_dwLowDateTime; + private int field_229_dwHighDateTime; + private int field_230_fcPlcflvc; + private int field_231_lcbPlcflvc; + private int field_232_fcPlcasumy; + private int field_233_lcbPlcasumy; + private int field_234_fcPlcfgram; + private int field_235_lcbPlcfgram; + private int field_236_fcSttbListNames; + private int field_237_lcbSttbListNames; + private int field_238_fcSttbfUssr; + private int field_239_lcbSttbfUssr; + + + public FIBAbstractType() + { + + } + + protected void fillFields(byte [] data, short size, int offset) + { + field_1_wIdent = LittleEndian.getShort(data, 0x0 + offset); + field_2_nFib = LittleEndian.getShort(data, 0x2 + offset); + field_3_nProduct = LittleEndian.getShort(data, 0x4 + offset); + field_4_lid = LittleEndian.getShort(data, 0x6 + offset); + field_5_pnNext = LittleEndian.getShort(data, 0x8 + offset); + field_6_options = LittleEndian.getShort(data, 0xa + offset); + field_7_nFibBack = LittleEndian.getShort(data, 0xc + offset); + field_8_lKey = LittleEndian.getShort(data, 0xe + offset); + field_9_envr = LittleEndian.getShort(data, 0x10 + offset); + field_10_history = LittleEndian.getShort(data, 0x12 + offset); + field_11_chs = LittleEndian.getShort(data, 0x14 + offset); + field_12_chsTables = LittleEndian.getShort(data, 0x16 + offset); + field_13_fcMin = LittleEndian.getInt(data, 0x18 + offset); + field_14_fcMac = LittleEndian.getInt(data, 0x1c + offset); + field_15_csw = LittleEndian.getShort(data, 0x20 + offset); + field_16_wMagicCreated = LittleEndian.getShort(data, 0x22 + offset); + field_17_wMagicRevised = LittleEndian.getShort(data, 0x24 + offset); + field_18_wMagicCreatedPrivate = LittleEndian.getShort(data, 0x26 + offset); + field_19_wMagicRevisedPrivate = LittleEndian.getShort(data, 0x28 + offset); + field_20_pnFbpChpFirst_W6 = LittleEndian.getShort(data, 0x2a + offset); + field_21_pnChpFirst_W6 = LittleEndian.getShort(data, 0x2c + offset); + field_22_cpnBteChp_W6 = LittleEndian.getShort(data, 0x2e + offset); + field_23_pnFbpPapFirst_W6 = LittleEndian.getShort(data, 0x30 + offset); + field_24_pnPapFirst_W6 = LittleEndian.getShort(data, 0x32 + offset); + field_25_cpnBtePap_W6 = LittleEndian.getShort(data, 0x34 + offset); + field_26_pnFbpLvcFirst_W6 = LittleEndian.getShort(data, 0x36 + offset); + field_27_pnLvcFirst_W6 = LittleEndian.getShort(data, 0x38 + offset); + field_28_cpnBteLvc_W6 = LittleEndian.getShort(data, 0x3a + offset); + field_29_lidFE = LittleEndian.getShort(data, 0x3c + offset); + field_30_clw = LittleEndian.getShort(data, 0x3e + offset); + field_31_cbMac = LittleEndian.getInt(data, 0x40 + offset); + field_32_lProductCreated = LittleEndian.getInt(data, 0x44 + offset); + field_33_lProductRevised = LittleEndian.getInt(data, 0x48 + offset); + field_34_ccpText = LittleEndian.getInt(data, 0x4c + offset); + field_35_ccpFtn = LittleEndian.getInt(data, 0x50 + offset); + field_36_ccpHdd = LittleEndian.getInt(data, 0x54 + offset); + field_37_ccpMcr = LittleEndian.getInt(data, 0x58 + offset); + field_38_ccpAtn = LittleEndian.getInt(data, 0x5c + offset); + field_39_ccpEdn = LittleEndian.getInt(data, 0x60 + offset); + field_40_ccpTxbx = LittleEndian.getInt(data, 0x64 + offset); + field_41_ccpHdrTxbx = LittleEndian.getInt(data, 0x68 + offset); + field_42_pnFbpChpFirst = LittleEndian.getInt(data, 0x6c + offset); + field_43_pnChpFirst = LittleEndian.getInt(data, 0x70 + offset); + field_44_cpnBteChp = LittleEndian.getInt(data, 0x74 + offset); + field_45_pnFbpPapFirst = LittleEndian.getInt(data, 0x78 + offset); + field_46_pnPapFirst = LittleEndian.getInt(data, 0x7c + offset); + field_47_cpnBtePap = LittleEndian.getInt(data, 0x80 + offset); + field_48_pnFbpLvcFirst = LittleEndian.getInt(data, 0x84 + offset); + field_49_pnLvcFirst = LittleEndian.getInt(data, 0x88 + offset); + field_50_cpnBteLvc = LittleEndian.getInt(data, 0x8c + offset); + field_51_fcIslandFirst = LittleEndian.getInt(data, 0x90 + offset); + field_52_fcIslandLim = LittleEndian.getInt(data, 0x94 + offset); + field_53_cfclcb = LittleEndian.getShort(data, 0x98 + offset); + field_54_fcStshfOrig = LittleEndian.getInt(data, 0x9a + offset); + field_55_lcbStshfOrig = LittleEndian.getInt(data, 0x9e + offset); + field_56_fcStshf = LittleEndian.getInt(data, 0xa2 + offset); + field_57_lcbStshf = LittleEndian.getInt(data, 0xa6 + offset); + field_58_fcPlcffndRef = LittleEndian.getInt(data, 0xaa + offset); + field_59_lcbPlcffndRef = LittleEndian.getInt(data, 0xae + offset); + field_60_fcPlcffndTxt = LittleEndian.getInt(data, 0xb2 + offset); + field_61_lcbPlcffndTxt = LittleEndian.getInt(data, 0xb6 + offset); + field_62_fcPlcfandRef = LittleEndian.getInt(data, 0xba + offset); + field_63_lcbPlcfandRef = LittleEndian.getInt(data, 0xbe + offset); + field_64_fcPlcfandTxt = LittleEndian.getInt(data, 0xc2 + offset); + field_65_lcbPlcfandTxt = LittleEndian.getInt(data, 0xc6 + offset); + field_66_fcPlcfsed = LittleEndian.getInt(data, 0xca + offset); + field_67_lcbPlcfsed = LittleEndian.getInt(data, 0xce + offset); + field_68_fcPlcpad = LittleEndian.getInt(data, 0xd2 + offset); + field_69_lcbPlcpad = LittleEndian.getInt(data, 0xd6 + offset); + field_70_fcPlcfphe = LittleEndian.getInt(data, 0xda + offset); + field_71_lcbPlcfphe = LittleEndian.getInt(data, 0xde + offset); + field_72_fcSttbfglsy = LittleEndian.getInt(data, 0xe2 + offset); + field_73_lcbSttbfglsy = LittleEndian.getInt(data, 0xe6 + offset); + field_74_fcPlcfglsy = LittleEndian.getInt(data, 0xea + offset); + field_75_lcbPlcfglsy = LittleEndian.getInt(data, 0xee + offset); + field_76_fcPlcfhdd = LittleEndian.getInt(data, 0xf2 + offset); + field_77_lcbPlcfhdd = LittleEndian.getInt(data, 0xf6 + offset); + field_78_fcPlcfbteChpx = LittleEndian.getInt(data, 0xfa + offset); + field_79_lcbPlcfbteChpx = LittleEndian.getInt(data, 0xfe + offset); + field_80_fcPlcfbtePapx = LittleEndian.getInt(data, 0x102 + offset); + field_81_lcbPlcfbtePapx = LittleEndian.getInt(data, 0x106 + offset); + field_82_fcPlcfsea = LittleEndian.getInt(data, 0x10a + offset); + field_83_lcbPlcfsea = LittleEndian.getInt(data, 0x10e + offset); + field_84_fcSttbfffn = LittleEndian.getInt(data, 0x112 + offset); + field_85_lcbSttbfffn = LittleEndian.getInt(data, 0x116 + offset); + field_86_fcPlcffldMom = LittleEndian.getInt(data, 0x11a + offset); + field_87_lcbPlcffldMom = LittleEndian.getInt(data, 0x11e + offset); + field_88_fcPlcffldHdr = LittleEndian.getInt(data, 0x122 + offset); + field_89_lcbPlcffldHdr = LittleEndian.getInt(data, 0x126 + offset); + field_90_fcPlcffldFtn = LittleEndian.getInt(data, 0x12a + offset); + field_91_lcbPlcffldFtn = LittleEndian.getInt(data, 0x12e + offset); + field_92_fcPlcffldAtn = LittleEndian.getInt(data, 0x132 + offset); + field_93_lcbPlcffldAtn = LittleEndian.getInt(data, 0x136 + offset); + field_94_fcPlcffldMcr = LittleEndian.getInt(data, 0x13a + offset); + field_95_lcbPlcffldMcr = LittleEndian.getInt(data, 0x13e + offset); + field_96_fcSttbfbkmk = LittleEndian.getInt(data, 0x142 + offset); + field_97_lcbSttbfbkmk = LittleEndian.getInt(data, 0x146 + offset); + field_98_fcPlcfbkf = LittleEndian.getInt(data, 0x14a + offset); + field_99_lcbPlcfbkf = LittleEndian.getInt(data, 0x14e + offset); + field_100_fcPlcfbkl = LittleEndian.getInt(data, 0x152 + offset); + field_101_lcbPlcfbkl = LittleEndian.getInt(data, 0x156 + offset); + field_102_fcCmds = LittleEndian.getInt(data, 0x15a + offset); + field_103_lcbCmds = LittleEndian.getInt(data, 0x15e + offset); + field_104_fcPlcmcr = LittleEndian.getInt(data, 0x162 + offset); + field_105_lcbPlcmcr = LittleEndian.getInt(data, 0x166 + offset); + field_106_fcSttbfmcr = LittleEndian.getInt(data, 0x16a + offset); + field_107_lcbSttbfmcr = LittleEndian.getInt(data, 0x16e + offset); + field_108_fcPrDrvr = LittleEndian.getInt(data, 0x172 + offset); + field_109_lcbPrDrvr = LittleEndian.getInt(data, 0x176 + offset); + field_110_fcPrEnvPort = LittleEndian.getInt(data, 0x17a + offset); + field_111_lcbPrEnvPort = LittleEndian.getInt(data, 0x17e + offset); + field_112_fcPrEnvLand = LittleEndian.getInt(data, 0x182 + offset); + field_113_lcbPrEnvLand = LittleEndian.getInt(data, 0x186 + offset); + field_114_fcWss = LittleEndian.getInt(data, 0x18a + offset); + field_115_lcbWss = LittleEndian.getInt(data, 0x18e + offset); + field_116_fcDop = LittleEndian.getInt(data, 0x192 + offset); + field_117_lcbDop = LittleEndian.getInt(data, 0x196 + offset); + field_118_fcSttbfAssoc = LittleEndian.getInt(data, 0x19a + offset); + field_119_lcbSttbfAssoc = LittleEndian.getInt(data, 0x19e + offset); + field_120_fcClx = LittleEndian.getInt(data, 0x1a2 + offset); + field_121_lcbClx = LittleEndian.getInt(data, 0x1a6 + offset); + field_122_fcPlcfpgdFtn = LittleEndian.getInt(data, 0x1aa + offset); + field_123_lcbPlcfpgdFtn = LittleEndian.getInt(data, 0x1ae + offset); + field_124_fcAutosaveSource = LittleEndian.getInt(data, 0x1b2 + offset); + field_125_lcbAutosaveSource = LittleEndian.getInt(data, 0x1b6 + offset); + field_126_fcGrpXstAtnOwners = LittleEndian.getInt(data, 0x1ba + offset); + field_127_lcbGrpXstAtnOwners = LittleEndian.getInt(data, 0x1be + offset); + field_128_fcSttbfAtnbkmk = LittleEndian.getInt(data, 0x1c2 + offset); + field_129_lcbSttbfAtnbkmk = LittleEndian.getInt(data, 0x1c6 + offset); + field_130_fcPlcdoaMom = LittleEndian.getInt(data, 0x1ca + offset); + field_131_lcbPlcdoaMom = LittleEndian.getInt(data, 0x1ce + offset); + field_132_fcPlcdoaHdr = LittleEndian.getInt(data, 0x1d2 + offset); + field_133_lcbPlcdoaHdr = LittleEndian.getInt(data, 0x1d6 + offset); + field_134_fcPlcspaMom = LittleEndian.getInt(data, 0x1da + offset); + field_135_lcbPlcspaMom = LittleEndian.getInt(data, 0x1de + offset); + field_136_fcPlcspaHdr = LittleEndian.getInt(data, 0x1e2 + offset); + field_137_lcbPlcspaHdr = LittleEndian.getInt(data, 0x1e6 + offset); + field_138_fcPlcfAtnbkf = LittleEndian.getInt(data, 0x1ea + offset); + field_139_lcbPlcfAtnbkf = LittleEndian.getInt(data, 0x1ee + offset); + field_140_fcPlcfAtnbkl = LittleEndian.getInt(data, 0x1f2 + offset); + field_141_lcbPlcfAtnbkl = LittleEndian.getInt(data, 0x1f6 + offset); + field_142_fcPms = LittleEndian.getInt(data, 0x1fa + offset); + field_143_lcbPms = LittleEndian.getInt(data, 0x1fe + offset); + field_144_fcFormFldSttbs = LittleEndian.getInt(data, 0x202 + offset); + field_145_lcbFormFldSttbs = LittleEndian.getInt(data, 0x206 + offset); + field_146_fcPlcfendRef = LittleEndian.getInt(data, 0x20a + offset); + field_147_lcbPlcfendRef = LittleEndian.getInt(data, 0x20e + offset); + field_148_fcPlcfendTxt = LittleEndian.getInt(data, 0x212 + offset); + field_149_lcbPlcfendTxt = LittleEndian.getInt(data, 0x216 + offset); + field_150_fcPlcffldEdn = LittleEndian.getInt(data, 0x21a + offset); + field_151_lcbPlcffldEdn = LittleEndian.getInt(data, 0x21e + offset); + field_152_fcPlcfpgdEdn = LittleEndian.getInt(data, 0x222 + offset); + field_153_lcbPlcfpgdEdn = LittleEndian.getInt(data, 0x226 + offset); + field_154_fcDggInfo = LittleEndian.getInt(data, 0x22a + offset); + field_155_lcbDggInfo = LittleEndian.getInt(data, 0x22e + offset); + field_156_fcSttbfRMark = LittleEndian.getInt(data, 0x232 + offset); + field_157_lcbSttbfRMark = LittleEndian.getInt(data, 0x236 + offset); + field_158_fcSttbCaption = LittleEndian.getInt(data, 0x23a + offset); + field_159_lcbSttbCaption = LittleEndian.getInt(data, 0x23e + offset); + field_160_fcSttbAutoCaption = LittleEndian.getInt(data, 0x242 + offset); + field_161_lcbSttbAutoCaption = LittleEndian.getInt(data, 0x246 + offset); + field_162_fcPlcfwkb = LittleEndian.getInt(data, 0x24a + offset); + field_163_lcbPlcfwkb = LittleEndian.getInt(data, 0x24e + offset); + field_164_fcPlcfspl = LittleEndian.getInt(data, 0x252 + offset); + field_165_lcbPlcfspl = LittleEndian.getInt(data, 0x256 + offset); + field_166_fcPlcftxbxTxt = LittleEndian.getInt(data, 0x25a + offset); + field_167_lcbPlcftxbxTxt = LittleEndian.getInt(data, 0x25e + offset); + field_168_fcPlcffldTxbx = LittleEndian.getInt(data, 0x262 + offset); + field_169_lcbPlcffldTxbx = LittleEndian.getInt(data, 0x266 + offset); + field_170_fcPlcfhdrtxbxTxt = LittleEndian.getInt(data, 0x26a + offset); + field_171_lcbPlcfhdrtxbxTxt = LittleEndian.getInt(data, 0x26e + offset); + field_172_fcPlcffldHdrTxbx = LittleEndian.getInt(data, 0x272 + offset); + field_173_lcbPlcffldHdrTxbx = LittleEndian.getInt(data, 0x276 + offset); + field_174_fcStwUser = LittleEndian.getInt(data, 0x27a + offset); + field_175_lcbStwUser = LittleEndian.getInt(data, 0x27e + offset); + field_176_fcSttbttmbd = LittleEndian.getInt(data, 0x282 + offset); + field_177_cbSttbttmbd = LittleEndian.getInt(data, 0x286 + offset); + field_178_fcUnused = LittleEndian.getInt(data, 0x28a + offset); + field_179_lcbUnused = LittleEndian.getInt(data, 0x28e + offset); + field_180_fcPgdMother = LittleEndian.getInt(data, 0x292 + offset); + field_181_lcbPgdMother = LittleEndian.getInt(data, 0x296 + offset); + field_182_fcBkdMother = LittleEndian.getInt(data, 0x29a + offset); + field_183_lcbBkdMother = LittleEndian.getInt(data, 0x29e + offset); + field_184_fcPgdFtn = LittleEndian.getInt(data, 0x2a2 + offset); + field_185_lcbPgdFtn = LittleEndian.getInt(data, 0x2a6 + offset); + field_186_fcBkdFtn = LittleEndian.getInt(data, 0x2aa + offset); + field_187_lcbBkdFtn = LittleEndian.getInt(data, 0x2ae + offset); + field_188_fcPgdEdn = LittleEndian.getInt(data, 0x2b2 + offset); + field_189_lcbPgdEdn = LittleEndian.getInt(data, 0x2b6 + offset); + field_190_fcBkdEdn = LittleEndian.getInt(data, 0x2ba + offset); + field_191_lcbBkdEdn = LittleEndian.getInt(data, 0x2be + offset); + field_192_fcSttbfIntlFld = LittleEndian.getInt(data, 0x2c2 + offset); + field_193_lcbSttbfIntlFld = LittleEndian.getInt(data, 0x2c6 + offset); + field_194_fcRouteSlip = LittleEndian.getInt(data, 0x2ca + offset); + field_195_lcbRouteSlip = LittleEndian.getInt(data, 0x2ce + offset); + field_196_fcSttbSavedBy = LittleEndian.getInt(data, 0x2d2 + offset); + field_197_lcbSttbSavedBy = LittleEndian.getInt(data, 0x2d6 + offset); + field_198_fcSttbFnm = LittleEndian.getInt(data, 0x2da + offset); + field_199_lcbSttbFnm = LittleEndian.getInt(data, 0x2de + offset); + field_200_fcPlcfLst = LittleEndian.getInt(data, 0x2e2 + offset); + field_201_lcbPlcfLst = LittleEndian.getInt(data, 0x2e6 + offset); + field_202_fcPlfLfo = LittleEndian.getInt(data, 0x2ea + offset); + field_203_lcbPlfLfo = LittleEndian.getInt(data, 0x2ee + offset); + field_204_fcPlcftxbxBkd = LittleEndian.getInt(data, 0x2f2 + offset); + field_205_lcbPlcftxbxBkd = LittleEndian.getInt(data, 0x2f6 + offset); + field_206_fcPlcftxbxHdrBkd = LittleEndian.getInt(data, 0x2fa + offset); + field_207_lcbPlcftxbxHdrBkd = LittleEndian.getInt(data, 0x2fe + offset); + field_208_fcDocUndo = LittleEndian.getInt(data, 0x302 + offset); + field_209_lcbDocUndo = LittleEndian.getInt(data, 0x306 + offset); + field_210_fcRgbuse = LittleEndian.getInt(data, 0x30a + offset); + field_211_lcbRgbuse = LittleEndian.getInt(data, 0x30e + offset); + field_212_fcUsp = LittleEndian.getInt(data, 0x312 + offset); + field_213_lcbUsp = LittleEndian.getInt(data, 0x316 + offset); + field_214_fcUskf = LittleEndian.getInt(data, 0x31a + offset); + field_215_lcbUskf = LittleEndian.getInt(data, 0x31e + offset); + field_216_fcPlcupcRgbuse = LittleEndian.getInt(data, 0x322 + offset); + field_217_lcbPlcupcRgbuse = LittleEndian.getInt(data, 0x326 + offset); + field_218_fcPlcupcUsp = LittleEndian.getInt(data, 0x32a + offset); + field_219_lcbPlcupcUsp = LittleEndian.getInt(data, 0x32e + offset); + field_220_fcSttbGlsyStyle = LittleEndian.getInt(data, 0x332 + offset); + field_221_lcbSttbGlsyStyle = LittleEndian.getInt(data, 0x336 + offset); + field_222_fcPlgosl = LittleEndian.getInt(data, 0x33a + offset); + field_223_lcbPlgosl = LittleEndian.getInt(data, 0x33e + offset); + field_224_fcPlcocx = LittleEndian.getInt(data, 0x342 + offset); + field_225_lcbPlcocx = LittleEndian.getInt(data, 0x346 + offset); + field_226_fcPlcfbteLvc = LittleEndian.getInt(data, 0x34a + offset); + field_227_lcbPlcfbteLvc = LittleEndian.getInt(data, 0x34e + offset); + field_228_dwLowDateTime = LittleEndian.getInt(data, 0x352 + offset); + field_229_dwHighDateTime = LittleEndian.getInt(data, 0x356 + offset); + field_230_fcPlcflvc = LittleEndian.getInt(data, 0x35a + offset); + field_231_lcbPlcflvc = LittleEndian.getInt(data, 0x35e + offset); + field_232_fcPlcasumy = LittleEndian.getInt(data, 0x362 + offset); + field_233_lcbPlcasumy = LittleEndian.getInt(data, 0x366 + offset); + field_234_fcPlcfgram = LittleEndian.getInt(data, 0x36a + offset); + field_235_lcbPlcfgram = LittleEndian.getInt(data, 0x36e + offset); + field_236_fcSttbListNames = LittleEndian.getInt(data, 0x372 + offset); + field_237_lcbSttbListNames = LittleEndian.getInt(data, 0x376 + offset); + field_238_fcSttbfUssr = LittleEndian.getInt(data, 0x37a + offset); + field_239_lcbSttbfUssr = LittleEndian.getInt(data, 0x37e + offset); + + } + + public void serialize(byte[] data, int offset) + { + LittleEndian.putShort(data, 0x0 + offset, (short)field_1_wIdent);; + LittleEndian.putShort(data, 0x2 + offset, (short)field_2_nFib);; + LittleEndian.putShort(data, 0x4 + offset, (short)field_3_nProduct);; + LittleEndian.putShort(data, 0x6 + offset, (short)field_4_lid);; + LittleEndian.putShort(data, 0x8 + offset, (short)field_5_pnNext);; + LittleEndian.putShort(data, 0xa + offset, (short)field_6_options);; + LittleEndian.putShort(data, 0xc + offset, (short)field_7_nFibBack);; + LittleEndian.putShort(data, 0xe + offset, (short)field_8_lKey);; + LittleEndian.putShort(data, 0x10 + offset, (short)field_9_envr);; + LittleEndian.putShort(data, 0x12 + offset, (short)field_10_history);; + LittleEndian.putShort(data, 0x14 + offset, (short)field_11_chs);; + LittleEndian.putShort(data, 0x16 + offset, (short)field_12_chsTables);; + LittleEndian.putInt(data, 0x18 + offset, field_13_fcMin);; + LittleEndian.putInt(data, 0x1c + offset, field_14_fcMac);; + LittleEndian.putShort(data, 0x20 + offset, (short)field_15_csw);; + LittleEndian.putShort(data, 0x22 + offset, (short)field_16_wMagicCreated);; + LittleEndian.putShort(data, 0x24 + offset, (short)field_17_wMagicRevised);; + LittleEndian.putShort(data, 0x26 + offset, (short)field_18_wMagicCreatedPrivate);; + LittleEndian.putShort(data, 0x28 + offset, (short)field_19_wMagicRevisedPrivate);; + LittleEndian.putShort(data, 0x2a + offset, (short)field_20_pnFbpChpFirst_W6);; + LittleEndian.putShort(data, 0x2c + offset, (short)field_21_pnChpFirst_W6);; + LittleEndian.putShort(data, 0x2e + offset, (short)field_22_cpnBteChp_W6);; + LittleEndian.putShort(data, 0x30 + offset, (short)field_23_pnFbpPapFirst_W6);; + LittleEndian.putShort(data, 0x32 + offset, (short)field_24_pnPapFirst_W6);; + LittleEndian.putShort(data, 0x34 + offset, (short)field_25_cpnBtePap_W6);; + LittleEndian.putShort(data, 0x36 + offset, (short)field_26_pnFbpLvcFirst_W6);; + LittleEndian.putShort(data, 0x38 + offset, (short)field_27_pnLvcFirst_W6);; + LittleEndian.putShort(data, 0x3a + offset, (short)field_28_cpnBteLvc_W6);; + LittleEndian.putShort(data, 0x3c + offset, (short)field_29_lidFE);; + LittleEndian.putShort(data, 0x3e + offset, (short)field_30_clw);; + LittleEndian.putInt(data, 0x40 + offset, field_31_cbMac);; + LittleEndian.putInt(data, 0x44 + offset, field_32_lProductCreated);; + LittleEndian.putInt(data, 0x48 + offset, field_33_lProductRevised);; + LittleEndian.putInt(data, 0x4c + offset, field_34_ccpText);; + LittleEndian.putInt(data, 0x50 + offset, field_35_ccpFtn);; + LittleEndian.putInt(data, 0x54 + offset, field_36_ccpHdd);; + LittleEndian.putInt(data, 0x58 + offset, field_37_ccpMcr);; + LittleEndian.putInt(data, 0x5c + offset, field_38_ccpAtn);; + LittleEndian.putInt(data, 0x60 + offset, field_39_ccpEdn);; + LittleEndian.putInt(data, 0x64 + offset, field_40_ccpTxbx);; + LittleEndian.putInt(data, 0x68 + offset, field_41_ccpHdrTxbx);; + LittleEndian.putInt(data, 0x6c + offset, field_42_pnFbpChpFirst);; + LittleEndian.putInt(data, 0x70 + offset, field_43_pnChpFirst);; + LittleEndian.putInt(data, 0x74 + offset, field_44_cpnBteChp);; + LittleEndian.putInt(data, 0x78 + offset, field_45_pnFbpPapFirst);; + LittleEndian.putInt(data, 0x7c + offset, field_46_pnPapFirst);; + LittleEndian.putInt(data, 0x80 + offset, field_47_cpnBtePap);; + LittleEndian.putInt(data, 0x84 + offset, field_48_pnFbpLvcFirst);; + LittleEndian.putInt(data, 0x88 + offset, field_49_pnLvcFirst);; + LittleEndian.putInt(data, 0x8c + offset, field_50_cpnBteLvc);; + LittleEndian.putInt(data, 0x90 + offset, field_51_fcIslandFirst);; + LittleEndian.putInt(data, 0x94 + offset, field_52_fcIslandLim);; + LittleEndian.putShort(data, 0x98 + offset, (short)field_53_cfclcb);; + LittleEndian.putInt(data, 0x9a + offset, field_54_fcStshfOrig);; + LittleEndian.putInt(data, 0x9e + offset, field_55_lcbStshfOrig);; + LittleEndian.putInt(data, 0xa2 + offset, field_56_fcStshf);; + LittleEndian.putInt(data, 0xa6 + offset, field_57_lcbStshf);; + LittleEndian.putInt(data, 0xaa + offset, field_58_fcPlcffndRef);; + LittleEndian.putInt(data, 0xae + offset, field_59_lcbPlcffndRef);; + LittleEndian.putInt(data, 0xb2 + offset, field_60_fcPlcffndTxt);; + LittleEndian.putInt(data, 0xb6 + offset, field_61_lcbPlcffndTxt);; + LittleEndian.putInt(data, 0xba + offset, field_62_fcPlcfandRef);; + LittleEndian.putInt(data, 0xbe + offset, field_63_lcbPlcfandRef);; + LittleEndian.putInt(data, 0xc2 + offset, field_64_fcPlcfandTxt);; + LittleEndian.putInt(data, 0xc6 + offset, field_65_lcbPlcfandTxt);; + LittleEndian.putInt(data, 0xca + offset, field_66_fcPlcfsed);; + LittleEndian.putInt(data, 0xce + offset, field_67_lcbPlcfsed);; + LittleEndian.putInt(data, 0xd2 + offset, field_68_fcPlcpad);; + LittleEndian.putInt(data, 0xd6 + offset, field_69_lcbPlcpad);; + LittleEndian.putInt(data, 0xda + offset, field_70_fcPlcfphe);; + LittleEndian.putInt(data, 0xde + offset, field_71_lcbPlcfphe);; + LittleEndian.putInt(data, 0xe2 + offset, field_72_fcSttbfglsy);; + LittleEndian.putInt(data, 0xe6 + offset, field_73_lcbSttbfglsy);; + LittleEndian.putInt(data, 0xea + offset, field_74_fcPlcfglsy);; + LittleEndian.putInt(data, 0xee + offset, field_75_lcbPlcfglsy);; + LittleEndian.putInt(data, 0xf2 + offset, field_76_fcPlcfhdd);; + LittleEndian.putInt(data, 0xf6 + offset, field_77_lcbPlcfhdd);; + LittleEndian.putInt(data, 0xfa + offset, field_78_fcPlcfbteChpx);; + LittleEndian.putInt(data, 0xfe + offset, field_79_lcbPlcfbteChpx);; + LittleEndian.putInt(data, 0x102 + offset, field_80_fcPlcfbtePapx);; + LittleEndian.putInt(data, 0x106 + offset, field_81_lcbPlcfbtePapx);; + LittleEndian.putInt(data, 0x10a + offset, field_82_fcPlcfsea);; + LittleEndian.putInt(data, 0x10e + offset, field_83_lcbPlcfsea);; + LittleEndian.putInt(data, 0x112 + offset, field_84_fcSttbfffn);; + LittleEndian.putInt(data, 0x116 + offset, field_85_lcbSttbfffn);; + LittleEndian.putInt(data, 0x11a + offset, field_86_fcPlcffldMom);; + LittleEndian.putInt(data, 0x11e + offset, field_87_lcbPlcffldMom);; + LittleEndian.putInt(data, 0x122 + offset, field_88_fcPlcffldHdr);; + LittleEndian.putInt(data, 0x126 + offset, field_89_lcbPlcffldHdr);; + LittleEndian.putInt(data, 0x12a + offset, field_90_fcPlcffldFtn);; + LittleEndian.putInt(data, 0x12e + offset, field_91_lcbPlcffldFtn);; + LittleEndian.putInt(data, 0x132 + offset, field_92_fcPlcffldAtn);; + LittleEndian.putInt(data, 0x136 + offset, field_93_lcbPlcffldAtn);; + LittleEndian.putInt(data, 0x13a + offset, field_94_fcPlcffldMcr);; + LittleEndian.putInt(data, 0x13e + offset, field_95_lcbPlcffldMcr);; + LittleEndian.putInt(data, 0x142 + offset, field_96_fcSttbfbkmk);; + LittleEndian.putInt(data, 0x146 + offset, field_97_lcbSttbfbkmk);; + LittleEndian.putInt(data, 0x14a + offset, field_98_fcPlcfbkf);; + LittleEndian.putInt(data, 0x14e + offset, field_99_lcbPlcfbkf);; + LittleEndian.putInt(data, 0x152 + offset, field_100_fcPlcfbkl);; + LittleEndian.putInt(data, 0x156 + offset, field_101_lcbPlcfbkl);; + LittleEndian.putInt(data, 0x15a + offset, field_102_fcCmds);; + LittleEndian.putInt(data, 0x15e + offset, field_103_lcbCmds);; + LittleEndian.putInt(data, 0x162 + offset, field_104_fcPlcmcr);; + LittleEndian.putInt(data, 0x166 + offset, field_105_lcbPlcmcr);; + LittleEndian.putInt(data, 0x16a + offset, field_106_fcSttbfmcr);; + LittleEndian.putInt(data, 0x16e + offset, field_107_lcbSttbfmcr);; + LittleEndian.putInt(data, 0x172 + offset, field_108_fcPrDrvr);; + LittleEndian.putInt(data, 0x176 + offset, field_109_lcbPrDrvr);; + LittleEndian.putInt(data, 0x17a + offset, field_110_fcPrEnvPort);; + LittleEndian.putInt(data, 0x17e + offset, field_111_lcbPrEnvPort);; + LittleEndian.putInt(data, 0x182 + offset, field_112_fcPrEnvLand);; + LittleEndian.putInt(data, 0x186 + offset, field_113_lcbPrEnvLand);; + LittleEndian.putInt(data, 0x18a + offset, field_114_fcWss);; + LittleEndian.putInt(data, 0x18e + offset, field_115_lcbWss);; + LittleEndian.putInt(data, 0x192 + offset, field_116_fcDop);; + LittleEndian.putInt(data, 0x196 + offset, field_117_lcbDop);; + LittleEndian.putInt(data, 0x19a + offset, field_118_fcSttbfAssoc);; + LittleEndian.putInt(data, 0x19e + offset, field_119_lcbSttbfAssoc);; + LittleEndian.putInt(data, 0x1a2 + offset, field_120_fcClx);; + LittleEndian.putInt(data, 0x1a6 + offset, field_121_lcbClx);; + LittleEndian.putInt(data, 0x1aa + offset, field_122_fcPlcfpgdFtn);; + LittleEndian.putInt(data, 0x1ae + offset, field_123_lcbPlcfpgdFtn);; + LittleEndian.putInt(data, 0x1b2 + offset, field_124_fcAutosaveSource);; + LittleEndian.putInt(data, 0x1b6 + offset, field_125_lcbAutosaveSource);; + LittleEndian.putInt(data, 0x1ba + offset, field_126_fcGrpXstAtnOwners);; + LittleEndian.putInt(data, 0x1be + offset, field_127_lcbGrpXstAtnOwners);; + LittleEndian.putInt(data, 0x1c2 + offset, field_128_fcSttbfAtnbkmk);; + LittleEndian.putInt(data, 0x1c6 + offset, field_129_lcbSttbfAtnbkmk);; + LittleEndian.putInt(data, 0x1ca + offset, field_130_fcPlcdoaMom);; + LittleEndian.putInt(data, 0x1ce + offset, field_131_lcbPlcdoaMom);; + LittleEndian.putInt(data, 0x1d2 + offset, field_132_fcPlcdoaHdr);; + LittleEndian.putInt(data, 0x1d6 + offset, field_133_lcbPlcdoaHdr);; + LittleEndian.putInt(data, 0x1da + offset, field_134_fcPlcspaMom);; + LittleEndian.putInt(data, 0x1de + offset, field_135_lcbPlcspaMom);; + LittleEndian.putInt(data, 0x1e2 + offset, field_136_fcPlcspaHdr);; + LittleEndian.putInt(data, 0x1e6 + offset, field_137_lcbPlcspaHdr);; + LittleEndian.putInt(data, 0x1ea + offset, field_138_fcPlcfAtnbkf);; + LittleEndian.putInt(data, 0x1ee + offset, field_139_lcbPlcfAtnbkf);; + LittleEndian.putInt(data, 0x1f2 + offset, field_140_fcPlcfAtnbkl);; + LittleEndian.putInt(data, 0x1f6 + offset, field_141_lcbPlcfAtnbkl);; + LittleEndian.putInt(data, 0x1fa + offset, field_142_fcPms);; + LittleEndian.putInt(data, 0x1fe + offset, field_143_lcbPms);; + LittleEndian.putInt(data, 0x202 + offset, field_144_fcFormFldSttbs);; + LittleEndian.putInt(data, 0x206 + offset, field_145_lcbFormFldSttbs);; + LittleEndian.putInt(data, 0x20a + offset, field_146_fcPlcfendRef);; + LittleEndian.putInt(data, 0x20e + offset, field_147_lcbPlcfendRef);; + LittleEndian.putInt(data, 0x212 + offset, field_148_fcPlcfendTxt);; + LittleEndian.putInt(data, 0x216 + offset, field_149_lcbPlcfendTxt);; + LittleEndian.putInt(data, 0x21a + offset, field_150_fcPlcffldEdn);; + LittleEndian.putInt(data, 0x21e + offset, field_151_lcbPlcffldEdn);; + LittleEndian.putInt(data, 0x222 + offset, field_152_fcPlcfpgdEdn);; + LittleEndian.putInt(data, 0x226 + offset, field_153_lcbPlcfpgdEdn);; + LittleEndian.putInt(data, 0x22a + offset, field_154_fcDggInfo);; + LittleEndian.putInt(data, 0x22e + offset, field_155_lcbDggInfo);; + LittleEndian.putInt(data, 0x232 + offset, field_156_fcSttbfRMark);; + LittleEndian.putInt(data, 0x236 + offset, field_157_lcbSttbfRMark);; + LittleEndian.putInt(data, 0x23a + offset, field_158_fcSttbCaption);; + LittleEndian.putInt(data, 0x23e + offset, field_159_lcbSttbCaption);; + LittleEndian.putInt(data, 0x242 + offset, field_160_fcSttbAutoCaption);; + LittleEndian.putInt(data, 0x246 + offset, field_161_lcbSttbAutoCaption);; + LittleEndian.putInt(data, 0x24a + offset, field_162_fcPlcfwkb);; + LittleEndian.putInt(data, 0x24e + offset, field_163_lcbPlcfwkb);; + LittleEndian.putInt(data, 0x252 + offset, field_164_fcPlcfspl);; + LittleEndian.putInt(data, 0x256 + offset, field_165_lcbPlcfspl);; + LittleEndian.putInt(data, 0x25a + offset, field_166_fcPlcftxbxTxt);; + LittleEndian.putInt(data, 0x25e + offset, field_167_lcbPlcftxbxTxt);; + LittleEndian.putInt(data, 0x262 + offset, field_168_fcPlcffldTxbx);; + LittleEndian.putInt(data, 0x266 + offset, field_169_lcbPlcffldTxbx);; + LittleEndian.putInt(data, 0x26a + offset, field_170_fcPlcfhdrtxbxTxt);; + LittleEndian.putInt(data, 0x26e + offset, field_171_lcbPlcfhdrtxbxTxt);; + LittleEndian.putInt(data, 0x272 + offset, field_172_fcPlcffldHdrTxbx);; + LittleEndian.putInt(data, 0x276 + offset, field_173_lcbPlcffldHdrTxbx);; + LittleEndian.putInt(data, 0x27a + offset, field_174_fcStwUser);; + LittleEndian.putInt(data, 0x27e + offset, field_175_lcbStwUser);; + LittleEndian.putInt(data, 0x282 + offset, field_176_fcSttbttmbd);; + LittleEndian.putInt(data, 0x286 + offset, field_177_cbSttbttmbd);; + LittleEndian.putInt(data, 0x28a + offset, field_178_fcUnused);; + LittleEndian.putInt(data, 0x28e + offset, field_179_lcbUnused);; + LittleEndian.putInt(data, 0x292 + offset, field_180_fcPgdMother);; + LittleEndian.putInt(data, 0x296 + offset, field_181_lcbPgdMother);; + LittleEndian.putInt(data, 0x29a + offset, field_182_fcBkdMother);; + LittleEndian.putInt(data, 0x29e + offset, field_183_lcbBkdMother);; + LittleEndian.putInt(data, 0x2a2 + offset, field_184_fcPgdFtn);; + LittleEndian.putInt(data, 0x2a6 + offset, field_185_lcbPgdFtn);; + LittleEndian.putInt(data, 0x2aa + offset, field_186_fcBkdFtn);; + LittleEndian.putInt(data, 0x2ae + offset, field_187_lcbBkdFtn);; + LittleEndian.putInt(data, 0x2b2 + offset, field_188_fcPgdEdn);; + LittleEndian.putInt(data, 0x2b6 + offset, field_189_lcbPgdEdn);; + LittleEndian.putInt(data, 0x2ba + offset, field_190_fcBkdEdn);; + LittleEndian.putInt(data, 0x2be + offset, field_191_lcbBkdEdn);; + LittleEndian.putInt(data, 0x2c2 + offset, field_192_fcSttbfIntlFld);; + LittleEndian.putInt(data, 0x2c6 + offset, field_193_lcbSttbfIntlFld);; + LittleEndian.putInt(data, 0x2ca + offset, field_194_fcRouteSlip);; + LittleEndian.putInt(data, 0x2ce + offset, field_195_lcbRouteSlip);; + LittleEndian.putInt(data, 0x2d2 + offset, field_196_fcSttbSavedBy);; + LittleEndian.putInt(data, 0x2d6 + offset, field_197_lcbSttbSavedBy);; + LittleEndian.putInt(data, 0x2da + offset, field_198_fcSttbFnm);; + LittleEndian.putInt(data, 0x2de + offset, field_199_lcbSttbFnm);; + LittleEndian.putInt(data, 0x2e2 + offset, field_200_fcPlcfLst);; + LittleEndian.putInt(data, 0x2e6 + offset, field_201_lcbPlcfLst);; + LittleEndian.putInt(data, 0x2ea + offset, field_202_fcPlfLfo);; + LittleEndian.putInt(data, 0x2ee + offset, field_203_lcbPlfLfo);; + LittleEndian.putInt(data, 0x2f2 + offset, field_204_fcPlcftxbxBkd);; + LittleEndian.putInt(data, 0x2f6 + offset, field_205_lcbPlcftxbxBkd);; + LittleEndian.putInt(data, 0x2fa + offset, field_206_fcPlcftxbxHdrBkd);; + LittleEndian.putInt(data, 0x2fe + offset, field_207_lcbPlcftxbxHdrBkd);; + LittleEndian.putInt(data, 0x302 + offset, field_208_fcDocUndo);; + LittleEndian.putInt(data, 0x306 + offset, field_209_lcbDocUndo);; + LittleEndian.putInt(data, 0x30a + offset, field_210_fcRgbuse);; + LittleEndian.putInt(data, 0x30e + offset, field_211_lcbRgbuse);; + LittleEndian.putInt(data, 0x312 + offset, field_212_fcUsp);; + LittleEndian.putInt(data, 0x316 + offset, field_213_lcbUsp);; + LittleEndian.putInt(data, 0x31a + offset, field_214_fcUskf);; + LittleEndian.putInt(data, 0x31e + offset, field_215_lcbUskf);; + LittleEndian.putInt(data, 0x322 + offset, field_216_fcPlcupcRgbuse);; + LittleEndian.putInt(data, 0x326 + offset, field_217_lcbPlcupcRgbuse);; + LittleEndian.putInt(data, 0x32a + offset, field_218_fcPlcupcUsp);; + LittleEndian.putInt(data, 0x32e + offset, field_219_lcbPlcupcUsp);; + LittleEndian.putInt(data, 0x332 + offset, field_220_fcSttbGlsyStyle);; + LittleEndian.putInt(data, 0x336 + offset, field_221_lcbSttbGlsyStyle);; + LittleEndian.putInt(data, 0x33a + offset, field_222_fcPlgosl);; + LittleEndian.putInt(data, 0x33e + offset, field_223_lcbPlgosl);; + LittleEndian.putInt(data, 0x342 + offset, field_224_fcPlcocx);; + LittleEndian.putInt(data, 0x346 + offset, field_225_lcbPlcocx);; + LittleEndian.putInt(data, 0x34a + offset, field_226_fcPlcfbteLvc);; + LittleEndian.putInt(data, 0x34e + offset, field_227_lcbPlcfbteLvc);; + LittleEndian.putInt(data, 0x352 + offset, field_228_dwLowDateTime);; + LittleEndian.putInt(data, 0x356 + offset, field_229_dwHighDateTime);; + LittleEndian.putInt(data, 0x35a + offset, field_230_fcPlcflvc);; + LittleEndian.putInt(data, 0x35e + offset, field_231_lcbPlcflvc);; + LittleEndian.putInt(data, 0x362 + offset, field_232_fcPlcasumy);; + LittleEndian.putInt(data, 0x366 + offset, field_233_lcbPlcasumy);; + LittleEndian.putInt(data, 0x36a + offset, field_234_fcPlcfgram);; + LittleEndian.putInt(data, 0x36e + offset, field_235_lcbPlcfgram);; + LittleEndian.putInt(data, 0x372 + offset, field_236_fcSttbListNames);; + LittleEndian.putInt(data, 0x376 + offset, field_237_lcbSttbListNames);; + LittleEndian.putInt(data, 0x37a + offset, field_238_fcSttbfUssr);; + LittleEndian.putInt(data, 0x37e + offset, field_239_lcbSttbfUssr);; + + } + + public String toString() + { + StringBuffer buffer = new StringBuffer(); + + buffer.append("[FIB]\n"); + + buffer.append(" .wIdent = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getWIdent())); + buffer.append(" (").append(getWIdent()).append(" )\n"); + + buffer.append(" .nFib = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getNFib())); + buffer.append(" (").append(getNFib()).append(" )\n"); + + buffer.append(" .nProduct = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getNProduct())); + buffer.append(" (").append(getNProduct()).append(" )\n"); + + buffer.append(" .lid = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLid())); + buffer.append(" (").append(getLid()).append(" )\n"); + + buffer.append(" .pnNext = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getPnNext())); + buffer.append(" (").append(getPnNext()).append(" )\n"); + + buffer.append(" .options = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((short)getOptions())); + buffer.append(" (").append(getOptions()).append(" )\n"); + buffer.append(" .fDot = ").append(isFDot()).append('\n'); + buffer.append(" .fGlsy = ").append(isFGlsy()).append('\n'); + buffer.append(" .fComplex = ").append(isFComplex()).append('\n'); + buffer.append(" .fHasPic = ").append(isFHasPic()).append('\n'); + buffer.append(" .cQuickSaves = ").append(getCQuickSaves()).append('\n'); + buffer.append(" .fEncrypted = ").append(isFEncrypted()).append('\n'); + buffer.append(" .fWhichTblStm = ").append(isFWhichTblStm()).append('\n'); + buffer.append(" .fReadOnlyRecommended = ").append(isFReadOnlyRecommended()).append('\n'); + buffer.append(" .fWriteReservation = ").append(isFWriteReservation()).append('\n'); + buffer.append(" .fExtChar = ").append(isFExtChar()).append('\n'); + buffer.append(" .fLoadOverride = ").append(isFLoadOverride()).append('\n'); + buffer.append(" .fFarEast = ").append(isFFarEast()).append('\n'); + buffer.append(" .fCrypto = ").append(isFCrypto()).append('\n'); + + buffer.append(" .nFibBack = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getNFibBack())); + buffer.append(" (").append(getNFibBack()).append(" )\n"); + + buffer.append(" .lKey = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLKey())); + buffer.append(" (").append(getLKey()).append(" )\n"); + + buffer.append(" .envr = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getEnvr())); + buffer.append(" (").append(getEnvr()).append(" )\n"); + + buffer.append(" .history = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((short)getHistory())); + buffer.append(" (").append(getHistory()).append(" )\n"); + buffer.append(" .fMac = ").append(isFMac()).append('\n'); + buffer.append(" .fEmptySpecial = ").append(isFEmptySpecial()).append('\n'); + buffer.append(" .fLoadOverridePage = ").append(isFLoadOverridePage()).append('\n'); + buffer.append(" .fFutureSavedUndo = ").append(isFFutureSavedUndo()).append('\n'); + buffer.append(" .fWord97Saved = ").append(isFWord97Saved()).append('\n'); + buffer.append(" .fSpare0 = ").append(getFSpare0()).append('\n'); + + buffer.append(" .chs = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getChs())); + buffer.append(" (").append(getChs()).append(" )\n"); + + buffer.append(" .chsTables = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getChsTables())); + buffer.append(" (").append(getChsTables()).append(" )\n"); + + buffer.append(" .fcMin = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcMin())); + buffer.append(" (").append(getFcMin()).append(" )\n"); + + buffer.append(" .fcMac = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcMac())); + buffer.append(" (").append(getFcMac()).append(" )\n"); + + buffer.append(" .csw = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getCsw())); + buffer.append(" (").append(getCsw()).append(" )\n"); + + buffer.append(" .wMagicCreated = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getWMagicCreated())); + buffer.append(" (").append(getWMagicCreated()).append(" )\n"); + + buffer.append(" .wMagicRevised = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getWMagicRevised())); + buffer.append(" (").append(getWMagicRevised()).append(" )\n"); + + buffer.append(" .wMagicCreatedPrivate = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getWMagicCreatedPrivate())); + buffer.append(" (").append(getWMagicCreatedPrivate()).append(" )\n"); + + buffer.append(" .wMagicRevisedPrivate = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getWMagicRevisedPrivate())); + buffer.append(" (").append(getWMagicRevisedPrivate()).append(" )\n"); + + buffer.append(" .pnFbpChpFirst_W6 = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getPnFbpChpFirst_W6())); + buffer.append(" (").append(getPnFbpChpFirst_W6()).append(" )\n"); + + buffer.append(" .pnChpFirst_W6 = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getPnChpFirst_W6())); + buffer.append(" (").append(getPnChpFirst_W6()).append(" )\n"); + + buffer.append(" .cpnBteChp_W6 = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getCpnBteChp_W6())); + buffer.append(" (").append(getCpnBteChp_W6()).append(" )\n"); + + buffer.append(" .pnFbpPapFirst_W6 = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getPnFbpPapFirst_W6())); + buffer.append(" (").append(getPnFbpPapFirst_W6()).append(" )\n"); + + buffer.append(" .pnPapFirst_W6 = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getPnPapFirst_W6())); + buffer.append(" (").append(getPnPapFirst_W6()).append(" )\n"); + + buffer.append(" .cpnBtePap_W6 = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getCpnBtePap_W6())); + buffer.append(" (").append(getCpnBtePap_W6()).append(" )\n"); + + buffer.append(" .pnFbpLvcFirst_W6 = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getPnFbpLvcFirst_W6())); + buffer.append(" (").append(getPnFbpLvcFirst_W6()).append(" )\n"); + + buffer.append(" .pnLvcFirst_W6 = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getPnLvcFirst_W6())); + buffer.append(" (").append(getPnLvcFirst_W6()).append(" )\n"); + + buffer.append(" .cpnBteLvc_W6 = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getCpnBteLvc_W6())); + buffer.append(" (").append(getCpnBteLvc_W6()).append(" )\n"); + + buffer.append(" .lidFE = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLidFE())); + buffer.append(" (").append(getLidFE()).append(" )\n"); + + buffer.append(" .clw = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getClw())); + buffer.append(" (").append(getClw()).append(" )\n"); + + buffer.append(" .cbMac = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getCbMac())); + buffer.append(" (").append(getCbMac()).append(" )\n"); + + buffer.append(" .lProductCreated = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLProductCreated())); + buffer.append(" (").append(getLProductCreated()).append(" )\n"); + + buffer.append(" .lProductRevised = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLProductRevised())); + buffer.append(" (").append(getLProductRevised()).append(" )\n"); + + buffer.append(" .ccpText = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getCcpText())); + buffer.append(" (").append(getCcpText()).append(" )\n"); + + buffer.append(" .ccpFtn = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getCcpFtn())); + buffer.append(" (").append(getCcpFtn()).append(" )\n"); + + buffer.append(" .ccpHdd = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getCcpHdd())); + buffer.append(" (").append(getCcpHdd()).append(" )\n"); + + buffer.append(" .ccpMcr = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getCcpMcr())); + buffer.append(" (").append(getCcpMcr()).append(" )\n"); + + buffer.append(" .ccpAtn = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getCcpAtn())); + buffer.append(" (").append(getCcpAtn()).append(" )\n"); + + buffer.append(" .ccpEdn = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getCcpEdn())); + buffer.append(" (").append(getCcpEdn()).append(" )\n"); + + buffer.append(" .ccpTxbx = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getCcpTxbx())); + buffer.append(" (").append(getCcpTxbx()).append(" )\n"); + + buffer.append(" .ccpHdrTxbx = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getCcpHdrTxbx())); + buffer.append(" (").append(getCcpHdrTxbx()).append(" )\n"); + + buffer.append(" .pnFbpChpFirst = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getPnFbpChpFirst())); + buffer.append(" (").append(getPnFbpChpFirst()).append(" )\n"); + + buffer.append(" .pnChpFirst = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getPnChpFirst())); + buffer.append(" (").append(getPnChpFirst()).append(" )\n"); + + buffer.append(" .cpnBteChp = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getCpnBteChp())); + buffer.append(" (").append(getCpnBteChp()).append(" )\n"); + + buffer.append(" .pnFbpPapFirst = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getPnFbpPapFirst())); + buffer.append(" (").append(getPnFbpPapFirst()).append(" )\n"); + + buffer.append(" .pnPapFirst = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getPnPapFirst())); + buffer.append(" (").append(getPnPapFirst()).append(" )\n"); + + buffer.append(" .cpnBtePap = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getCpnBtePap())); + buffer.append(" (").append(getCpnBtePap()).append(" )\n"); + + buffer.append(" .pnFbpLvcFirst = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getPnFbpLvcFirst())); + buffer.append(" (").append(getPnFbpLvcFirst()).append(" )\n"); + + buffer.append(" .pnLvcFirst = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getPnLvcFirst())); + buffer.append(" (").append(getPnLvcFirst()).append(" )\n"); + + buffer.append(" .cpnBteLvc = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getCpnBteLvc())); + buffer.append(" (").append(getCpnBteLvc()).append(" )\n"); + + buffer.append(" .fcIslandFirst = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcIslandFirst())); + buffer.append(" (").append(getFcIslandFirst()).append(" )\n"); + + buffer.append(" .fcIslandLim = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcIslandLim())); + buffer.append(" (").append(getFcIslandLim()).append(" )\n"); + + buffer.append(" .cfclcb = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getCfclcb())); + buffer.append(" (").append(getCfclcb()).append(" )\n"); + + buffer.append(" .fcStshfOrig = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcStshfOrig())); + buffer.append(" (").append(getFcStshfOrig()).append(" )\n"); + + buffer.append(" .lcbStshfOrig = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbStshfOrig())); + buffer.append(" (").append(getLcbStshfOrig()).append(" )\n"); + + buffer.append(" .fcStshf = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcStshf())); + buffer.append(" (").append(getFcStshf()).append(" )\n"); + + buffer.append(" .lcbStshf = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbStshf())); + buffer.append(" (").append(getLcbStshf()).append(" )\n"); + + buffer.append(" .fcPlcffndRef = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcPlcffndRef())); + buffer.append(" (").append(getFcPlcffndRef()).append(" )\n"); + + buffer.append(" .lcbPlcffndRef = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbPlcffndRef())); + buffer.append(" (").append(getLcbPlcffndRef()).append(" )\n"); + + buffer.append(" .fcPlcffndTxt = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcPlcffndTxt())); + buffer.append(" (").append(getFcPlcffndTxt()).append(" )\n"); + + buffer.append(" .lcbPlcffndTxt = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbPlcffndTxt())); + buffer.append(" (").append(getLcbPlcffndTxt()).append(" )\n"); + + buffer.append(" .fcPlcfandRef = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcPlcfandRef())); + buffer.append(" (").append(getFcPlcfandRef()).append(" )\n"); + + buffer.append(" .lcbPlcfandRef = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbPlcfandRef())); + buffer.append(" (").append(getLcbPlcfandRef()).append(" )\n"); + + buffer.append(" .fcPlcfandTxt = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcPlcfandTxt())); + buffer.append(" (").append(getFcPlcfandTxt()).append(" )\n"); + + buffer.append(" .lcbPlcfandTxt = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbPlcfandTxt())); + buffer.append(" (").append(getLcbPlcfandTxt()).append(" )\n"); + + buffer.append(" .fcPlcfsed = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcPlcfsed())); + buffer.append(" (").append(getFcPlcfsed()).append(" )\n"); + + buffer.append(" .lcbPlcfsed = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbPlcfsed())); + buffer.append(" (").append(getLcbPlcfsed()).append(" )\n"); + + buffer.append(" .fcPlcpad = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcPlcpad())); + buffer.append(" (").append(getFcPlcpad()).append(" )\n"); + + buffer.append(" .lcbPlcpad = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbPlcpad())); + buffer.append(" (").append(getLcbPlcpad()).append(" )\n"); + + buffer.append(" .fcPlcfphe = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcPlcfphe())); + buffer.append(" (").append(getFcPlcfphe()).append(" )\n"); + + buffer.append(" .lcbPlcfphe = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbPlcfphe())); + buffer.append(" (").append(getLcbPlcfphe()).append(" )\n"); + + buffer.append(" .fcSttbfglsy = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcSttbfglsy())); + buffer.append(" (").append(getFcSttbfglsy()).append(" )\n"); + + buffer.append(" .lcbSttbfglsy = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbSttbfglsy())); + buffer.append(" (").append(getLcbSttbfglsy()).append(" )\n"); + + buffer.append(" .fcPlcfglsy = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcPlcfglsy())); + buffer.append(" (").append(getFcPlcfglsy()).append(" )\n"); + + buffer.append(" .lcbPlcfglsy = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbPlcfglsy())); + buffer.append(" (").append(getLcbPlcfglsy()).append(" )\n"); + + buffer.append(" .fcPlcfhdd = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcPlcfhdd())); + buffer.append(" (").append(getFcPlcfhdd()).append(" )\n"); + + buffer.append(" .lcbPlcfhdd = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbPlcfhdd())); + buffer.append(" (").append(getLcbPlcfhdd()).append(" )\n"); + + buffer.append(" .fcPlcfbteChpx = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcPlcfbteChpx())); + buffer.append(" (").append(getFcPlcfbteChpx()).append(" )\n"); + + buffer.append(" .lcbPlcfbteChpx = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbPlcfbteChpx())); + buffer.append(" (").append(getLcbPlcfbteChpx()).append(" )\n"); + + buffer.append(" .fcPlcfbtePapx = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcPlcfbtePapx())); + buffer.append(" (").append(getFcPlcfbtePapx()).append(" )\n"); + + buffer.append(" .lcbPlcfbtePapx = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbPlcfbtePapx())); + buffer.append(" (").append(getLcbPlcfbtePapx()).append(" )\n"); + + buffer.append(" .fcPlcfsea = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcPlcfsea())); + buffer.append(" (").append(getFcPlcfsea()).append(" )\n"); + + buffer.append(" .lcbPlcfsea = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbPlcfsea())); + buffer.append(" (").append(getLcbPlcfsea()).append(" )\n"); + + buffer.append(" .fcSttbfffn = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcSttbfffn())); + buffer.append(" (").append(getFcSttbfffn()).append(" )\n"); + + buffer.append(" .lcbSttbfffn = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbSttbfffn())); + buffer.append(" (").append(getLcbSttbfffn()).append(" )\n"); + + buffer.append(" .fcPlcffldMom = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcPlcffldMom())); + buffer.append(" (").append(getFcPlcffldMom()).append(" )\n"); + + buffer.append(" .lcbPlcffldMom = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbPlcffldMom())); + buffer.append(" (").append(getLcbPlcffldMom()).append(" )\n"); + + buffer.append(" .fcPlcffldHdr = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcPlcffldHdr())); + buffer.append(" (").append(getFcPlcffldHdr()).append(" )\n"); + + buffer.append(" .lcbPlcffldHdr = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbPlcffldHdr())); + buffer.append(" (").append(getLcbPlcffldHdr()).append(" )\n"); + + buffer.append(" .fcPlcffldFtn = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcPlcffldFtn())); + buffer.append(" (").append(getFcPlcffldFtn()).append(" )\n"); + + buffer.append(" .lcbPlcffldFtn = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbPlcffldFtn())); + buffer.append(" (").append(getLcbPlcffldFtn()).append(" )\n"); + + buffer.append(" .fcPlcffldAtn = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcPlcffldAtn())); + buffer.append(" (").append(getFcPlcffldAtn()).append(" )\n"); + + buffer.append(" .lcbPlcffldAtn = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbPlcffldAtn())); + buffer.append(" (").append(getLcbPlcffldAtn()).append(" )\n"); + + buffer.append(" .fcPlcffldMcr = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcPlcffldMcr())); + buffer.append(" (").append(getFcPlcffldMcr()).append(" )\n"); + + buffer.append(" .lcbPlcffldMcr = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbPlcffldMcr())); + buffer.append(" (").append(getLcbPlcffldMcr()).append(" )\n"); + + buffer.append(" .fcSttbfbkmk = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcSttbfbkmk())); + buffer.append(" (").append(getFcSttbfbkmk()).append(" )\n"); + + buffer.append(" .lcbSttbfbkmk = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbSttbfbkmk())); + buffer.append(" (").append(getLcbSttbfbkmk()).append(" )\n"); + + buffer.append(" .fcPlcfbkf = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcPlcfbkf())); + buffer.append(" (").append(getFcPlcfbkf()).append(" )\n"); + + buffer.append(" .lcbPlcfbkf = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbPlcfbkf())); + buffer.append(" (").append(getLcbPlcfbkf()).append(" )\n"); + + buffer.append(" .fcPlcfbkl = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcPlcfbkl())); + buffer.append(" (").append(getFcPlcfbkl()).append(" )\n"); + + buffer.append(" .lcbPlcfbkl = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbPlcfbkl())); + buffer.append(" (").append(getLcbPlcfbkl()).append(" )\n"); + + buffer.append(" .fcCmds = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcCmds())); + buffer.append(" (").append(getFcCmds()).append(" )\n"); + + buffer.append(" .lcbCmds = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbCmds())); + buffer.append(" (").append(getLcbCmds()).append(" )\n"); + + buffer.append(" .fcPlcmcr = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcPlcmcr())); + buffer.append(" (").append(getFcPlcmcr()).append(" )\n"); + + buffer.append(" .lcbPlcmcr = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbPlcmcr())); + buffer.append(" (").append(getLcbPlcmcr()).append(" )\n"); + + buffer.append(" .fcSttbfmcr = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcSttbfmcr())); + buffer.append(" (").append(getFcSttbfmcr()).append(" )\n"); + + buffer.append(" .lcbSttbfmcr = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbSttbfmcr())); + buffer.append(" (").append(getLcbSttbfmcr()).append(" )\n"); + + buffer.append(" .fcPrDrvr = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcPrDrvr())); + buffer.append(" (").append(getFcPrDrvr()).append(" )\n"); + + buffer.append(" .lcbPrDrvr = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbPrDrvr())); + buffer.append(" (").append(getLcbPrDrvr()).append(" )\n"); + + buffer.append(" .fcPrEnvPort = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcPrEnvPort())); + buffer.append(" (").append(getFcPrEnvPort()).append(" )\n"); + + buffer.append(" .lcbPrEnvPort = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbPrEnvPort())); + buffer.append(" (").append(getLcbPrEnvPort()).append(" )\n"); + + buffer.append(" .fcPrEnvLand = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcPrEnvLand())); + buffer.append(" (").append(getFcPrEnvLand()).append(" )\n"); + + buffer.append(" .lcbPrEnvLand = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbPrEnvLand())); + buffer.append(" (").append(getLcbPrEnvLand()).append(" )\n"); + + buffer.append(" .fcWss = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcWss())); + buffer.append(" (").append(getFcWss()).append(" )\n"); + + buffer.append(" .lcbWss = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbWss())); + buffer.append(" (").append(getLcbWss()).append(" )\n"); + + buffer.append(" .fcDop = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcDop())); + buffer.append(" (").append(getFcDop()).append(" )\n"); + + buffer.append(" .lcbDop = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbDop())); + buffer.append(" (").append(getLcbDop()).append(" )\n"); + + buffer.append(" .fcSttbfAssoc = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcSttbfAssoc())); + buffer.append(" (").append(getFcSttbfAssoc()).append(" )\n"); + + buffer.append(" .lcbSttbfAssoc = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbSttbfAssoc())); + buffer.append(" (").append(getLcbSttbfAssoc()).append(" )\n"); + + buffer.append(" .fcClx = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcClx())); + buffer.append(" (").append(getFcClx()).append(" )\n"); + + buffer.append(" .lcbClx = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbClx())); + buffer.append(" (").append(getLcbClx()).append(" )\n"); + + buffer.append(" .fcPlcfpgdFtn = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcPlcfpgdFtn())); + buffer.append(" (").append(getFcPlcfpgdFtn()).append(" )\n"); + + buffer.append(" .lcbPlcfpgdFtn = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbPlcfpgdFtn())); + buffer.append(" (").append(getLcbPlcfpgdFtn()).append(" )\n"); + + buffer.append(" .fcAutosaveSource = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcAutosaveSource())); + buffer.append(" (").append(getFcAutosaveSource()).append(" )\n"); + + buffer.append(" .lcbAutosaveSource = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbAutosaveSource())); + buffer.append(" (").append(getLcbAutosaveSource()).append(" )\n"); + + buffer.append(" .fcGrpXstAtnOwners = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcGrpXstAtnOwners())); + buffer.append(" (").append(getFcGrpXstAtnOwners()).append(" )\n"); + + buffer.append(" .lcbGrpXstAtnOwners = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbGrpXstAtnOwners())); + buffer.append(" (").append(getLcbGrpXstAtnOwners()).append(" )\n"); + + buffer.append(" .fcSttbfAtnbkmk = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcSttbfAtnbkmk())); + buffer.append(" (").append(getFcSttbfAtnbkmk()).append(" )\n"); + + buffer.append(" .lcbSttbfAtnbkmk = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbSttbfAtnbkmk())); + buffer.append(" (").append(getLcbSttbfAtnbkmk()).append(" )\n"); + + buffer.append(" .fcPlcdoaMom = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcPlcdoaMom())); + buffer.append(" (").append(getFcPlcdoaMom()).append(" )\n"); + + buffer.append(" .lcbPlcdoaMom = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbPlcdoaMom())); + buffer.append(" (").append(getLcbPlcdoaMom()).append(" )\n"); + + buffer.append(" .fcPlcdoaHdr = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcPlcdoaHdr())); + buffer.append(" (").append(getFcPlcdoaHdr()).append(" )\n"); + + buffer.append(" .lcbPlcdoaHdr = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbPlcdoaHdr())); + buffer.append(" (").append(getLcbPlcdoaHdr()).append(" )\n"); + + buffer.append(" .fcPlcspaMom = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcPlcspaMom())); + buffer.append(" (").append(getFcPlcspaMom()).append(" )\n"); + + buffer.append(" .lcbPlcspaMom = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbPlcspaMom())); + buffer.append(" (").append(getLcbPlcspaMom()).append(" )\n"); + + buffer.append(" .fcPlcspaHdr = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcPlcspaHdr())); + buffer.append(" (").append(getFcPlcspaHdr()).append(" )\n"); + + buffer.append(" .lcbPlcspaHdr = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbPlcspaHdr())); + buffer.append(" (").append(getLcbPlcspaHdr()).append(" )\n"); + + buffer.append(" .fcPlcfAtnbkf = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcPlcfAtnbkf())); + buffer.append(" (").append(getFcPlcfAtnbkf()).append(" )\n"); + + buffer.append(" .lcbPlcfAtnbkf = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbPlcfAtnbkf())); + buffer.append(" (").append(getLcbPlcfAtnbkf()).append(" )\n"); + + buffer.append(" .fcPlcfAtnbkl = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcPlcfAtnbkl())); + buffer.append(" (").append(getFcPlcfAtnbkl()).append(" )\n"); + + buffer.append(" .lcbPlcfAtnbkl = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbPlcfAtnbkl())); + buffer.append(" (").append(getLcbPlcfAtnbkl()).append(" )\n"); + + buffer.append(" .fcPms = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcPms())); + buffer.append(" (").append(getFcPms()).append(" )\n"); + + buffer.append(" .lcbPms = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbPms())); + buffer.append(" (").append(getLcbPms()).append(" )\n"); + + buffer.append(" .fcFormFldSttbs = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcFormFldSttbs())); + buffer.append(" (").append(getFcFormFldSttbs()).append(" )\n"); + + buffer.append(" .lcbFormFldSttbs = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbFormFldSttbs())); + buffer.append(" (").append(getLcbFormFldSttbs()).append(" )\n"); + + buffer.append(" .fcPlcfendRef = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcPlcfendRef())); + buffer.append(" (").append(getFcPlcfendRef()).append(" )\n"); + + buffer.append(" .lcbPlcfendRef = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbPlcfendRef())); + buffer.append(" (").append(getLcbPlcfendRef()).append(" )\n"); + + buffer.append(" .fcPlcfendTxt = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcPlcfendTxt())); + buffer.append(" (").append(getFcPlcfendTxt()).append(" )\n"); + + buffer.append(" .lcbPlcfendTxt = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbPlcfendTxt())); + buffer.append(" (").append(getLcbPlcfendTxt()).append(" )\n"); + + buffer.append(" .fcPlcffldEdn = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcPlcffldEdn())); + buffer.append(" (").append(getFcPlcffldEdn()).append(" )\n"); + + buffer.append(" .lcbPlcffldEdn = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbPlcffldEdn())); + buffer.append(" (").append(getLcbPlcffldEdn()).append(" )\n"); + + buffer.append(" .fcPlcfpgdEdn = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcPlcfpgdEdn())); + buffer.append(" (").append(getFcPlcfpgdEdn()).append(" )\n"); + + buffer.append(" .lcbPlcfpgdEdn = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbPlcfpgdEdn())); + buffer.append(" (").append(getLcbPlcfpgdEdn()).append(" )\n"); + + buffer.append(" .fcDggInfo = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcDggInfo())); + buffer.append(" (").append(getFcDggInfo()).append(" )\n"); + + buffer.append(" .lcbDggInfo = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbDggInfo())); + buffer.append(" (").append(getLcbDggInfo()).append(" )\n"); + + buffer.append(" .fcSttbfRMark = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcSttbfRMark())); + buffer.append(" (").append(getFcSttbfRMark()).append(" )\n"); + + buffer.append(" .lcbSttbfRMark = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbSttbfRMark())); + buffer.append(" (").append(getLcbSttbfRMark()).append(" )\n"); + + buffer.append(" .fcSttbCaption = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcSttbCaption())); + buffer.append(" (").append(getFcSttbCaption()).append(" )\n"); + + buffer.append(" .lcbSttbCaption = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbSttbCaption())); + buffer.append(" (").append(getLcbSttbCaption()).append(" )\n"); + + buffer.append(" .fcSttbAutoCaption = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcSttbAutoCaption())); + buffer.append(" (").append(getFcSttbAutoCaption()).append(" )\n"); + + buffer.append(" .lcbSttbAutoCaption = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbSttbAutoCaption())); + buffer.append(" (").append(getLcbSttbAutoCaption()).append(" )\n"); + + buffer.append(" .fcPlcfwkb = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcPlcfwkb())); + buffer.append(" (").append(getFcPlcfwkb()).append(" )\n"); + + buffer.append(" .lcbPlcfwkb = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbPlcfwkb())); + buffer.append(" (").append(getLcbPlcfwkb()).append(" )\n"); + + buffer.append(" .fcPlcfspl = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcPlcfspl())); + buffer.append(" (").append(getFcPlcfspl()).append(" )\n"); + + buffer.append(" .lcbPlcfspl = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbPlcfspl())); + buffer.append(" (").append(getLcbPlcfspl()).append(" )\n"); + + buffer.append(" .fcPlcftxbxTxt = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcPlcftxbxTxt())); + buffer.append(" (").append(getFcPlcftxbxTxt()).append(" )\n"); + + buffer.append(" .lcbPlcftxbxTxt = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbPlcftxbxTxt())); + buffer.append(" (").append(getLcbPlcftxbxTxt()).append(" )\n"); + + buffer.append(" .fcPlcffldTxbx = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcPlcffldTxbx())); + buffer.append(" (").append(getFcPlcffldTxbx()).append(" )\n"); + + buffer.append(" .lcbPlcffldTxbx = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbPlcffldTxbx())); + buffer.append(" (").append(getLcbPlcffldTxbx()).append(" )\n"); + + buffer.append(" .fcPlcfhdrtxbxTxt = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcPlcfhdrtxbxTxt())); + buffer.append(" (").append(getFcPlcfhdrtxbxTxt()).append(" )\n"); + + buffer.append(" .lcbPlcfhdrtxbxTxt = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbPlcfhdrtxbxTxt())); + buffer.append(" (").append(getLcbPlcfhdrtxbxTxt()).append(" )\n"); + + buffer.append(" .fcPlcffldHdrTxbx = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcPlcffldHdrTxbx())); + buffer.append(" (").append(getFcPlcffldHdrTxbx()).append(" )\n"); + + buffer.append(" .lcbPlcffldHdrTxbx = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbPlcffldHdrTxbx())); + buffer.append(" (").append(getLcbPlcffldHdrTxbx()).append(" )\n"); + + buffer.append(" .fcStwUser = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcStwUser())); + buffer.append(" (").append(getFcStwUser()).append(" )\n"); + + buffer.append(" .lcbStwUser = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbStwUser())); + buffer.append(" (").append(getLcbStwUser()).append(" )\n"); + + buffer.append(" .fcSttbttmbd = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcSttbttmbd())); + buffer.append(" (").append(getFcSttbttmbd()).append(" )\n"); + + buffer.append(" .cbSttbttmbd = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getCbSttbttmbd())); + buffer.append(" (").append(getCbSttbttmbd()).append(" )\n"); + + buffer.append(" .fcUnused = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcUnused())); + buffer.append(" (").append(getFcUnused()).append(" )\n"); + + buffer.append(" .lcbUnused = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbUnused())); + buffer.append(" (").append(getLcbUnused()).append(" )\n"); + + buffer.append(" .fcPgdMother = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcPgdMother())); + buffer.append(" (").append(getFcPgdMother()).append(" )\n"); + + buffer.append(" .lcbPgdMother = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbPgdMother())); + buffer.append(" (").append(getLcbPgdMother()).append(" )\n"); + + buffer.append(" .fcBkdMother = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcBkdMother())); + buffer.append(" (").append(getFcBkdMother()).append(" )\n"); + + buffer.append(" .lcbBkdMother = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbBkdMother())); + buffer.append(" (").append(getLcbBkdMother()).append(" )\n"); + + buffer.append(" .fcPgdFtn = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcPgdFtn())); + buffer.append(" (").append(getFcPgdFtn()).append(" )\n"); + + buffer.append(" .lcbPgdFtn = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbPgdFtn())); + buffer.append(" (").append(getLcbPgdFtn()).append(" )\n"); + + buffer.append(" .fcBkdFtn = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcBkdFtn())); + buffer.append(" (").append(getFcBkdFtn()).append(" )\n"); + + buffer.append(" .lcbBkdFtn = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbBkdFtn())); + buffer.append(" (").append(getLcbBkdFtn()).append(" )\n"); + + buffer.append(" .fcPgdEdn = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcPgdEdn())); + buffer.append(" (").append(getFcPgdEdn()).append(" )\n"); + + buffer.append(" .lcbPgdEdn = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbPgdEdn())); + buffer.append(" (").append(getLcbPgdEdn()).append(" )\n"); + + buffer.append(" .fcBkdEdn = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcBkdEdn())); + buffer.append(" (").append(getFcBkdEdn()).append(" )\n"); + + buffer.append(" .lcbBkdEdn = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbBkdEdn())); + buffer.append(" (").append(getLcbBkdEdn()).append(" )\n"); + + buffer.append(" .fcSttbfIntlFld = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcSttbfIntlFld())); + buffer.append(" (").append(getFcSttbfIntlFld()).append(" )\n"); + + buffer.append(" .lcbSttbfIntlFld = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbSttbfIntlFld())); + buffer.append(" (").append(getLcbSttbfIntlFld()).append(" )\n"); + + buffer.append(" .fcRouteSlip = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcRouteSlip())); + buffer.append(" (").append(getFcRouteSlip()).append(" )\n"); + + buffer.append(" .lcbRouteSlip = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbRouteSlip())); + buffer.append(" (").append(getLcbRouteSlip()).append(" )\n"); + + buffer.append(" .fcSttbSavedBy = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcSttbSavedBy())); + buffer.append(" (").append(getFcSttbSavedBy()).append(" )\n"); + + buffer.append(" .lcbSttbSavedBy = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbSttbSavedBy())); + buffer.append(" (").append(getLcbSttbSavedBy()).append(" )\n"); + + buffer.append(" .fcSttbFnm = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcSttbFnm())); + buffer.append(" (").append(getFcSttbFnm()).append(" )\n"); + + buffer.append(" .lcbSttbFnm = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbSttbFnm())); + buffer.append(" (").append(getLcbSttbFnm()).append(" )\n"); + + buffer.append(" .fcPlcfLst = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcPlcfLst())); + buffer.append(" (").append(getFcPlcfLst()).append(" )\n"); + + buffer.append(" .lcbPlcfLst = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbPlcfLst())); + buffer.append(" (").append(getLcbPlcfLst()).append(" )\n"); + + buffer.append(" .fcPlfLfo = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcPlfLfo())); + buffer.append(" (").append(getFcPlfLfo()).append(" )\n"); + + buffer.append(" .lcbPlfLfo = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbPlfLfo())); + buffer.append(" (").append(getLcbPlfLfo()).append(" )\n"); + + buffer.append(" .fcPlcftxbxBkd = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcPlcftxbxBkd())); + buffer.append(" (").append(getFcPlcftxbxBkd()).append(" )\n"); + + buffer.append(" .lcbPlcftxbxBkd = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbPlcftxbxBkd())); + buffer.append(" (").append(getLcbPlcftxbxBkd()).append(" )\n"); + + buffer.append(" .fcPlcftxbxHdrBkd = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcPlcftxbxHdrBkd())); + buffer.append(" (").append(getFcPlcftxbxHdrBkd()).append(" )\n"); + + buffer.append(" .lcbPlcftxbxHdrBkd = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbPlcftxbxHdrBkd())); + buffer.append(" (").append(getLcbPlcftxbxHdrBkd()).append(" )\n"); + + buffer.append(" .fcDocUndo = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcDocUndo())); + buffer.append(" (").append(getFcDocUndo()).append(" )\n"); + + buffer.append(" .lcbDocUndo = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbDocUndo())); + buffer.append(" (").append(getLcbDocUndo()).append(" )\n"); + + buffer.append(" .fcRgbuse = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcRgbuse())); + buffer.append(" (").append(getFcRgbuse()).append(" )\n"); + + buffer.append(" .lcbRgbuse = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbRgbuse())); + buffer.append(" (").append(getLcbRgbuse()).append(" )\n"); + + buffer.append(" .fcUsp = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcUsp())); + buffer.append(" (").append(getFcUsp()).append(" )\n"); + + buffer.append(" .lcbUsp = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbUsp())); + buffer.append(" (").append(getLcbUsp()).append(" )\n"); + + buffer.append(" .fcUskf = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcUskf())); + buffer.append(" (").append(getFcUskf()).append(" )\n"); + + buffer.append(" .lcbUskf = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbUskf())); + buffer.append(" (").append(getLcbUskf()).append(" )\n"); + + buffer.append(" .fcPlcupcRgbuse = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcPlcupcRgbuse())); + buffer.append(" (").append(getFcPlcupcRgbuse()).append(" )\n"); + + buffer.append(" .lcbPlcupcRgbuse = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbPlcupcRgbuse())); + buffer.append(" (").append(getLcbPlcupcRgbuse()).append(" )\n"); + + buffer.append(" .fcPlcupcUsp = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcPlcupcUsp())); + buffer.append(" (").append(getFcPlcupcUsp()).append(" )\n"); + + buffer.append(" .lcbPlcupcUsp = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbPlcupcUsp())); + buffer.append(" (").append(getLcbPlcupcUsp()).append(" )\n"); + + buffer.append(" .fcSttbGlsyStyle = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcSttbGlsyStyle())); + buffer.append(" (").append(getFcSttbGlsyStyle()).append(" )\n"); + + buffer.append(" .lcbSttbGlsyStyle = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbSttbGlsyStyle())); + buffer.append(" (").append(getLcbSttbGlsyStyle()).append(" )\n"); + + buffer.append(" .fcPlgosl = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcPlgosl())); + buffer.append(" (").append(getFcPlgosl()).append(" )\n"); + + buffer.append(" .lcbPlgosl = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbPlgosl())); + buffer.append(" (").append(getLcbPlgosl()).append(" )\n"); + + buffer.append(" .fcPlcocx = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcPlcocx())); + buffer.append(" (").append(getFcPlcocx()).append(" )\n"); + + buffer.append(" .lcbPlcocx = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbPlcocx())); + buffer.append(" (").append(getLcbPlcocx()).append(" )\n"); + + buffer.append(" .fcPlcfbteLvc = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcPlcfbteLvc())); + buffer.append(" (").append(getFcPlcfbteLvc()).append(" )\n"); + + buffer.append(" .lcbPlcfbteLvc = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbPlcfbteLvc())); + buffer.append(" (").append(getLcbPlcfbteLvc()).append(" )\n"); + + buffer.append(" .dwLowDateTime = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getDwLowDateTime())); + buffer.append(" (").append(getDwLowDateTime()).append(" )\n"); + + buffer.append(" .dwHighDateTime = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getDwHighDateTime())); + buffer.append(" (").append(getDwHighDateTime()).append(" )\n"); + + buffer.append(" .fcPlcflvc = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcPlcflvc())); + buffer.append(" (").append(getFcPlcflvc()).append(" )\n"); + + buffer.append(" .lcbPlcflvc = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbPlcflvc())); + buffer.append(" (").append(getLcbPlcflvc()).append(" )\n"); + + buffer.append(" .fcPlcasumy = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcPlcasumy())); + buffer.append(" (").append(getFcPlcasumy()).append(" )\n"); + + buffer.append(" .lcbPlcasumy = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbPlcasumy())); + buffer.append(" (").append(getLcbPlcasumy()).append(" )\n"); + + buffer.append(" .fcPlcfgram = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcPlcfgram())); + buffer.append(" (").append(getFcPlcfgram()).append(" )\n"); + + buffer.append(" .lcbPlcfgram = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbPlcfgram())); + buffer.append(" (").append(getLcbPlcfgram()).append(" )\n"); + + buffer.append(" .fcSttbListNames = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcSttbListNames())); + buffer.append(" (").append(getFcSttbListNames()).append(" )\n"); + + buffer.append(" .lcbSttbListNames = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbSttbListNames())); + buffer.append(" (").append(getLcbSttbListNames()).append(" )\n"); + + buffer.append(" .fcSttbfUssr = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getFcSttbfUssr())); + buffer.append(" (").append(getFcSttbfUssr()).append(" )\n"); + + buffer.append(" .lcbSttbfUssr = "); + buffer.append("0x"); + buffer.append(HexDump.toHex((int)getLcbSttbfUssr())); + buffer.append(" (").append(getLcbSttbfUssr()).append(" )\n"); + + buffer.append("[/FIB]\n"); + return buffer.toString(); + } + + /** + * Size of record (exluding 4 byte header) + */ + public int getSize() + { + return 4 + + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 4 + 4 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 2 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4; + } + + + + /** + * Get the wIdent field for the FIB record. + */ + public int getWIdent() + { + return field_1_wIdent; + } + + /** + * Set the wIdent field for the FIB record. + */ + public void setWIdent(int field_1_wIdent) + { + this.field_1_wIdent = field_1_wIdent; + } + + /** + * Get the nFib field for the FIB record. + */ + public int getNFib() + { + return field_2_nFib; + } + + /** + * Set the nFib field for the FIB record. + */ + public void setNFib(int field_2_nFib) + { + this.field_2_nFib = field_2_nFib; + } + + /** + * Get the nProduct field for the FIB record. + */ + public int getNProduct() + { + return field_3_nProduct; + } + + /** + * Set the nProduct field for the FIB record. + */ + public void setNProduct(int field_3_nProduct) + { + this.field_3_nProduct = field_3_nProduct; + } + + /** + * Get the lid field for the FIB record. + */ + public int getLid() + { + return field_4_lid; + } + + /** + * Set the lid field for the FIB record. + */ + public void setLid(int field_4_lid) + { + this.field_4_lid = field_4_lid; + } + + /** + * Get the pnNext field for the FIB record. + */ + public int getPnNext() + { + return field_5_pnNext; + } + + /** + * Set the pnNext field for the FIB record. + */ + public void setPnNext(int field_5_pnNext) + { + this.field_5_pnNext = field_5_pnNext; + } + + /** + * Get the options field for the FIB record. + */ + public short getOptions() + { + return field_6_options; + } + + /** + * Set the options field for the FIB record. + */ + public void setOptions(short field_6_options) + { + this.field_6_options = field_6_options; + } + + /** + * Get the nFibBack field for the FIB record. + */ + public int getNFibBack() + { + return field_7_nFibBack; + } + + /** + * Set the nFibBack field for the FIB record. + */ + public void setNFibBack(int field_7_nFibBack) + { + this.field_7_nFibBack = field_7_nFibBack; + } + + /** + * Get the lKey field for the FIB record. + */ + public int getLKey() + { + return field_8_lKey; + } + + /** + * Set the lKey field for the FIB record. + */ + public void setLKey(int field_8_lKey) + { + this.field_8_lKey = field_8_lKey; + } + + /** + * Get the envr field for the FIB record. + */ + public int getEnvr() + { + return field_9_envr; + } + + /** + * Set the envr field for the FIB record. + */ + public void setEnvr(int field_9_envr) + { + this.field_9_envr = field_9_envr; + } + + /** + * Get the history field for the FIB record. + */ + public short getHistory() + { + return field_10_history; + } + + /** + * Set the history field for the FIB record. + */ + public void setHistory(short field_10_history) + { + this.field_10_history = field_10_history; + } + + /** + * Get the chs field for the FIB record. + */ + public int getChs() + { + return field_11_chs; + } + + /** + * Set the chs field for the FIB record. + */ + public void setChs(int field_11_chs) + { + this.field_11_chs = field_11_chs; + } + + /** + * Get the chsTables field for the FIB record. + */ + public int getChsTables() + { + return field_12_chsTables; + } + + /** + * Set the chsTables field for the FIB record. + */ + public void setChsTables(int field_12_chsTables) + { + this.field_12_chsTables = field_12_chsTables; + } + + /** + * Get the fcMin field for the FIB record. + */ + public int getFcMin() + { + return field_13_fcMin; + } + + /** + * Set the fcMin field for the FIB record. + */ + public void setFcMin(int field_13_fcMin) + { + this.field_13_fcMin = field_13_fcMin; + } + + /** + * Get the fcMac field for the FIB record. + */ + public int getFcMac() + { + return field_14_fcMac; + } + + /** + * Set the fcMac field for the FIB record. + */ + public void setFcMac(int field_14_fcMac) + { + this.field_14_fcMac = field_14_fcMac; + } + + /** + * Get the csw field for the FIB record. + */ + public int getCsw() + { + return field_15_csw; + } + + /** + * Set the csw field for the FIB record. + */ + public void setCsw(int field_15_csw) + { + this.field_15_csw = field_15_csw; + } + + /** + * Get the wMagicCreated field for the FIB record. + */ + public int getWMagicCreated() + { + return field_16_wMagicCreated; + } + + /** + * Set the wMagicCreated field for the FIB record. + */ + public void setWMagicCreated(int field_16_wMagicCreated) + { + this.field_16_wMagicCreated = field_16_wMagicCreated; + } + + /** + * Get the wMagicRevised field for the FIB record. + */ + public int getWMagicRevised() + { + return field_17_wMagicRevised; + } + + /** + * Set the wMagicRevised field for the FIB record. + */ + public void setWMagicRevised(int field_17_wMagicRevised) + { + this.field_17_wMagicRevised = field_17_wMagicRevised; + } + + /** + * Get the wMagicCreatedPrivate field for the FIB record. + */ + public int getWMagicCreatedPrivate() + { + return field_18_wMagicCreatedPrivate; + } + + /** + * Set the wMagicCreatedPrivate field for the FIB record. + */ + public void setWMagicCreatedPrivate(int field_18_wMagicCreatedPrivate) + { + this.field_18_wMagicCreatedPrivate = field_18_wMagicCreatedPrivate; + } + + /** + * Get the wMagicRevisedPrivate field for the FIB record. + */ + public int getWMagicRevisedPrivate() + { + return field_19_wMagicRevisedPrivate; + } + + /** + * Set the wMagicRevisedPrivate field for the FIB record. + */ + public void setWMagicRevisedPrivate(int field_19_wMagicRevisedPrivate) + { + this.field_19_wMagicRevisedPrivate = field_19_wMagicRevisedPrivate; + } + + /** + * Get the pnFbpChpFirst_W6 field for the FIB record. + */ + public int getPnFbpChpFirst_W6() + { + return field_20_pnFbpChpFirst_W6; + } + + /** + * Set the pnFbpChpFirst_W6 field for the FIB record. + */ + public void setPnFbpChpFirst_W6(int field_20_pnFbpChpFirst_W6) + { + this.field_20_pnFbpChpFirst_W6 = field_20_pnFbpChpFirst_W6; + } + + /** + * Get the pnChpFirst_W6 field for the FIB record. + */ + public int getPnChpFirst_W6() + { + return field_21_pnChpFirst_W6; + } + + /** + * Set the pnChpFirst_W6 field for the FIB record. + */ + public void setPnChpFirst_W6(int field_21_pnChpFirst_W6) + { + this.field_21_pnChpFirst_W6 = field_21_pnChpFirst_W6; + } + + /** + * Get the cpnBteChp_W6 field for the FIB record. + */ + public int getCpnBteChp_W6() + { + return field_22_cpnBteChp_W6; + } + + /** + * Set the cpnBteChp_W6 field for the FIB record. + */ + public void setCpnBteChp_W6(int field_22_cpnBteChp_W6) + { + this.field_22_cpnBteChp_W6 = field_22_cpnBteChp_W6; + } + + /** + * Get the pnFbpPapFirst_W6 field for the FIB record. + */ + public int getPnFbpPapFirst_W6() + { + return field_23_pnFbpPapFirst_W6; + } + + /** + * Set the pnFbpPapFirst_W6 field for the FIB record. + */ + public void setPnFbpPapFirst_W6(int field_23_pnFbpPapFirst_W6) + { + this.field_23_pnFbpPapFirst_W6 = field_23_pnFbpPapFirst_W6; + } + + /** + * Get the pnPapFirst_W6 field for the FIB record. + */ + public int getPnPapFirst_W6() + { + return field_24_pnPapFirst_W6; + } + + /** + * Set the pnPapFirst_W6 field for the FIB record. + */ + public void setPnPapFirst_W6(int field_24_pnPapFirst_W6) + { + this.field_24_pnPapFirst_W6 = field_24_pnPapFirst_W6; + } + + /** + * Get the cpnBtePap_W6 field for the FIB record. + */ + public int getCpnBtePap_W6() + { + return field_25_cpnBtePap_W6; + } + + /** + * Set the cpnBtePap_W6 field for the FIB record. + */ + public void setCpnBtePap_W6(int field_25_cpnBtePap_W6) + { + this.field_25_cpnBtePap_W6 = field_25_cpnBtePap_W6; + } + + /** + * Get the pnFbpLvcFirst_W6 field for the FIB record. + */ + public int getPnFbpLvcFirst_W6() + { + return field_26_pnFbpLvcFirst_W6; + } + + /** + * Set the pnFbpLvcFirst_W6 field for the FIB record. + */ + public void setPnFbpLvcFirst_W6(int field_26_pnFbpLvcFirst_W6) + { + this.field_26_pnFbpLvcFirst_W6 = field_26_pnFbpLvcFirst_W6; + } + + /** + * Get the pnLvcFirst_W6 field for the FIB record. + */ + public int getPnLvcFirst_W6() + { + return field_27_pnLvcFirst_W6; + } + + /** + * Set the pnLvcFirst_W6 field for the FIB record. + */ + public void setPnLvcFirst_W6(int field_27_pnLvcFirst_W6) + { + this.field_27_pnLvcFirst_W6 = field_27_pnLvcFirst_W6; + } + + /** + * Get the cpnBteLvc_W6 field for the FIB record. + */ + public int getCpnBteLvc_W6() + { + return field_28_cpnBteLvc_W6; + } + + /** + * Set the cpnBteLvc_W6 field for the FIB record. + */ + public void setCpnBteLvc_W6(int field_28_cpnBteLvc_W6) + { + this.field_28_cpnBteLvc_W6 = field_28_cpnBteLvc_W6; + } + + /** + * Get the lidFE field for the FIB record. + */ + public int getLidFE() + { + return field_29_lidFE; + } + + /** + * Set the lidFE field for the FIB record. + */ + public void setLidFE(int field_29_lidFE) + { + this.field_29_lidFE = field_29_lidFE; + } + + /** + * Get the clw field for the FIB record. + */ + public int getClw() + { + return field_30_clw; + } + + /** + * Set the clw field for the FIB record. + */ + public void setClw(int field_30_clw) + { + this.field_30_clw = field_30_clw; + } + + /** + * Get the cbMac field for the FIB record. + */ + public int getCbMac() + { + return field_31_cbMac; + } + + /** + * Set the cbMac field for the FIB record. + */ + public void setCbMac(int field_31_cbMac) + { + this.field_31_cbMac = field_31_cbMac; + } + + /** + * Get the lProductCreated field for the FIB record. + */ + public int getLProductCreated() + { + return field_32_lProductCreated; + } + + /** + * Set the lProductCreated field for the FIB record. + */ + public void setLProductCreated(int field_32_lProductCreated) + { + this.field_32_lProductCreated = field_32_lProductCreated; + } + + /** + * Get the lProductRevised field for the FIB record. + */ + public int getLProductRevised() + { + return field_33_lProductRevised; + } + + /** + * Set the lProductRevised field for the FIB record. + */ + public void setLProductRevised(int field_33_lProductRevised) + { + this.field_33_lProductRevised = field_33_lProductRevised; + } + + /** + * Get the ccpText field for the FIB record. + */ + public int getCcpText() + { + return field_34_ccpText; + } + + /** + * Set the ccpText field for the FIB record. + */ + public void setCcpText(int field_34_ccpText) + { + this.field_34_ccpText = field_34_ccpText; + } + + /** + * Get the ccpFtn field for the FIB record. + */ + public int getCcpFtn() + { + return field_35_ccpFtn; + } + + /** + * Set the ccpFtn field for the FIB record. + */ + public void setCcpFtn(int field_35_ccpFtn) + { + this.field_35_ccpFtn = field_35_ccpFtn; + } + + /** + * Get the ccpHdd field for the FIB record. + */ + public int getCcpHdd() + { + return field_36_ccpHdd; + } + + /** + * Set the ccpHdd field for the FIB record. + */ + public void setCcpHdd(int field_36_ccpHdd) + { + this.field_36_ccpHdd = field_36_ccpHdd; + } + + /** + * Get the ccpMcr field for the FIB record. + */ + public int getCcpMcr() + { + return field_37_ccpMcr; + } + + /** + * Set the ccpMcr field for the FIB record. + */ + public void setCcpMcr(int field_37_ccpMcr) + { + this.field_37_ccpMcr = field_37_ccpMcr; + } + + /** + * Get the ccpAtn field for the FIB record. + */ + public int getCcpAtn() + { + return field_38_ccpAtn; + } + + /** + * Set the ccpAtn field for the FIB record. + */ + public void setCcpAtn(int field_38_ccpAtn) + { + this.field_38_ccpAtn = field_38_ccpAtn; + } + + /** + * Get the ccpEdn field for the FIB record. + */ + public int getCcpEdn() + { + return field_39_ccpEdn; + } + + /** + * Set the ccpEdn field for the FIB record. + */ + public void setCcpEdn(int field_39_ccpEdn) + { + this.field_39_ccpEdn = field_39_ccpEdn; + } + + /** + * Get the ccpTxbx field for the FIB record. + */ + public int getCcpTxbx() + { + return field_40_ccpTxbx; + } + + /** + * Set the ccpTxbx field for the FIB record. + */ + public void setCcpTxbx(int field_40_ccpTxbx) + { + this.field_40_ccpTxbx = field_40_ccpTxbx; + } + + /** + * Get the ccpHdrTxbx field for the FIB record. + */ + public int getCcpHdrTxbx() + { + return field_41_ccpHdrTxbx; + } + + /** + * Set the ccpHdrTxbx field for the FIB record. + */ + public void setCcpHdrTxbx(int field_41_ccpHdrTxbx) + { + this.field_41_ccpHdrTxbx = field_41_ccpHdrTxbx; + } + + /** + * Get the pnFbpChpFirst field for the FIB record. + */ + public int getPnFbpChpFirst() + { + return field_42_pnFbpChpFirst; + } + + /** + * Set the pnFbpChpFirst field for the FIB record. + */ + public void setPnFbpChpFirst(int field_42_pnFbpChpFirst) + { + this.field_42_pnFbpChpFirst = field_42_pnFbpChpFirst; + } + + /** + * Get the pnChpFirst field for the FIB record. + */ + public int getPnChpFirst() + { + return field_43_pnChpFirst; + } + + /** + * Set the pnChpFirst field for the FIB record. + */ + public void setPnChpFirst(int field_43_pnChpFirst) + { + this.field_43_pnChpFirst = field_43_pnChpFirst; + } + + /** + * Get the cpnBteChp field for the FIB record. + */ + public int getCpnBteChp() + { + return field_44_cpnBteChp; + } + + /** + * Set the cpnBteChp field for the FIB record. + */ + public void setCpnBteChp(int field_44_cpnBteChp) + { + this.field_44_cpnBteChp = field_44_cpnBteChp; + } + + /** + * Get the pnFbpPapFirst field for the FIB record. + */ + public int getPnFbpPapFirst() + { + return field_45_pnFbpPapFirst; + } + + /** + * Set the pnFbpPapFirst field for the FIB record. + */ + public void setPnFbpPapFirst(int field_45_pnFbpPapFirst) + { + this.field_45_pnFbpPapFirst = field_45_pnFbpPapFirst; + } + + /** + * Get the pnPapFirst field for the FIB record. + */ + public int getPnPapFirst() + { + return field_46_pnPapFirst; + } + + /** + * Set the pnPapFirst field for the FIB record. + */ + public void setPnPapFirst(int field_46_pnPapFirst) + { + this.field_46_pnPapFirst = field_46_pnPapFirst; + } + + /** + * Get the cpnBtePap field for the FIB record. + */ + public int getCpnBtePap() + { + return field_47_cpnBtePap; + } + + /** + * Set the cpnBtePap field for the FIB record. + */ + public void setCpnBtePap(int field_47_cpnBtePap) + { + this.field_47_cpnBtePap = field_47_cpnBtePap; + } + + /** + * Get the pnFbpLvcFirst field for the FIB record. + */ + public int getPnFbpLvcFirst() + { + return field_48_pnFbpLvcFirst; + } + + /** + * Set the pnFbpLvcFirst field for the FIB record. + */ + public void setPnFbpLvcFirst(int field_48_pnFbpLvcFirst) + { + this.field_48_pnFbpLvcFirst = field_48_pnFbpLvcFirst; + } + + /** + * Get the pnLvcFirst field for the FIB record. + */ + public int getPnLvcFirst() + { + return field_49_pnLvcFirst; + } + + /** + * Set the pnLvcFirst field for the FIB record. + */ + public void setPnLvcFirst(int field_49_pnLvcFirst) + { + this.field_49_pnLvcFirst = field_49_pnLvcFirst; + } + + /** + * Get the cpnBteLvc field for the FIB record. + */ + public int getCpnBteLvc() + { + return field_50_cpnBteLvc; + } + + /** + * Set the cpnBteLvc field for the FIB record. + */ + public void setCpnBteLvc(int field_50_cpnBteLvc) + { + this.field_50_cpnBteLvc = field_50_cpnBteLvc; + } + + /** + * Get the fcIslandFirst field for the FIB record. + */ + public int getFcIslandFirst() + { + return field_51_fcIslandFirst; + } + + /** + * Set the fcIslandFirst field for the FIB record. + */ + public void setFcIslandFirst(int field_51_fcIslandFirst) + { + this.field_51_fcIslandFirst = field_51_fcIslandFirst; + } + + /** + * Get the fcIslandLim field for the FIB record. + */ + public int getFcIslandLim() + { + return field_52_fcIslandLim; + } + + /** + * Set the fcIslandLim field for the FIB record. + */ + public void setFcIslandLim(int field_52_fcIslandLim) + { + this.field_52_fcIslandLim = field_52_fcIslandLim; + } + + /** + * Get the cfclcb field for the FIB record. + */ + public int getCfclcb() + { + return field_53_cfclcb; + } + + /** + * Set the cfclcb field for the FIB record. + */ + public void setCfclcb(int field_53_cfclcb) + { + this.field_53_cfclcb = field_53_cfclcb; + } + + /** + * Get the fcStshfOrig field for the FIB record. + */ + public int getFcStshfOrig() + { + return field_54_fcStshfOrig; + } + + /** + * Set the fcStshfOrig field for the FIB record. + */ + public void setFcStshfOrig(int field_54_fcStshfOrig) + { + this.field_54_fcStshfOrig = field_54_fcStshfOrig; + } + + /** + * Get the lcbStshfOrig field for the FIB record. + */ + public int getLcbStshfOrig() + { + return field_55_lcbStshfOrig; + } + + /** + * Set the lcbStshfOrig field for the FIB record. + */ + public void setLcbStshfOrig(int field_55_lcbStshfOrig) + { + this.field_55_lcbStshfOrig = field_55_lcbStshfOrig; + } + + /** + * Get the fcStshf field for the FIB record. + */ + public int getFcStshf() + { + return field_56_fcStshf; + } + + /** + * Set the fcStshf field for the FIB record. + */ + public void setFcStshf(int field_56_fcStshf) + { + this.field_56_fcStshf = field_56_fcStshf; + } + + /** + * Get the lcbStshf field for the FIB record. + */ + public int getLcbStshf() + { + return field_57_lcbStshf; + } + + /** + * Set the lcbStshf field for the FIB record. + */ + public void setLcbStshf(int field_57_lcbStshf) + { + this.field_57_lcbStshf = field_57_lcbStshf; + } + + /** + * Get the fcPlcffndRef field for the FIB record. + */ + public int getFcPlcffndRef() + { + return field_58_fcPlcffndRef; + } + + /** + * Set the fcPlcffndRef field for the FIB record. + */ + public void setFcPlcffndRef(int field_58_fcPlcffndRef) + { + this.field_58_fcPlcffndRef = field_58_fcPlcffndRef; + } + + /** + * Get the lcbPlcffndRef field for the FIB record. + */ + public int getLcbPlcffndRef() + { + return field_59_lcbPlcffndRef; + } + + /** + * Set the lcbPlcffndRef field for the FIB record. + */ + public void setLcbPlcffndRef(int field_59_lcbPlcffndRef) + { + this.field_59_lcbPlcffndRef = field_59_lcbPlcffndRef; + } + + /** + * Get the fcPlcffndTxt field for the FIB record. + */ + public int getFcPlcffndTxt() + { + return field_60_fcPlcffndTxt; + } + + /** + * Set the fcPlcffndTxt field for the FIB record. + */ + public void setFcPlcffndTxt(int field_60_fcPlcffndTxt) + { + this.field_60_fcPlcffndTxt = field_60_fcPlcffndTxt; + } + + /** + * Get the lcbPlcffndTxt field for the FIB record. + */ + public int getLcbPlcffndTxt() + { + return field_61_lcbPlcffndTxt; + } + + /** + * Set the lcbPlcffndTxt field for the FIB record. + */ + public void setLcbPlcffndTxt(int field_61_lcbPlcffndTxt) + { + this.field_61_lcbPlcffndTxt = field_61_lcbPlcffndTxt; + } + + /** + * Get the fcPlcfandRef field for the FIB record. + */ + public int getFcPlcfandRef() + { + return field_62_fcPlcfandRef; + } + + /** + * Set the fcPlcfandRef field for the FIB record. + */ + public void setFcPlcfandRef(int field_62_fcPlcfandRef) + { + this.field_62_fcPlcfandRef = field_62_fcPlcfandRef; + } + + /** + * Get the lcbPlcfandRef field for the FIB record. + */ + public int getLcbPlcfandRef() + { + return field_63_lcbPlcfandRef; + } + + /** + * Set the lcbPlcfandRef field for the FIB record. + */ + public void setLcbPlcfandRef(int field_63_lcbPlcfandRef) + { + this.field_63_lcbPlcfandRef = field_63_lcbPlcfandRef; + } + + /** + * Get the fcPlcfandTxt field for the FIB record. + */ + public int getFcPlcfandTxt() + { + return field_64_fcPlcfandTxt; + } + + /** + * Set the fcPlcfandTxt field for the FIB record. + */ + public void setFcPlcfandTxt(int field_64_fcPlcfandTxt) + { + this.field_64_fcPlcfandTxt = field_64_fcPlcfandTxt; + } + + /** + * Get the lcbPlcfandTxt field for the FIB record. + */ + public int getLcbPlcfandTxt() + { + return field_65_lcbPlcfandTxt; + } + + /** + * Set the lcbPlcfandTxt field for the FIB record. + */ + public void setLcbPlcfandTxt(int field_65_lcbPlcfandTxt) + { + this.field_65_lcbPlcfandTxt = field_65_lcbPlcfandTxt; + } + + /** + * Get the fcPlcfsed field for the FIB record. + */ + public int getFcPlcfsed() + { + return field_66_fcPlcfsed; + } + + /** + * Set the fcPlcfsed field for the FIB record. + */ + public void setFcPlcfsed(int field_66_fcPlcfsed) + { + this.field_66_fcPlcfsed = field_66_fcPlcfsed; + } + + /** + * Get the lcbPlcfsed field for the FIB record. + */ + public int getLcbPlcfsed() + { + return field_67_lcbPlcfsed; + } + + /** + * Set the lcbPlcfsed field for the FIB record. + */ + public void setLcbPlcfsed(int field_67_lcbPlcfsed) + { + this.field_67_lcbPlcfsed = field_67_lcbPlcfsed; + } + + /** + * Get the fcPlcpad field for the FIB record. + */ + public int getFcPlcpad() + { + return field_68_fcPlcpad; + } + + /** + * Set the fcPlcpad field for the FIB record. + */ + public void setFcPlcpad(int field_68_fcPlcpad) + { + this.field_68_fcPlcpad = field_68_fcPlcpad; + } + + /** + * Get the lcbPlcpad field for the FIB record. + */ + public int getLcbPlcpad() + { + return field_69_lcbPlcpad; + } + + /** + * Set the lcbPlcpad field for the FIB record. + */ + public void setLcbPlcpad(int field_69_lcbPlcpad) + { + this.field_69_lcbPlcpad = field_69_lcbPlcpad; + } + + /** + * Get the fcPlcfphe field for the FIB record. + */ + public int getFcPlcfphe() + { + return field_70_fcPlcfphe; + } + + /** + * Set the fcPlcfphe field for the FIB record. + */ + public void setFcPlcfphe(int field_70_fcPlcfphe) + { + this.field_70_fcPlcfphe = field_70_fcPlcfphe; + } + + /** + * Get the lcbPlcfphe field for the FIB record. + */ + public int getLcbPlcfphe() + { + return field_71_lcbPlcfphe; + } + + /** + * Set the lcbPlcfphe field for the FIB record. + */ + public void setLcbPlcfphe(int field_71_lcbPlcfphe) + { + this.field_71_lcbPlcfphe = field_71_lcbPlcfphe; + } + + /** + * Get the fcSttbfglsy field for the FIB record. + */ + public int getFcSttbfglsy() + { + return field_72_fcSttbfglsy; + } + + /** + * Set the fcSttbfglsy field for the FIB record. + */ + public void setFcSttbfglsy(int field_72_fcSttbfglsy) + { + this.field_72_fcSttbfglsy = field_72_fcSttbfglsy; + } + + /** + * Get the lcbSttbfglsy field for the FIB record. + */ + public int getLcbSttbfglsy() + { + return field_73_lcbSttbfglsy; + } + + /** + * Set the lcbSttbfglsy field for the FIB record. + */ + public void setLcbSttbfglsy(int field_73_lcbSttbfglsy) + { + this.field_73_lcbSttbfglsy = field_73_lcbSttbfglsy; + } + + /** + * Get the fcPlcfglsy field for the FIB record. + */ + public int getFcPlcfglsy() + { + return field_74_fcPlcfglsy; + } + + /** + * Set the fcPlcfglsy field for the FIB record. + */ + public void setFcPlcfglsy(int field_74_fcPlcfglsy) + { + this.field_74_fcPlcfglsy = field_74_fcPlcfglsy; + } + + /** + * Get the lcbPlcfglsy field for the FIB record. + */ + public int getLcbPlcfglsy() + { + return field_75_lcbPlcfglsy; + } + + /** + * Set the lcbPlcfglsy field for the FIB record. + */ + public void setLcbPlcfglsy(int field_75_lcbPlcfglsy) + { + this.field_75_lcbPlcfglsy = field_75_lcbPlcfglsy; + } + + /** + * Get the fcPlcfhdd field for the FIB record. + */ + public int getFcPlcfhdd() + { + return field_76_fcPlcfhdd; + } + + /** + * Set the fcPlcfhdd field for the FIB record. + */ + public void setFcPlcfhdd(int field_76_fcPlcfhdd) + { + this.field_76_fcPlcfhdd = field_76_fcPlcfhdd; + } + + /** + * Get the lcbPlcfhdd field for the FIB record. + */ + public int getLcbPlcfhdd() + { + return field_77_lcbPlcfhdd; + } + + /** + * Set the lcbPlcfhdd field for the FIB record. + */ + public void setLcbPlcfhdd(int field_77_lcbPlcfhdd) + { + this.field_77_lcbPlcfhdd = field_77_lcbPlcfhdd; + } + + /** + * Get the fcPlcfbteChpx field for the FIB record. + */ + public int getFcPlcfbteChpx() + { + return field_78_fcPlcfbteChpx; + } + + /** + * Set the fcPlcfbteChpx field for the FIB record. + */ + public void setFcPlcfbteChpx(int field_78_fcPlcfbteChpx) + { + this.field_78_fcPlcfbteChpx = field_78_fcPlcfbteChpx; + } + + /** + * Get the lcbPlcfbteChpx field for the FIB record. + */ + public int getLcbPlcfbteChpx() + { + return field_79_lcbPlcfbteChpx; + } + + /** + * Set the lcbPlcfbteChpx field for the FIB record. + */ + public void setLcbPlcfbteChpx(int field_79_lcbPlcfbteChpx) + { + this.field_79_lcbPlcfbteChpx = field_79_lcbPlcfbteChpx; + } + + /** + * Get the fcPlcfbtePapx field for the FIB record. + */ + public int getFcPlcfbtePapx() + { + return field_80_fcPlcfbtePapx; + } + + /** + * Set the fcPlcfbtePapx field for the FIB record. + */ + public void setFcPlcfbtePapx(int field_80_fcPlcfbtePapx) + { + this.field_80_fcPlcfbtePapx = field_80_fcPlcfbtePapx; + } + + /** + * Get the lcbPlcfbtePapx field for the FIB record. + */ + public int getLcbPlcfbtePapx() + { + return field_81_lcbPlcfbtePapx; + } + + /** + * Set the lcbPlcfbtePapx field for the FIB record. + */ + public void setLcbPlcfbtePapx(int field_81_lcbPlcfbtePapx) + { + this.field_81_lcbPlcfbtePapx = field_81_lcbPlcfbtePapx; + } + + /** + * Get the fcPlcfsea field for the FIB record. + */ + public int getFcPlcfsea() + { + return field_82_fcPlcfsea; + } + + /** + * Set the fcPlcfsea field for the FIB record. + */ + public void setFcPlcfsea(int field_82_fcPlcfsea) + { + this.field_82_fcPlcfsea = field_82_fcPlcfsea; + } + + /** + * Get the lcbPlcfsea field for the FIB record. + */ + public int getLcbPlcfsea() + { + return field_83_lcbPlcfsea; + } + + /** + * Set the lcbPlcfsea field for the FIB record. + */ + public void setLcbPlcfsea(int field_83_lcbPlcfsea) + { + this.field_83_lcbPlcfsea = field_83_lcbPlcfsea; + } + + /** + * Get the fcSttbfffn field for the FIB record. + */ + public int getFcSttbfffn() + { + return field_84_fcSttbfffn; + } + + /** + * Set the fcSttbfffn field for the FIB record. + */ + public void setFcSttbfffn(int field_84_fcSttbfffn) + { + this.field_84_fcSttbfffn = field_84_fcSttbfffn; + } + + /** + * Get the lcbSttbfffn field for the FIB record. + */ + public int getLcbSttbfffn() + { + return field_85_lcbSttbfffn; + } + + /** + * Set the lcbSttbfffn field for the FIB record. + */ + public void setLcbSttbfffn(int field_85_lcbSttbfffn) + { + this.field_85_lcbSttbfffn = field_85_lcbSttbfffn; + } + + /** + * Get the fcPlcffldMom field for the FIB record. + */ + public int getFcPlcffldMom() + { + return field_86_fcPlcffldMom; + } + + /** + * Set the fcPlcffldMom field for the FIB record. + */ + public void setFcPlcffldMom(int field_86_fcPlcffldMom) + { + this.field_86_fcPlcffldMom = field_86_fcPlcffldMom; + } + + /** + * Get the lcbPlcffldMom field for the FIB record. + */ + public int getLcbPlcffldMom() + { + return field_87_lcbPlcffldMom; + } + + /** + * Set the lcbPlcffldMom field for the FIB record. + */ + public void setLcbPlcffldMom(int field_87_lcbPlcffldMom) + { + this.field_87_lcbPlcffldMom = field_87_lcbPlcffldMom; + } + + /** + * Get the fcPlcffldHdr field for the FIB record. + */ + public int getFcPlcffldHdr() + { + return field_88_fcPlcffldHdr; + } + + /** + * Set the fcPlcffldHdr field for the FIB record. + */ + public void setFcPlcffldHdr(int field_88_fcPlcffldHdr) + { + this.field_88_fcPlcffldHdr = field_88_fcPlcffldHdr; + } + + /** + * Get the lcbPlcffldHdr field for the FIB record. + */ + public int getLcbPlcffldHdr() + { + return field_89_lcbPlcffldHdr; + } + + /** + * Set the lcbPlcffldHdr field for the FIB record. + */ + public void setLcbPlcffldHdr(int field_89_lcbPlcffldHdr) + { + this.field_89_lcbPlcffldHdr = field_89_lcbPlcffldHdr; + } + + /** + * Get the fcPlcffldFtn field for the FIB record. + */ + public int getFcPlcffldFtn() + { + return field_90_fcPlcffldFtn; + } + + /** + * Set the fcPlcffldFtn field for the FIB record. + */ + public void setFcPlcffldFtn(int field_90_fcPlcffldFtn) + { + this.field_90_fcPlcffldFtn = field_90_fcPlcffldFtn; + } + + /** + * Get the lcbPlcffldFtn field for the FIB record. + */ + public int getLcbPlcffldFtn() + { + return field_91_lcbPlcffldFtn; + } + + /** + * Set the lcbPlcffldFtn field for the FIB record. + */ + public void setLcbPlcffldFtn(int field_91_lcbPlcffldFtn) + { + this.field_91_lcbPlcffldFtn = field_91_lcbPlcffldFtn; + } + + /** + * Get the fcPlcffldAtn field for the FIB record. + */ + public int getFcPlcffldAtn() + { + return field_92_fcPlcffldAtn; + } + + /** + * Set the fcPlcffldAtn field for the FIB record. + */ + public void setFcPlcffldAtn(int field_92_fcPlcffldAtn) + { + this.field_92_fcPlcffldAtn = field_92_fcPlcffldAtn; + } + + /** + * Get the lcbPlcffldAtn field for the FIB record. + */ + public int getLcbPlcffldAtn() + { + return field_93_lcbPlcffldAtn; + } + + /** + * Set the lcbPlcffldAtn field for the FIB record. + */ + public void setLcbPlcffldAtn(int field_93_lcbPlcffldAtn) + { + this.field_93_lcbPlcffldAtn = field_93_lcbPlcffldAtn; + } + + /** + * Get the fcPlcffldMcr field for the FIB record. + */ + public int getFcPlcffldMcr() + { + return field_94_fcPlcffldMcr; + } + + /** + * Set the fcPlcffldMcr field for the FIB record. + */ + public void setFcPlcffldMcr(int field_94_fcPlcffldMcr) + { + this.field_94_fcPlcffldMcr = field_94_fcPlcffldMcr; + } + + /** + * Get the lcbPlcffldMcr field for the FIB record. + */ + public int getLcbPlcffldMcr() + { + return field_95_lcbPlcffldMcr; + } + + /** + * Set the lcbPlcffldMcr field for the FIB record. + */ + public void setLcbPlcffldMcr(int field_95_lcbPlcffldMcr) + { + this.field_95_lcbPlcffldMcr = field_95_lcbPlcffldMcr; + } + + /** + * Get the fcSttbfbkmk field for the FIB record. + */ + public int getFcSttbfbkmk() + { + return field_96_fcSttbfbkmk; + } + + /** + * Set the fcSttbfbkmk field for the FIB record. + */ + public void setFcSttbfbkmk(int field_96_fcSttbfbkmk) + { + this.field_96_fcSttbfbkmk = field_96_fcSttbfbkmk; + } + + /** + * Get the lcbSttbfbkmk field for the FIB record. + */ + public int getLcbSttbfbkmk() + { + return field_97_lcbSttbfbkmk; + } + + /** + * Set the lcbSttbfbkmk field for the FIB record. + */ + public void setLcbSttbfbkmk(int field_97_lcbSttbfbkmk) + { + this.field_97_lcbSttbfbkmk = field_97_lcbSttbfbkmk; + } + + /** + * Get the fcPlcfbkf field for the FIB record. + */ + public int getFcPlcfbkf() + { + return field_98_fcPlcfbkf; + } + + /** + * Set the fcPlcfbkf field for the FIB record. + */ + public void setFcPlcfbkf(int field_98_fcPlcfbkf) + { + this.field_98_fcPlcfbkf = field_98_fcPlcfbkf; + } + + /** + * Get the lcbPlcfbkf field for the FIB record. + */ + public int getLcbPlcfbkf() + { + return field_99_lcbPlcfbkf; + } + + /** + * Set the lcbPlcfbkf field for the FIB record. + */ + public void setLcbPlcfbkf(int field_99_lcbPlcfbkf) + { + this.field_99_lcbPlcfbkf = field_99_lcbPlcfbkf; + } + + /** + * Get the fcPlcfbkl field for the FIB record. + */ + public int getFcPlcfbkl() + { + return field_100_fcPlcfbkl; + } + + /** + * Set the fcPlcfbkl field for the FIB record. + */ + public void setFcPlcfbkl(int field_100_fcPlcfbkl) + { + this.field_100_fcPlcfbkl = field_100_fcPlcfbkl; + } + + /** + * Get the lcbPlcfbkl field for the FIB record. + */ + public int getLcbPlcfbkl() + { + return field_101_lcbPlcfbkl; + } + + /** + * Set the lcbPlcfbkl field for the FIB record. + */ + public void setLcbPlcfbkl(int field_101_lcbPlcfbkl) + { + this.field_101_lcbPlcfbkl = field_101_lcbPlcfbkl; + } + + /** + * Get the fcCmds field for the FIB record. + */ + public int getFcCmds() + { + return field_102_fcCmds; + } + + /** + * Set the fcCmds field for the FIB record. + */ + public void setFcCmds(int field_102_fcCmds) + { + this.field_102_fcCmds = field_102_fcCmds; + } + + /** + * Get the lcbCmds field for the FIB record. + */ + public int getLcbCmds() + { + return field_103_lcbCmds; + } + + /** + * Set the lcbCmds field for the FIB record. + */ + public void setLcbCmds(int field_103_lcbCmds) + { + this.field_103_lcbCmds = field_103_lcbCmds; + } + + /** + * Get the fcPlcmcr field for the FIB record. + */ + public int getFcPlcmcr() + { + return field_104_fcPlcmcr; + } + + /** + * Set the fcPlcmcr field for the FIB record. + */ + public void setFcPlcmcr(int field_104_fcPlcmcr) + { + this.field_104_fcPlcmcr = field_104_fcPlcmcr; + } + + /** + * Get the lcbPlcmcr field for the FIB record. + */ + public int getLcbPlcmcr() + { + return field_105_lcbPlcmcr; + } + + /** + * Set the lcbPlcmcr field for the FIB record. + */ + public void setLcbPlcmcr(int field_105_lcbPlcmcr) + { + this.field_105_lcbPlcmcr = field_105_lcbPlcmcr; + } + + /** + * Get the fcSttbfmcr field for the FIB record. + */ + public int getFcSttbfmcr() + { + return field_106_fcSttbfmcr; + } + + /** + * Set the fcSttbfmcr field for the FIB record. + */ + public void setFcSttbfmcr(int field_106_fcSttbfmcr) + { + this.field_106_fcSttbfmcr = field_106_fcSttbfmcr; + } + + /** + * Get the lcbSttbfmcr field for the FIB record. + */ + public int getLcbSttbfmcr() + { + return field_107_lcbSttbfmcr; + } + + /** + * Set the lcbSttbfmcr field for the FIB record. + */ + public void setLcbSttbfmcr(int field_107_lcbSttbfmcr) + { + this.field_107_lcbSttbfmcr = field_107_lcbSttbfmcr; + } + + /** + * Get the fcPrDrvr field for the FIB record. + */ + public int getFcPrDrvr() + { + return field_108_fcPrDrvr; + } + + /** + * Set the fcPrDrvr field for the FIB record. + */ + public void setFcPrDrvr(int field_108_fcPrDrvr) + { + this.field_108_fcPrDrvr = field_108_fcPrDrvr; + } + + /** + * Get the lcbPrDrvr field for the FIB record. + */ + public int getLcbPrDrvr() + { + return field_109_lcbPrDrvr; + } + + /** + * Set the lcbPrDrvr field for the FIB record. + */ + public void setLcbPrDrvr(int field_109_lcbPrDrvr) + { + this.field_109_lcbPrDrvr = field_109_lcbPrDrvr; + } + + /** + * Get the fcPrEnvPort field for the FIB record. + */ + public int getFcPrEnvPort() + { + return field_110_fcPrEnvPort; + } + + /** + * Set the fcPrEnvPort field for the FIB record. + */ + public void setFcPrEnvPort(int field_110_fcPrEnvPort) + { + this.field_110_fcPrEnvPort = field_110_fcPrEnvPort; + } + + /** + * Get the lcbPrEnvPort field for the FIB record. + */ + public int getLcbPrEnvPort() + { + return field_111_lcbPrEnvPort; + } + + /** + * Set the lcbPrEnvPort field for the FIB record. + */ + public void setLcbPrEnvPort(int field_111_lcbPrEnvPort) + { + this.field_111_lcbPrEnvPort = field_111_lcbPrEnvPort; + } + + /** + * Get the fcPrEnvLand field for the FIB record. + */ + public int getFcPrEnvLand() + { + return field_112_fcPrEnvLand; + } + + /** + * Set the fcPrEnvLand field for the FIB record. + */ + public void setFcPrEnvLand(int field_112_fcPrEnvLand) + { + this.field_112_fcPrEnvLand = field_112_fcPrEnvLand; + } + + /** + * Get the lcbPrEnvLand field for the FIB record. + */ + public int getLcbPrEnvLand() + { + return field_113_lcbPrEnvLand; + } + + /** + * Set the lcbPrEnvLand field for the FIB record. + */ + public void setLcbPrEnvLand(int field_113_lcbPrEnvLand) + { + this.field_113_lcbPrEnvLand = field_113_lcbPrEnvLand; + } + + /** + * Get the fcWss field for the FIB record. + */ + public int getFcWss() + { + return field_114_fcWss; + } + + /** + * Set the fcWss field for the FIB record. + */ + public void setFcWss(int field_114_fcWss) + { + this.field_114_fcWss = field_114_fcWss; + } + + /** + * Get the lcbWss field for the FIB record. + */ + public int getLcbWss() + { + return field_115_lcbWss; + } + + /** + * Set the lcbWss field for the FIB record. + */ + public void setLcbWss(int field_115_lcbWss) + { + this.field_115_lcbWss = field_115_lcbWss; + } + + /** + * Get the fcDop field for the FIB record. + */ + public int getFcDop() + { + return field_116_fcDop; + } + + /** + * Set the fcDop field for the FIB record. + */ + public void setFcDop(int field_116_fcDop) + { + this.field_116_fcDop = field_116_fcDop; + } + + /** + * Get the lcbDop field for the FIB record. + */ + public int getLcbDop() + { + return field_117_lcbDop; + } + + /** + * Set the lcbDop field for the FIB record. + */ + public void setLcbDop(int field_117_lcbDop) + { + this.field_117_lcbDop = field_117_lcbDop; + } + + /** + * Get the fcSttbfAssoc field for the FIB record. + */ + public int getFcSttbfAssoc() + { + return field_118_fcSttbfAssoc; + } + + /** + * Set the fcSttbfAssoc field for the FIB record. + */ + public void setFcSttbfAssoc(int field_118_fcSttbfAssoc) + { + this.field_118_fcSttbfAssoc = field_118_fcSttbfAssoc; + } + + /** + * Get the lcbSttbfAssoc field for the FIB record. + */ + public int getLcbSttbfAssoc() + { + return field_119_lcbSttbfAssoc; + } + + /** + * Set the lcbSttbfAssoc field for the FIB record. + */ + public void setLcbSttbfAssoc(int field_119_lcbSttbfAssoc) + { + this.field_119_lcbSttbfAssoc = field_119_lcbSttbfAssoc; + } + + /** + * Get the fcClx field for the FIB record. + */ + public int getFcClx() + { + return field_120_fcClx; + } + + /** + * Set the fcClx field for the FIB record. + */ + public void setFcClx(int field_120_fcClx) + { + this.field_120_fcClx = field_120_fcClx; + } + + /** + * Get the lcbClx field for the FIB record. + */ + public int getLcbClx() + { + return field_121_lcbClx; + } + + /** + * Set the lcbClx field for the FIB record. + */ + public void setLcbClx(int field_121_lcbClx) + { + this.field_121_lcbClx = field_121_lcbClx; + } + + /** + * Get the fcPlcfpgdFtn field for the FIB record. + */ + public int getFcPlcfpgdFtn() + { + return field_122_fcPlcfpgdFtn; + } + + /** + * Set the fcPlcfpgdFtn field for the FIB record. + */ + public void setFcPlcfpgdFtn(int field_122_fcPlcfpgdFtn) + { + this.field_122_fcPlcfpgdFtn = field_122_fcPlcfpgdFtn; + } + + /** + * Get the lcbPlcfpgdFtn field for the FIB record. + */ + public int getLcbPlcfpgdFtn() + { + return field_123_lcbPlcfpgdFtn; + } + + /** + * Set the lcbPlcfpgdFtn field for the FIB record. + */ + public void setLcbPlcfpgdFtn(int field_123_lcbPlcfpgdFtn) + { + this.field_123_lcbPlcfpgdFtn = field_123_lcbPlcfpgdFtn; + } + + /** + * Get the fcAutosaveSource field for the FIB record. + */ + public int getFcAutosaveSource() + { + return field_124_fcAutosaveSource; + } + + /** + * Set the fcAutosaveSource field for the FIB record. + */ + public void setFcAutosaveSource(int field_124_fcAutosaveSource) + { + this.field_124_fcAutosaveSource = field_124_fcAutosaveSource; + } + + /** + * Get the lcbAutosaveSource field for the FIB record. + */ + public int getLcbAutosaveSource() + { + return field_125_lcbAutosaveSource; + } + + /** + * Set the lcbAutosaveSource field for the FIB record. + */ + public void setLcbAutosaveSource(int field_125_lcbAutosaveSource) + { + this.field_125_lcbAutosaveSource = field_125_lcbAutosaveSource; + } + + /** + * Get the fcGrpXstAtnOwners field for the FIB record. + */ + public int getFcGrpXstAtnOwners() + { + return field_126_fcGrpXstAtnOwners; + } + + /** + * Set the fcGrpXstAtnOwners field for the FIB record. + */ + public void setFcGrpXstAtnOwners(int field_126_fcGrpXstAtnOwners) + { + this.field_126_fcGrpXstAtnOwners = field_126_fcGrpXstAtnOwners; + } + + /** + * Get the lcbGrpXstAtnOwners field for the FIB record. + */ + public int getLcbGrpXstAtnOwners() + { + return field_127_lcbGrpXstAtnOwners; + } + + /** + * Set the lcbGrpXstAtnOwners field for the FIB record. + */ + public void setLcbGrpXstAtnOwners(int field_127_lcbGrpXstAtnOwners) + { + this.field_127_lcbGrpXstAtnOwners = field_127_lcbGrpXstAtnOwners; + } + + /** + * Get the fcSttbfAtnbkmk field for the FIB record. + */ + public int getFcSttbfAtnbkmk() + { + return field_128_fcSttbfAtnbkmk; + } + + /** + * Set the fcSttbfAtnbkmk field for the FIB record. + */ + public void setFcSttbfAtnbkmk(int field_128_fcSttbfAtnbkmk) + { + this.field_128_fcSttbfAtnbkmk = field_128_fcSttbfAtnbkmk; + } + + /** + * Get the lcbSttbfAtnbkmk field for the FIB record. + */ + public int getLcbSttbfAtnbkmk() + { + return field_129_lcbSttbfAtnbkmk; + } + + /** + * Set the lcbSttbfAtnbkmk field for the FIB record. + */ + public void setLcbSttbfAtnbkmk(int field_129_lcbSttbfAtnbkmk) + { + this.field_129_lcbSttbfAtnbkmk = field_129_lcbSttbfAtnbkmk; + } + + /** + * Get the fcPlcdoaMom field for the FIB record. + */ + public int getFcPlcdoaMom() + { + return field_130_fcPlcdoaMom; + } + + /** + * Set the fcPlcdoaMom field for the FIB record. + */ + public void setFcPlcdoaMom(int field_130_fcPlcdoaMom) + { + this.field_130_fcPlcdoaMom = field_130_fcPlcdoaMom; + } + + /** + * Get the lcbPlcdoaMom field for the FIB record. + */ + public int getLcbPlcdoaMom() + { + return field_131_lcbPlcdoaMom; + } + + /** + * Set the lcbPlcdoaMom field for the FIB record. + */ + public void setLcbPlcdoaMom(int field_131_lcbPlcdoaMom) + { + this.field_131_lcbPlcdoaMom = field_131_lcbPlcdoaMom; + } + + /** + * Get the fcPlcdoaHdr field for the FIB record. + */ + public int getFcPlcdoaHdr() + { + return field_132_fcPlcdoaHdr; + } + + /** + * Set the fcPlcdoaHdr field for the FIB record. + */ + public void setFcPlcdoaHdr(int field_132_fcPlcdoaHdr) + { + this.field_132_fcPlcdoaHdr = field_132_fcPlcdoaHdr; + } + + /** + * Get the lcbPlcdoaHdr field for the FIB record. + */ + public int getLcbPlcdoaHdr() + { + return field_133_lcbPlcdoaHdr; + } + + /** + * Set the lcbPlcdoaHdr field for the FIB record. + */ + public void setLcbPlcdoaHdr(int field_133_lcbPlcdoaHdr) + { + this.field_133_lcbPlcdoaHdr = field_133_lcbPlcdoaHdr; + } + + /** + * Get the fcPlcspaMom field for the FIB record. + */ + public int getFcPlcspaMom() + { + return field_134_fcPlcspaMom; + } + + /** + * Set the fcPlcspaMom field for the FIB record. + */ + public void setFcPlcspaMom(int field_134_fcPlcspaMom) + { + this.field_134_fcPlcspaMom = field_134_fcPlcspaMom; + } + + /** + * Get the lcbPlcspaMom field for the FIB record. + */ + public int getLcbPlcspaMom() + { + return field_135_lcbPlcspaMom; + } + + /** + * Set the lcbPlcspaMom field for the FIB record. + */ + public void setLcbPlcspaMom(int field_135_lcbPlcspaMom) + { + this.field_135_lcbPlcspaMom = field_135_lcbPlcspaMom; + } + + /** + * Get the fcPlcspaHdr field for the FIB record. + */ + public int getFcPlcspaHdr() + { + return field_136_fcPlcspaHdr; + } + + /** + * Set the fcPlcspaHdr field for the FIB record. + */ + public void setFcPlcspaHdr(int field_136_fcPlcspaHdr) + { + this.field_136_fcPlcspaHdr = field_136_fcPlcspaHdr; + } + + /** + * Get the lcbPlcspaHdr field for the FIB record. + */ + public int getLcbPlcspaHdr() + { + return field_137_lcbPlcspaHdr; + } + + /** + * Set the lcbPlcspaHdr field for the FIB record. + */ + public void setLcbPlcspaHdr(int field_137_lcbPlcspaHdr) + { + this.field_137_lcbPlcspaHdr = field_137_lcbPlcspaHdr; + } + + /** + * Get the fcPlcfAtnbkf field for the FIB record. + */ + public int getFcPlcfAtnbkf() + { + return field_138_fcPlcfAtnbkf; + } + + /** + * Set the fcPlcfAtnbkf field for the FIB record. + */ + public void setFcPlcfAtnbkf(int field_138_fcPlcfAtnbkf) + { + this.field_138_fcPlcfAtnbkf = field_138_fcPlcfAtnbkf; + } + + /** + * Get the lcbPlcfAtnbkf field for the FIB record. + */ + public int getLcbPlcfAtnbkf() + { + return field_139_lcbPlcfAtnbkf; + } + + /** + * Set the lcbPlcfAtnbkf field for the FIB record. + */ + public void setLcbPlcfAtnbkf(int field_139_lcbPlcfAtnbkf) + { + this.field_139_lcbPlcfAtnbkf = field_139_lcbPlcfAtnbkf; + } + + /** + * Get the fcPlcfAtnbkl field for the FIB record. + */ + public int getFcPlcfAtnbkl() + { + return field_140_fcPlcfAtnbkl; + } + + /** + * Set the fcPlcfAtnbkl field for the FIB record. + */ + public void setFcPlcfAtnbkl(int field_140_fcPlcfAtnbkl) + { + this.field_140_fcPlcfAtnbkl = field_140_fcPlcfAtnbkl; + } + + /** + * Get the lcbPlcfAtnbkl field for the FIB record. + */ + public int getLcbPlcfAtnbkl() + { + return field_141_lcbPlcfAtnbkl; + } + + /** + * Set the lcbPlcfAtnbkl field for the FIB record. + */ + public void setLcbPlcfAtnbkl(int field_141_lcbPlcfAtnbkl) + { + this.field_141_lcbPlcfAtnbkl = field_141_lcbPlcfAtnbkl; + } + + /** + * Get the fcPms field for the FIB record. + */ + public int getFcPms() + { + return field_142_fcPms; + } + + /** + * Set the fcPms field for the FIB record. + */ + public void setFcPms(int field_142_fcPms) + { + this.field_142_fcPms = field_142_fcPms; + } + + /** + * Get the lcbPms field for the FIB record. + */ + public int getLcbPms() + { + return field_143_lcbPms; + } + + /** + * Set the lcbPms field for the FIB record. + */ + public void setLcbPms(int field_143_lcbPms) + { + this.field_143_lcbPms = field_143_lcbPms; + } + + /** + * Get the fcFormFldSttbs field for the FIB record. + */ + public int getFcFormFldSttbs() + { + return field_144_fcFormFldSttbs; + } + + /** + * Set the fcFormFldSttbs field for the FIB record. + */ + public void setFcFormFldSttbs(int field_144_fcFormFldSttbs) + { + this.field_144_fcFormFldSttbs = field_144_fcFormFldSttbs; + } + + /** + * Get the lcbFormFldSttbs field for the FIB record. + */ + public int getLcbFormFldSttbs() + { + return field_145_lcbFormFldSttbs; + } + + /** + * Set the lcbFormFldSttbs field for the FIB record. + */ + public void setLcbFormFldSttbs(int field_145_lcbFormFldSttbs) + { + this.field_145_lcbFormFldSttbs = field_145_lcbFormFldSttbs; + } + + /** + * Get the fcPlcfendRef field for the FIB record. + */ + public int getFcPlcfendRef() + { + return field_146_fcPlcfendRef; + } + + /** + * Set the fcPlcfendRef field for the FIB record. + */ + public void setFcPlcfendRef(int field_146_fcPlcfendRef) + { + this.field_146_fcPlcfendRef = field_146_fcPlcfendRef; + } + + /** + * Get the lcbPlcfendRef field for the FIB record. + */ + public int getLcbPlcfendRef() + { + return field_147_lcbPlcfendRef; + } + + /** + * Set the lcbPlcfendRef field for the FIB record. + */ + public void setLcbPlcfendRef(int field_147_lcbPlcfendRef) + { + this.field_147_lcbPlcfendRef = field_147_lcbPlcfendRef; + } + + /** + * Get the fcPlcfendTxt field for the FIB record. + */ + public int getFcPlcfendTxt() + { + return field_148_fcPlcfendTxt; + } + + /** + * Set the fcPlcfendTxt field for the FIB record. + */ + public void setFcPlcfendTxt(int field_148_fcPlcfendTxt) + { + this.field_148_fcPlcfendTxt = field_148_fcPlcfendTxt; + } + + /** + * Get the lcbPlcfendTxt field for the FIB record. + */ + public int getLcbPlcfendTxt() + { + return field_149_lcbPlcfendTxt; + } + + /** + * Set the lcbPlcfendTxt field for the FIB record. + */ + public void setLcbPlcfendTxt(int field_149_lcbPlcfendTxt) + { + this.field_149_lcbPlcfendTxt = field_149_lcbPlcfendTxt; + } + + /** + * Get the fcPlcffldEdn field for the FIB record. + */ + public int getFcPlcffldEdn() + { + return field_150_fcPlcffldEdn; + } + + /** + * Set the fcPlcffldEdn field for the FIB record. + */ + public void setFcPlcffldEdn(int field_150_fcPlcffldEdn) + { + this.field_150_fcPlcffldEdn = field_150_fcPlcffldEdn; + } + + /** + * Get the lcbPlcffldEdn field for the FIB record. + */ + public int getLcbPlcffldEdn() + { + return field_151_lcbPlcffldEdn; + } + + /** + * Set the lcbPlcffldEdn field for the FIB record. + */ + public void setLcbPlcffldEdn(int field_151_lcbPlcffldEdn) + { + this.field_151_lcbPlcffldEdn = field_151_lcbPlcffldEdn; + } + + /** + * Get the fcPlcfpgdEdn field for the FIB record. + */ + public int getFcPlcfpgdEdn() + { + return field_152_fcPlcfpgdEdn; + } + + /** + * Set the fcPlcfpgdEdn field for the FIB record. + */ + public void setFcPlcfpgdEdn(int field_152_fcPlcfpgdEdn) + { + this.field_152_fcPlcfpgdEdn = field_152_fcPlcfpgdEdn; + } + + /** + * Get the lcbPlcfpgdEdn field for the FIB record. + */ + public int getLcbPlcfpgdEdn() + { + return field_153_lcbPlcfpgdEdn; + } + + /** + * Set the lcbPlcfpgdEdn field for the FIB record. + */ + public void setLcbPlcfpgdEdn(int field_153_lcbPlcfpgdEdn) + { + this.field_153_lcbPlcfpgdEdn = field_153_lcbPlcfpgdEdn; + } + + /** + * Get the fcDggInfo field for the FIB record. + */ + public int getFcDggInfo() + { + return field_154_fcDggInfo; + } + + /** + * Set the fcDggInfo field for the FIB record. + */ + public void setFcDggInfo(int field_154_fcDggInfo) + { + this.field_154_fcDggInfo = field_154_fcDggInfo; + } + + /** + * Get the lcbDggInfo field for the FIB record. + */ + public int getLcbDggInfo() + { + return field_155_lcbDggInfo; + } + + /** + * Set the lcbDggInfo field for the FIB record. + */ + public void setLcbDggInfo(int field_155_lcbDggInfo) + { + this.field_155_lcbDggInfo = field_155_lcbDggInfo; + } + + /** + * Get the fcSttbfRMark field for the FIB record. + */ + public int getFcSttbfRMark() + { + return field_156_fcSttbfRMark; + } + + /** + * Set the fcSttbfRMark field for the FIB record. + */ + public void setFcSttbfRMark(int field_156_fcSttbfRMark) + { + this.field_156_fcSttbfRMark = field_156_fcSttbfRMark; + } + + /** + * Get the lcbSttbfRMark field for the FIB record. + */ + public int getLcbSttbfRMark() + { + return field_157_lcbSttbfRMark; + } + + /** + * Set the lcbSttbfRMark field for the FIB record. + */ + public void setLcbSttbfRMark(int field_157_lcbSttbfRMark) + { + this.field_157_lcbSttbfRMark = field_157_lcbSttbfRMark; + } + + /** + * Get the fcSttbCaption field for the FIB record. + */ + public int getFcSttbCaption() + { + return field_158_fcSttbCaption; + } + + /** + * Set the fcSttbCaption field for the FIB record. + */ + public void setFcSttbCaption(int field_158_fcSttbCaption) + { + this.field_158_fcSttbCaption = field_158_fcSttbCaption; + } + + /** + * Get the lcbSttbCaption field for the FIB record. + */ + public int getLcbSttbCaption() + { + return field_159_lcbSttbCaption; + } + + /** + * Set the lcbSttbCaption field for the FIB record. + */ + public void setLcbSttbCaption(int field_159_lcbSttbCaption) + { + this.field_159_lcbSttbCaption = field_159_lcbSttbCaption; + } + + /** + * Get the fcSttbAutoCaption field for the FIB record. + */ + public int getFcSttbAutoCaption() + { + return field_160_fcSttbAutoCaption; + } + + /** + * Set the fcSttbAutoCaption field for the FIB record. + */ + public void setFcSttbAutoCaption(int field_160_fcSttbAutoCaption) + { + this.field_160_fcSttbAutoCaption = field_160_fcSttbAutoCaption; + } + + /** + * Get the lcbSttbAutoCaption field for the FIB record. + */ + public int getLcbSttbAutoCaption() + { + return field_161_lcbSttbAutoCaption; + } + + /** + * Set the lcbSttbAutoCaption field for the FIB record. + */ + public void setLcbSttbAutoCaption(int field_161_lcbSttbAutoCaption) + { + this.field_161_lcbSttbAutoCaption = field_161_lcbSttbAutoCaption; + } + + /** + * Get the fcPlcfwkb field for the FIB record. + */ + public int getFcPlcfwkb() + { + return field_162_fcPlcfwkb; + } + + /** + * Set the fcPlcfwkb field for the FIB record. + */ + public void setFcPlcfwkb(int field_162_fcPlcfwkb) + { + this.field_162_fcPlcfwkb = field_162_fcPlcfwkb; + } + + /** + * Get the lcbPlcfwkb field for the FIB record. + */ + public int getLcbPlcfwkb() + { + return field_163_lcbPlcfwkb; + } + + /** + * Set the lcbPlcfwkb field for the FIB record. + */ + public void setLcbPlcfwkb(int field_163_lcbPlcfwkb) + { + this.field_163_lcbPlcfwkb = field_163_lcbPlcfwkb; + } + + /** + * Get the fcPlcfspl field for the FIB record. + */ + public int getFcPlcfspl() + { + return field_164_fcPlcfspl; + } + + /** + * Set the fcPlcfspl field for the FIB record. + */ + public void setFcPlcfspl(int field_164_fcPlcfspl) + { + this.field_164_fcPlcfspl = field_164_fcPlcfspl; + } + + /** + * Get the lcbPlcfspl field for the FIB record. + */ + public int getLcbPlcfspl() + { + return field_165_lcbPlcfspl; + } + + /** + * Set the lcbPlcfspl field for the FIB record. + */ + public void setLcbPlcfspl(int field_165_lcbPlcfspl) + { + this.field_165_lcbPlcfspl = field_165_lcbPlcfspl; + } + + /** + * Get the fcPlcftxbxTxt field for the FIB record. + */ + public int getFcPlcftxbxTxt() + { + return field_166_fcPlcftxbxTxt; + } + + /** + * Set the fcPlcftxbxTxt field for the FIB record. + */ + public void setFcPlcftxbxTxt(int field_166_fcPlcftxbxTxt) + { + this.field_166_fcPlcftxbxTxt = field_166_fcPlcftxbxTxt; + } + + /** + * Get the lcbPlcftxbxTxt field for the FIB record. + */ + public int getLcbPlcftxbxTxt() + { + return field_167_lcbPlcftxbxTxt; + } + + /** + * Set the lcbPlcftxbxTxt field for the FIB record. + */ + public void setLcbPlcftxbxTxt(int field_167_lcbPlcftxbxTxt) + { + this.field_167_lcbPlcftxbxTxt = field_167_lcbPlcftxbxTxt; + } + + /** + * Get the fcPlcffldTxbx field for the FIB record. + */ + public int getFcPlcffldTxbx() + { + return field_168_fcPlcffldTxbx; + } + + /** + * Set the fcPlcffldTxbx field for the FIB record. + */ + public void setFcPlcffldTxbx(int field_168_fcPlcffldTxbx) + { + this.field_168_fcPlcffldTxbx = field_168_fcPlcffldTxbx; + } + + /** + * Get the lcbPlcffldTxbx field for the FIB record. + */ + public int getLcbPlcffldTxbx() + { + return field_169_lcbPlcffldTxbx; + } + + /** + * Set the lcbPlcffldTxbx field for the FIB record. + */ + public void setLcbPlcffldTxbx(int field_169_lcbPlcffldTxbx) + { + this.field_169_lcbPlcffldTxbx = field_169_lcbPlcffldTxbx; + } + + /** + * Get the fcPlcfhdrtxbxTxt field for the FIB record. + */ + public int getFcPlcfhdrtxbxTxt() + { + return field_170_fcPlcfhdrtxbxTxt; + } + + /** + * Set the fcPlcfhdrtxbxTxt field for the FIB record. + */ + public void setFcPlcfhdrtxbxTxt(int field_170_fcPlcfhdrtxbxTxt) + { + this.field_170_fcPlcfhdrtxbxTxt = field_170_fcPlcfhdrtxbxTxt; + } + + /** + * Get the lcbPlcfhdrtxbxTxt field for the FIB record. + */ + public int getLcbPlcfhdrtxbxTxt() + { + return field_171_lcbPlcfhdrtxbxTxt; + } + + /** + * Set the lcbPlcfhdrtxbxTxt field for the FIB record. + */ + public void setLcbPlcfhdrtxbxTxt(int field_171_lcbPlcfhdrtxbxTxt) + { + this.field_171_lcbPlcfhdrtxbxTxt = field_171_lcbPlcfhdrtxbxTxt; + } + + /** + * Get the fcPlcffldHdrTxbx field for the FIB record. + */ + public int getFcPlcffldHdrTxbx() + { + return field_172_fcPlcffldHdrTxbx; + } + + /** + * Set the fcPlcffldHdrTxbx field for the FIB record. + */ + public void setFcPlcffldHdrTxbx(int field_172_fcPlcffldHdrTxbx) + { + this.field_172_fcPlcffldHdrTxbx = field_172_fcPlcffldHdrTxbx; + } + + /** + * Get the lcbPlcffldHdrTxbx field for the FIB record. + */ + public int getLcbPlcffldHdrTxbx() + { + return field_173_lcbPlcffldHdrTxbx; + } + + /** + * Set the lcbPlcffldHdrTxbx field for the FIB record. + */ + public void setLcbPlcffldHdrTxbx(int field_173_lcbPlcffldHdrTxbx) + { + this.field_173_lcbPlcffldHdrTxbx = field_173_lcbPlcffldHdrTxbx; + } + + /** + * Get the fcStwUser field for the FIB record. + */ + public int getFcStwUser() + { + return field_174_fcStwUser; + } + + /** + * Set the fcStwUser field for the FIB record. + */ + public void setFcStwUser(int field_174_fcStwUser) + { + this.field_174_fcStwUser = field_174_fcStwUser; + } + + /** + * Get the lcbStwUser field for the FIB record. + */ + public int getLcbStwUser() + { + return field_175_lcbStwUser; + } + + /** + * Set the lcbStwUser field for the FIB record. + */ + public void setLcbStwUser(int field_175_lcbStwUser) + { + this.field_175_lcbStwUser = field_175_lcbStwUser; + } + + /** + * Get the fcSttbttmbd field for the FIB record. + */ + public int getFcSttbttmbd() + { + return field_176_fcSttbttmbd; + } + + /** + * Set the fcSttbttmbd field for the FIB record. + */ + public void setFcSttbttmbd(int field_176_fcSttbttmbd) + { + this.field_176_fcSttbttmbd = field_176_fcSttbttmbd; + } + + /** + * Get the cbSttbttmbd field for the FIB record. + */ + public int getCbSttbttmbd() + { + return field_177_cbSttbttmbd; + } + + /** + * Set the cbSttbttmbd field for the FIB record. + */ + public void setCbSttbttmbd(int field_177_cbSttbttmbd) + { + this.field_177_cbSttbttmbd = field_177_cbSttbttmbd; + } + + /** + * Get the fcUnused field for the FIB record. + */ + public int getFcUnused() + { + return field_178_fcUnused; + } + + /** + * Set the fcUnused field for the FIB record. + */ + public void setFcUnused(int field_178_fcUnused) + { + this.field_178_fcUnused = field_178_fcUnused; + } + + /** + * Get the lcbUnused field for the FIB record. + */ + public int getLcbUnused() + { + return field_179_lcbUnused; + } + + /** + * Set the lcbUnused field for the FIB record. + */ + public void setLcbUnused(int field_179_lcbUnused) + { + this.field_179_lcbUnused = field_179_lcbUnused; + } + + /** + * Get the fcPgdMother field for the FIB record. + */ + public int getFcPgdMother() + { + return field_180_fcPgdMother; + } + + /** + * Set the fcPgdMother field for the FIB record. + */ + public void setFcPgdMother(int field_180_fcPgdMother) + { + this.field_180_fcPgdMother = field_180_fcPgdMother; + } + + /** + * Get the lcbPgdMother field for the FIB record. + */ + public int getLcbPgdMother() + { + return field_181_lcbPgdMother; + } + + /** + * Set the lcbPgdMother field for the FIB record. + */ + public void setLcbPgdMother(int field_181_lcbPgdMother) + { + this.field_181_lcbPgdMother = field_181_lcbPgdMother; + } + + /** + * Get the fcBkdMother field for the FIB record. + */ + public int getFcBkdMother() + { + return field_182_fcBkdMother; + } + + /** + * Set the fcBkdMother field for the FIB record. + */ + public void setFcBkdMother(int field_182_fcBkdMother) + { + this.field_182_fcBkdMother = field_182_fcBkdMother; + } + + /** + * Get the lcbBkdMother field for the FIB record. + */ + public int getLcbBkdMother() + { + return field_183_lcbBkdMother; + } + + /** + * Set the lcbBkdMother field for the FIB record. + */ + public void setLcbBkdMother(int field_183_lcbBkdMother) + { + this.field_183_lcbBkdMother = field_183_lcbBkdMother; + } + + /** + * Get the fcPgdFtn field for the FIB record. + */ + public int getFcPgdFtn() + { + return field_184_fcPgdFtn; + } + + /** + * Set the fcPgdFtn field for the FIB record. + */ + public void setFcPgdFtn(int field_184_fcPgdFtn) + { + this.field_184_fcPgdFtn = field_184_fcPgdFtn; + } + + /** + * Get the lcbPgdFtn field for the FIB record. + */ + public int getLcbPgdFtn() + { + return field_185_lcbPgdFtn; + } + + /** + * Set the lcbPgdFtn field for the FIB record. + */ + public void setLcbPgdFtn(int field_185_lcbPgdFtn) + { + this.field_185_lcbPgdFtn = field_185_lcbPgdFtn; + } + + /** + * Get the fcBkdFtn field for the FIB record. + */ + public int getFcBkdFtn() + { + return field_186_fcBkdFtn; + } + + /** + * Set the fcBkdFtn field for the FIB record. + */ + public void setFcBkdFtn(int field_186_fcBkdFtn) + { + this.field_186_fcBkdFtn = field_186_fcBkdFtn; + } + + /** + * Get the lcbBkdFtn field for the FIB record. + */ + public int getLcbBkdFtn() + { + return field_187_lcbBkdFtn; + } + + /** + * Set the lcbBkdFtn field for the FIB record. + */ + public void setLcbBkdFtn(int field_187_lcbBkdFtn) + { + this.field_187_lcbBkdFtn = field_187_lcbBkdFtn; + } + + /** + * Get the fcPgdEdn field for the FIB record. + */ + public int getFcPgdEdn() + { + return field_188_fcPgdEdn; + } + + /** + * Set the fcPgdEdn field for the FIB record. + */ + public void setFcPgdEdn(int field_188_fcPgdEdn) + { + this.field_188_fcPgdEdn = field_188_fcPgdEdn; + } + + /** + * Get the lcbPgdEdn field for the FIB record. + */ + public int getLcbPgdEdn() + { + return field_189_lcbPgdEdn; + } + + /** + * Set the lcbPgdEdn field for the FIB record. + */ + public void setLcbPgdEdn(int field_189_lcbPgdEdn) + { + this.field_189_lcbPgdEdn = field_189_lcbPgdEdn; + } + + /** + * Get the fcBkdEdn field for the FIB record. + */ + public int getFcBkdEdn() + { + return field_190_fcBkdEdn; + } + + /** + * Set the fcBkdEdn field for the FIB record. + */ + public void setFcBkdEdn(int field_190_fcBkdEdn) + { + this.field_190_fcBkdEdn = field_190_fcBkdEdn; + } + + /** + * Get the lcbBkdEdn field for the FIB record. + */ + public int getLcbBkdEdn() + { + return field_191_lcbBkdEdn; + } + + /** + * Set the lcbBkdEdn field for the FIB record. + */ + public void setLcbBkdEdn(int field_191_lcbBkdEdn) + { + this.field_191_lcbBkdEdn = field_191_lcbBkdEdn; + } + + /** + * Get the fcSttbfIntlFld field for the FIB record. + */ + public int getFcSttbfIntlFld() + { + return field_192_fcSttbfIntlFld; + } + + /** + * Set the fcSttbfIntlFld field for the FIB record. + */ + public void setFcSttbfIntlFld(int field_192_fcSttbfIntlFld) + { + this.field_192_fcSttbfIntlFld = field_192_fcSttbfIntlFld; + } + + /** + * Get the lcbSttbfIntlFld field for the FIB record. + */ + public int getLcbSttbfIntlFld() + { + return field_193_lcbSttbfIntlFld; + } + + /** + * Set the lcbSttbfIntlFld field for the FIB record. + */ + public void setLcbSttbfIntlFld(int field_193_lcbSttbfIntlFld) + { + this.field_193_lcbSttbfIntlFld = field_193_lcbSttbfIntlFld; + } + + /** + * Get the fcRouteSlip field for the FIB record. + */ + public int getFcRouteSlip() + { + return field_194_fcRouteSlip; + } + + /** + * Set the fcRouteSlip field for the FIB record. + */ + public void setFcRouteSlip(int field_194_fcRouteSlip) + { + this.field_194_fcRouteSlip = field_194_fcRouteSlip; + } + + /** + * Get the lcbRouteSlip field for the FIB record. + */ + public int getLcbRouteSlip() + { + return field_195_lcbRouteSlip; + } + + /** + * Set the lcbRouteSlip field for the FIB record. + */ + public void setLcbRouteSlip(int field_195_lcbRouteSlip) + { + this.field_195_lcbRouteSlip = field_195_lcbRouteSlip; + } + + /** + * Get the fcSttbSavedBy field for the FIB record. + */ + public int getFcSttbSavedBy() + { + return field_196_fcSttbSavedBy; + } + + /** + * Set the fcSttbSavedBy field for the FIB record. + */ + public void setFcSttbSavedBy(int field_196_fcSttbSavedBy) + { + this.field_196_fcSttbSavedBy = field_196_fcSttbSavedBy; + } + + /** + * Get the lcbSttbSavedBy field for the FIB record. + */ + public int getLcbSttbSavedBy() + { + return field_197_lcbSttbSavedBy; + } + + /** + * Set the lcbSttbSavedBy field for the FIB record. + */ + public void setLcbSttbSavedBy(int field_197_lcbSttbSavedBy) + { + this.field_197_lcbSttbSavedBy = field_197_lcbSttbSavedBy; + } + + /** + * Get the fcSttbFnm field for the FIB record. + */ + public int getFcSttbFnm() + { + return field_198_fcSttbFnm; + } + + /** + * Set the fcSttbFnm field for the FIB record. + */ + public void setFcSttbFnm(int field_198_fcSttbFnm) + { + this.field_198_fcSttbFnm = field_198_fcSttbFnm; + } + + /** + * Get the lcbSttbFnm field for the FIB record. + */ + public int getLcbSttbFnm() + { + return field_199_lcbSttbFnm; + } + + /** + * Set the lcbSttbFnm field for the FIB record. + */ + public void setLcbSttbFnm(int field_199_lcbSttbFnm) + { + this.field_199_lcbSttbFnm = field_199_lcbSttbFnm; + } + + /** + * Get the fcPlcfLst field for the FIB record. + */ + public int getFcPlcfLst() + { + return field_200_fcPlcfLst; + } + + /** + * Set the fcPlcfLst field for the FIB record. + */ + public void setFcPlcfLst(int field_200_fcPlcfLst) + { + this.field_200_fcPlcfLst = field_200_fcPlcfLst; + } + + /** + * Get the lcbPlcfLst field for the FIB record. + */ + public int getLcbPlcfLst() + { + return field_201_lcbPlcfLst; + } + + /** + * Set the lcbPlcfLst field for the FIB record. + */ + public void setLcbPlcfLst(int field_201_lcbPlcfLst) + { + this.field_201_lcbPlcfLst = field_201_lcbPlcfLst; + } + + /** + * Get the fcPlfLfo field for the FIB record. + */ + public int getFcPlfLfo() + { + return field_202_fcPlfLfo; + } + + /** + * Set the fcPlfLfo field for the FIB record. + */ + public void setFcPlfLfo(int field_202_fcPlfLfo) + { + this.field_202_fcPlfLfo = field_202_fcPlfLfo; + } + + /** + * Get the lcbPlfLfo field for the FIB record. + */ + public int getLcbPlfLfo() + { + return field_203_lcbPlfLfo; + } + + /** + * Set the lcbPlfLfo field for the FIB record. + */ + public void setLcbPlfLfo(int field_203_lcbPlfLfo) + { + this.field_203_lcbPlfLfo = field_203_lcbPlfLfo; + } + + /** + * Get the fcPlcftxbxBkd field for the FIB record. + */ + public int getFcPlcftxbxBkd() + { + return field_204_fcPlcftxbxBkd; + } + + /** + * Set the fcPlcftxbxBkd field for the FIB record. + */ + public void setFcPlcftxbxBkd(int field_204_fcPlcftxbxBkd) + { + this.field_204_fcPlcftxbxBkd = field_204_fcPlcftxbxBkd; + } + + /** + * Get the lcbPlcftxbxBkd field for the FIB record. + */ + public int getLcbPlcftxbxBkd() + { + return field_205_lcbPlcftxbxBkd; + } + + /** + * Set the lcbPlcftxbxBkd field for the FIB record. + */ + public void setLcbPlcftxbxBkd(int field_205_lcbPlcftxbxBkd) + { + this.field_205_lcbPlcftxbxBkd = field_205_lcbPlcftxbxBkd; + } + + /** + * Get the fcPlcftxbxHdrBkd field for the FIB record. + */ + public int getFcPlcftxbxHdrBkd() + { + return field_206_fcPlcftxbxHdrBkd; + } + + /** + * Set the fcPlcftxbxHdrBkd field for the FIB record. + */ + public void setFcPlcftxbxHdrBkd(int field_206_fcPlcftxbxHdrBkd) + { + this.field_206_fcPlcftxbxHdrBkd = field_206_fcPlcftxbxHdrBkd; + } + + /** + * Get the lcbPlcftxbxHdrBkd field for the FIB record. + */ + public int getLcbPlcftxbxHdrBkd() + { + return field_207_lcbPlcftxbxHdrBkd; + } + + /** + * Set the lcbPlcftxbxHdrBkd field for the FIB record. + */ + public void setLcbPlcftxbxHdrBkd(int field_207_lcbPlcftxbxHdrBkd) + { + this.field_207_lcbPlcftxbxHdrBkd = field_207_lcbPlcftxbxHdrBkd; + } + + /** + * Get the fcDocUndo field for the FIB record. + */ + public int getFcDocUndo() + { + return field_208_fcDocUndo; + } + + /** + * Set the fcDocUndo field for the FIB record. + */ + public void setFcDocUndo(int field_208_fcDocUndo) + { + this.field_208_fcDocUndo = field_208_fcDocUndo; + } + + /** + * Get the lcbDocUndo field for the FIB record. + */ + public int getLcbDocUndo() + { + return field_209_lcbDocUndo; + } + + /** + * Set the lcbDocUndo field for the FIB record. + */ + public void setLcbDocUndo(int field_209_lcbDocUndo) + { + this.field_209_lcbDocUndo = field_209_lcbDocUndo; + } + + /** + * Get the fcRgbuse field for the FIB record. + */ + public int getFcRgbuse() + { + return field_210_fcRgbuse; + } + + /** + * Set the fcRgbuse field for the FIB record. + */ + public void setFcRgbuse(int field_210_fcRgbuse) + { + this.field_210_fcRgbuse = field_210_fcRgbuse; + } + + /** + * Get the lcbRgbuse field for the FIB record. + */ + public int getLcbRgbuse() + { + return field_211_lcbRgbuse; + } + + /** + * Set the lcbRgbuse field for the FIB record. + */ + public void setLcbRgbuse(int field_211_lcbRgbuse) + { + this.field_211_lcbRgbuse = field_211_lcbRgbuse; + } + + /** + * Get the fcUsp field for the FIB record. + */ + public int getFcUsp() + { + return field_212_fcUsp; + } + + /** + * Set the fcUsp field for the FIB record. + */ + public void setFcUsp(int field_212_fcUsp) + { + this.field_212_fcUsp = field_212_fcUsp; + } + + /** + * Get the lcbUsp field for the FIB record. + */ + public int getLcbUsp() + { + return field_213_lcbUsp; + } + + /** + * Set the lcbUsp field for the FIB record. + */ + public void setLcbUsp(int field_213_lcbUsp) + { + this.field_213_lcbUsp = field_213_lcbUsp; + } + + /** + * Get the fcUskf field for the FIB record. + */ + public int getFcUskf() + { + return field_214_fcUskf; + } + + /** + * Set the fcUskf field for the FIB record. + */ + public void setFcUskf(int field_214_fcUskf) + { + this.field_214_fcUskf = field_214_fcUskf; + } + + /** + * Get the lcbUskf field for the FIB record. + */ + public int getLcbUskf() + { + return field_215_lcbUskf; + } + + /** + * Set the lcbUskf field for the FIB record. + */ + public void setLcbUskf(int field_215_lcbUskf) + { + this.field_215_lcbUskf = field_215_lcbUskf; + } + + /** + * Get the fcPlcupcRgbuse field for the FIB record. + */ + public int getFcPlcupcRgbuse() + { + return field_216_fcPlcupcRgbuse; + } + + /** + * Set the fcPlcupcRgbuse field for the FIB record. + */ + public void setFcPlcupcRgbuse(int field_216_fcPlcupcRgbuse) + { + this.field_216_fcPlcupcRgbuse = field_216_fcPlcupcRgbuse; + } + + /** + * Get the lcbPlcupcRgbuse field for the FIB record. + */ + public int getLcbPlcupcRgbuse() + { + return field_217_lcbPlcupcRgbuse; + } + + /** + * Set the lcbPlcupcRgbuse field for the FIB record. + */ + public void setLcbPlcupcRgbuse(int field_217_lcbPlcupcRgbuse) + { + this.field_217_lcbPlcupcRgbuse = field_217_lcbPlcupcRgbuse; + } + + /** + * Get the fcPlcupcUsp field for the FIB record. + */ + public int getFcPlcupcUsp() + { + return field_218_fcPlcupcUsp; + } + + /** + * Set the fcPlcupcUsp field for the FIB record. + */ + public void setFcPlcupcUsp(int field_218_fcPlcupcUsp) + { + this.field_218_fcPlcupcUsp = field_218_fcPlcupcUsp; + } + + /** + * Get the lcbPlcupcUsp field for the FIB record. + */ + public int getLcbPlcupcUsp() + { + return field_219_lcbPlcupcUsp; + } + + /** + * Set the lcbPlcupcUsp field for the FIB record. + */ + public void setLcbPlcupcUsp(int field_219_lcbPlcupcUsp) + { + this.field_219_lcbPlcupcUsp = field_219_lcbPlcupcUsp; + } + + /** + * Get the fcSttbGlsyStyle field for the FIB record. + */ + public int getFcSttbGlsyStyle() + { + return field_220_fcSttbGlsyStyle; + } + + /** + * Set the fcSttbGlsyStyle field for the FIB record. + */ + public void setFcSttbGlsyStyle(int field_220_fcSttbGlsyStyle) + { + this.field_220_fcSttbGlsyStyle = field_220_fcSttbGlsyStyle; + } + + /** + * Get the lcbSttbGlsyStyle field for the FIB record. + */ + public int getLcbSttbGlsyStyle() + { + return field_221_lcbSttbGlsyStyle; + } + + /** + * Set the lcbSttbGlsyStyle field for the FIB record. + */ + public void setLcbSttbGlsyStyle(int field_221_lcbSttbGlsyStyle) + { + this.field_221_lcbSttbGlsyStyle = field_221_lcbSttbGlsyStyle; + } + + /** + * Get the fcPlgosl field for the FIB record. + */ + public int getFcPlgosl() + { + return field_222_fcPlgosl; + } + + /** + * Set the fcPlgosl field for the FIB record. + */ + public void setFcPlgosl(int field_222_fcPlgosl) + { + this.field_222_fcPlgosl = field_222_fcPlgosl; + } + + /** + * Get the lcbPlgosl field for the FIB record. + */ + public int getLcbPlgosl() + { + return field_223_lcbPlgosl; + } + + /** + * Set the lcbPlgosl field for the FIB record. + */ + public void setLcbPlgosl(int field_223_lcbPlgosl) + { + this.field_223_lcbPlgosl = field_223_lcbPlgosl; + } + + /** + * Get the fcPlcocx field for the FIB record. + */ + public int getFcPlcocx() + { + return field_224_fcPlcocx; + } + + /** + * Set the fcPlcocx field for the FIB record. + */ + public void setFcPlcocx(int field_224_fcPlcocx) + { + this.field_224_fcPlcocx = field_224_fcPlcocx; + } + + /** + * Get the lcbPlcocx field for the FIB record. + */ + public int getLcbPlcocx() + { + return field_225_lcbPlcocx; + } + + /** + * Set the lcbPlcocx field for the FIB record. + */ + public void setLcbPlcocx(int field_225_lcbPlcocx) + { + this.field_225_lcbPlcocx = field_225_lcbPlcocx; + } + + /** + * Get the fcPlcfbteLvc field for the FIB record. + */ + public int getFcPlcfbteLvc() + { + return field_226_fcPlcfbteLvc; + } + + /** + * Set the fcPlcfbteLvc field for the FIB record. + */ + public void setFcPlcfbteLvc(int field_226_fcPlcfbteLvc) + { + this.field_226_fcPlcfbteLvc = field_226_fcPlcfbteLvc; + } + + /** + * Get the lcbPlcfbteLvc field for the FIB record. + */ + public int getLcbPlcfbteLvc() + { + return field_227_lcbPlcfbteLvc; + } + + /** + * Set the lcbPlcfbteLvc field for the FIB record. + */ + public void setLcbPlcfbteLvc(int field_227_lcbPlcfbteLvc) + { + this.field_227_lcbPlcfbteLvc = field_227_lcbPlcfbteLvc; + } + + /** + * Get the dwLowDateTime field for the FIB record. + */ + public int getDwLowDateTime() + { + return field_228_dwLowDateTime; + } + + /** + * Set the dwLowDateTime field for the FIB record. + */ + public void setDwLowDateTime(int field_228_dwLowDateTime) + { + this.field_228_dwLowDateTime = field_228_dwLowDateTime; + } + + /** + * Get the dwHighDateTime field for the FIB record. + */ + public int getDwHighDateTime() + { + return field_229_dwHighDateTime; + } + + /** + * Set the dwHighDateTime field for the FIB record. + */ + public void setDwHighDateTime(int field_229_dwHighDateTime) + { + this.field_229_dwHighDateTime = field_229_dwHighDateTime; + } + + /** + * Get the fcPlcflvc field for the FIB record. + */ + public int getFcPlcflvc() + { + return field_230_fcPlcflvc; + } + + /** + * Set the fcPlcflvc field for the FIB record. + */ + public void setFcPlcflvc(int field_230_fcPlcflvc) + { + this.field_230_fcPlcflvc = field_230_fcPlcflvc; + } + + /** + * Get the lcbPlcflvc field for the FIB record. + */ + public int getLcbPlcflvc() + { + return field_231_lcbPlcflvc; + } + + /** + * Set the lcbPlcflvc field for the FIB record. + */ + public void setLcbPlcflvc(int field_231_lcbPlcflvc) + { + this.field_231_lcbPlcflvc = field_231_lcbPlcflvc; + } + + /** + * Get the fcPlcasumy field for the FIB record. + */ + public int getFcPlcasumy() + { + return field_232_fcPlcasumy; + } + + /** + * Set the fcPlcasumy field for the FIB record. + */ + public void setFcPlcasumy(int field_232_fcPlcasumy) + { + this.field_232_fcPlcasumy = field_232_fcPlcasumy; + } + + /** + * Get the lcbPlcasumy field for the FIB record. + */ + public int getLcbPlcasumy() + { + return field_233_lcbPlcasumy; + } + + /** + * Set the lcbPlcasumy field for the FIB record. + */ + public void setLcbPlcasumy(int field_233_lcbPlcasumy) + { + this.field_233_lcbPlcasumy = field_233_lcbPlcasumy; + } + + /** + * Get the fcPlcfgram field for the FIB record. + */ + public int getFcPlcfgram() + { + return field_234_fcPlcfgram; + } + + /** + * Set the fcPlcfgram field for the FIB record. + */ + public void setFcPlcfgram(int field_234_fcPlcfgram) + { + this.field_234_fcPlcfgram = field_234_fcPlcfgram; + } + + /** + * Get the lcbPlcfgram field for the FIB record. + */ + public int getLcbPlcfgram() + { + return field_235_lcbPlcfgram; + } + + /** + * Set the lcbPlcfgram field for the FIB record. + */ + public void setLcbPlcfgram(int field_235_lcbPlcfgram) + { + this.field_235_lcbPlcfgram = field_235_lcbPlcfgram; + } + + /** + * Get the fcSttbListNames field for the FIB record. + */ + public int getFcSttbListNames() + { + return field_236_fcSttbListNames; + } + + /** + * Set the fcSttbListNames field for the FIB record. + */ + public void setFcSttbListNames(int field_236_fcSttbListNames) + { + this.field_236_fcSttbListNames = field_236_fcSttbListNames; + } + + /** + * Get the lcbSttbListNames field for the FIB record. + */ + public int getLcbSttbListNames() + { + return field_237_lcbSttbListNames; + } + + /** + * Set the lcbSttbListNames field for the FIB record. + */ + public void setLcbSttbListNames(int field_237_lcbSttbListNames) + { + this.field_237_lcbSttbListNames = field_237_lcbSttbListNames; + } + + /** + * Get the fcSttbfUssr field for the FIB record. + */ + public int getFcSttbfUssr() + { + return field_238_fcSttbfUssr; + } + + /** + * Set the fcSttbfUssr field for the FIB record. + */ + public void setFcSttbfUssr(int field_238_fcSttbfUssr) + { + this.field_238_fcSttbfUssr = field_238_fcSttbfUssr; + } + + /** + * Get the lcbSttbfUssr field for the FIB record. + */ + public int getLcbSttbfUssr() + { + return field_239_lcbSttbfUssr; + } + + /** + * Set the lcbSttbfUssr field for the FIB record. + */ + public void setLcbSttbfUssr(int field_239_lcbSttbfUssr) + { + this.field_239_lcbSttbfUssr = field_239_lcbSttbfUssr; + } + + /** + * Sets the fDot field value. + * + */ + public void setFDot(boolean value) + { + field_6_options = (short)fDot.setBoolean(field_6_options, value); + + + } + + /** + * + * @return the fDot field value. + */ + public boolean isFDot() + { + return fDot.isSet(field_6_options); + + } + + /** + * Sets the fGlsy field value. + * + */ + public void setFGlsy(boolean value) + { + field_6_options = (short)fGlsy.setBoolean(field_6_options, value); + + + } + + /** + * + * @return the fGlsy field value. + */ + public boolean isFGlsy() + { + return fGlsy.isSet(field_6_options); + + } + + /** + * Sets the fComplex field value. + * + */ + public void setFComplex(boolean value) + { + field_6_options = (short)fComplex.setBoolean(field_6_options, value); + + + } + + /** + * + * @return the fComplex field value. + */ + public boolean isFComplex() + { + return fComplex.isSet(field_6_options); + + } + + /** + * Sets the fHasPic field value. + * + */ + public void setFHasPic(boolean value) + { + field_6_options = (short)fHasPic.setBoolean(field_6_options, value); + + + } + + /** + * + * @return the fHasPic field value. + */ + public boolean isFHasPic() + { + return fHasPic.isSet(field_6_options); + + } + + /** + * Sets the cQuickSaves field value. + * + */ + public void setCQuickSaves(byte value) + { + field_6_options = (short)cQuickSaves.setValue(field_6_options, value); + + + } + + /** + * + * @return the cQuickSaves field value. + */ + public byte getCQuickSaves() + { + return ( byte )cQuickSaves.getValue(field_6_options); + + } + + /** + * Sets the fEncrypted field value. + * + */ + public void setFEncrypted(boolean value) + { + field_6_options = (short)fEncrypted.setBoolean(field_6_options, value); + + + } + + /** + * + * @return the fEncrypted field value. + */ + public boolean isFEncrypted() + { + return fEncrypted.isSet(field_6_options); + + } + + /** + * Sets the fWhichTblStm field value. + * + */ + public void setFWhichTblStm(boolean value) + { + field_6_options = (short)fWhichTblStm.setBoolean(field_6_options, value); + + + } + + /** + * + * @return the fWhichTblStm field value. + */ + public boolean isFWhichTblStm() + { + return fWhichTblStm.isSet(field_6_options); + + } + + /** + * Sets the fReadOnlyRecommended field value. + * + */ + public void setFReadOnlyRecommended(boolean value) + { + field_6_options = (short)fReadOnlyRecommended.setBoolean(field_6_options, value); + + + } + + /** + * + * @return the fReadOnlyRecommended field value. + */ + public boolean isFReadOnlyRecommended() + { + return fReadOnlyRecommended.isSet(field_6_options); + + } + + /** + * Sets the fWriteReservation field value. + * + */ + public void setFWriteReservation(boolean value) + { + field_6_options = (short)fWriteReservation.setBoolean(field_6_options, value); + + + } + + /** + * + * @return the fWriteReservation field value. + */ + public boolean isFWriteReservation() + { + return fWriteReservation.isSet(field_6_options); + + } + + /** + * Sets the fExtChar field value. + * + */ + public void setFExtChar(boolean value) + { + field_6_options = (short)fExtChar.setBoolean(field_6_options, value); + + + } + + /** + * + * @return the fExtChar field value. + */ + public boolean isFExtChar() + { + return fExtChar.isSet(field_6_options); + + } + + /** + * Sets the fLoadOverride field value. + * + */ + public void setFLoadOverride(boolean value) + { + field_6_options = (short)fLoadOverride.setBoolean(field_6_options, value); + + + } + + /** + * + * @return the fLoadOverride field value. + */ + public boolean isFLoadOverride() + { + return fLoadOverride.isSet(field_6_options); + + } + + /** + * Sets the fFarEast field value. + * + */ + public void setFFarEast(boolean value) + { + field_6_options = (short)fFarEast.setBoolean(field_6_options, value); + + + } + + /** + * + * @return the fFarEast field value. + */ + public boolean isFFarEast() + { + return fFarEast.isSet(field_6_options); + + } + + /** + * Sets the fCrypto field value. + * + */ + public void setFCrypto(boolean value) + { + field_6_options = (short)fCrypto.setBoolean(field_6_options, value); + + + } + + /** + * + * @return the fCrypto field value. + */ + public boolean isFCrypto() + { + return fCrypto.isSet(field_6_options); + + } + + /** + * Sets the fMac field value. + * + */ + public void setFMac(boolean value) + { + field_10_history = (short)fMac.setBoolean(field_10_history, value); + + + } + + /** + * + * @return the fMac field value. + */ + public boolean isFMac() + { + return fMac.isSet(field_10_history); + + } + + /** + * Sets the fEmptySpecial field value. + * + */ + public void setFEmptySpecial(boolean value) + { + field_10_history = (short)fEmptySpecial.setBoolean(field_10_history, value); + + + } + + /** + * + * @return the fEmptySpecial field value. + */ + public boolean isFEmptySpecial() + { + return fEmptySpecial.isSet(field_10_history); + + } + + /** + * Sets the fLoadOverridePage field value. + * + */ + public void setFLoadOverridePage(boolean value) + { + field_10_history = (short)fLoadOverridePage.setBoolean(field_10_history, value); + + + } + + /** + * + * @return the fLoadOverridePage field value. + */ + public boolean isFLoadOverridePage() + { + return fLoadOverridePage.isSet(field_10_history); + + } + + /** + * Sets the fFutureSavedUndo field value. + * + */ + public void setFFutureSavedUndo(boolean value) + { + field_10_history = (short)fFutureSavedUndo.setBoolean(field_10_history, value); + + + } + + /** + * + * @return the fFutureSavedUndo field value. + */ + public boolean isFFutureSavedUndo() + { + return fFutureSavedUndo.isSet(field_10_history); + + } + + /** + * Sets the fWord97Saved field value. + * + */ + public void setFWord97Saved(boolean value) + { + field_10_history = (short)fWord97Saved.setBoolean(field_10_history, value); + + + } + + /** + * + * @return the fWord97Saved field value. + */ + public boolean isFWord97Saved() + { + return fWord97Saved.isSet(field_10_history); + + } + + /** + * Sets the fSpare0 field value. + * + */ + public void setFSpare0(byte value) + { + field_10_history = (short)fSpare0.setValue(field_10_history, value); + + + } + + /** + * + * @return the fSpare0 field value. + */ + public byte getFSpare0() + { + return ( byte )fSpare0.getValue(field_10_history); + + } + + +} // END OF CLASS + + + + diff --git a/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/definitions/PAPAbstractType.java b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/definitions/PAPAbstractType.java new file mode 100644 index 0000000000..a90b3dea1c --- /dev/null +++ b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/definitions/PAPAbstractType.java @@ -0,0 +1,1305 @@ + +/* ==================================================================== + * The Apache Software License, Version 1.1 + * + * Copyright (c) 2003 The Apache Software Foundation. All rights + * reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * 3. The end-user documentation included with the redistribution, + * if any, must include the following acknowledgment: + * "This product includes software developed by the + * Apache Software Foundation (http://www.apache.org/)." + * Alternately, this acknowledgment may appear in the software itself, + * if and wherever such third-party acknowledgments normally appear. + * + * 4. The names "Apache" and "Apache Software Foundation" and + * "Apache POI" must not be used to endorse or promote products + * derived from this software without prior written permission. For + * written permission, please contact apache@apache.org. + * + * 5. Products derived from this software may not be called "Apache", + * "Apache POI", nor may "Apache" appear in their name, without + * prior written permission of the Apache Software Foundation. + * + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * ==================================================================== + * + * This software consists of voluntary contributions made by many + * individuals on behalf of the Apache Software Foundation. For more + * information on the Apache Software Foundation, please see + * . + */ + + +package org.apache.poi.hwpf.model.hdftypes.definitions; + + + +import org.apache.poi.util.BitField; +import org.apache.poi.util.LittleEndian; +import org.apache.poi.util.StringUtil; +import org.apache.poi.util.HexDump; +import org.apache.poi.hwpf.model.hdftypes.HDFType; + +/** + * Paragraph Properties. + * NOTE: This source is automatically generated please do not modify this file. Either subclass or + * remove the record in src/records/definitions. + + * @author S. Ryan Ackley + */ +public abstract class PAPAbstractType + implements HDFType +{ + + private int field_1_istd; + private byte field_2_jc; + private byte field_3_fKeep; + private byte field_4_fKeepFollow; + private byte field_5_fPageBreakBefore; + private byte field_6_fBrLnAbove; + private byte field_7_fBrLnBelow; + private byte field_8_pcVert; + private byte field_9_pcHorz; + private byte field_10_brcp; + private byte field_11_brcl; + private byte field_12_ilvl; + private byte field_13_fNoLnn; + private int field_14_ilfo; + private byte field_15_fSideBySide; + private byte field_16_fNoAutoHyph; + private byte field_17_fWidowControl; + private int field_18_dxaRight; + private int field_19_dxaLeft; + private int field_20_dxaLeft1; + private short[] field_21_lspd; + private int field_22_dyaBefore; + private int field_23_dyaAfter; + private byte[] field_24_phe; + private byte field_25_fCrLf; + private byte field_26_fUsePgsuSettings; + private byte field_27_fAdjustRight; + private byte field_28_fKinsoku; + private byte field_29_fWordWrap; + private byte field_30_fOverflowPunct; + private byte field_31_fTopLinePunct; + private byte field_32_fAutoSpaceDE; + private byte field_33_fAutoSpaceDN; + private int field_34_wAlignFont; + private short field_35_fontAlign; + private BitField fVertical = new BitField(0x0001); + private BitField fBackward = new BitField(0x0002); + private BitField fRotateFont = new BitField(0x0004); + private byte field_36_fBackward; + private byte field_37_fRotateFont; + private byte field_38_fInTable; + private byte field_39_fTtp; + private byte field_40_wr; + private byte field_41_fLocked; + private byte[] field_42_ptap; + private int field_43_dxaAbs; + private int field_44_dyaAbs; + private int field_45_dxaWidth; + private short[] field_46_brcTop; + private short[] field_47_brcLeft; + private short[] field_48_brcBottom; + private short[] field_49_brcRight; + private short[] field_50_brcBetween; + private short[] field_51_brcBar; + private int field_52_dxaFromText; + private int field_53_dyaFromText; + private int field_54_dyaHeight; + private byte field_55_fMinHeight; + private short field_56_shd; + private short field_57_dcs; + private byte field_58_lvl; + private byte field_59_fNumRMIns; + private byte[] field_60_anld; + private int field_61_fPropRMark; + private int field_62_ibstPropRMark; + private byte[] field_63_dttmPropRMark; + private byte[] field_64_numrm; + private int field_65_itbdMac; + private byte[] field_66_rgdxaTab; + private byte[] field_67_rgtbd; + + + public PAPAbstractType() + { + + } + + /** + * Size of record (exluding 4 byte header) + */ + public int getSize() + { + return 4 + + 2 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 2 + 1 + 1 + 1 + 4 + 4 + 4 + 4 + 4 + 4 + 12 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 2 + 2 + 1 + 1 + 1 + 1 + 1 + 1 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 2 + 1 + 2 + 2 + 1 + 1 + 84 + 1 + 2 + 4 + 128 + 2 + 128 + 128; + } + + + + /** + * Get the istd field for the PAP record. + */ + public int getIstd() + { + return field_1_istd; + } + + /** + * Set the istd field for the PAP record. + */ + public void setIstd(int field_1_istd) + { + this.field_1_istd = field_1_istd; + } + + /** + * Get the jc field for the PAP record. + */ + public byte getJc() + { + return field_2_jc; + } + + /** + * Set the jc field for the PAP record. + */ + public void setJc(byte field_2_jc) + { + this.field_2_jc = field_2_jc; + } + + /** + * Get the fKeep field for the PAP record. + */ + public byte getFKeep() + { + return field_3_fKeep; + } + + /** + * Set the fKeep field for the PAP record. + */ + public void setFKeep(byte field_3_fKeep) + { + this.field_3_fKeep = field_3_fKeep; + } + + /** + * Get the fKeepFollow field for the PAP record. + */ + public byte getFKeepFollow() + { + return field_4_fKeepFollow; + } + + /** + * Set the fKeepFollow field for the PAP record. + */ + public void setFKeepFollow(byte field_4_fKeepFollow) + { + this.field_4_fKeepFollow = field_4_fKeepFollow; + } + + /** + * Get the fPageBreakBefore field for the PAP record. + */ + public byte getFPageBreakBefore() + { + return field_5_fPageBreakBefore; + } + + /** + * Set the fPageBreakBefore field for the PAP record. + */ + public void setFPageBreakBefore(byte field_5_fPageBreakBefore) + { + this.field_5_fPageBreakBefore = field_5_fPageBreakBefore; + } + + /** + * Get the fBrLnAbove field for the PAP record. + */ + public byte getFBrLnAbove() + { + return field_6_fBrLnAbove; + } + + /** + * Set the fBrLnAbove field for the PAP record. + */ + public void setFBrLnAbove(byte field_6_fBrLnAbove) + { + this.field_6_fBrLnAbove = field_6_fBrLnAbove; + } + + /** + * Get the fBrLnBelow field for the PAP record. + */ + public byte getFBrLnBelow() + { + return field_7_fBrLnBelow; + } + + /** + * Set the fBrLnBelow field for the PAP record. + */ + public void setFBrLnBelow(byte field_7_fBrLnBelow) + { + this.field_7_fBrLnBelow = field_7_fBrLnBelow; + } + + /** + * Get the pcVert field for the PAP record. + */ + public byte getPcVert() + { + return field_8_pcVert; + } + + /** + * Set the pcVert field for the PAP record. + */ + public void setPcVert(byte field_8_pcVert) + { + this.field_8_pcVert = field_8_pcVert; + } + + /** + * Get the pcHorz field for the PAP record. + */ + public byte getPcHorz() + { + return field_9_pcHorz; + } + + /** + * Set the pcHorz field for the PAP record. + */ + public void setPcHorz(byte field_9_pcHorz) + { + this.field_9_pcHorz = field_9_pcHorz; + } + + /** + * Get the brcp field for the PAP record. + */ + public byte getBrcp() + { + return field_10_brcp; + } + + /** + * Set the brcp field for the PAP record. + */ + public void setBrcp(byte field_10_brcp) + { + this.field_10_brcp = field_10_brcp; + } + + /** + * Get the brcl field for the PAP record. + */ + public byte getBrcl() + { + return field_11_brcl; + } + + /** + * Set the brcl field for the PAP record. + */ + public void setBrcl(byte field_11_brcl) + { + this.field_11_brcl = field_11_brcl; + } + + /** + * Get the ilvl field for the PAP record. + */ + public byte getIlvl() + { + return field_12_ilvl; + } + + /** + * Set the ilvl field for the PAP record. + */ + public void setIlvl(byte field_12_ilvl) + { + this.field_12_ilvl = field_12_ilvl; + } + + /** + * Get the fNoLnn field for the PAP record. + */ + public byte getFNoLnn() + { + return field_13_fNoLnn; + } + + /** + * Set the fNoLnn field for the PAP record. + */ + public void setFNoLnn(byte field_13_fNoLnn) + { + this.field_13_fNoLnn = field_13_fNoLnn; + } + + /** + * Get the ilfo field for the PAP record. + */ + public int getIlfo() + { + return field_14_ilfo; + } + + /** + * Set the ilfo field for the PAP record. + */ + public void setIlfo(int field_14_ilfo) + { + this.field_14_ilfo = field_14_ilfo; + } + + /** + * Get the fSideBySide field for the PAP record. + */ + public byte getFSideBySide() + { + return field_15_fSideBySide; + } + + /** + * Set the fSideBySide field for the PAP record. + */ + public void setFSideBySide(byte field_15_fSideBySide) + { + this.field_15_fSideBySide = field_15_fSideBySide; + } + + /** + * Get the fNoAutoHyph field for the PAP record. + */ + public byte getFNoAutoHyph() + { + return field_16_fNoAutoHyph; + } + + /** + * Set the fNoAutoHyph field for the PAP record. + */ + public void setFNoAutoHyph(byte field_16_fNoAutoHyph) + { + this.field_16_fNoAutoHyph = field_16_fNoAutoHyph; + } + + /** + * Get the fWidowControl field for the PAP record. + */ + public byte getFWidowControl() + { + return field_17_fWidowControl; + } + + /** + * Set the fWidowControl field for the PAP record. + */ + public void setFWidowControl(byte field_17_fWidowControl) + { + this.field_17_fWidowControl = field_17_fWidowControl; + } + + /** + * Get the dxaRight field for the PAP record. + */ + public int getDxaRight() + { + return field_18_dxaRight; + } + + /** + * Set the dxaRight field for the PAP record. + */ + public void setDxaRight(int field_18_dxaRight) + { + this.field_18_dxaRight = field_18_dxaRight; + } + + /** + * Get the dxaLeft field for the PAP record. + */ + public int getDxaLeft() + { + return field_19_dxaLeft; + } + + /** + * Set the dxaLeft field for the PAP record. + */ + public void setDxaLeft(int field_19_dxaLeft) + { + this.field_19_dxaLeft = field_19_dxaLeft; + } + + /** + * Get the dxaLeft1 field for the PAP record. + */ + public int getDxaLeft1() + { + return field_20_dxaLeft1; + } + + /** + * Set the dxaLeft1 field for the PAP record. + */ + public void setDxaLeft1(int field_20_dxaLeft1) + { + this.field_20_dxaLeft1 = field_20_dxaLeft1; + } + + /** + * Get the lspd field for the PAP record. + */ + public short[] getLspd() + { + return field_21_lspd; + } + + /** + * Set the lspd field for the PAP record. + */ + public void setLspd(short[] field_21_lspd) + { + this.field_21_lspd = field_21_lspd; + } + + /** + * Get the dyaBefore field for the PAP record. + */ + public int getDyaBefore() + { + return field_22_dyaBefore; + } + + /** + * Set the dyaBefore field for the PAP record. + */ + public void setDyaBefore(int field_22_dyaBefore) + { + this.field_22_dyaBefore = field_22_dyaBefore; + } + + /** + * Get the dyaAfter field for the PAP record. + */ + public int getDyaAfter() + { + return field_23_dyaAfter; + } + + /** + * Set the dyaAfter field for the PAP record. + */ + public void setDyaAfter(int field_23_dyaAfter) + { + this.field_23_dyaAfter = field_23_dyaAfter; + } + + /** + * Get the phe field for the PAP record. + */ + public byte[] getPhe() + { + return field_24_phe; + } + + /** + * Set the phe field for the PAP record. + */ + public void setPhe(byte[] field_24_phe) + { + this.field_24_phe = field_24_phe; + } + + /** + * Get the fCrLf field for the PAP record. + */ + public byte getFCrLf() + { + return field_25_fCrLf; + } + + /** + * Set the fCrLf field for the PAP record. + */ + public void setFCrLf(byte field_25_fCrLf) + { + this.field_25_fCrLf = field_25_fCrLf; + } + + /** + * Get the fUsePgsuSettings field for the PAP record. + */ + public byte getFUsePgsuSettings() + { + return field_26_fUsePgsuSettings; + } + + /** + * Set the fUsePgsuSettings field for the PAP record. + */ + public void setFUsePgsuSettings(byte field_26_fUsePgsuSettings) + { + this.field_26_fUsePgsuSettings = field_26_fUsePgsuSettings; + } + + /** + * Get the fAdjustRight field for the PAP record. + */ + public byte getFAdjustRight() + { + return field_27_fAdjustRight; + } + + /** + * Set the fAdjustRight field for the PAP record. + */ + public void setFAdjustRight(byte field_27_fAdjustRight) + { + this.field_27_fAdjustRight = field_27_fAdjustRight; + } + + /** + * Get the fKinsoku field for the PAP record. + */ + public byte getFKinsoku() + { + return field_28_fKinsoku; + } + + /** + * Set the fKinsoku field for the PAP record. + */ + public void setFKinsoku(byte field_28_fKinsoku) + { + this.field_28_fKinsoku = field_28_fKinsoku; + } + + /** + * Get the fWordWrap field for the PAP record. + */ + public byte getFWordWrap() + { + return field_29_fWordWrap; + } + + /** + * Set the fWordWrap field for the PAP record. + */ + public void setFWordWrap(byte field_29_fWordWrap) + { + this.field_29_fWordWrap = field_29_fWordWrap; + } + + /** + * Get the fOverflowPunct field for the PAP record. + */ + public byte getFOverflowPunct() + { + return field_30_fOverflowPunct; + } + + /** + * Set the fOverflowPunct field for the PAP record. + */ + public void setFOverflowPunct(byte field_30_fOverflowPunct) + { + this.field_30_fOverflowPunct = field_30_fOverflowPunct; + } + + /** + * Get the fTopLinePunct field for the PAP record. + */ + public byte getFTopLinePunct() + { + return field_31_fTopLinePunct; + } + + /** + * Set the fTopLinePunct field for the PAP record. + */ + public void setFTopLinePunct(byte field_31_fTopLinePunct) + { + this.field_31_fTopLinePunct = field_31_fTopLinePunct; + } + + /** + * Get the fAutoSpaceDE field for the PAP record. + */ + public byte getFAutoSpaceDE() + { + return field_32_fAutoSpaceDE; + } + + /** + * Set the fAutoSpaceDE field for the PAP record. + */ + public void setFAutoSpaceDE(byte field_32_fAutoSpaceDE) + { + this.field_32_fAutoSpaceDE = field_32_fAutoSpaceDE; + } + + /** + * Get the fAutoSpaceDN field for the PAP record. + */ + public byte getFAutoSpaceDN() + { + return field_33_fAutoSpaceDN; + } + + /** + * Set the fAutoSpaceDN field for the PAP record. + */ + public void setFAutoSpaceDN(byte field_33_fAutoSpaceDN) + { + this.field_33_fAutoSpaceDN = field_33_fAutoSpaceDN; + } + + /** + * Get the wAlignFont field for the PAP record. + */ + public int getWAlignFont() + { + return field_34_wAlignFont; + } + + /** + * Set the wAlignFont field for the PAP record. + */ + public void setWAlignFont(int field_34_wAlignFont) + { + this.field_34_wAlignFont = field_34_wAlignFont; + } + + /** + * Get the fontAlign field for the PAP record. + */ + public short getFontAlign() + { + return field_35_fontAlign; + } + + /** + * Set the fontAlign field for the PAP record. + */ + public void setFontAlign(short field_35_fontAlign) + { + this.field_35_fontAlign = field_35_fontAlign; + } + + /** + * Get the fBackward field for the PAP record. + */ + public byte getFBackward() + { + return field_36_fBackward; + } + + /** + * Set the fBackward field for the PAP record. + */ + public void setFBackward(byte field_36_fBackward) + { + this.field_36_fBackward = field_36_fBackward; + } + + /** + * Get the fRotateFont field for the PAP record. + */ + public byte getFRotateFont() + { + return field_37_fRotateFont; + } + + /** + * Set the fRotateFont field for the PAP record. + */ + public void setFRotateFont(byte field_37_fRotateFont) + { + this.field_37_fRotateFont = field_37_fRotateFont; + } + + /** + * Get the fInTable field for the PAP record. + */ + public byte getFInTable() + { + return field_38_fInTable; + } + + /** + * Set the fInTable field for the PAP record. + */ + public void setFInTable(byte field_38_fInTable) + { + this.field_38_fInTable = field_38_fInTable; + } + + /** + * Get the fTtp field for the PAP record. + */ + public byte getFTtp() + { + return field_39_fTtp; + } + + /** + * Set the fTtp field for the PAP record. + */ + public void setFTtp(byte field_39_fTtp) + { + this.field_39_fTtp = field_39_fTtp; + } + + /** + * Get the wr field for the PAP record. + */ + public byte getWr() + { + return field_40_wr; + } + + /** + * Set the wr field for the PAP record. + */ + public void setWr(byte field_40_wr) + { + this.field_40_wr = field_40_wr; + } + + /** + * Get the fLocked field for the PAP record. + */ + public byte getFLocked() + { + return field_41_fLocked; + } + + /** + * Set the fLocked field for the PAP record. + */ + public void setFLocked(byte field_41_fLocked) + { + this.field_41_fLocked = field_41_fLocked; + } + + /** + * Get the ptap field for the PAP record. + */ + public byte[] getPtap() + { + return field_42_ptap; + } + + /** + * Set the ptap field for the PAP record. + */ + public void setPtap(byte[] field_42_ptap) + { + this.field_42_ptap = field_42_ptap; + } + + /** + * Get the dxaAbs field for the PAP record. + */ + public int getDxaAbs() + { + return field_43_dxaAbs; + } + + /** + * Set the dxaAbs field for the PAP record. + */ + public void setDxaAbs(int field_43_dxaAbs) + { + this.field_43_dxaAbs = field_43_dxaAbs; + } + + /** + * Get the dyaAbs field for the PAP record. + */ + public int getDyaAbs() + { + return field_44_dyaAbs; + } + + /** + * Set the dyaAbs field for the PAP record. + */ + public void setDyaAbs(int field_44_dyaAbs) + { + this.field_44_dyaAbs = field_44_dyaAbs; + } + + /** + * Get the dxaWidth field for the PAP record. + */ + public int getDxaWidth() + { + return field_45_dxaWidth; + } + + /** + * Set the dxaWidth field for the PAP record. + */ + public void setDxaWidth(int field_45_dxaWidth) + { + this.field_45_dxaWidth = field_45_dxaWidth; + } + + /** + * Get the brcTop field for the PAP record. + */ + public short[] getBrcTop() + { + return field_46_brcTop; + } + + /** + * Set the brcTop field for the PAP record. + */ + public void setBrcTop(short[] field_46_brcTop) + { + this.field_46_brcTop = field_46_brcTop; + } + + /** + * Get the brcLeft field for the PAP record. + */ + public short[] getBrcLeft() + { + return field_47_brcLeft; + } + + /** + * Set the brcLeft field for the PAP record. + */ + public void setBrcLeft(short[] field_47_brcLeft) + { + this.field_47_brcLeft = field_47_brcLeft; + } + + /** + * Get the brcBottom field for the PAP record. + */ + public short[] getBrcBottom() + { + return field_48_brcBottom; + } + + /** + * Set the brcBottom field for the PAP record. + */ + public void setBrcBottom(short[] field_48_brcBottom) + { + this.field_48_brcBottom = field_48_brcBottom; + } + + /** + * Get the brcRight field for the PAP record. + */ + public short[] getBrcRight() + { + return field_49_brcRight; + } + + /** + * Set the brcRight field for the PAP record. + */ + public void setBrcRight(short[] field_49_brcRight) + { + this.field_49_brcRight = field_49_brcRight; + } + + /** + * Get the brcBetween field for the PAP record. + */ + public short[] getBrcBetween() + { + return field_50_brcBetween; + } + + /** + * Set the brcBetween field for the PAP record. + */ + public void setBrcBetween(short[] field_50_brcBetween) + { + this.field_50_brcBetween = field_50_brcBetween; + } + + /** + * Get the brcBar field for the PAP record. + */ + public short[] getBrcBar() + { + return field_51_brcBar; + } + + /** + * Set the brcBar field for the PAP record. + */ + public void setBrcBar(short[] field_51_brcBar) + { + this.field_51_brcBar = field_51_brcBar; + } + + /** + * Get the dxaFromText field for the PAP record. + */ + public int getDxaFromText() + { + return field_52_dxaFromText; + } + + /** + * Set the dxaFromText field for the PAP record. + */ + public void setDxaFromText(int field_52_dxaFromText) + { + this.field_52_dxaFromText = field_52_dxaFromText; + } + + /** + * Get the dyaFromText field for the PAP record. + */ + public int getDyaFromText() + { + return field_53_dyaFromText; + } + + /** + * Set the dyaFromText field for the PAP record. + */ + public void setDyaFromText(int field_53_dyaFromText) + { + this.field_53_dyaFromText = field_53_dyaFromText; + } + + /** + * Get the dyaHeight field for the PAP record. + */ + public int getDyaHeight() + { + return field_54_dyaHeight; + } + + /** + * Set the dyaHeight field for the PAP record. + */ + public void setDyaHeight(int field_54_dyaHeight) + { + this.field_54_dyaHeight = field_54_dyaHeight; + } + + /** + * Get the fMinHeight field for the PAP record. + */ + public byte getFMinHeight() + { + return field_55_fMinHeight; + } + + /** + * Set the fMinHeight field for the PAP record. + */ + public void setFMinHeight(byte field_55_fMinHeight) + { + this.field_55_fMinHeight = field_55_fMinHeight; + } + + /** + * Get the shd field for the PAP record. + */ + public short getShd() + { + return field_56_shd; + } + + /** + * Set the shd field for the PAP record. + */ + public void setShd(short field_56_shd) + { + this.field_56_shd = field_56_shd; + } + + /** + * Get the dcs field for the PAP record. + */ + public short getDcs() + { + return field_57_dcs; + } + + /** + * Set the dcs field for the PAP record. + */ + public void setDcs(short field_57_dcs) + { + this.field_57_dcs = field_57_dcs; + } + + /** + * Get the lvl field for the PAP record. + */ + public byte getLvl() + { + return field_58_lvl; + } + + /** + * Set the lvl field for the PAP record. + */ + public void setLvl(byte field_58_lvl) + { + this.field_58_lvl = field_58_lvl; + } + + /** + * Get the fNumRMIns field for the PAP record. + */ + public byte getFNumRMIns() + { + return field_59_fNumRMIns; + } + + /** + * Set the fNumRMIns field for the PAP record. + */ + public void setFNumRMIns(byte field_59_fNumRMIns) + { + this.field_59_fNumRMIns = field_59_fNumRMIns; + } + + /** + * Get the anld field for the PAP record. + */ + public byte[] getAnld() + { + return field_60_anld; + } + + /** + * Set the anld field for the PAP record. + */ + public void setAnld(byte[] field_60_anld) + { + this.field_60_anld = field_60_anld; + } + + /** + * Get the fPropRMark field for the PAP record. + */ + public int getFPropRMark() + { + return field_61_fPropRMark; + } + + /** + * Set the fPropRMark field for the PAP record. + */ + public void setFPropRMark(int field_61_fPropRMark) + { + this.field_61_fPropRMark = field_61_fPropRMark; + } + + /** + * Get the ibstPropRMark field for the PAP record. + */ + public int getIbstPropRMark() + { + return field_62_ibstPropRMark; + } + + /** + * Set the ibstPropRMark field for the PAP record. + */ + public void setIbstPropRMark(int field_62_ibstPropRMark) + { + this.field_62_ibstPropRMark = field_62_ibstPropRMark; + } + + /** + * Get the dttmPropRMark field for the PAP record. + */ + public byte[] getDttmPropRMark() + { + return field_63_dttmPropRMark; + } + + /** + * Set the dttmPropRMark field for the PAP record. + */ + public void setDttmPropRMark(byte[] field_63_dttmPropRMark) + { + this.field_63_dttmPropRMark = field_63_dttmPropRMark; + } + + /** + * Get the numrm field for the PAP record. + */ + public byte[] getNumrm() + { + return field_64_numrm; + } + + /** + * Set the numrm field for the PAP record. + */ + public void setNumrm(byte[] field_64_numrm) + { + this.field_64_numrm = field_64_numrm; + } + + /** + * Get the itbdMac field for the PAP record. + */ + public int getItbdMac() + { + return field_65_itbdMac; + } + + /** + * Set the itbdMac field for the PAP record. + */ + public void setItbdMac(int field_65_itbdMac) + { + this.field_65_itbdMac = field_65_itbdMac; + } + + /** + * Get the rgdxaTab field for the PAP record. + */ + public byte[] getRgdxaTab() + { + return field_66_rgdxaTab; + } + + /** + * Set the rgdxaTab field for the PAP record. + */ + public void setRgdxaTab(byte[] field_66_rgdxaTab) + { + this.field_66_rgdxaTab = field_66_rgdxaTab; + } + + /** + * Get the rgtbd field for the PAP record. + */ + public byte[] getRgtbd() + { + return field_67_rgtbd; + } + + /** + * Set the rgtbd field for the PAP record. + */ + public void setRgtbd(byte[] field_67_rgtbd) + { + this.field_67_rgtbd = field_67_rgtbd; + } + + /** + * Sets the fVertical field value. + * + */ + public void setFVertical(boolean value) + { + field_35_fontAlign = (short)fVertical.setBoolean(field_35_fontAlign, value); + + + } + + /** + * + * @return the fVertical field value. + */ + public boolean isFVertical() + { + return fVertical.isSet(field_35_fontAlign); + + } + + /** + * Sets the fBackward field value. + * + */ + public void setFBackward(boolean value) + { + field_35_fontAlign = (short)fBackward.setBoolean(field_35_fontAlign, value); + + + } + + /** + * + * @return the fBackward field value. + */ + public boolean isFBackward() + { + return fBackward.isSet(field_35_fontAlign); + + } + + /** + * Sets the fRotateFont field value. + * + */ + public void setFRotateFont(boolean value) + { + field_35_fontAlign = (short)fRotateFont.setBoolean(field_35_fontAlign, value); + + + } + + /** + * + * @return the fRotateFont field value. + */ + public boolean isFRotateFont() + { + return fRotateFont.isSet(field_35_fontAlign); + + } + + +} // END OF CLASS + + + + diff --git a/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/definitions/SEPAbstractType.java b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/definitions/SEPAbstractType.java new file mode 100644 index 0000000000..da8a22491c --- /dev/null +++ b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/definitions/SEPAbstractType.java @@ -0,0 +1,1103 @@ + +/* ==================================================================== + * The Apache Software License, Version 1.1 + * + * Copyright (c) 2003 The Apache Software Foundation. All rights + * reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * 3. The end-user documentation included with the redistribution, + * if any, must include the following acknowledgment: + * "This product includes software developed by the + * Apache Software Foundation (http://www.apache.org/)." + * Alternately, this acknowledgment may appear in the software itself, + * if and wherever such third-party acknowledgments normally appear. + * + * 4. The names "Apache" and "Apache Software Foundation" and + * "Apache POI" must not be used to endorse or promote products + * derived from this software without prior written permission. For + * written permission, please contact apache@apache.org. + * + * 5. Products derived from this software may not be called "Apache", + * "Apache POI", nor may "Apache" appear in their name, without + * prior written permission of the Apache Software Foundation. + * + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * ==================================================================== + * + * This software consists of voluntary contributions made by many + * individuals on behalf of the Apache Software Foundation. For more + * information on the Apache Software Foundation, please see + * . + */ + + +package org.apache.poi.hwpf.model.hdftypes.definitions; + + + +import org.apache.poi.util.BitField; +import org.apache.poi.util.LittleEndian; +import org.apache.poi.util.StringUtil; +import org.apache.poi.util.HexDump; +import org.apache.poi.hwpf.model.hdftypes.HDFType; + +/** + * Section Properties. + * NOTE: This source is automatically generated please do not modify this file. Either subclass or + * remove the record in src/records/definitions. + + * @author S. Ryan Ackley + */ +public abstract class SEPAbstractType + implements HDFType +{ + + private byte field_1_bkc; + private boolean field_2_fTitlePage; + private boolean field_3_fAutoPgn; + private byte field_4_nfcPgn; + private boolean field_5_fUnlocked; + private byte field_6_cnsPgn; + private boolean field_7_fPgnRestart; + private boolean field_8_fEndNote; + private byte field_9_lnc; + private byte field_10_grpfIhdt; + private int field_11_nLnnMod; + private int field_12_dxaLnn; + private int field_13_dxaPgn; + private int field_14_dyaPgn; + private boolean field_15_fLBetween; + private byte field_16_vjc; + private int field_17_dmBinFirst; + private int field_18_dmBinOther; + private int field_19_dmPaperReq; + private short[] field_20_brcTop; + private short[] field_21_brcLeft; + private short[] field_22_brcBottom; + private short[] field_23_brcRight; + private boolean field_24_fPropMark; + private int field_25_ibstPropRMark; + private int field_26_dttmPropRMark; + private int field_27_dxtCharSpace; + private int field_28_dyaLinePitch; + private int field_29_clm; + private int field_30_unused2; + private byte field_31_dmOrientPage; + private byte field_32_iHeadingPgn; + private int field_33_pgnStart; + private int field_34_lnnMin; + private int field_35_wTextFlow; + private short field_36_unused3; + private int field_37_pgbProp; + private short field_38_unused4; + private int field_39_xaPage; + private int field_40_yaPage; + private int field_41_xaPageNUp; + private int field_42_yaPageNUp; + private int field_43_dxaLeft; + private int field_44_dxaRight; + private int field_45_dyaTop; + private int field_46_dyaBottom; + private int field_47_dzaGutter; + private int field_48_dyaHdrTop; + private int field_49_dyaHdrBottom; + private int field_50_ccolM1; + private boolean field_51_fEvenlySpaced; + private byte field_52_unused5; + private int field_53_dxaColumns; + private int[] field_54_rgdxaColumn; + private int field_55_dxaColumnWidth; + private byte field_56_dmOrientFirst; + private byte field_57_fLayout; + private short field_58_unused6; + private byte[] field_59_olstAnm; + + + public SEPAbstractType() + { + + } + + /** + * Size of record (exluding 4 byte header) + */ + public int getSize() + { + return 4 + + 1 + 0 + 0 + 1 + 0 + 1 + 0 + 0 + 1 + 1 + 2 + 4 + 2 + 2 + 0 + 1 + 2 + 2 + 2 + 4 + 4 + 4 + 4 + 0 + 2 + 4 + 4 + 4 + 2 + 2 + 1 + 1 + 2 + 2 + 2 + 2 + 2 + 2 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 2 + 0 + 1 + 4 + 356 + 4 + 1 + 1 + 2 + 212; + } + + + + /** + * Get the bkc field for the SEP record. + */ + public byte getBkc() + { + return field_1_bkc; + } + + /** + * Set the bkc field for the SEP record. + */ + public void setBkc(byte field_1_bkc) + { + this.field_1_bkc = field_1_bkc; + } + + /** + * Get the fTitlePage field for the SEP record. + */ + public boolean getFTitlePage() + { + return field_2_fTitlePage; + } + + /** + * Set the fTitlePage field for the SEP record. + */ + public void setFTitlePage(boolean field_2_fTitlePage) + { + this.field_2_fTitlePage = field_2_fTitlePage; + } + + /** + * Get the fAutoPgn field for the SEP record. + */ + public boolean getFAutoPgn() + { + return field_3_fAutoPgn; + } + + /** + * Set the fAutoPgn field for the SEP record. + */ + public void setFAutoPgn(boolean field_3_fAutoPgn) + { + this.field_3_fAutoPgn = field_3_fAutoPgn; + } + + /** + * Get the nfcPgn field for the SEP record. + */ + public byte getNfcPgn() + { + return field_4_nfcPgn; + } + + /** + * Set the nfcPgn field for the SEP record. + */ + public void setNfcPgn(byte field_4_nfcPgn) + { + this.field_4_nfcPgn = field_4_nfcPgn; + } + + /** + * Get the fUnlocked field for the SEP record. + */ + public boolean getFUnlocked() + { + return field_5_fUnlocked; + } + + /** + * Set the fUnlocked field for the SEP record. + */ + public void setFUnlocked(boolean field_5_fUnlocked) + { + this.field_5_fUnlocked = field_5_fUnlocked; + } + + /** + * Get the cnsPgn field for the SEP record. + */ + public byte getCnsPgn() + { + return field_6_cnsPgn; + } + + /** + * Set the cnsPgn field for the SEP record. + */ + public void setCnsPgn(byte field_6_cnsPgn) + { + this.field_6_cnsPgn = field_6_cnsPgn; + } + + /** + * Get the fPgnRestart field for the SEP record. + */ + public boolean getFPgnRestart() + { + return field_7_fPgnRestart; + } + + /** + * Set the fPgnRestart field for the SEP record. + */ + public void setFPgnRestart(boolean field_7_fPgnRestart) + { + this.field_7_fPgnRestart = field_7_fPgnRestart; + } + + /** + * Get the fEndNote field for the SEP record. + */ + public boolean getFEndNote() + { + return field_8_fEndNote; + } + + /** + * Set the fEndNote field for the SEP record. + */ + public void setFEndNote(boolean field_8_fEndNote) + { + this.field_8_fEndNote = field_8_fEndNote; + } + + /** + * Get the lnc field for the SEP record. + */ + public byte getLnc() + { + return field_9_lnc; + } + + /** + * Set the lnc field for the SEP record. + */ + public void setLnc(byte field_9_lnc) + { + this.field_9_lnc = field_9_lnc; + } + + /** + * Get the grpfIhdt field for the SEP record. + */ + public byte getGrpfIhdt() + { + return field_10_grpfIhdt; + } + + /** + * Set the grpfIhdt field for the SEP record. + */ + public void setGrpfIhdt(byte field_10_grpfIhdt) + { + this.field_10_grpfIhdt = field_10_grpfIhdt; + } + + /** + * Get the nLnnMod field for the SEP record. + */ + public int getNLnnMod() + { + return field_11_nLnnMod; + } + + /** + * Set the nLnnMod field for the SEP record. + */ + public void setNLnnMod(int field_11_nLnnMod) + { + this.field_11_nLnnMod = field_11_nLnnMod; + } + + /** + * Get the dxaLnn field for the SEP record. + */ + public int getDxaLnn() + { + return field_12_dxaLnn; + } + + /** + * Set the dxaLnn field for the SEP record. + */ + public void setDxaLnn(int field_12_dxaLnn) + { + this.field_12_dxaLnn = field_12_dxaLnn; + } + + /** + * Get the dxaPgn field for the SEP record. + */ + public int getDxaPgn() + { + return field_13_dxaPgn; + } + + /** + * Set the dxaPgn field for the SEP record. + */ + public void setDxaPgn(int field_13_dxaPgn) + { + this.field_13_dxaPgn = field_13_dxaPgn; + } + + /** + * Get the dyaPgn field for the SEP record. + */ + public int getDyaPgn() + { + return field_14_dyaPgn; + } + + /** + * Set the dyaPgn field for the SEP record. + */ + public void setDyaPgn(int field_14_dyaPgn) + { + this.field_14_dyaPgn = field_14_dyaPgn; + } + + /** + * Get the fLBetween field for the SEP record. + */ + public boolean getFLBetween() + { + return field_15_fLBetween; + } + + /** + * Set the fLBetween field for the SEP record. + */ + public void setFLBetween(boolean field_15_fLBetween) + { + this.field_15_fLBetween = field_15_fLBetween; + } + + /** + * Get the vjc field for the SEP record. + */ + public byte getVjc() + { + return field_16_vjc; + } + + /** + * Set the vjc field for the SEP record. + */ + public void setVjc(byte field_16_vjc) + { + this.field_16_vjc = field_16_vjc; + } + + /** + * Get the dmBinFirst field for the SEP record. + */ + public int getDmBinFirst() + { + return field_17_dmBinFirst; + } + + /** + * Set the dmBinFirst field for the SEP record. + */ + public void setDmBinFirst(int field_17_dmBinFirst) + { + this.field_17_dmBinFirst = field_17_dmBinFirst; + } + + /** + * Get the dmBinOther field for the SEP record. + */ + public int getDmBinOther() + { + return field_18_dmBinOther; + } + + /** + * Set the dmBinOther field for the SEP record. + */ + public void setDmBinOther(int field_18_dmBinOther) + { + this.field_18_dmBinOther = field_18_dmBinOther; + } + + /** + * Get the dmPaperReq field for the SEP record. + */ + public int getDmPaperReq() + { + return field_19_dmPaperReq; + } + + /** + * Set the dmPaperReq field for the SEP record. + */ + public void setDmPaperReq(int field_19_dmPaperReq) + { + this.field_19_dmPaperReq = field_19_dmPaperReq; + } + + /** + * Get the brcTop field for the SEP record. + */ + public short[] getBrcTop() + { + return field_20_brcTop; + } + + /** + * Set the brcTop field for the SEP record. + */ + public void setBrcTop(short[] field_20_brcTop) + { + this.field_20_brcTop = field_20_brcTop; + } + + /** + * Get the brcLeft field for the SEP record. + */ + public short[] getBrcLeft() + { + return field_21_brcLeft; + } + + /** + * Set the brcLeft field for the SEP record. + */ + public void setBrcLeft(short[] field_21_brcLeft) + { + this.field_21_brcLeft = field_21_brcLeft; + } + + /** + * Get the brcBottom field for the SEP record. + */ + public short[] getBrcBottom() + { + return field_22_brcBottom; + } + + /** + * Set the brcBottom field for the SEP record. + */ + public void setBrcBottom(short[] field_22_brcBottom) + { + this.field_22_brcBottom = field_22_brcBottom; + } + + /** + * Get the brcRight field for the SEP record. + */ + public short[] getBrcRight() + { + return field_23_brcRight; + } + + /** + * Set the brcRight field for the SEP record. + */ + public void setBrcRight(short[] field_23_brcRight) + { + this.field_23_brcRight = field_23_brcRight; + } + + /** + * Get the fPropMark field for the SEP record. + */ + public boolean getFPropMark() + { + return field_24_fPropMark; + } + + /** + * Set the fPropMark field for the SEP record. + */ + public void setFPropMark(boolean field_24_fPropMark) + { + this.field_24_fPropMark = field_24_fPropMark; + } + + /** + * Get the ibstPropRMark field for the SEP record. + */ + public int getIbstPropRMark() + { + return field_25_ibstPropRMark; + } + + /** + * Set the ibstPropRMark field for the SEP record. + */ + public void setIbstPropRMark(int field_25_ibstPropRMark) + { + this.field_25_ibstPropRMark = field_25_ibstPropRMark; + } + + /** + * Get the dttmPropRMark field for the SEP record. + */ + public int getDttmPropRMark() + { + return field_26_dttmPropRMark; + } + + /** + * Set the dttmPropRMark field for the SEP record. + */ + public void setDttmPropRMark(int field_26_dttmPropRMark) + { + this.field_26_dttmPropRMark = field_26_dttmPropRMark; + } + + /** + * Get the dxtCharSpace field for the SEP record. + */ + public int getDxtCharSpace() + { + return field_27_dxtCharSpace; + } + + /** + * Set the dxtCharSpace field for the SEP record. + */ + public void setDxtCharSpace(int field_27_dxtCharSpace) + { + this.field_27_dxtCharSpace = field_27_dxtCharSpace; + } + + /** + * Get the dyaLinePitch field for the SEP record. + */ + public int getDyaLinePitch() + { + return field_28_dyaLinePitch; + } + + /** + * Set the dyaLinePitch field for the SEP record. + */ + public void setDyaLinePitch(int field_28_dyaLinePitch) + { + this.field_28_dyaLinePitch = field_28_dyaLinePitch; + } + + /** + * Get the clm field for the SEP record. + */ + public int getClm() + { + return field_29_clm; + } + + /** + * Set the clm field for the SEP record. + */ + public void setClm(int field_29_clm) + { + this.field_29_clm = field_29_clm; + } + + /** + * Get the unused2 field for the SEP record. + */ + public int getUnused2() + { + return field_30_unused2; + } + + /** + * Set the unused2 field for the SEP record. + */ + public void setUnused2(int field_30_unused2) + { + this.field_30_unused2 = field_30_unused2; + } + + /** + * Get the dmOrientPage field for the SEP record. + */ + public byte getDmOrientPage() + { + return field_31_dmOrientPage; + } + + /** + * Set the dmOrientPage field for the SEP record. + */ + public void setDmOrientPage(byte field_31_dmOrientPage) + { + this.field_31_dmOrientPage = field_31_dmOrientPage; + } + + /** + * Get the iHeadingPgn field for the SEP record. + */ + public byte getIHeadingPgn() + { + return field_32_iHeadingPgn; + } + + /** + * Set the iHeadingPgn field for the SEP record. + */ + public void setIHeadingPgn(byte field_32_iHeadingPgn) + { + this.field_32_iHeadingPgn = field_32_iHeadingPgn; + } + + /** + * Get the pgnStart field for the SEP record. + */ + public int getPgnStart() + { + return field_33_pgnStart; + } + + /** + * Set the pgnStart field for the SEP record. + */ + public void setPgnStart(int field_33_pgnStart) + { + this.field_33_pgnStart = field_33_pgnStart; + } + + /** + * Get the lnnMin field for the SEP record. + */ + public int getLnnMin() + { + return field_34_lnnMin; + } + + /** + * Set the lnnMin field for the SEP record. + */ + public void setLnnMin(int field_34_lnnMin) + { + this.field_34_lnnMin = field_34_lnnMin; + } + + /** + * Get the wTextFlow field for the SEP record. + */ + public int getWTextFlow() + { + return field_35_wTextFlow; + } + + /** + * Set the wTextFlow field for the SEP record. + */ + public void setWTextFlow(int field_35_wTextFlow) + { + this.field_35_wTextFlow = field_35_wTextFlow; + } + + /** + * Get the unused3 field for the SEP record. + */ + public short getUnused3() + { + return field_36_unused3; + } + + /** + * Set the unused3 field for the SEP record. + */ + public void setUnused3(short field_36_unused3) + { + this.field_36_unused3 = field_36_unused3; + } + + /** + * Get the pgbProp field for the SEP record. + */ + public int getPgbProp() + { + return field_37_pgbProp; + } + + /** + * Set the pgbProp field for the SEP record. + */ + public void setPgbProp(int field_37_pgbProp) + { + this.field_37_pgbProp = field_37_pgbProp; + } + + /** + * Get the unused4 field for the SEP record. + */ + public short getUnused4() + { + return field_38_unused4; + } + + /** + * Set the unused4 field for the SEP record. + */ + public void setUnused4(short field_38_unused4) + { + this.field_38_unused4 = field_38_unused4; + } + + /** + * Get the xaPage field for the SEP record. + */ + public int getXaPage() + { + return field_39_xaPage; + } + + /** + * Set the xaPage field for the SEP record. + */ + public void setXaPage(int field_39_xaPage) + { + this.field_39_xaPage = field_39_xaPage; + } + + /** + * Get the yaPage field for the SEP record. + */ + public int getYaPage() + { + return field_40_yaPage; + } + + /** + * Set the yaPage field for the SEP record. + */ + public void setYaPage(int field_40_yaPage) + { + this.field_40_yaPage = field_40_yaPage; + } + + /** + * Get the xaPageNUp field for the SEP record. + */ + public int getXaPageNUp() + { + return field_41_xaPageNUp; + } + + /** + * Set the xaPageNUp field for the SEP record. + */ + public void setXaPageNUp(int field_41_xaPageNUp) + { + this.field_41_xaPageNUp = field_41_xaPageNUp; + } + + /** + * Get the yaPageNUp field for the SEP record. + */ + public int getYaPageNUp() + { + return field_42_yaPageNUp; + } + + /** + * Set the yaPageNUp field for the SEP record. + */ + public void setYaPageNUp(int field_42_yaPageNUp) + { + this.field_42_yaPageNUp = field_42_yaPageNUp; + } + + /** + * Get the dxaLeft field for the SEP record. + */ + public int getDxaLeft() + { + return field_43_dxaLeft; + } + + /** + * Set the dxaLeft field for the SEP record. + */ + public void setDxaLeft(int field_43_dxaLeft) + { + this.field_43_dxaLeft = field_43_dxaLeft; + } + + /** + * Get the dxaRight field for the SEP record. + */ + public int getDxaRight() + { + return field_44_dxaRight; + } + + /** + * Set the dxaRight field for the SEP record. + */ + public void setDxaRight(int field_44_dxaRight) + { + this.field_44_dxaRight = field_44_dxaRight; + } + + /** + * Get the dyaTop field for the SEP record. + */ + public int getDyaTop() + { + return field_45_dyaTop; + } + + /** + * Set the dyaTop field for the SEP record. + */ + public void setDyaTop(int field_45_dyaTop) + { + this.field_45_dyaTop = field_45_dyaTop; + } + + /** + * Get the dyaBottom field for the SEP record. + */ + public int getDyaBottom() + { + return field_46_dyaBottom; + } + + /** + * Set the dyaBottom field for the SEP record. + */ + public void setDyaBottom(int field_46_dyaBottom) + { + this.field_46_dyaBottom = field_46_dyaBottom; + } + + /** + * Get the dzaGutter field for the SEP record. + */ + public int getDzaGutter() + { + return field_47_dzaGutter; + } + + /** + * Set the dzaGutter field for the SEP record. + */ + public void setDzaGutter(int field_47_dzaGutter) + { + this.field_47_dzaGutter = field_47_dzaGutter; + } + + /** + * Get the dyaHdrTop field for the SEP record. + */ + public int getDyaHdrTop() + { + return field_48_dyaHdrTop; + } + + /** + * Set the dyaHdrTop field for the SEP record. + */ + public void setDyaHdrTop(int field_48_dyaHdrTop) + { + this.field_48_dyaHdrTop = field_48_dyaHdrTop; + } + + /** + * Get the dyaHdrBottom field for the SEP record. + */ + public int getDyaHdrBottom() + { + return field_49_dyaHdrBottom; + } + + /** + * Set the dyaHdrBottom field for the SEP record. + */ + public void setDyaHdrBottom(int field_49_dyaHdrBottom) + { + this.field_49_dyaHdrBottom = field_49_dyaHdrBottom; + } + + /** + * Get the ccolM1 field for the SEP record. + */ + public int getCcolM1() + { + return field_50_ccolM1; + } + + /** + * Set the ccolM1 field for the SEP record. + */ + public void setCcolM1(int field_50_ccolM1) + { + this.field_50_ccolM1 = field_50_ccolM1; + } + + /** + * Get the fEvenlySpaced field for the SEP record. + */ + public boolean getFEvenlySpaced() + { + return field_51_fEvenlySpaced; + } + + /** + * Set the fEvenlySpaced field for the SEP record. + */ + public void setFEvenlySpaced(boolean field_51_fEvenlySpaced) + { + this.field_51_fEvenlySpaced = field_51_fEvenlySpaced; + } + + /** + * Get the unused5 field for the SEP record. + */ + public byte getUnused5() + { + return field_52_unused5; + } + + /** + * Set the unused5 field for the SEP record. + */ + public void setUnused5(byte field_52_unused5) + { + this.field_52_unused5 = field_52_unused5; + } + + /** + * Get the dxaColumns field for the SEP record. + */ + public int getDxaColumns() + { + return field_53_dxaColumns; + } + + /** + * Set the dxaColumns field for the SEP record. + */ + public void setDxaColumns(int field_53_dxaColumns) + { + this.field_53_dxaColumns = field_53_dxaColumns; + } + + /** + * Get the rgdxaColumn field for the SEP record. + */ + public int[] getRgdxaColumn() + { + return field_54_rgdxaColumn; + } + + /** + * Set the rgdxaColumn field for the SEP record. + */ + public void setRgdxaColumn(int[] field_54_rgdxaColumn) + { + this.field_54_rgdxaColumn = field_54_rgdxaColumn; + } + + /** + * Get the dxaColumnWidth field for the SEP record. + */ + public int getDxaColumnWidth() + { + return field_55_dxaColumnWidth; + } + + /** + * Set the dxaColumnWidth field for the SEP record. + */ + public void setDxaColumnWidth(int field_55_dxaColumnWidth) + { + this.field_55_dxaColumnWidth = field_55_dxaColumnWidth; + } + + /** + * Get the dmOrientFirst field for the SEP record. + */ + public byte getDmOrientFirst() + { + return field_56_dmOrientFirst; + } + + /** + * Set the dmOrientFirst field for the SEP record. + */ + public void setDmOrientFirst(byte field_56_dmOrientFirst) + { + this.field_56_dmOrientFirst = field_56_dmOrientFirst; + } + + /** + * Get the fLayout field for the SEP record. + */ + public byte getFLayout() + { + return field_57_fLayout; + } + + /** + * Set the fLayout field for the SEP record. + */ + public void setFLayout(byte field_57_fLayout) + { + this.field_57_fLayout = field_57_fLayout; + } + + /** + * Get the unused6 field for the SEP record. + */ + public short getUnused6() + { + return field_58_unused6; + } + + /** + * Set the unused6 field for the SEP record. + */ + public void setUnused6(short field_58_unused6) + { + this.field_58_unused6 = field_58_unused6; + } + + /** + * Get the olstAnm field for the SEP record. + */ + public byte[] getOlstAnm() + { + return field_59_olstAnm; + } + + /** + * Set the olstAnm field for the SEP record. + */ + public void setOlstAnm(byte[] field_59_olstAnm) + { + this.field_59_olstAnm = field_59_olstAnm; + } + + +} // END OF CLASS + + + + diff --git a/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/definitions/TAPAbstractType.java b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/definitions/TAPAbstractType.java new file mode 100644 index 0000000000..cc3bb63580 --- /dev/null +++ b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/definitions/TAPAbstractType.java @@ -0,0 +1,372 @@ + +/* ==================================================================== + * The Apache Software License, Version 1.1 + * + * Copyright (c) 2003 The Apache Software Foundation. All rights + * reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * 3. The end-user documentation included with the redistribution, + * if any, must include the following acknowledgment: + * "This product includes software developed by the + * Apache Software Foundation (http://www.apache.org/)." + * Alternately, this acknowledgment may appear in the software itself, + * if and wherever such third-party acknowledgments normally appear. + * + * 4. The names "Apache" and "Apache Software Foundation" and + * "Apache POI" must not be used to endorse or promote products + * derived from this software without prior written permission. For + * written permission, please contact apache@apache.org. + * + * 5. Products derived from this software may not be called "Apache", + * "Apache POI", nor may "Apache" appear in their name, without + * prior written permission of the Apache Software Foundation. + * + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * ==================================================================== + * + * This software consists of voluntary contributions made by many + * individuals on behalf of the Apache Software Foundation. For more + * information on the Apache Software Foundation, please see + * . + */ + + +package org.apache.poi.hwpf.model.hdftypes.definitions; + + + +import org.apache.poi.util.BitField; +import org.apache.poi.util.LittleEndian; +import org.apache.poi.util.StringUtil; +import org.apache.poi.util.HexDump; +import org.apache.poi.hwpf.model.hdftypes.HDFType; + +/** + * Table Properties. + * NOTE: This source is automatically generated please do not modify this file. Either subclass or + * remove the record in src/records/definitions. + + * @author S. Ryan Ackley + */ +public abstract class TAPAbstractType + implements HDFType +{ + + private int field_1_jc; + private int field_2_dxaGapHalf; + private int field_3_dyaRowHeight; + private boolean field_4_fCantSplit; + private boolean field_5_fTableHeader; + private int field_6_tlp; + private short field_7_itcMac; + private short[] field_8_rgdxaCenter; + private TCAbstractType[] field_9_rgtc; + private byte[] field_10_rgshd; + private short[] field_11_brcBottom; + private short[] field_12_brcTop; + private short[] field_13_brcLeft; + private short[] field_14_brcRight; + private short[] field_15_brcVertical; + private short[] field_16_brcHorizontal; + + + public TAPAbstractType() + { + + } + + /** + * Size of record (exluding 4 byte header) + */ + public int getSize() + { + return 4 + + 2 + 4 + 4 + 0 + 0 + 4 + 2 + 130 + 0 + 0 + 4 + 4 + 4 + 4 + 4 + 4; + } + + + + /** + * Get the jc field for the TAP record. + */ + public int getJc() + { + return field_1_jc; + } + + /** + * Set the jc field for the TAP record. + */ + public void setJc(int field_1_jc) + { + this.field_1_jc = field_1_jc; + } + + /** + * Get the dxaGapHalf field for the TAP record. + */ + public int getDxaGapHalf() + { + return field_2_dxaGapHalf; + } + + /** + * Set the dxaGapHalf field for the TAP record. + */ + public void setDxaGapHalf(int field_2_dxaGapHalf) + { + this.field_2_dxaGapHalf = field_2_dxaGapHalf; + } + + /** + * Get the dyaRowHeight field for the TAP record. + */ + public int getDyaRowHeight() + { + return field_3_dyaRowHeight; + } + + /** + * Set the dyaRowHeight field for the TAP record. + */ + public void setDyaRowHeight(int field_3_dyaRowHeight) + { + this.field_3_dyaRowHeight = field_3_dyaRowHeight; + } + + /** + * Get the fCantSplit field for the TAP record. + */ + public boolean getFCantSplit() + { + return field_4_fCantSplit; + } + + /** + * Set the fCantSplit field for the TAP record. + */ + public void setFCantSplit(boolean field_4_fCantSplit) + { + this.field_4_fCantSplit = field_4_fCantSplit; + } + + /** + * Get the fTableHeader field for the TAP record. + */ + public boolean getFTableHeader() + { + return field_5_fTableHeader; + } + + /** + * Set the fTableHeader field for the TAP record. + */ + public void setFTableHeader(boolean field_5_fTableHeader) + { + this.field_5_fTableHeader = field_5_fTableHeader; + } + + /** + * Get the tlp field for the TAP record. + */ + public int getTlp() + { + return field_6_tlp; + } + + /** + * Set the tlp field for the TAP record. + */ + public void setTlp(int field_6_tlp) + { + this.field_6_tlp = field_6_tlp; + } + + /** + * Get the itcMac field for the TAP record. + */ + public short getItcMac() + { + return field_7_itcMac; + } + + /** + * Set the itcMac field for the TAP record. + */ + public void setItcMac(short field_7_itcMac) + { + this.field_7_itcMac = field_7_itcMac; + } + + /** + * Get the rgdxaCenter field for the TAP record. + */ + public short[] getRgdxaCenter() + { + return field_8_rgdxaCenter; + } + + /** + * Set the rgdxaCenter field for the TAP record. + */ + public void setRgdxaCenter(short[] field_8_rgdxaCenter) + { + this.field_8_rgdxaCenter = field_8_rgdxaCenter; + } + + /** + * Get the rgtc field for the TAP record. + */ + public TCAbstractType[] getRgtc() + { + return field_9_rgtc; + } + + /** + * Set the rgtc field for the TAP record. + */ + public void setRgtc(TCAbstractType[] field_9_rgtc) + { + this.field_9_rgtc = field_9_rgtc; + } + + /** + * Get the rgshd field for the TAP record. + */ + public byte[] getRgshd() + { + return field_10_rgshd; + } + + /** + * Set the rgshd field for the TAP record. + */ + public void setRgshd(byte[] field_10_rgshd) + { + this.field_10_rgshd = field_10_rgshd; + } + + /** + * Get the brcBottom field for the TAP record. + */ + public short[] getBrcBottom() + { + return field_11_brcBottom; + } + + /** + * Set the brcBottom field for the TAP record. + */ + public void setBrcBottom(short[] field_11_brcBottom) + { + this.field_11_brcBottom = field_11_brcBottom; + } + + /** + * Get the brcTop field for the TAP record. + */ + public short[] getBrcTop() + { + return field_12_brcTop; + } + + /** + * Set the brcTop field for the TAP record. + */ + public void setBrcTop(short[] field_12_brcTop) + { + this.field_12_brcTop = field_12_brcTop; + } + + /** + * Get the brcLeft field for the TAP record. + */ + public short[] getBrcLeft() + { + return field_13_brcLeft; + } + + /** + * Set the brcLeft field for the TAP record. + */ + public void setBrcLeft(short[] field_13_brcLeft) + { + this.field_13_brcLeft = field_13_brcLeft; + } + + /** + * Get the brcRight field for the TAP record. + */ + public short[] getBrcRight() + { + return field_14_brcRight; + } + + /** + * Set the brcRight field for the TAP record. + */ + public void setBrcRight(short[] field_14_brcRight) + { + this.field_14_brcRight = field_14_brcRight; + } + + /** + * Get the brcVertical field for the TAP record. + */ + public short[] getBrcVertical() + { + return field_15_brcVertical; + } + + /** + * Set the brcVertical field for the TAP record. + */ + public void setBrcVertical(short[] field_15_brcVertical) + { + this.field_15_brcVertical = field_15_brcVertical; + } + + /** + * Get the brcHorizontal field for the TAP record. + */ + public short[] getBrcHorizontal() + { + return field_16_brcHorizontal; + } + + /** + * Set the brcHorizontal field for the TAP record. + */ + public void setBrcHorizontal(short[] field_16_brcHorizontal) + { + this.field_16_brcHorizontal = field_16_brcHorizontal; + } + + +} // END OF CLASS + + + + diff --git a/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/definitions/TCAbstractType.java b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/definitions/TCAbstractType.java new file mode 100644 index 0000000000..79e163f3cf --- /dev/null +++ b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/definitions/TCAbstractType.java @@ -0,0 +1,378 @@ + +/* ==================================================================== + * The Apache Software License, Version 1.1 + * + * Copyright (c) 2003 The Apache Software Foundation. All rights + * reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * 3. The end-user documentation included with the redistribution, + * if any, must include the following acknowledgment: + * "This product includes software developed by the + * Apache Software Foundation (http://www.apache.org/)." + * Alternately, this acknowledgment may appear in the software itself, + * if and wherever such third-party acknowledgments normally appear. + * + * 4. The names "Apache" and "Apache Software Foundation" and + * "Apache POI" must not be used to endorse or promote products + * derived from this software without prior written permission. For + * written permission, please contact apache@apache.org. + * + * 5. Products derived from this software may not be called "Apache", + * "Apache POI", nor may "Apache" appear in their name, without + * prior written permission of the Apache Software Foundation. + * + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * ==================================================================== + * + * This software consists of voluntary contributions made by many + * individuals on behalf of the Apache Software Foundation. For more + * information on the Apache Software Foundation, please see + * . + */ + + +package org.apache.poi.hwpf.model.hdftypes.definitions; + + + +import org.apache.poi.util.BitField; +import org.apache.poi.util.LittleEndian; +import org.apache.poi.util.StringUtil; +import org.apache.poi.util.HexDump; +import org.apache.poi.hwpf.model.hdftypes.HDFType; + +/** + * Table Cell Descriptor. + * NOTE: This source is automatically generated please do not modify this file. Either subclass or + * remove the record in src/records/definitions. + + * @author S. Ryan Ackley + */ +public abstract class TCAbstractType + implements HDFType +{ + + private short field_1_rgf; + private BitField fFirstMerged = new BitField(0x0001); + private BitField fMerged = new BitField(0x0002); + private BitField fVertical = new BitField(0x0004); + private BitField fBackward = new BitField(0x0008); + private BitField fRotateFont = new BitField(0x0010); + private BitField fVertMerge = new BitField(0x0020); + private BitField fVertRestart = new BitField(0x0040); + private BitField vertAlign = new BitField(0x0180); + private short field_2_unused; + private short[] field_3_brcTop; + private short[] field_4_brcLeft; + private short[] field_5_brcBottom; + private short[] field_6_brcRight; + + + public TCAbstractType() + { + + } + + /** + * Size of record (exluding 4 byte header) + */ + public int getSize() + { + return 4 + + 2 + 2 + 4 + 4 + 4 + 4; + } + + + + /** + * Get the rgf field for the TC record. + */ + public short getRgf() + { + return field_1_rgf; + } + + /** + * Set the rgf field for the TC record. + */ + public void setRgf(short field_1_rgf) + { + this.field_1_rgf = field_1_rgf; + } + + /** + * Get the unused field for the TC record. + */ + public short getUnused() + { + return field_2_unused; + } + + /** + * Set the unused field for the TC record. + */ + public void setUnused(short field_2_unused) + { + this.field_2_unused = field_2_unused; + } + + /** + * Get the brcTop field for the TC record. + */ + public short[] getBrcTop() + { + return field_3_brcTop; + } + + /** + * Set the brcTop field for the TC record. + */ + public void setBrcTop(short[] field_3_brcTop) + { + this.field_3_brcTop = field_3_brcTop; + } + + /** + * Get the brcLeft field for the TC record. + */ + public short[] getBrcLeft() + { + return field_4_brcLeft; + } + + /** + * Set the brcLeft field for the TC record. + */ + public void setBrcLeft(short[] field_4_brcLeft) + { + this.field_4_brcLeft = field_4_brcLeft; + } + + /** + * Get the brcBottom field for the TC record. + */ + public short[] getBrcBottom() + { + return field_5_brcBottom; + } + + /** + * Set the brcBottom field for the TC record. + */ + public void setBrcBottom(short[] field_5_brcBottom) + { + this.field_5_brcBottom = field_5_brcBottom; + } + + /** + * Get the brcRight field for the TC record. + */ + public short[] getBrcRight() + { + return field_6_brcRight; + } + + /** + * Set the brcRight field for the TC record. + */ + public void setBrcRight(short[] field_6_brcRight) + { + this.field_6_brcRight = field_6_brcRight; + } + + /** + * Sets the fFirstMerged field value. + * + */ + public void setFFirstMerged(boolean value) + { + field_1_rgf = (short)fFirstMerged.setBoolean(field_1_rgf, value); + + + } + + /** + * + * @return the fFirstMerged field value. + */ + public boolean isFFirstMerged() + { + return fFirstMerged.isSet(field_1_rgf); + + } + + /** + * Sets the fMerged field value. + * + */ + public void setFMerged(boolean value) + { + field_1_rgf = (short)fMerged.setBoolean(field_1_rgf, value); + + + } + + /** + * + * @return the fMerged field value. + */ + public boolean isFMerged() + { + return fMerged.isSet(field_1_rgf); + + } + + /** + * Sets the fVertical field value. + * + */ + public void setFVertical(boolean value) + { + field_1_rgf = (short)fVertical.setBoolean(field_1_rgf, value); + + + } + + /** + * + * @return the fVertical field value. + */ + public boolean isFVertical() + { + return fVertical.isSet(field_1_rgf); + + } + + /** + * Sets the fBackward field value. + * + */ + public void setFBackward(boolean value) + { + field_1_rgf = (short)fBackward.setBoolean(field_1_rgf, value); + + + } + + /** + * + * @return the fBackward field value. + */ + public boolean isFBackward() + { + return fBackward.isSet(field_1_rgf); + + } + + /** + * Sets the fRotateFont field value. + * + */ + public void setFRotateFont(boolean value) + { + field_1_rgf = (short)fRotateFont.setBoolean(field_1_rgf, value); + + + } + + /** + * + * @return the fRotateFont field value. + */ + public boolean isFRotateFont() + { + return fRotateFont.isSet(field_1_rgf); + + } + + /** + * Sets the fVertMerge field value. + * + */ + public void setFVertMerge(boolean value) + { + field_1_rgf = (short)fVertMerge.setBoolean(field_1_rgf, value); + + + } + + /** + * + * @return the fVertMerge field value. + */ + public boolean isFVertMerge() + { + return fVertMerge.isSet(field_1_rgf); + + } + + /** + * Sets the fVertRestart field value. + * + */ + public void setFVertRestart(boolean value) + { + field_1_rgf = (short)fVertRestart.setBoolean(field_1_rgf, value); + + + } + + /** + * + * @return the fVertRestart field value. + */ + public boolean isFVertRestart() + { + return fVertRestart.isSet(field_1_rgf); + + } + + /** + * Sets the vertAlign field value. + * + */ + public void setVertAlign(byte value) + { + field_1_rgf = (short)vertAlign.setValue(field_1_rgf, value); + + + } + + /** + * + * @return the vertAlign field value. + */ + public byte getVertAlign() + { + return ( byte )vertAlign.getValue(field_1_rgf); + + } + + +} // END OF CLASS + + + +