Example #1
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);
        }
Example #2
0
File: FIB.cs Project: 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);
 }
Example #3
0
 private void ReadFibRgCswNewData2007(HWPFStream stream)
 {
     ReadFibRgCswNewData2000(stream);
     stream.ReadShort();     //lidThemeOther
     stream.ReadShort();     //lidThemeFE
     stream.ReadShort();     //lidThemeCS
 }
Example #4
0
 private void ReadFibRgCswNewData2007(HWPFStream stream)
 {
     ReadFibRgCswNewData2000(stream);
     stream.ReadShort();     //lidThemeOther
     stream.ReadShort();     //lidThemeFE
     stream.ReadShort();     //lidThemeCS
 }
Example #5
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
 }
Example #6
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
 }
Example #7
0
 public void Deserialize(HWPFStream stream)
 {
     nFibNew = stream.ReadShort();
     if (nFibNew == (short)0x0112)
     {
         ReadFibRgCswNewData2007(stream);
     }
     else
     {
         ReadFibRgCswNewData2000(stream);
     }            
 }
Example #8
0
 public void Deserialize(HWPFStream stream)
 {
     nFibNew = stream.ReadShort();
     if (nFibNew == (short)0x0112)
     {
         ReadFibRgCswNewData2007(stream);
     }
     else
     {
         ReadFibRgCswNewData2000(stream);
     }
 }
Example #9
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;
            }
        }
Example #10
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;
     }
 }
Example #11
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();            
 }
Example #12
0
 private void ReadFibRgCswNewData2000(HWPFStream stream)
 {
     this.cQuickSavesNew = stream.ReadShort();
 }
Example #13
0
 private void ReadFibRgCswNewData2000(HWPFStream stream)
 {
     this.cQuickSavesNew = stream.ReadShort();
 }
Example #14
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();
 }