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_8(TableRow A_0) { Class732 class2 = (Class732)A_0.RowFormat.method_31(0x13ec); TableCell cell = A_0.Cells[0]; int num = 0; while (cell != null) { if (num >= class2.Count) { break; } cell.CellFormat = class2.method_0(num); num++; if (num < class2.Count) { cell = A_0.Cells[num]; } else { cell = null; } } if (cell != null) { smethod_9(cell, null); } }
internal static void smethod_4(Class732 A_0, SprmCode A_1, Interface53 A_2, IComparer A_3) { ArrayList list = new ArrayList(); CellAlign none = CellAlign.None; for (int i = 0; i < A_0.Count; i++) { Hashtable hashtable = smethod_8(A_0.method_0(i), A_1, A_2); Class656 class2 = new Class656(); foreach (object obj2 in hashtable.Keys) { CellAlign align3 = (CellAlign)hashtable[obj2]; class2.method_5((int)align3, obj2); none |= align3; } list.Add(class2); } ArrayList list2 = new ArrayList(); for (CellAlign align2 = CellAlign.None; align2 <= none; align2 += 1) { list2.AddRange(smethod_6(list, (int)align2)); } smethod_5(list2, A_1, A_2, A_3); }
internal void method_17(Class732 A_0, SprmCode A_1) { Class732 class2 = this.class732_0; this.class732_0 = A_0; this.method_18(A_1); this.class732_0 = class2; }
Interface31 Interface31.imethod_1() { Class732 class2 = new Class732(); for (int i = 0; i < this.Count; i++) { class2.Add(this.method_0(i).Clone()); } return(class2); }
private static void smethod_2(CellCollection A_0, RowFormat A_1, bool A_2) { Class732 class2 = new Class732(); A_1.SetAttr(0x13ec, class2); foreach (TableCell cell in A_0) { class2.Add(A_2 ? cell.CellFormat.SysDirectAttrs : cell.CellFormat); } }
private void method_84(CellCollection A_0, RowFormat A_1) { if (A_1.HasFormatRevision) { RowFormat format = (RowFormat)A_1.FormatRevision.method_4(); Class732 class3 = new Class732(); format.SetAttr(0x13ec, class3); foreach (TableCell cell in A_0) { Class580 formatRevision = cell.CellFormat.FormatRevision; class3.Add((formatRevision != null) ? formatRevision.method_4() : this.cellFormat_0); } } }
private void method_92() { if (this.method_93().PreferredWidth.method_51() == FtsWidth.Point) { int num = (int)(this.method_93().GridBeforeWidth.method_49() + this.method_93().GridAfterWidth.method_49()); Class732 class2 = (Class732)this.method_93().method_31(0x13ec); for (int i = 0; i < class2.Count; i++) { num += class2.method_0(i).TwipCellWidth; } if ((this.method_93().PreferredWidth.method_49() > num) && (this.int_1 > 0)) { this.method_93().GridBeforeWidth.method_50(this.method_93().PreferredWidth.method_49() - num); } } }
internal void method_4(RowFormat A_0) { this.class732_0 = new Class732(); A_0.SetAttr(0x13ec, this.class732_0); int num = this.binaryReader_0.ReadByte(); int num2 = this.binaryReader_0.ReadByte(); int num3 = this.binaryReader_0.ReadInt16(); for (int i = num; i < num2; i++) { CellFormat format = new CellFormat(); format.SetAttr(0xbf4, VerticalAlignment.Top); format.SetAttr(0xc6c, true); format.TwipCellWidth = num3; this.class732_0.Add(format); } }
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; } }
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); } }
private void method_8(TableRow A_0, Class732 A_1) { if (((A_0 != null) && (A_1 != null)) && (A_0.Cells.Count > A_1.Count)) { int num3 = A_1.Count - 1; int count = A_0.Cells.Count; TableCell cell2 = A_0.Cells[A_1.Count - 1]; for (int i = num3 + 1; i < A_0.Cells.Count; i++) { TableCell cell = A_0.Cells[i]; if (cell.ChildObjects.Count > 0) { for (int j = 0; j < cell.ChildObjects.Count; j++) { cell2.ChildObjects.Add(cell.ChildObjects[j]); j--; } } A_0.Cells.Remove(cell); i--; } } }
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(); } }
internal static void smethod_3(Class732 A_0, SprmCode A_1, Interface53 A_2) { smethod_4(A_0, A_1, A_2, icomparer_0); }
internal static void smethod_0(Class732 A_0, int A_1, SprmCode A_2, Interface53 A_3) { smethod_5(smethod_6(A_0, A_1), A_2, A_3, null); }
private void method_80() { this.class758_0.method_30((Class732)this.method_93().method_31(0x13ec)); int num = (int)(((this.method_93().Paddings.Left + this.method_93().Paddings.Right) * 20f) / 2f); base.class345_0.method_1(SprmCode.TDxaLeft, (this.class1056_0.method_0() + num) + ((int)this.method_93().GridBeforeWidth.method_49())); this.class758_0.method_13(base.method_56()); this.class758_0.method_15(false); Class592.smethod_0((Class732)this.method_93().method_31(0x13ec), 0xbc2, SprmCode.TDxaCol, this.class758_0); if (this.method_83()) { int num3; if (this.method_93().OwnerRow.OwnerTable.TableStyle is Style) { int num2 = this.method_93().Document.Styles.DocStyleCollection.method_17(this.method_93().OwnerRow.OwnerTable.TableStyle as Style); num3 = (num2 != 0xfff) ? num2 : 11; } else { num3 = 11; } base.class345_0.method_1(SprmCode.TIstd, num3); } if (!base.method_56() && (num != 0)) { base.class345_0.method_1(SprmCode.TDxaGapHalf, num); } this.method_82(); base.method_3(SprmCode.TTableHeader, 0xfc8); this.method_88(); Class732 class2 = (Class732)this.rowFormat_1.method_31(0x13ec); this.class758_0.method_17(class2, SprmCode.TCellShd); base.method_9(SprmCode.TFBiDi, 0x111c); this.method_89(); base.method_52(SprmCode.TPositionCode, 0x3f, 0x40); base.method_49(SprmCode.TFrameLeft, 0x3d, 0x3b); base.method_50(SprmCode.TFrameTop, 0x3e, 60); if (this.method_93().Positioning.HasKey(0x43)) { base.method_16(SprmCode.TFromTextLeft, (short)Math.Round((double)(this.method_93().Positioning.DistanceFromLeft * 20f), 2)); } if (this.method_93().Positioning.HasKey(0x41)) { base.method_16(SprmCode.TFromTextTop, (short)Math.Round((double)(this.method_93().Positioning.DistanceFromTop * 20f), 2)); } this.class758_0.method_17(class2, SprmCode.TCellShdEx3); this.class758_0.method_17(class2, SprmCode.TCellShdEx); this.class758_0.method_14(); this.method_87(true); this.method_90(SprmCode.TTableWidth, 0x1086); base.method_5(SprmCode.TFAllowAutoFit, base.wordAttrCollection_0.method_32(0x1090)); this.class758_0.method_17(class2, SprmCode.TCellShdEx2); this.method_91(SprmCode.TWidthBefore, 0x109a); this.method_91(SprmCode.TWidthAfter, 0x10a4); Class592.smethod_0(class2, 0xbea, SprmCode.TTextFlow, this.class758_0); Class592.smethod_0(class2, 0xbf4, SprmCode.TVertAlign, this.class758_0); if (this.method_93().Positioning.HasKey(0x44)) { base.method_16(SprmCode.TFromTextRight, (short)Math.Round((double)(this.method_93().Positioning.DistanceFromRight * 20f), 2)); } if (this.method_93().Positioning.HasKey(0x42)) { base.method_16(SprmCode.TFromTextBottom, (short)Math.Round((double)(this.method_93().Positioning.DistanceFromBottom * 20f), 2)); } this.class758_0.method_16(); this.class758_0.method_15(true); Class592.smethod_0(class2, 0xc76, SprmCode.TFitText, this.class758_0); Class592.smethod_0(class2, 0xc6c, SprmCode.TFCellNoWrap, this.class758_0); Class592.smethod_4(class2, SprmCode.TSetBrc, this.class758_0, icomparer_0); Class592.smethod_0(class2, 0xc94, SprmCode.TCellHideMark, this.class758_0); this.class758_0.method_26(); object obj2 = null; if ((base.wordAttrCollection_0 as RowFormat).Positioning.method_6(0x45)) { obj2 = !((bool)(base.wordAttrCollection_0 as RowFormat).Positioning.method_32(0x45)); } base.method_4(SprmCode.TFCantOverlap, obj2); if ((base.wordAttrCollection_0 as RowFormat).IsChangedFormat) { WordAttrCollection attrs = base.wordAttrCollection_0; base.wordAttrCollection_0 = base.wordAttrCollection_0.FormatRevision.method_4(); base.method_46(SprmCode.TPropRMark, SprmCode.TWall); base.wordAttrCollection_0 = attrs; } Class592.smethod_3(class2, SprmCode.TCellPadding, this.class758_0); Class354.smethod_4(base.class345_0, SprmCode.TCellSpacingDefault, CellAlign.Box, this.method_93().method_31(0x10c2)); base.method_34(SprmCode.TTableShd, 0x10ea); Class592.smethod_1(this.method_93(), SprmCode.TCellPaddingDefault, this); base.method_6(SprmCode.TFCantSplit, 0x1108); this.class758_0.method_18(SprmCode.TCellShdExRaw); this.class758_0.method_18(SprmCode.TCellShdExRaw2); this.class758_0.method_18(SprmCode.TCellShdExRaw3); this.method_91(SprmCode.TLeftIndent, 0x10f4); base.method_18(SprmCode.TRsidTr, 0x1130); this.method_86(true); }
internal void method_30(Class732 A_0) { this.class732_0 = A_0; }