internal void method_20(bool A_0, int A_1, int A_2, int A_3) { this.class345_0.method_5(SprmCode.TDefTable); int num = ((1 + ((this.class732_0.Count + 1) * 2)) + (this.class732_0.Count * 20)) + 1; this.class345_0.Write((short)num); this.class345_0.Write((byte)this.class732_0.Count); int num4 = (A_0 ? A_2 : A_1) + A_3; this.class345_0.Write((short)num4); for (int i = 0; i < this.class732_0.Count; i++) { num4 += this.class732_0.method_0(i).TwipCellWidth; this.class345_0.Write((short)num4); } for (int j = 0; j < this.class732_0.Count; j++) { Class354.smethod_1(this.class732_0.method_0(j), this.class345_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); } }
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); }
private void method_79() { this.class758_0.method_30(this.method_94()); this.method_86(false); if (this.method_93().method_6(0xfb4) && !base.method_56()) { base.class345_0.method_1(SprmCode.TDxaGapHalf, (int)((this.method_93().Paddings.Left + this.method_93().Paddings.Right) / 2f)); } this.method_82(); base.method_3(SprmCode.TTableHeader, 0xfc8); this.method_87(false); this.method_88(); this.class758_0.method_20(base.method_56(), this.class1056_0.method_0(), this.class1056_0.method_1(), (int)this.method_93().GridBeforeWidth.method_49()); this.class758_0.method_18(SprmCode.TCellShd); this.method_89(); base.method_9(SprmCode.TFBiDi, 0x111c); 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_18(SprmCode.TCellShdEx3); this.class758_0.method_18(SprmCode.TCellShdEx); this.method_87(true); this.method_90(SprmCode.TTableWidth, 0x1086); base.method_5(SprmCode.TFAllowAutoFit, base.wordAttrCollection_0.method_31(0x1090)); this.class758_0.method_18(SprmCode.TCellShdEx2); this.method_91(SprmCode.TWidthBefore, 0x109a); this.method_91(SprmCode.TWidthAfter, 0x10a4); this.class758_0.method_21(); 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)); } Class592.smethod_3(this.method_94(), SprmCode.TCellPadding, this.class758_0); Class354.smethod_4(base.class345_0, SprmCode.TCellSpacingDefault, CellAlign.Box, this.method_93().method_31(0x10c2)); if (!base.method_56()) { Class592.smethod_1(this.method_93(), SprmCode.TCellPaddingDefault, this); } this.class758_0.method_26(); base.method_34(SprmCode.TTableShd, 0x10ea); this.method_91(SprmCode.TLeftIndent, 0x10f4); base.method_6(SprmCode.TFCantOverlap, 0x10fe); 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); base.method_18(SprmCode.TRsidTr, 0x1130); base.method_9(SprmCode.TJcEx, 0xfaa); 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; } }
private void imethod_2(SprmCode A_0, int A_1, int A_2, CellAlign A_3, object A_4) { Class354.smethod_5(base.class345_0, SprmCode.TCellPaddingDefault, 0, 1, A_3, A_4); }
public abstract void Visit(Class354 c);
public override void Visit(Class354 c) { }
private void imethod_2(SprmCode A_0, int A_1, int A_2, CellAlign A_3, object A_4) { int num = 0x10; SprmCode code = A_0; if (code <= SprmCode.TSetBrc) { if (code > SprmCode.TTextFlow) { if (code == SprmCode.TVertAlign) { VerticalAlignment alignment = (VerticalAlignment)A_4; if (alignment != VerticalAlignment.Top) { this.class345_0.method_5(SprmCode.TVertAlign); this.class345_0.Write((byte)3); this.class345_0.Write((byte)A_1); this.class345_0.Write((byte)A_2); this.class345_0.Write((byte)alignment); return; } return; } if (code == SprmCode.TSetBrc) { this.method_27(A_1, A_2, (Border)A_4, A_3, SprmCode.TSetBrc); return; } } else { if (code == SprmCode.TDxaCol) { int num2 = (int)Math.Round((double)(float.Parse(A_4.ToString()) * 20f)); this.class345_0.method_5(SprmCode.TDxaCol); this.class345_0.Write((byte)A_1); this.class345_0.Write((byte)A_2); this.class345_0.Write((short)num2); return; } if (code == SprmCode.TTextFlow) { TextDirection direction = (TextDirection)A_4; if (direction != TextDirection.TopToBottom) { this.class345_0.method_5(SprmCode.TTextFlow); this.class345_0.Write((byte)A_1); this.class345_0.Write((byte)A_2); this.class345_0.Write((ushort)direction); return; } return; } } } else if (code > SprmCode.TCellWidth) { switch (code) { case SprmCode.TFCellNoWrap: if (!((bool)A_4)) { this.class345_0.method_5(SprmCode.TFCellNoWrap); this.class345_0.Write((byte)3); this.class345_0.Write((byte)A_1); this.class345_0.Write((byte)A_2); this.class345_0.Write((byte)1); return; } return; case SprmCode.TCellHideMark: if ((bool)A_4) { this.class345_0.method_5(SprmCode.TCellHideMark); this.class345_0.Write((byte)3); this.class345_0.Write((byte)A_1); this.class345_0.Write((byte)A_2); this.class345_0.Write((byte)1); } return; case SprmCode.TFitText: if ((bool)A_4) { this.class345_0.method_5(SprmCode.TFitText); this.class345_0.Write((byte)A_1); this.class345_0.Write((byte)A_2); this.class345_0.Write((byte)1); } return; } } else { if (code == SprmCode.TCellPadding) { Class354.smethod_5(this.class345_0, SprmCode.TCellPadding, A_1, A_2, A_3, A_4); return; } if (code == SprmCode.TCellWidth) { Class15 class2 = new Class15(FtsWidth.None, 0); switch (this.class732_0.method_0(A_1).WidthUnit) { case FtsWidth.Auto: class2 = new Class15(FtsWidth.Auto, 0); break; case FtsWidth.Percentage: class2 = new Class15(FtsWidth.Percentage, (short)Math.Round((double)(this.class732_0.method_0(A_1).CellWidth * 50f))); break; case FtsWidth.Point: class2 = new Class15(FtsWidth.Point, (short)Math.Round((double)(this.class732_0.method_0(A_1).CellWidth * 20f))); break; } this.method_23(A_1, A_2, (int)class2.method_51(), (int)class2.method_49()); class2.Close(); class2 = null; return; } } throw new InvalidOperationException(string.Format(BookmarkStart.b("砵圷丹᰻圽ⴿ㉁⡃⍅╇⽉≋㩍㕏㙑瑓さ㝗⡙籛╝偟ὡ䑣ၥ१٩ᥫ୭幯", num), A_0)); }