Exemplo n.º 1
0
    private static void smethod_3(Table A_0)
    {
        TableRow row = A_0.Rows[0];
        int      num = (int)row.RowFormat.method_31(0x13ee);

        foreach (TableRow row3 in A_0.Rows)
        {
            int num5 = (int)row3.RowFormat.method_31(0x13ee);
            if (num5 < num)
            {
                num = num5;
                row = row3;
            }
        }
        int num6 = (int)((((row.Cells[0] == null) || !row.Cells[0].CellFormat.HasKey(0xc12)) ? row.RowFormat.Paddings.Left : row.Cells[0].CellFormat.Paddings.Left) * 20f);
        int num2 = num6 + ((int)row.RowFormat.method_31(0x13ee));

        foreach (TableRow row2 in A_0.Rows)
        {
            RowFormat rowFormat = row2.RowFormat;
            int       num4      = ((int)rowFormat.method_31(0x13ee)) - num;
            if (num4 != 0)
            {
                rowFormat.GridBeforeWidth.method_50((float)num4);
            }
            int num3 = (int)Math.Round((double)(rowFormat.LeftIndent * 20f));
            if (((num2 != 0) && (num != 0)) && (!rowFormat.method_6(0x10f4) || (rowFormat.method_6(0x13ee) && (Class59.smethod_4((float)num3, (float)num2, 0.001f) != 0))))
            {
                rowFormat.LeftIndent = ((float)num2) / 20f;
            }
            rowFormat.Remove(0x13ee);
        }
    }
Exemplo n.º 2
0
 private void method_71()
 {
     if (base.binaryReader_0.ReadBoolean())
     {
         RowFormat format = (RowFormat)this.method_93().FormatRevision.method_4();
         if (!format.method_6(0x13ec))
         {
             Class732 class3 = new Class732();
             format.SetAttr(0x13ec, class3);
             Class732 class2 = (Class732)((RowFormat)base.wordAttrCollection_0).method_31(0x13ec);
             for (int i = 0; i < class2.Count; i++)
             {
                 CellFormat format2 = new CellFormat();
                 class3.Add(format2);
             }
         }
         base.wordAttrCollection_0 = format;
     }
 }