internal static void smethod_2(RowFormat A_0) { object right = A_0.method_31(0x13ed); if (right == null) { return; } if (A_0.method_31(0xfaa) != null) { goto Label_0069; } if (A_0.Bidi) { switch (((RowAlignment)right)) { case RowAlignment.Left: right = RowAlignment.Right; goto Label_005D; case RowAlignment.Right: right = RowAlignment.Left; goto Label_005D; } right = (RowAlignment)right; } Label_005D: A_0.SetAttr(0xfaa, right); Label_0069: A_0.Remove(0x13ed); }
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); } }
private static void smethod_10(TableRow A_0) { int num = 14; if (A_0.RowFormat.HasFormatRevision) { Class580 formatRevision = A_0.RowFormat.FormatRevision; RowFormat format2 = (RowFormat)formatRevision.method_4(); Class732 class2 = (Class732)format2.method_31(0x13ec); if (class2 == null) { A_0.RowFormat.method_47(); } else { int num3 = 0; for (int i = 0; i < A_0.Cells.Count; i++) { TableCell cell = A_0.Cells[i]; Class580 class4 = new Class580(class2.method_0(num3), formatRevision.method_0(), formatRevision.method_2()); cell.CellFormat.FormatRevision = class4; num3++; } if (num3 != class2.Count) { throw new InvalidOperationException(BookmarkStart.b("稳䌵唷堹夻䰽怿ⵁ≃晅㡇㡉⍋㹍㕏⁑⁓㽕㵗⥙牛", num)); } } } }
private static void smethod_4(Table A_0) { if (A_0.FirstRow != null) { RowFormat rowFormat = A_0.Rows[0].RowFormat; object obj2 = rowFormat.method_31(0xfb4); object obj3 = rowFormat.method_31(0x10e0); foreach (TableRow row in A_0.Rows) { RowFormat format2 = row.RowFormat; if ((obj2 != null) && (format2.method_31(0xfb4) == null)) { format2.Paddings.Left = 5.4f; } if ((obj3 != null) && (format2.method_31(0x10e0) == null)) { format2.Paddings.Right = 5.4f; } } } }
private static void smethod_10(Class394 A_0, RowFormat A_1) { int num = 14; while (A_0.method_9(BookmarkStart.b("䀳吵吷紹主圽Łⱃ❅♇ⵉ⥋", num))) { string str; if (((str = A_0.method_1()) != null) && (str == BookmarkStart.b("䀳吵吷紹主圽", num))) { ArrayList list = (ArrayList)A_1.method_31(0x13ef); if (A_1.FormatRevision == null) { A_1.FormatRevision = new Class580(new RowFormat(), "", DateTime.MinValue); } A_1.FormatRevision.method_4().SetAttr(0x13ef, list); smethod_1(A_0, A_1); } else { A_0.vmethod_1(); } } }
private static void smethod_8(ArrayList A_0, RowFormat A_1, TableRow A_2, bool A_3, bool A_4, int A_5) { int num = (int)A_1.method_32(0x13f0); int num2 = 0; for (int i = 0; i < num; i++) { num2 += (int)A_0[i]; } RowFormat format = (!A_2.RowFormat.HasFormatRevision || !A_3) ? A_2.RowFormat : ((RowFormat)A_2.RowFormat.FormatRevision.method_4()); Class15 class2 = (Class15)format.method_31(0x109a); if (A_4) { class2.method_50((((float)num2) / ((float)A_5)) * 50f); class2.method_52(FtsWidth.Percentage); } else { class2.method_50((float)num2); class2.method_52(FtsWidth.Point); } }
private void imethod_32(RowFormat A_0) { int num = 14; if (this.documentObject_0.DocumentObjectType != DocumentObjectType.TableRow) { throw new InvalidOperationException(BookmarkStart.b("笳䌵䰷ᨹ医堽怿ㅁ㵃⡅⭇摉", num)); } TableRow row = (TableRow)this.documentObject_0; Class732 class3 = (Class732)A_0.method_31(0x13ec); if (class3 != null) { row.HasTblPrEx = true; row.RowFormat.method_25(A_0); this.method_8(row, class3); smethod_8(row); smethod_10(row); this.method_9(A_0, row); row.RowFormat.Remove(0x13ec); Class580 formatRevision = row.RowFormat.FormatRevision; if (formatRevision != null) { formatRevision.method_4().Remove(0x13ec); } Class646.smethod_2(row.RowFormat); this.method_10(row); row.method_30(); this.method_13(); } else { this.method_13(); row.method_19(); } }