Beispiel #1
0
    internal void method_2(RowFormat A_0, int A_1, NFibEnum A_2)
    {
        this.class732_0 = new Class732();
        A_0.SetAttr(0x13ec, this.class732_0);
        int position = (int)this.binaryReader_0.BaseStream.Position;
        int num2     = this.binaryReader_0.ReadByte();

        int[] numArray = new int[num2 + 1];
        for (int i = 0; i < numArray.Length; i++)
        {
            numArray[i] = this.binaryReader_0.ReadInt16();
        }
        A_0.SetAttr(0x13f2, numArray);
        A_0.SetAttr(0x13ee, numArray[0]);
        for (int j = 0; j < num2; j++)
        {
            CellFormat format = new CellFormat();
            int        num6   = ((int)this.binaryReader_0.BaseStream.Position) - position;
            if (num6 < A_1)
            {
                Class354.smethod_0(this.binaryReader_0, format);
            }
            int num5 = numArray[j + 1] - numArray[j];
            format.Cellx         = (short)numArray[j + 1];
            format.TwipCellWidth = num5;
            if (A_2 <= NFibEnum.Word97)
            {
                format.WidthUnit = FtsWidth.Point;
                format.CellWidth = ((float)num5) / 20f;
            }
            else if ((A_2 <= NFibEnum.Word2000) && (!format.method_6(0xbc6) || !format.method_6(0xbc4)))
            {
                format.WidthUnit = FtsWidth.Point;
                format.CellWidth = ((float)num5) / 20f;
            }
            this.class732_0.Add(format);
        }
    }
Beispiel #2
0
 internal Class432 method_68(Class13 A_0)
 {
     base.class345_0.BaseStream.Position = 0L;
     base.wordAttrCollection_0           = A_0.Interface8.imethod_3();
     if (A_0.Istd >= 15)
     {
         base.class345_0.method_1(SprmCode.TIstd, A_0.Istd);
     }
     this.method_87(true);
     this.method_91(SprmCode.TWidthBefore, 0x109a);
     Class592.smethod_2(this.method_93(), SprmCode.TCellPaddingDefault, this, icomparer_1);
     this.method_91(SprmCode.TLeftIndent, 0x10f4);
     foreach (ConditionalFormattingCode code in A_0.method_25().Keys)
     {
         CellFormat format = A_0.method_25()[code].method_24();
         if (format != null)
         {
             long num = base.method_36(SprmCode.TCnf, code);
             if (format.method_6(0xbf4))
             {
                 base.class345_0.method_0(SprmCode.TCellVertAlignStyle, (byte)format.VerticalAlignment);
             }
             base.method_31(SprmCode.TCellBrcTopStyle, format.Borders.Top);
             base.method_31(SprmCode.TCellBrcBottomStyle, format.Borders.Bottom);
             base.method_31(SprmCode.TCellBrcLeftStyle, format.Borders.Left);
             base.method_31(SprmCode.TCellBrcRightStyle, format.Borders.Top);
             base.method_31(SprmCode.TCellBrcInsideHStyle, format.Borders.Horizontal);
             base.method_31(SprmCode.TCellBrcInsideVStyle, format.Borders.Vertical);
             base.method_31(SprmCode.TCellBrcTL2BRStyle, format.Borders.DiagonalUp);
             base.method_31(SprmCode.TCellBrcTR2BLStyle, format.Borders.DiagonalDown);
             base.method_35(SprmCode.TCellShdStyle, format.method_31(0xc62));
             base.method_37(num);
         }
     }
     if (base.wordAttrCollection_0.method_6(0x1194))
     {
         base.class345_0.method_0(SprmCode.TCHorzBands, (int)((long)base.wordAttrCollection_0.method_31(0x1194)));
     }
     if (base.wordAttrCollection_0.method_6(0x119e))
     {
         base.class345_0.method_0(SprmCode.TCVertBands, (int)((long)base.wordAttrCollection_0.method_31(0x119e)));
     }
     base.method_35(SprmCode.TCellShdStyle, A_0.Interface8.imethod_1().method_31(0xc62));
     return(new Class432(base.method_2()));
 }