Beispiel #1
0
 private void method_20()
 {
     if (this.bool_1)
     {
         RowFormat rowFormat = this.table_0.FirstRow.RowFormat;
         this.bool_3 = rowFormat.HasKey(0xfdc);
         this.bool_4 = rowFormat.HasKey(0xff0);
         this.bool_5 = rowFormat.HasKey(0xfd2);
         this.bool_6 = rowFormat.HasKey(0xfe6);
         this.bool_7 = rowFormat.HasKey(0xffa);
         this.bool_8 = rowFormat.HasKey(0x1004);
         Border border = new Border {
             BorderType = BorderStyle.None,
             LineWidth  = 0f,
             Color      = Color.Empty
         };
         bool flag = (((this.bool_3 || this.bool_4) || (this.bool_5 || this.bool_6)) || this.bool_7) || this.bool_8;
         this.border_0 = flag ? border : null;
     }
     for (int i = 0; i < this.class982_0.Count; i++)
     {
         Class477 class2 = this.class982_0.method_0(i);
         for (int j = 0; this.method_21(class2.method_1()[j], i, j); j++)
         {
         }
         for (int k = this.method_9() - 1; this.method_21(class2.method_1()[k], i, k); k--)
         {
         }
     }
 }
Beispiel #2
0
    private void method_17(Class477 A_0)
    {
        int num  = smethod_2(A_0.method_0());
        int num2 = this.class656_0.method_14(num);

        for (int i = 0; i < num2; i++)
        {
            A_0.method_1()[i] = Class925.smethod_2();
        }
        int num6 = smethod_3(A_0.method_0(), A_0.method_0().Cells.Count);
        int num4 = this.class656_0.method_14(num6);

        for (int j = num4; j < this.method_9(); j++)
        {
            A_0.method_1()[j] = Class925.smethod_2();
        }
        if ((num2 > 0) || (num4 < this.method_9()))
        {
            this.bool_9  = true;
            this.bool_10 = true;
        }
    }
Beispiel #3
0
    private void method_14()
    {
        RowCollection rows  = this.table_0.Rows;
        int           count = rows.Count;

        for (int i = 0; i < count; i++)
        {
            Class477 class2 = new Class477(this.method_9(), rows[i]);
            this.class982_0.Add(class2);
            this.method_17(class2);
            CellCollection cells = class2.method_0().Cells;
            int            num9  = cells.Count;
            for (int j = 0; j < num9; j++)
            {
                int        num4       = 0;
                float      width      = 0f;
                Section    section    = this.table_0.method_55();
                TableCell  cell4      = cells[j];
                CellFormat cellFormat = cell4.CellFormat;
                if (((cell4.CellWidthType == CellWidthType.Auto) && (cellFormat.HorizontalMerge != CellMerge.Continue)) && (cellFormat.VerticalMerge != CellMerge.Continue))
                {
                    if (this.table_0.PreferredTableWidth.method_51() == FtsWidth.Percentage)
                    {
                        if (this.table_0.IsInCell)
                        {
                            TableCell owner = this.table_0.Owner as TableCell;
                            if (owner.CellWidthType == CellWidthType.Percentage)
                            {
                                float num15 = owner.CellFormat.SamePaddingsAsTable ? owner.OwnerRow.OwnerTable.TableFormat.Paddings.PaddingWidth : owner.CellFormat.Paddings.PaddingWidth;
                                width = ((owner.Scaling / 100f) * section.PageSetup.ClientWidth) - num15;
                            }
                            else if (owner.CellWidthType == CellWidthType.Auto)
                            {
                                width = section.PageSetup.ClientWidth - this.table_0.TableFormat.Paddings.PaddingWidth;
                            }
                            else
                            {
                                width = owner.Width;
                            }
                        }
                        else
                        {
                            width = (section.PageSetup.ClientWidth * this.table_0.PreferredTableWidth.method_49()) / 100f;
                        }
                    }
                    else if (this.table_0.PreferredTableWidth.method_51() == FtsWidth.Auto)
                    {
                        if (this.table_0.IsInCell)
                        {
                            TableCell cell2 = this.table_0.Owner as TableCell;
                            if (cell2.CellWidthType == CellWidthType.Percentage)
                            {
                                float num11 = cell2.CellFormat.SamePaddingsAsTable ? cell2.OwnerRow.OwnerTable.TableFormat.Paddings.PaddingWidth : cell2.CellFormat.Paddings.PaddingWidth;
                                width = ((cell2.Scaling / 100f) * section.PageSetup.ClientWidth) - num11;
                            }
                            else if (cell2.CellWidthType == CellWidthType.Auto)
                            {
                                width = section.PageSetup.ClientWidth - this.table_0.TableFormat.Paddings.PaddingWidth;
                            }
                            else
                            {
                                width = cell2.Width;
                            }
                        }
                        else
                        {
                            width = section.PageSetup.ClientWidth - this.table_0.TableFormat.Paddings.PaddingWidth;
                        }
                    }
                    else
                    {
                        width = this.table_0.PreferredTableWidth.method_49();
                    }
                    num4 = (int)((width / ((float)num9)) * 20f);
                }
                else if (cell4.CellWidthType == CellWidthType.Percentage)
                {
                    if (this.table_0.PreferredTableWidth.method_51() == FtsWidth.Percentage)
                    {
                        if (this.table_0.IsInCell)
                        {
                            TableCell cell7 = this.table_0.Owner as TableCell;
                            if (cell7.CellWidthType == CellWidthType.Percentage)
                            {
                                float num17 = cell7.CellFormat.SamePaddingsAsTable ? cell7.OwnerRow.OwnerTable.TableFormat.Paddings.PaddingWidth : cell7.CellFormat.Paddings.PaddingWidth;
                                width = ((cell7.Scaling / 100f) * section.PageSetup.ClientWidth) - num17;
                            }
                            else if (cell7.CellWidthType == CellWidthType.Auto)
                            {
                                width = section.PageSetup.ClientWidth - this.table_0.TableFormat.Paddings.PaddingWidth;
                            }
                            else
                            {
                                width = cell7.Width;
                            }
                        }
                        else
                        {
                            width = (section.PageSetup.ClientWidth * this.table_0.PreferredTableWidth.method_49()) / 100f;
                        }
                    }
                    else if (this.table_0.PreferredTableWidth.method_51() == FtsWidth.Auto)
                    {
                        if (this.table_0.IsInCell)
                        {
                            TableCell cell = this.table_0.Owner as TableCell;
                            if (cell.CellWidthType == CellWidthType.Percentage)
                            {
                                float num16 = cell.CellFormat.SamePaddingsAsTable ? cell.OwnerRow.OwnerTable.TableFormat.Paddings.PaddingWidth : cell.CellFormat.Paddings.PaddingWidth;
                                width = ((cell.Scaling / 100f) * section.PageSetup.ClientWidth) - num16;
                            }
                            else if (cell.CellWidthType == CellWidthType.Auto)
                            {
                                width = section.PageSetup.ClientWidth - this.table_0.TableFormat.Paddings.PaddingWidth;
                            }
                            else
                            {
                                width = cell.Width;
                            }
                        }
                        else
                        {
                            width = section.PageSetup.ClientWidth - this.table_0.TableFormat.Paddings.PaddingWidth;
                        }
                    }
                    else
                    {
                        width = this.table_0.PreferredTableWidth.method_49();
                    }
                    num4 = (int)(((cell4.Scaling * width) / 100f) * 20f);
                }
                else
                {
                    num4 = (int)(cellFormat.CellWidthEx * 20f);
                }
                if (((cellFormat.HorizontalMerge != CellMerge.Continue) && (cellFormat.VerticalMerge != CellMerge.Continue)) || (num4 != 0))
                {
                    Class925 class3 = Class925.smethod_0(cellFormat, cell4);
                    int      num12  = smethod_3(class2.method_0(), j);
                    int      index  = this.class656_0.method_14(num12);
                    int      num13  = num12 + num4;
                    int      num6   = this.class656_0.method_14(num13);
                    class2.method_1()[index] = class3;
                    TableCell cell6 = cell4;
                    TableCell cell5 = cell4;
                    if (cellFormat.HorizontalMerge == CellMerge.Start)
                    {
                        for (int m = j + 1; m < num9; m++)
                        {
                            TableCell cell8 = cells[m];
                            if (cell8.CellFormat.HorizontalMerge != CellMerge.Continue)
                            {
                                break;
                            }
                            cell6 = cell8;
                        }
                    }
                    if (cellFormat.VerticalMerge == CellMerge.Start)
                    {
                        for (int n = i + 1; n < count; n++)
                        {
                            TableCell cell9 = smethod_4(rows[n], num12);
                            if ((cell9 == null) || (cell9.CellFormat.VerticalMerge != CellMerge.Continue))
                            {
                                break;
                            }
                            cell5 = cell9;
                        }
                    }
                    CellFormat format2 = class3.method_0();
                    this.method_15(format2, cell4, 0xc26);
                    this.method_15(format2, cell4, 0xc30);
                    this.method_15(format2, cell5, 0xc3a);
                    this.method_15(format2, cell6, 0xc44);
                    this.method_15(format2, cell4, 0xc4e);
                    this.method_15(format2, cell4, 0xc58);
                    this.method_16(format2, cell4, 0xbfe);
                    this.method_16(format2, cell4, 0xc12);
                    this.method_16(format2, cell4, 0xc08);
                    this.method_16(format2, cell4, 0xc1c);
                    for (int k = index + 1; k < num6; k++)
                    {
                        class2.method_1()[k] = Class925.smethod_1(format2, cell4);
                    }
                    if ((num6 - index) > 1)
                    {
                        this.bool_9 = true;
                    }
                }
            }
        }
    }