Exemplo n.º 1
0
        public void WriteTo(HWPFFileSystem sys, CharIndexTranslator translator)
        {
            HWPFStream wordDocumentStream = sys.GetStream("WordDocument");
            HWPFStream tableStream        = sys.GetStream("1Table");

            WriteTo(wordDocumentStream, tableStream, translator);
        }
Exemplo n.º 2
0
        internal void WriteTo(byte[] mainStream, int offset, HWPFStream tableStream)
        {
            int length = _fields.Length / 2;

            LittleEndian.PutShort(mainStream, offset, (short)length);
            offset += LittleEndianConsts.SHORT_SIZE;

            for (int x = 0; x < length; x++)
            {
                UnhandledDataStructure ds = (UnhandledDataStructure)_unknownMap[x];
                if (ds != null)
                {
                    LittleEndian.PutInt(mainStream, offset, tableStream.Offset);
                    offset += LittleEndianConsts.INT_SIZE;
                    byte[] buf = ds.GetBuf();
                    tableStream.Write(buf);
                    LittleEndian.PutInt(mainStream, offset, buf.Length);
                    offset += LittleEndianConsts.INT_SIZE;
                }
                else
                {
                    LittleEndian.PutInt(mainStream, offset, _fields[x * 2]);
                    offset += LittleEndianConsts.INT_SIZE;
                    LittleEndian.PutInt(mainStream, offset, _fields[(x * 2) + 1]);
                    offset += LittleEndianConsts.INT_SIZE;
                }
            }
        }
Exemplo n.º 3
0
        public void Deserialize(HWPFStream stream)
        {
            fibBase = new FIBBase();
            fibBase.Deserialize(stream);
            csw = stream.ReadShort();
            if (csw != 0x000E)
            {
                throw new ArgumentOutOfRangeException("csw must be 0x000E");
            }
            fibRgW97 = new FibRgW97();
            fibRgW97.Deserialize(stream);
            cslw = stream.ReadShort();
            if (cslw != 0x0016)
            {
                throw new ArgumentOutOfRangeException("cslw must be 0x0016");
            }
            fibRgLw97 = new FibRgLw97();
            fibRgLw97.Deserialize(stream);

            fibRgFcLcb = new FibRgFcLcb();
            fibRgFcLcb.Deserialize(stream);
            cswNew    = stream.ReadShort();
            fibCswNew = new FIBCswNew();
            fibCswNew.Deserialize(stream);
        }
Exemplo n.º 4
0
Arquivo: FIB.cs Projeto: 89sos98/npoi
 public void Deserialize(HWPFStream stream)
 {
     fibBase = new FIBBase();
     fibBase.Deserialize(stream);
     csw = stream.ReadShort();
     if (csw != 0x000E)
     {
         throw new ArgumentOutOfRangeException("csw must be 0x000E");
     }
     fibRgW97 = new FibRgW97();
     fibRgW97.Deserialize(stream);
     cslw = stream.ReadShort();
     if (cslw != 0x0016)
     {
         throw new ArgumentOutOfRangeException("cslw must be 0x0016");
     }
     fibRgLw97 = new FibRgLw97();
     fibRgLw97.Deserialize(stream);
     
     fibRgFcLcb = new FibRgFcLcb();
     fibRgFcLcb.Deserialize(stream);
     cswNew = stream.ReadShort();
     fibCswNew = new FIBCswNew();
     fibCswNew.Deserialize(stream);
 }
Exemplo n.º 5
0
 private void WriteStringValue(HWPFStream tableStream, String value)
 {
     byte[] buf = new byte[value.Length * 2 + 2];
     LittleEndian.PutShort(buf, 0, (short)value.Length);
     StringUtil.PutUnicodeLE(value, buf, 2);
     tableStream.Write(buf);
 }
Exemplo n.º 6
0
        public void WriteTo(HWPFFileSystem sys)
        {
            HWPFStream docStream   = sys.GetStream("WordDocument");
            HWPFStream tableStream = sys.GetStream("1Table");

            WriteTo(docStream, tableStream);
        }
Exemplo n.º 7
0
        public static int Write(HWPFStream tableStream, String[] entries)
        {
            byte[] header = new byte[6];
            LittleEndian.PutShort(header, 0, unchecked ((short)0xffff));

            if (entries == null || entries.Length == 0)
            {
                LittleEndian.PutInt(header, 2, 0);
                tableStream.Write(header);
                return(6);
            }

            LittleEndian.PutInt(header, 2, entries.Length);
            tableStream.Write(header);
            int size = 6;

            foreach (String entry in entries)
            {
                byte[] buf = new byte[entry.Length * 2 + 2];
                LittleEndian.PutShort(buf, 0, (short)entry.Length);
                StringUtil.PutUnicodeLE(entry, buf, 2);
                tableStream.Write(buf);
                size += buf.Length;
            }

            return(size);
        }
Exemplo n.º 8
0
        public void Deserialize(HWPFStream stream)
        {
            cbMac = stream.ReadInt();
            stream.ReadInt();
            stream.ReadInt();
            ccpText = stream.ReadInt();
            ccpFtn = stream.ReadInt();
            ccpHdd = stream.ReadInt();
            stream.ReadInt();
            ccpAtn = stream.ReadInt();
            ccpEdn = stream.ReadInt();
            ccpTxbx = stream.ReadInt();
            ccpHdrTxbx = stream.ReadInt();

            stream.ReadInt(); //reserved4
            stream.ReadInt(); //reserved5
            stream.ReadInt();//reserved6
            stream.ReadInt();//reserved7
            stream.ReadInt();//reserved8
            stream.ReadInt();//reserved9
            stream.ReadInt();//reserved10
            stream.ReadInt();//reserved11
            stream.ReadInt();//reserved12
            stream.ReadInt();//reserved13
            stream.ReadInt();//reserved14           
        }
Exemplo n.º 9
0
        public void Deserialize(HWPFStream stream)
        {
            cbMac = stream.ReadInt();
            stream.ReadInt();
            stream.ReadInt();
            ccpText = stream.ReadInt();
            ccpFtn  = stream.ReadInt();
            ccpHdd  = stream.ReadInt();
            stream.ReadInt();
            ccpAtn     = stream.ReadInt();
            ccpEdn     = stream.ReadInt();
            ccpTxbx    = stream.ReadInt();
            ccpHdrTxbx = stream.ReadInt();

            stream.ReadInt(); //reserved4
            stream.ReadInt(); //reserved5
            stream.ReadInt(); //reserved6
            stream.ReadInt(); //reserved7
            stream.ReadInt(); //reserved8
            stream.ReadInt(); //reserved9
            stream.ReadInt(); //reserved10
            stream.ReadInt(); //reserved11
            stream.ReadInt(); //reserved12
            stream.ReadInt(); //reserved13
            stream.ReadInt(); //reserved14
        }
Exemplo n.º 10
0
 private void ReadFibRgCswNewData2007(HWPFStream stream)
 {
     ReadFibRgCswNewData2000(stream);
     stream.ReadShort();     //lidThemeOther
     stream.ReadShort();     //lidThemeFE
     stream.ReadShort();     //lidThemeCS
 }
Exemplo n.º 11
0
 private void ReadFibRgCswNewData2007(HWPFStream stream)
 {
     ReadFibRgCswNewData2000(stream);
     stream.ReadShort();     //lidThemeOther
     stream.ReadShort();     //lidThemeFE
     stream.ReadShort();     //lidThemeCS
 }
Exemplo n.º 12
0
        public void Write(FileInformationBlock fib, HWPFStream tableStream)
        {
            Array values = Enum.GetValues(typeof(FieldsDocumentPart));

            foreach (FieldsDocumentPart part in values)
            {
                PlexOfCps plexOfCps = _tables[part];
                SavePlex(fib, part, plexOfCps, tableStream);
            }
        }
Exemplo n.º 13
0
        public void WriteTo(HWPFStream out1)
        {
            int offset = 0;

            // add two bytes so we can prepend the stylesheet w/ its size
            byte[] buf = new byte[_stshiLength + 2];
            LittleEndian.PutShort(buf, offset, (short)_stshiLength);
            offset += LittleEndianConsts.SHORT_SIZE;
            LittleEndian.PutShort(buf, offset, (short)_styleDescriptions.Length);
            offset += LittleEndianConsts.SHORT_SIZE;
            LittleEndian.PutShort(buf, offset, (short)_baseLength);
            offset += LittleEndianConsts.SHORT_SIZE;
            LittleEndian.PutShort(buf, offset, (short)_flags);
            offset += LittleEndianConsts.SHORT_SIZE;
            LittleEndian.PutShort(buf, offset, (short)_maxIndex);
            offset += LittleEndianConsts.SHORT_SIZE;
            LittleEndian.PutShort(buf, offset, (short)_maxFixedIndex);
            offset += LittleEndianConsts.SHORT_SIZE;
            LittleEndian.PutShort(buf, offset, (short)_stylenameVersion);
            offset += LittleEndianConsts.SHORT_SIZE;

            LittleEndian.PutShort(buf, offset, (short)_rgftc[0]);
            offset += LittleEndianConsts.SHORT_SIZE;
            LittleEndian.PutShort(buf, offset, (short)_rgftc[1]);
            offset += LittleEndianConsts.SHORT_SIZE;
            LittleEndian.PutShort(buf, offset, (short)_rgftc[2]);

            out1.Write(buf);

            byte[] sizeHolder = new byte[2];
            for (int x = 0; x < _styleDescriptions.Length; x++)
            {
                if (_styleDescriptions[x] != null)
                {
                    byte[] std = _styleDescriptions[x].ToArray();

                    // adjust the size so it is always on a word boundary
                    LittleEndian.PutShort(sizeHolder, (short)((std.Length) + (std.Length % 2)));
                    out1.Write(sizeHolder);
                    out1.Write(std);

                    // Must always start on a word boundary.
                    if (std.Length % 2 == 1)
                    {
                        out1.Write('\0');
                    }
                }
                else
                {
                    sizeHolder[0] = 0;
                    sizeHolder[1] = 0;
                    out1.Write(sizeHolder);
                }
            }
        }
Exemplo n.º 14
0
        public void WriteTo(HWPFStream wordDocumentStream, HWPFStream tableStream)
        {
            tableStream.Write(TEXT_PIECE_TABLE_TYPE);

            byte[] table = _tpt.WriteTo(wordDocumentStream);

            byte[] numHolder = new byte[LittleEndianConsts.INT_SIZE];
            LittleEndian.PutInt(numHolder, 0, table.Length);
            tableStream.Write(numHolder);
            tableStream.Write(table);
        }
Exemplo n.º 15
0
        public void WriteTo(HWPFFileSystem sys, int fcMin)
        {
            HWPFStream docStream   = sys.GetStream("WordDocument");
            Stream     tableStream = sys.GetStream("1Table");

            PlexOfCps binTable = new PlexOfCps(4);

            // each FKP must start on a 512 byte page.
            int docOffset = docStream.Offset;
            int mod       = docOffset % POIFSConstants.SMALLER_BIG_BLOCK_SIZE;

            if (mod != 0)
            {
                byte[] pAdding = new byte[POIFSConstants.SMALLER_BIG_BLOCK_SIZE - mod];
                docStream.Write(pAdding);
            }

            // get the page number for the first fkp
            docOffset = docStream.Offset;
            int pageNum = docOffset / POIFSConstants.SMALLER_BIG_BLOCK_SIZE;

            // get the ending fc
            int endingFc = ((PropertyNode)_textRuns[_textRuns.Count - 1]).End;

            endingFc += fcMin;


            List <CHPX> overflow = _textRuns;

            do
            {
                PropertyNode startingProp = (PropertyNode)overflow[0];
                int          start        = startingProp.Start + fcMin;

                CHPFormattedDiskPage cfkp = new CHPFormattedDiskPage();
                cfkp.Fill(overflow);

                byte[] bufFkp = cfkp.ToArray(fcMin);
                docStream.Write(bufFkp);
                overflow = cfkp.GetOverflow();

                int end = endingFc;
                if (overflow != null)
                {
                    end = ((PropertyNode)overflow[0]).Start + fcMin;
                }

                byte[] intHolder = new byte[4];
                LittleEndian.PutInt(intHolder, pageNum++);
                binTable.AddProperty(new GenericPropertyNode(start, end, intHolder));
            }while (overflow != null);
            byte[] bytes = binTable.ToByteArray();
            tableStream.Write(bytes, 0, bytes.Length);
        }
Exemplo n.º 16
0
 public void Deserialize(HWPFStream stream)
 {
     nFibNew = stream.ReadShort();
     if (nFibNew == (short)0x0112)
     {
         ReadFibRgCswNewData2007(stream);
     }
     else
     {
         ReadFibRgCswNewData2000(stream);
     }            
 }
Exemplo n.º 17
0
 public void Deserialize(HWPFStream stream)
 {
     nFibNew = stream.ReadShort();
     if (nFibNew == (short)0x0112)
     {
         ReadFibRgCswNewData2007(stream);
     }
     else
     {
         ReadFibRgCswNewData2000(stream);
     }
 }
Exemplo n.º 18
0
        /**
         * Writes this table to the table stream.
         *
         * @param tableStream the table stream to write to.
         * @throws IOException if an error occurs while writing.
         */
        public void WriteTo(HWPFStream tableStream)
        {
            byte[] header = new byte[6];
            LittleEndian.PutShort(header, 0, unknownValue);
            LittleEndian.PutInt(header, 2, entries.Length * 2);
            tableStream.Write(header);

            for (int i = 0; i < entries.Length; i++)
            {
                WriteStringValue(tableStream, entries[i].GetUserName());
                WriteStringValue(tableStream, entries[i].GetSaveLocation());
            }
        }
Exemplo n.º 19
0
        public void WriteTo(HWPFStream docStream,
                            HWPFStream tableStream, CharIndexTranslator translator)

        {
            PlexOfCps binTable = new PlexOfCps(4);

            // each FKP must start on a 512 byte page.
            int docOffset = docStream.Offset;
            int mod       = docOffset % POIFSConstants.SMALLER_BIG_BLOCK_SIZE;

            if (mod != 0)
            {
                byte[] pAdding = new byte[POIFSConstants.SMALLER_BIG_BLOCK_SIZE - mod];
                docStream.Write(pAdding);
            }

            // get the page number for the first fkp
            docOffset = docStream.Offset;
            int pageNum = docOffset / POIFSConstants.SMALLER_BIG_BLOCK_SIZE;

            // get the ending fc
            int endingFc = ((PropertyNode)_paragraphs[_paragraphs.Count - 1]).End;


            List <PAPX> overflow = _paragraphs;

            do
            {
                PropertyNode startingProp = (PropertyNode)overflow[0];
                int          start        = translator.GetByteIndex(startingProp.Start);

                PAPFormattedDiskPage pfkp = new PAPFormattedDiskPage(_dataStream);
                pfkp.Fill(overflow);

                byte[] bufFkp = pfkp.ToByteArray(tableStream, translator);
                docStream.Write(bufFkp);
                overflow = pfkp.GetOverflow();

                int end = endingFc;
                if (overflow != null)
                {
                    end = translator.GetByteIndex(overflow[0].Start);
                }

                byte[] intHolder = new byte[4];
                LittleEndian.PutInt(intHolder, pageNum++);
                binTable.AddProperty(new GenericPropertyNode(start, end, intHolder));
            }while (overflow != null);
            byte[] bytes = binTable.ToByteArray();
            tableStream.Write(bytes, 0, bytes.Length);
        }
Exemplo n.º 20
0
        public void WriteTo(byte[] mainStream, HWPFStream tableStream)
        {
            //HWPFOutputStream mainDocument = sys.GetStream("WordDocument");
            //HWPFOutputStream tableStream = sys.GetStream("1Table");

            base.Serialize(mainStream, 0);

            int size = base.GetSize();

            _shortHandler.Serialize(mainStream);
            _longHandler.Serialize(mainStream, size + _shortHandler.SizeInBytes());
            _fieldHandler.WriteTo(mainStream,
                                  base.GetSize() + _shortHandler.SizeInBytes() + _longHandler.SizeInBytes(), tableStream);
        }
Exemplo n.º 21
0
        public void TestReadWriteFromNonZeroOffset()
        {
            HWPFFileSystem fileSys  = new HWPFFileSystem();
            HWPFStream     tableOut = fileSys.GetStream("1Table");

            tableOut.Write(new byte[20]); // 20 bytes of whatever at the front.
            _styleSheet.WriteTo(tableOut);

            byte[] newTableStream = tableOut.ToArray();

            StyleSheet newStyleSheet = new StyleSheet(newTableStream, 20);

            Assert.AreEqual(newStyleSheet, _styleSheet);
        }
Exemplo n.º 22
0
        public void WriteTo(HWPFFileSystem sys)
        {
            HWPFStream tableStream = sys.GetStream("1Table");

            byte[] buf = new byte[LittleEndianConsts.SHORT_SIZE];
            LittleEndian.PutShort(buf, 0, _stringCount);
            tableStream.Write(buf);
            LittleEndian.PutShort(buf, 0, _extraDataSz);
            tableStream.Write(buf);

            for (int i = 0; i < _fontNames.Length; i++)
            {
                tableStream.Write(_fontNames[i].ToArray());
            }
        }
Exemplo n.º 23
0
        /**
         * Writes this table to the table stream.
         *
         * @param tableStream  the table stream to write to.
         * @throws IOException  if an error occurs while writing.
         */
        public void WriteTo(HWPFStream tableStream)
        {
            byte[] header = new byte[6];
            LittleEndian.PutShort(header, 0, fExtend);
            LittleEndian.PutShort(header, 2, cData);
            LittleEndian.PutShort(header, 4, cbExtra);
            tableStream.Write(header);

            foreach (String name in entries)
            {
                byte[] buf = new byte[name.Length * 2 + 2];
                LittleEndian.PutShort(buf, 0, (short)name.Length);
                StringUtil.PutUnicodeLE(name, buf, 2);
                tableStream.Write(buf);
            }
        }
Exemplo n.º 24
0
        public void TestReadWrite()
        {
            HWPFFileSystem fileSys = new HWPFFileSystem();


            HWPFStream tableOut = fileSys.GetStream("1Table");
            HWPFStream mainOut  = fileSys.GetStream("WordDocument");

            _styleSheet.WriteTo(tableOut);

            byte[] newTableStream = tableOut.ToArray();

            StyleSheet newStyleSheet = new StyleSheet(newTableStream, 0);

            Assert.AreEqual(newStyleSheet, _styleSheet);
        }
Exemplo n.º 25
0
 public void Deserialize(HWPFStream stream)
 {
     stream.ReadShort();
     stream.ReadShort();
     stream.ReadShort();
     stream.ReadShort();
     stream.ReadShort();
     stream.ReadShort();
     stream.ReadShort();
     stream.ReadShort();
     stream.ReadShort();
     stream.ReadShort();
     stream.ReadShort();
     stream.ReadShort();
     stream.ReadShort();
     lidFE = stream.ReadShort();
 }
Exemplo n.º 26
0
 public void Deserialize(HWPFStream stream)
 {
     stream.ReadShort();
     stream.ReadShort();
     stream.ReadShort();
     stream.ReadShort();
     stream.ReadShort();
     stream.ReadShort();
     stream.ReadShort();
     stream.ReadShort();
     stream.ReadShort();
     stream.ReadShort();
     stream.ReadShort();
     stream.ReadShort();
     stream.ReadShort();
     lidFE = stream.ReadShort();            
 }
Exemplo n.º 27
0
 public void Deserialize(HWPFStream stream)
 {
     field_1_wIdent = stream.ReadShort();
     field_2_nFib   = stream.ReadShort();
     stream.ReadShort();
     field_4_lid      = stream.ReadShort();
     field_5_pnNext   = stream.ReadShort();
     field_6_flags    = stream.ReadShort();
     field_7_nFibBack = stream.ReadShort();
     field_8_lKey     = stream.ReadInt();
     stream.ReadByte();  //field 9
     field_10_flags = (byte)stream.ReadByte();
     stream.ReadShort(); //reserved3
     stream.ReadShort(); //reserved4
     stream.ReadInt();   //reserved5
     stream.ReadInt();   //reserved6
 }
Exemplo n.º 28
0
 public void Deserialize(HWPFStream stream)
 {
     field_1_wIdent = stream.ReadShort();
     field_2_nFib = stream.ReadShort();
     stream.ReadShort();
     field_4_lid = stream.ReadShort();
     field_5_pnNext = stream.ReadShort();
     field_6_flags = stream.ReadShort();
     field_7_nFibBack = stream.ReadShort();
     field_8_lKey = stream.ReadInt();
     stream.ReadByte();  //field 9
     field_10_flags = (byte)stream.ReadByte();
     stream.ReadShort(); //reserved3
     stream.ReadShort(); //reserved4
     stream.ReadInt();   //reserved5
     stream.ReadInt();   //reserved6
 }
Exemplo n.º 29
0
        public void WritePlcfBkmkl(FileInformationBlock fib,
                                   HWPFStream tableStream)
        {
            if (descriptorsLim == null || descriptorsLim.Length == 0)
            {
                fib.SetFcPlcfbkl(0);
                fib.SetLcbPlcfbkl(0);
                return;
            }

            int start = tableStream.Offset;

            tableStream.Write(descriptorsLim.ToByteArray());
            int end = tableStream.Offset;

            fib.SetFcPlcfbkl(start);
            fib.SetLcbPlcfbkl(end - start);
        }
Exemplo n.º 30
0
        public void WriteTxt(FileInformationBlock fib, HWPFStream tableStream)
        {
            if (textPositions == null || textPositions.Length == 0)
            {
                fib.SetNotesTextPositionsOffset(noteType, tableStream.Offset);
                fib.SetNotesTextPositionsSize(noteType, 0);
                return;
            }

            int start = tableStream.Offset;

            byte[] data = textPositions.ToByteArray();
            tableStream.Write(data);
            int end = tableStream.Offset;

            fib.SetNotesTextPositionsOffset(noteType, start);
            fib.SetNotesTextPositionsSize(noteType, end - start);
        }
Exemplo n.º 31
0
        public void WriteRef(FileInformationBlock fib, HWPFStream tableStream)
        {
            if (descriptors == null || descriptors.Length == 0)
            {
                fib.SetNotesDescriptorsOffset(noteType, tableStream.Offset);
                fib.SetNotesDescriptorsSize(noteType, 0);
                return;
            }

            int start = tableStream.Offset;

            byte[] data = descriptors.ToByteArray();
            tableStream.Write(data);
            int end = tableStream.Offset;

            fib.SetNotesDescriptorsOffset(noteType, start);
            fib.SetNotesDescriptorsSize(noteType, end - start);
        }
Exemplo n.º 32
0
        public void WriteSttbfBkmk(FileInformationBlock fib,
                                   HWPFStream tableStream)
        {
            if (names == null || names.Length == 0)
            {
                fib.SetFcSttbfbkmk(0);
                fib.SetLcbSttbfbkmk(0);
                return;
            }

            int start = tableStream.Offset;

            SttbfUtils.Write(tableStream, names);
            int end = tableStream.Offset;

            fib.SetFcSttbfbkmk(start);
            fib.SetLcbSttbfbkmk(end - start);
        }
Exemplo n.º 33
0
        public void Deserialize(HWPFStream stream)
        {
            fibRgFcLcb2003 = new FibRgFcLcb2003();
            fibRgFcLcb2003.Deserialize(stream);

            fcPlcfmthd = stream.ReadInt();
            lcbPlcfmthd = stream.ReadInt();
            fcSttbfBkmkMoveFrom = stream.ReadInt();
            lcbSttbfBkmkMoveFrom = stream.ReadInt();
            fcPlcfBkfMoveFrom = stream.ReadInt();
            lcbPlcfBkfMoveFrom = stream.ReadInt();
            fcPlcfBklMoveFrom = stream.ReadInt();
            lcbPlcfBklMoveFrom = stream.ReadInt();
            fcSttbfBkmkMoveTo = stream.ReadInt();
            lcbSttbfBkmkMoveTo = stream.ReadInt();
            fcPlcfBkfMoveTo = stream.ReadInt();
            lcbPlcfBkfMoveTo = stream.ReadInt();
            fcPlcfBklMoveTo = stream.ReadInt();
            lcbPlcfBklMoveTo = stream.ReadInt();
            fcUnused1 = stream.ReadInt();
            lcbUnused1 = stream.ReadInt();
            fcUnused2 = stream.ReadInt();
            lcbUnused2 = stream.ReadInt();
            fcUnused3 = stream.ReadInt();
            lcbUnused3 = stream.ReadInt();
            fcSttbfBkmkArto = stream.ReadInt();
            lcbSttbfBkmkArto = stream.ReadInt();
            fcPlcfBkfArto = stream.ReadInt();
            lcbPlcfBkfArto = stream.ReadInt();
            fcPlcfBklArto = stream.ReadInt();
            lcbPlcfBklArto = stream.ReadInt();
            fcArtoData = stream.ReadInt();
            lcbArtoData = stream.ReadInt();
            fcUnused4 = stream.ReadInt();
            lcbUnused4 = stream.ReadInt();
            fcUnused5 = stream.ReadInt();
            lcbUnused5 = stream.ReadInt();
            fcUnused6 = stream.ReadInt();
            lcbUnused6 = stream.ReadInt();
            fcOssTheme = stream.ReadInt();
            lcbOssTheme = stream.ReadInt();
            fcColorSchemeMapping = stream.ReadInt();
            lcbColorSchemeMapping = stream.ReadInt();
        }
Exemplo n.º 34
0
        public void Deserialize(HWPFStream stream)
        {
            fibRgFcLcb2003 = new FibRgFcLcb2003();
            fibRgFcLcb2003.Deserialize(stream);

            fcPlcfmthd            = stream.ReadInt();
            lcbPlcfmthd           = stream.ReadInt();
            fcSttbfBkmkMoveFrom   = stream.ReadInt();
            lcbSttbfBkmkMoveFrom  = stream.ReadInt();
            fcPlcfBkfMoveFrom     = stream.ReadInt();
            lcbPlcfBkfMoveFrom    = stream.ReadInt();
            fcPlcfBklMoveFrom     = stream.ReadInt();
            lcbPlcfBklMoveFrom    = stream.ReadInt();
            fcSttbfBkmkMoveTo     = stream.ReadInt();
            lcbSttbfBkmkMoveTo    = stream.ReadInt();
            fcPlcfBkfMoveTo       = stream.ReadInt();
            lcbPlcfBkfMoveTo      = stream.ReadInt();
            fcPlcfBklMoveTo       = stream.ReadInt();
            lcbPlcfBklMoveTo      = stream.ReadInt();
            fcUnused1             = stream.ReadInt();
            lcbUnused1            = stream.ReadInt();
            fcUnused2             = stream.ReadInt();
            lcbUnused2            = stream.ReadInt();
            fcUnused3             = stream.ReadInt();
            lcbUnused3            = stream.ReadInt();
            fcSttbfBkmkArto       = stream.ReadInt();
            lcbSttbfBkmkArto      = stream.ReadInt();
            fcPlcfBkfArto         = stream.ReadInt();
            lcbPlcfBkfArto        = stream.ReadInt();
            fcPlcfBklArto         = stream.ReadInt();
            lcbPlcfBklArto        = stream.ReadInt();
            fcArtoData            = stream.ReadInt();
            lcbArtoData           = stream.ReadInt();
            fcUnused4             = stream.ReadInt();
            lcbUnused4            = stream.ReadInt();
            fcUnused5             = stream.ReadInt();
            lcbUnused5            = stream.ReadInt();
            fcUnused6             = stream.ReadInt();
            lcbUnused6            = stream.ReadInt();
            fcOssTheme            = stream.ReadInt();
            lcbOssTheme           = stream.ReadInt();
            fcColorSchemeMapping  = stream.ReadInt();
            lcbColorSchemeMapping = stream.ReadInt();
        }
Exemplo n.º 35
0
        public void WriteTo(HWPFFileSystem sys, int fcMin)
        {
            HWPFStream docStream   = sys.GetStream("WordDocument");
            HWPFStream tableStream = sys.GetStream("1Table");

            int       offset = docStream.Offset;
            int       len    = _sections.Count;
            PlexOfCps plex   = new PlexOfCps(SED_SIZE);

            for (int x = 0; x < len; x++)
            {
                SEPX   sepx   = _sections[x];
                byte[] grpprl = sepx.GetGrpprl();

                // write the sepx to the document stream. starts with a 2 byte size
                // followed by the grpprl
                byte[] shortBuf = new byte[2];
                LittleEndian.PutShort(shortBuf, (short)grpprl.Length);

                docStream.Write(shortBuf);
                docStream.Write(grpprl);

                // set the fc in the section descriptor
                SectionDescriptor sed = sepx.GetSectionDescriptor();
                sed.SetFc(offset);

                // add the section descriptor bytes to the PlexOfCps.


                // original line -
                //GenericPropertyNode property = new GenericPropertyNode(sepx.Start, sepx.End, sed.ToArray());

                // Line using Ryan's FCtoCP() conversion method -
                // unable to observe any effect on our testcases when using this code - piers
                GenericPropertyNode property = new GenericPropertyNode(tpt.GetCharIndex(sepx.StartBytes), tpt.GetCharIndex(sepx.EndBytes), sed.ToArray());


                plex.AddProperty(property);

                offset = docStream.Offset;
            }
            tableStream.Write(plex.ToByteArray());
        }
Exemplo n.º 36
0
        public void Deserialize(HWPFStream stream)
        {
            cbRgFcLcb = stream.ReadShort();
            switch (cbRgFcLcb)
            {
            case 0x005D:
                fibRgFcLcb97 = new FibRgFcLcb97();
                fibRgFcLcb97.Deserialize(stream);
                break;

            case 0x006C:
                fibRgFcLcb2000 = new FibRgFcLcb2000();
                fibRgFcLcb2000.Deserialize(stream);
                fibRgFcLcb97 = fibRgFcLcb2000.fibRgFcLcb97;
                break;

            case 0x0088:
                fibRgFcLcb2002 = new FibRgFcLcb2002();
                fibRgFcLcb2002.Deserialize(stream);
                fibRgFcLcb97   = fibRgFcLcb2002.fibRgFcLcb2000.fibRgFcLcb97;
                fibRgFcLcb2000 = fibRgFcLcb2002.fibRgFcLcb2000;
                break;

            case 0x00A4:
                fibRgFcLcb2003 = new FibRgFcLcb2003();
                fibRgFcLcb2003.Deserialize(stream);
                fibRgFcLcb97   = fibRgFcLcb2003.fibRgFcLcb2002.fibRgFcLcb2000.fibRgFcLcb97;
                fibRgFcLcb2000 = fibRgFcLcb2003.fibRgFcLcb2002.fibRgFcLcb2000;
                fibRgFcLcb2002 = fibRgFcLcb2003.fibRgFcLcb2002;
                break;

            case 0x00B7:
                fibRgFcLcb2007 = new FibRgFcLcb2007();
                fibRgFcLcb2007.Deserialize(stream);
                fibRgFcLcb97   = fibRgFcLcb2007.fibRgFcLcb2003.fibRgFcLcb2002.fibRgFcLcb2000.fibRgFcLcb97;
                fibRgFcLcb2000 = fibRgFcLcb2007.fibRgFcLcb2003.fibRgFcLcb2002.fibRgFcLcb2000;
                fibRgFcLcb2002 = fibRgFcLcb2007.fibRgFcLcb2003.fibRgFcLcb2002;
                fibRgFcLcb2003 = fibRgFcLcb2007.fibRgFcLcb2003;
                break;
            }
        }
Exemplo n.º 37
0
        private int SavePlex(FileInformationBlock fib, FieldsDocumentPart part,
                             PlexOfCps plexOfCps, HWPFStream outputStream)
        {
            if (plexOfCps == null || plexOfCps.Length == 0)
            {
                fib.SetFieldsPlcfOffset(part, outputStream.Offset);
                fib.SetFieldsPlcfLength(part, 0);
                return(0);
            }

            byte[] data = plexOfCps.ToByteArray();

            int start  = outputStream.Offset;
            int length = data.Length;

            outputStream.Write(data);

            fib.SetFieldsPlcfOffset(part, start);
            fib.SetFieldsPlcfLength(part, length);

            return(length);
        }
Exemplo n.º 38
0
 public void Deserialize(HWPFStream stream)
 {
     cbRgFcLcb = stream.ReadShort();
     switch (cbRgFcLcb)
     {
         case 0x005D:
             fibRgFcLcb97 = new FibRgFcLcb97();
             fibRgFcLcb97.Deserialize(stream);
             break;
         case 0x006C:
             fibRgFcLcb2000 = new FibRgFcLcb2000();
             fibRgFcLcb2000.Deserialize(stream);
             fibRgFcLcb97 = fibRgFcLcb2000.fibRgFcLcb97;
             break;
         case 0x0088:
             fibRgFcLcb2002 = new FibRgFcLcb2002();
             fibRgFcLcb2002.Deserialize(stream);
             fibRgFcLcb97 = fibRgFcLcb2002.fibRgFcLcb2000.fibRgFcLcb97;
             fibRgFcLcb2000 = fibRgFcLcb2002.fibRgFcLcb2000;
             break;
         case 0x00A4 :
             fibRgFcLcb2003 = new FibRgFcLcb2003();
             fibRgFcLcb2003.Deserialize(stream);
             fibRgFcLcb97 = fibRgFcLcb2003.fibRgFcLcb2002.fibRgFcLcb2000.fibRgFcLcb97;
             fibRgFcLcb2000 = fibRgFcLcb2003.fibRgFcLcb2002.fibRgFcLcb2000;
             fibRgFcLcb2002 = fibRgFcLcb2003.fibRgFcLcb2002;
             break;
         case 0x00B7:
             fibRgFcLcb2007 = new FibRgFcLcb2007();
             fibRgFcLcb2007.Deserialize(stream);
             fibRgFcLcb97 = fibRgFcLcb2007.fibRgFcLcb2003.fibRgFcLcb2002.fibRgFcLcb2000.fibRgFcLcb97;
             fibRgFcLcb2000 = fibRgFcLcb2007.fibRgFcLcb2003.fibRgFcLcb2002.fibRgFcLcb2000;
             fibRgFcLcb2002 = fibRgFcLcb2007.fibRgFcLcb2003.fibRgFcLcb2002;
             fibRgFcLcb2003 = fibRgFcLcb2007.fibRgFcLcb2003;
             break;
     }
 }
Exemplo n.º 39
0
        public void Deserialize(HWPFStream stream)
        {
            fibRgFcLcb97 = new FibRgFcLcb97();
            fibRgFcLcb97.Deserialize(stream);

            fcPlcfTch = stream.ReadInt();
            lcbPlcfTch = stream.ReadInt();
            fcRmdThreading = stream.ReadInt();
            lcbRmdThreading = stream.ReadInt();
            fcMid = stream.ReadInt();
            lcbMid = stream.ReadInt();
            fcSttbRgtplc = stream.ReadInt();
            lcbSttbRgtplc = stream.ReadInt();
            fcMsoEnvelope = stream.ReadInt();
            lcbMsoEnvelope = stream.ReadInt();
            fcPlcfLad = stream.ReadInt();
            lcbPlcfLad = stream.ReadInt();
            fcRgDofr = stream.ReadInt();
            lcbRgDofr = stream.ReadInt();
            fcPlcosl = stream.ReadInt();
            lcbPlcosl = stream.ReadInt();
            fcPlcfCookieOld = stream.ReadInt();
            lcbPlcfCookieOld = stream.ReadInt();
            fcPgdMotherOld = stream.ReadInt();
            lcbPgdMotherOld = stream.ReadInt();
            fcBkdMotherOld = stream.ReadInt();
            lcbBkdMotherOld = stream.ReadInt();
            fcPgdFtnOld = stream.ReadInt();
            lcbPgdFtnOld = stream.ReadInt();
            fcBkdFtnOld = stream.ReadInt();
            lcbBkdFtnOld = stream.ReadInt();
            fcPgdEdnOld = stream.ReadInt();
            lcbPgdEdnOld = stream.ReadInt();
            fcBkdEdnOld = stream.ReadInt();
            lcbBkdEdnOld = stream.ReadInt();
            
        }
Exemplo n.º 40
0
 public void Deserialize(HWPFStream stream)
 {
     fcStshfOrig = stream.ReadInt();
     lcbStshfOrig = stream.ReadInt();
     fcStshf = stream.ReadInt();
     lcbStshf = stream.ReadInt();
     fcPlcffndRef = stream.ReadInt();
     lcbPlcffndRef = stream.ReadInt();
     fcPlcffndTxt = stream.ReadInt();
     lcbPlcffndTxt = stream.ReadInt();
     fcPlcfandRef = stream.ReadInt();
     lcbPlcfandRef = stream.ReadInt();
     fcPlcfandTxt = stream.ReadInt();
     lcbPlcfandTxt = stream.ReadInt();
     fcPlcfSed = stream.ReadInt();
     lcbPlcfSed = stream.ReadInt();
     fcPlcPad = stream.ReadInt();
     lcbPlcPad = stream.ReadInt();
     fcPlcfPhe = stream.ReadInt();
     lcbPlcfPhe = stream.ReadInt();
     fcSttbfGlsy = stream.ReadInt();
     lcbSttbfGlsy = stream.ReadInt();
     fcPlcfGlsy = stream.ReadInt();
     lcbPlcfGlsy = stream.ReadInt();
     fcPlcfHdd = stream.ReadInt();
     lcbPlcfHdd = stream.ReadInt();
     fcPlcfBteChpx = stream.ReadInt();
     lcbPlcfBteChpx = stream.ReadInt();
     fcPlcfBtePapx = stream.ReadInt();
     lcbPlcfBtePapx = stream.ReadInt();
     fcPlcfSea = stream.ReadInt();
     lcbPlcfSea = stream.ReadInt();
     fcSttbfFfn = stream.ReadInt();
     lcbSttbfFfn = stream.ReadInt();
     fcPlcfFldMom = stream.ReadInt();
     lcbPlcfFldMom = stream.ReadInt();
     fcPlcfFldHdr = stream.ReadInt();
     lcbPlcfFldHdr = stream.ReadInt();
     fcPlcfFldFtn = stream.ReadInt();
     lcbPlcfFldFtn = stream.ReadInt();
     fcPlcfFldAtn = stream.ReadInt();
     lcbPlcfFldAtn = stream.ReadInt();
     fcPlcfFldMcr = stream.ReadInt();
     lcbPlcfFldMcr = stream.ReadInt();
     fcSttbfBkmk = stream.ReadInt();
     lcbSttbfBkmk = stream.ReadInt();
     fcPlcfBkf = stream.ReadInt();
     lcbPlcfBkf = stream.ReadInt();
     fcPlcfBkl = stream.ReadInt();
     lcbPlcfBkl = stream.ReadInt();
     fcCmds = stream.ReadInt();
     lcbCmds = stream.ReadInt();
     fcUnused1 = stream.ReadInt();
     lcbUnused1 = stream.ReadInt();
     fcSttbfMcr = stream.ReadInt();
     lcbSttbfMcr = stream.ReadInt();
     fcPrDrvr = stream.ReadInt();
     lcbPrDrvr = stream.ReadInt();
     fcPrEnvPort = stream.ReadInt();
     lcbPrEnvPort = stream.ReadInt();
     fcPrEnvLand = stream.ReadInt();
     lcbPrEnvLand = stream.ReadInt();
     fcWss = stream.ReadInt();
     lcbWss = stream.ReadInt();
     fcDop = stream.ReadInt();
     lcbDop = stream.ReadInt();
     fcSttbfAssoc = stream.ReadInt();
     lcbSttbfAssoc = stream.ReadInt();
     fcClx = stream.ReadInt();
     lcbClx = stream.ReadInt();
     fcPlcfPgdFtn = stream.ReadInt();
     lcbPlcfPgdFtn = stream.ReadInt();
     fcAutosaveSource = stream.ReadInt();
     lcbAutosaveSource = stream.ReadInt();
     fcGrpXstAtnOwners = stream.ReadInt();
     lcbGrpXstAtnOwners = stream.ReadInt();
     fcSttbfAtnBkmk = stream.ReadInt();
     lcbSttbfAtnBkmk = stream.ReadInt();
     fcUnused2 = stream.ReadInt();
     lcbUnused2 = stream.ReadInt();
     fcUnused3 = stream.ReadInt();
     lcbUnused3 = stream.ReadInt();
     fcPlcSpaMom = stream.ReadInt();
     lcbPlcSpaMom = stream.ReadInt();
     fcPlcSpaHdr = stream.ReadInt();
     lcbPlcSpaHdr = stream.ReadInt();
     fcPlcfAtnBkf = stream.ReadInt();
     lcbPlcfAtnBkf = stream.ReadInt();
     fcPlcfAtnBkl = stream.ReadInt();
     lcbPlcfAtnBkl = stream.ReadInt();
     fcPms = stream.ReadInt();
     lcbPms = stream.ReadInt();
     fcFormFldSttbs = stream.ReadInt();
     lcbFormFldSttbs = stream.ReadInt();
     fcPlcfendRef = stream.ReadInt();
     lcbPlcfendRef = stream.ReadInt();
     fcPlcfendTxt = stream.ReadInt();
     lcbPlcfendTxt = stream.ReadInt();
     fcPlcfFldEdn = stream.ReadInt();
     lcbPlcfFldEdn = stream.ReadInt();
     fcUnused4 = stream.ReadInt();
     lcbUnused4 = stream.ReadInt();
     fcDggInfo = stream.ReadInt();
     lcbDggInfo = stream.ReadInt();
     fcSttbfRMark = stream.ReadInt();
     lcbSttbfRMark = stream.ReadInt();
     fcSttbfCaption = stream.ReadInt();
     lcbSttbfCaption = stream.ReadInt();
     fcSttbfAutoCaption = stream.ReadInt();
     lcbSttbfAutoCaption = stream.ReadInt();
     fcPlcfWkb = stream.ReadInt();
     lcbPlcfWkb = stream.ReadInt();
     fcPlcfSpl = stream.ReadInt();
     lcbPlcfSpl = stream.ReadInt();
     fcPlcftxbxTxt = stream.ReadInt();
     lcbPlcftxbxTxt = stream.ReadInt();
     fcPlcfFldTxbx = stream.ReadInt();
     lcbPlcfFldTxbx = stream.ReadInt();
     fcPlcfHdrtxbxTxt = stream.ReadInt();
     lcbPlcfHdrtxbxTxt = stream.ReadInt();
     fcPlcffldHdrTxbx = stream.ReadInt();
     lcbPlcffldHdrTxbx = stream.ReadInt();
     fcStwUser = stream.ReadInt();
     lcbStwUser = stream.ReadInt();
     fcSttbTtmbd = stream.ReadInt();
     lcbSttbTtmbd = stream.ReadInt();
     fcCookieData = stream.ReadInt();
     lcbCookieData = stream.ReadInt();
     fcPgdMotherOldOld = stream.ReadInt();
     lcbPgdMotherOldOld = stream.ReadInt();
     fcBkdMotherOldOld = stream.ReadInt();
     lcbBkdMotherOldOld = stream.ReadInt();
     fcPgdFtnOldOld = stream.ReadInt();
     lcbPgdFtnOldOld = stream.ReadInt();
     fcBkdFtnOldOld = stream.ReadInt();
     lcbBkdFtnOldOld = stream.ReadInt();
     fcPgdEdnOldOld = stream.ReadInt();
     lcbPgdEdnOldOld = stream.ReadInt();
     fcBkdEdnOldOld = stream.ReadInt();
     lcbBkdEdnOldOld = stream.ReadInt();
     fcSttbfIntlFld = stream.ReadInt();
     lcbSttbfIntlFld = stream.ReadInt();
     fcRouteSlip = stream.ReadInt();
     lcbRouteSlip = stream.ReadInt();
     fcSttbSavedBy = stream.ReadInt();
     lcbSttbSavedBy = stream.ReadInt();
     fcSttbFnm = stream.ReadInt();
     lcbSttbFnm = stream.ReadInt();
     fcPlfLst = stream.ReadInt();
     lcbPlfLst = stream.ReadInt();
     fcPlfLfo = stream.ReadInt();
     lcbPlfLfo = stream.ReadInt();
     fcPlcfTxbxBkd = stream.ReadInt();
     lcbPlcfTxbxBkd = stream.ReadInt();
     fcPlcfTxbxHdrBkd = stream.ReadInt();
     lcbPlcfTxbxHdrBkd = stream.ReadInt();
     fcDocUndoWord9 = stream.ReadInt();
     lcbDocUndoWord9 = stream.ReadInt();
     fcRgbUse = stream.ReadInt();
     lcbRgbUse = stream.ReadInt();
     fcUsp = stream.ReadInt();
     lcbUsp = stream.ReadInt();
     fcUskf = stream.ReadInt();
     lcbUskf = stream.ReadInt();
     fcPlcupcRgbUse = stream.ReadInt();
     lcbPlcupcRgbUse = stream.ReadInt();
     fcPlcupcUsp = stream.ReadInt();
     lcbPlcupcUsp = stream.ReadInt();
     fcSttbGlsyStyle = stream.ReadInt();
     lcbSttbGlsyStyle = stream.ReadInt();
     fcPlgosl = stream.ReadInt();
     lcbPlgosl = stream.ReadInt();
     fcPlcocx = stream.ReadInt();
     lcbPlcocx = stream.ReadInt();
     fcPlcfBteLvc = stream.ReadInt();
     lcbPlcfBteLvc = stream.ReadInt();
     dwLowDateTime = stream.ReadInt();
     dwHighDateTime = stream.ReadInt();
     fcPlcfLvcPre10 = stream.ReadInt();
     lcbPlcfLvcPre10 = stream.ReadInt();
     fcPlcfAsumy = stream.ReadInt();
     lcbPlcfAsumy = stream.ReadInt();
     fcPlcfGram = stream.ReadInt();
     lcbPlcfGram = stream.ReadInt();
     fcSttbListNames = stream.ReadInt();
     lcbSttbListNames = stream.ReadInt();
     fcSttbfUssr = stream.ReadInt();
     lcbSttbfUssr = stream.ReadInt();
 }
Exemplo n.º 41
0
        public void Deserialize(HWPFStream stream)
        {
            fibRgFcLcb2000 = new FibRgFcLcb2000();
            fibRgFcLcb2000.Deserialize(stream);

            fcUnused1 = stream.ReadInt();
            lcbUnused1 = stream.ReadInt();
            fcPlcfPgp = stream.ReadInt();
            lcbPlcfPgp = stream.ReadInt();
            fcPlcfuim = stream.ReadInt();
            lcbPlcfuim = stream.ReadInt();
            fcPlfguidUim = stream.ReadInt();
            lcbPlfguidUim = stream.ReadInt();
            fcAtrdExtra = stream.ReadInt();
            lcbAtrdExtra = stream.ReadInt();
            fcPlrsid = stream.ReadInt();
            lcbPlrsid = stream.ReadInt();
            fcSttbfBkmkFactoid = stream.ReadInt();
            lcbSttbfBkmkFactoid = stream.ReadInt();
            fcPlcfBkfFactoid = stream.ReadInt();
            lcbPlcfBkfFactoid = stream.ReadInt();
            fcPlcpublicfcookie = stream.ReadInt();
            lcbPlcpublicfcookie = stream.ReadInt();
            fcPlcfBklFactoid = stream.ReadInt();
            lcbPlcfBklFactoid = stream.ReadInt();
            fcFactoidData = stream.ReadInt();
            lcbFactoidData = stream.ReadInt();
            fcDocUndo = stream.ReadInt();
            lcbDocUndo = stream.ReadInt();
            fcSttbfBkmkFcc = stream.ReadInt();
            lcbSttbfBkmkFcc = stream.ReadInt();
            fcPlcfBkfFcc = stream.ReadInt();
            lcbPlcfBkfFcc = stream.ReadInt();
            fcPlcfBklFcc = stream.ReadInt();
            lcbPlcfBklFcc = stream.ReadInt();
            fcSttbfbkmkBPRepairs = stream.ReadInt();
            lcbSttbfbkmkBPRepairs = stream.ReadInt();
            fcPlcfbkfBPRepairs = stream.ReadInt();
            lcbPlcfbkfBPRepairs = stream.ReadInt();
            fcPlcfbklBPRepairs = stream.ReadInt();
            lcbPlcfbklBPRepairs = stream.ReadInt();
            fcPmsNew = stream.ReadInt();
            lcbPmsNew = stream.ReadInt();
            fcODSO = stream.ReadInt();
            lcbODSO = stream.ReadInt();
            fcPlcfpmiOldXP = stream.ReadInt();
            lcbPlcfpmiOldXP = stream.ReadInt();
            fcPlcfpmiNewXP = stream.ReadInt();
            lcbPlcfpmiNewXP = stream.ReadInt();
            fcPlcfpmiMixedXP = stream.ReadInt();
            lcbPlcfpmiMixedXP = stream.ReadInt();
            fcUnused2 = stream.ReadInt();
            lcbUnused2 = stream.ReadInt();
            fcPlcffactoid = stream.ReadInt();
            lcbPlcffactoid = stream.ReadInt();
            fcPlcflvcOldXP = stream.ReadInt();
            lcbPlcflvcOldXP = stream.ReadInt();
            fcPlcflvcNewXP = stream.ReadInt();
            lcbPlcflvcNewXP = stream.ReadInt();
            fcPlcflvcMixedXP = stream.ReadInt();
            lcbPlcflvcMixedXP = stream.ReadInt();
        }
Exemplo n.º 42
0
        public void Deserialize(HWPFStream stream)
        {
            fibRgFcLcb2002 = new FibRgFcLcb2002();
            fibRgFcLcb2002.Deserialize(stream);

            fcHplxsdr = stream.ReadInt();
            lcbHplxsdr = stream.ReadInt();
            fcSttbfBkmkSdt = stream.ReadInt();
            lcbSttbfBkmkSdt = stream.ReadInt();
            fcPlcfBkfSdt = stream.ReadInt();
            lcbPlcfBkfSdt = stream.ReadInt();
            fcPlcfBklSdt = stream.ReadInt();
            lcbPlcfBklSdt = stream.ReadInt();
            fcCustomXForm = stream.ReadInt();
            lcbCustomXForm = stream.ReadInt();
            fcSttbfBkmkProt = stream.ReadInt();
            lcbSttbfBkmkProt = stream.ReadInt();
            fcPlcfBkfProt = stream.ReadInt();
            lcbPlcfBkfProt = stream.ReadInt();
            fcPlcfBklProt = stream.ReadInt();
            lcbPlcfBklProt = stream.ReadInt();
            fcSttbProtUser = stream.ReadInt();
            lcbSttbProtUser = stream.ReadInt();
            fcUnused = stream.ReadInt();
            lcbUnused = stream.ReadInt();
            fcPlcfpmiOld = stream.ReadInt();
            lcbPlcfpmiOld = stream.ReadInt();
            fcPlcfpmiOldInline = stream.ReadInt();
            lcbPlcfpmiOldInline = stream.ReadInt();
            fcPlcfpmiNew = stream.ReadInt();
            lcbPlcfpmiNew = stream.ReadInt();
            fcPlcfpmiNewInline = stream.ReadInt();
            lcbPlcfpmiNewInline = stream.ReadInt();
            fcPlcflvcOld = stream.ReadInt();
            lcbPlcflvcOld = stream.ReadInt();
            fcPlcflvcOldInline = stream.ReadInt();
            lcbPlcflvcOldInline = stream.ReadInt();
            fcPlcflvcNew = stream.ReadInt();
            lcbPlcflvcNew = stream.ReadInt();
            fcPlcflvcNewInline = stream.ReadInt();
            lcbPlcflvcNewInline = stream.ReadInt();
            fcPgdMother = stream.ReadInt();
            lcbPgdMother = stream.ReadInt();
            fcBkdMother = stream.ReadInt();
            lcbBkdMother = stream.ReadInt();
            fcAfdMother = stream.ReadInt();
            lcbAfdMother = stream.ReadInt();
            fcPgdFtn = stream.ReadInt();
            lcbPgdFtn = stream.ReadInt();
            fcBkdFtn = stream.ReadInt();
            lcbBkdFtn = stream.ReadInt();
            fcAfdFtn = stream.ReadInt();
            lcbAfdFtn = stream.ReadInt();
            fcPgdEdn = stream.ReadInt();
            lcbPgdEdn = stream.ReadInt();
            fcBkdEdn = stream.ReadInt();
            lcbBkdEdn = stream.ReadInt();
            fcAfdEdn = stream.ReadInt();
            lcbAfdEdn = stream.ReadInt();
            fcAfd = stream.ReadInt();
            lcbAfd = stream.ReadInt();
        }
Exemplo n.º 43
0
 private void ReadFibRgCswNewData2000(HWPFStream stream)
 {
     this.cQuickSavesNew = stream.ReadShort();
 }