internal void method_8(SprmCode A_0, int A_1) { int num = 9; if (A_0 == SprmCode.TCellShd) { int num2 = A_1 / 2; for (int i = 0; i < num2; i++) { smethod_1(this.binaryReader_0, this.class732_0.method_0(i), A_0); } } else { switch ((A_1 % 10)) { case 0: break; case 4: A_1 += 0x100; break; default: throw new InvalidOperationException(BookmarkStart.b("氮吰弲头᜶䨸区尼嬾⡀ⵂ≄杆⁈╊浌㩎㽐㡒㭔㡖⹘㕚絜㥞ᅢࡤ٦ᵨ䭪Ѭᱮ兰ᙲ᭴ᑶᙸ፼ꞈ", num)); } int num5 = smethod_0(A_0) * 0x16; int num6 = A_1 / 10; int num7 = num5 + num6; for (int j = num5; j < num7; j++) { smethod_1(this.binaryReader_0, this.class732_0.method_0(j), A_0); } } }
internal void method_12(SprmCode A_0, int A_1) { int num = 0; switch (A_0) { case SprmCode.TBrcTopCv: num = 0xc26; break; case SprmCode.TBrcLeftCv: num = 0xc30; break; case SprmCode.TBrcBottomCv: num = 0xc3a; break; case SprmCode.TBrcRightCv: num = 0xc44; break; } int num2 = A_1 / 4; for (int i = 0; i < num2; i++) { int num4 = this.binaryReader_0.ReadInt32(); if (this.class732_0.method_0(i).method_6(num)) { Border border = (Border)this.class732_0.method_0(i).method_32(num); border.Color = Class624.smethod_7(num4); } } }
private void method_67(short A_0, SprmCode A_1, object A_2) { Class650 class2 = (Class650)A_2; CharacterFormat format = base.wordAttrCollection_0 as CharacterFormat; if (!(format.OwnerBase is ListLevel)) { Style style = base.document_0.Styles.FindByName(format.CharStyleName); CharacterFormat baseFormat = format.BaseFormat as CharacterFormat; bool flag = false; bool flag2 = format.method_53(A_0); if ((style != null) && style.CharacterFormat.HasValue(A_0)) { flag = style.CharacterFormat.method_53(A_0); class2 = (flag2 == flag) ? Class650.class650_2 : Class650.class650_3; } else if ((baseFormat != null) && baseFormat.HasValue(A_0)) { flag = baseFormat.method_53(A_0); class2 = (flag2 == flag) ? Class650.class650_2 : Class650.class650_3; } else { class2 = ((((Class650)A_2) == Class650.class650_1) || (((Class650)A_2) == Class650.class650_0)) ? ((Class650)A_2) : (flag2 ? Class650.class650_3 : Class650.class650_2); } } if (class2 != null) { base.method_8(A_1, class2); } }
protected void method_50(SprmCode A_0, int A_1, int A_2) { if ((this.wordAttrCollection_0 is ParagraphFormat) && ((this.wordAttrCollection_0 as ParagraphFormat).Frame.HasKey(A_1) || (this.wordAttrCollection_0 as ParagraphFormat).Frame.HasKey(A_2))) { int num2; if ((this.wordAttrCollection_0 as ParagraphFormat).Frame.HasKey(A_1)) { num2 = (short)(this.wordAttrCollection_0 as ParagraphFormat).Frame.method_32(A_1); } else { num2 = Class292.smethod_7((ShapeVerticalAlignment)((short)(this.wordAttrCollection_0 as ParagraphFormat).Frame.method_32(A_2))); } this.class345_0.method_1(A_0, num2); } else if ((this.wordAttrCollection_0 is RowFormat) && ((this.wordAttrCollection_0 as RowFormat).Positioning.HasKey(A_1) || (this.wordAttrCollection_0 as RowFormat).Positioning.HasKey(A_2))) { int num; ShapeVerticalAlignment alignment = (ShapeVerticalAlignment)((short)(this.wordAttrCollection_0 as RowFormat).Positioning.method_32(A_2)); if (alignment == ShapeVerticalAlignment.None) { num = (int)Math.Round((double)((float)(this.wordAttrCollection_0 as RowFormat).Positioning.method_32(A_1))); } else { num = Class292.smethod_7(alignment); } this.class345_0.method_1(A_0, num); } }
private static int smethod_1(SprmCode A_0) { switch (A_0) { case SprmCode.TCellBrcBottomStyle: return(0xc3a); case SprmCode.TCellBrcLeftStyle: return(0xc30); case SprmCode.TCellBrcRightStyle: return(0xc44); case SprmCode.TCellBrcInsideHStyle: return(0xc80); case SprmCode.TCellBrcInsideVStyle: return(0xc8a); case SprmCode.TCellBrcTL2BRStyle: return(0xc4e); case SprmCode.TCellBrcTR2BLStyle: return(0xc58); case SprmCode.TCellBrcTopStyle: return(0xc26); } return(0); }
protected void method_4(SprmCode A_0, object A_1) { if (A_1 != null) { this.class345_0.method_4(A_0, (bool)A_1); } }
private static void smethod_9(Hashtable A_0, WordAttrCollection A_1, SprmCode A_2, CellAlign A_3, Interface53 A_4) { int num = A_4.imethod_1(A_2, A_3); object obj2 = A_1.method_31(num); if ((A_1 is CellFormat) && (A_1 as CellFormat).SamePaddingsAsTable) { switch (num) { case 0xc12: case 0xc1c: case 0xbfe: case 0xc08: obj2 = null; break; } } if (obj2 != null) { if (A_0[obj2] != null) { A_3 |= (CellAlign)A_0[obj2]; } A_0[obj2] = A_3; } }
private static int smethod_1(BinaryReader A_0, SprmCode A_1) { int num = 5; int num2 = smethod_0(A_1); if (num2 != 0) { return(num2); } switch (A_1) { case SprmCode.TDefTable10: case SprmCode.TDefTable: return(A_0.ReadUInt16() - 1); case SprmCode.PChgTabsWithTolerance: { int num3 = A_0.ReadByte(); if (num3 == 0xff) { throw new InvalidOperationException(BookmarkStart.b("株䈬䈮䄰弲倴伶ᤸ堺䠼䰾㕀ⱂ⡄杆㵈⩊⽌潎≐❒㩔❖⩘筚⩜㙞ᕠୢ䕤፦٨ݪᵮၰᵲᙴቶ奸Ṻ፼᱾力뾐", num)); } return(num3); } } return(A_0.ReadByte()); }
protected void method_24(SprmCode A_0, object A_1) { if (A_1 != null) { this.class345_0.method_3(A_0, Class624.smethod_6((Color)A_1)); } }
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); }
protected void method_23(SprmCode A_0, int A_1) { if (this.wordAttrCollection_0.HasKey(A_1)) { this.method_24(A_0, this.wordAttrCollection_0.method_31(A_1)); } }
protected void method_22(SprmCode A_0, object A_1) { if (A_1 != null) { this.class345_0.method_0(A_0, (int)A_1); } }
protected void method_21(SprmCode A_0, object A_1) { if (A_1 != null) { this.class345_0.method_0(A_0, (int)Class624.smethod_0((Color)A_1)); } }
protected void method_19(SprmCode A_0, object A_1) { if (A_1 != null) { this.class345_0.method_3(A_0, Convert.ToInt32(A_1)); } }
protected void method_17(SprmCode A_0, object A_1, float A_2) { if (A_1 != null) { this.class345_0.method_1(A_0, (int)Math.Round((double)(Convert.ToSingle(A_1) * A_2))); } }
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; }
private void method_68(SprmCode A_0, object A_1) { if (A_1 != null) { string str = (string)A_1; base.class345_0.method_1(A_0, base.method_54() ? Class1149.smethod_1(str) : this.class52_0.method_8(str)); } }
static Class602() { SprmCode[] codeArray = new SprmCode[0x7f]; codeArray[4] = SprmCode.PIncLvl; codeArray[5] = SprmCode.PJc; codeArray[6] = SprmCode.PFSideBySide; codeArray[7] = SprmCode.PFKeep; codeArray[8] = SprmCode.PFKeepFollow; codeArray[9] = SprmCode.PFPageBreakBefore; codeArray[10] = SprmCode.PBrcl; codeArray[11] = SprmCode.PBrcp; codeArray[12] = SprmCode.PIlvl; codeArray[14] = SprmCode.PFNoLineNumb; codeArray[0x18] = SprmCode.PFInTable; codeArray[0x19] = SprmCode.PFTtp; codeArray[0x1d] = SprmCode.PPc; codeArray[0x25] = SprmCode.PWr; codeArray[0x2c] = SprmCode.PFNoAutoHyph; codeArray[50] = SprmCode.PFLockAnchor; codeArray[0x33] = SprmCode.PFWidowControl; codeArray[0x35] = SprmCode.PFKinsoku; codeArray[0x36] = SprmCode.PFWordWrap; codeArray[0x37] = SprmCode.PFOverflowPunct; codeArray[0x38] = SprmCode.PFTopLinePunct; codeArray[0x39] = SprmCode.PFAutoSpaceDE; codeArray[0x3a] = SprmCode.PFAutoSpaceDN; codeArray[0x3d] = SprmCode.PISnapBaseLine; codeArray[0x41] = SprmCode.CFStrike; codeArray[0x42] = SprmCode.CFRMarkIns; codeArray[0x43] = SprmCode.CFFldVanish; codeArray[0x47] = SprmCode.CFData; codeArray[0x4b] = SprmCode.CFOle2; codeArray[0x4d] = SprmCode.CHighlight; codeArray[0x4e] = SprmCode.CFEmboss; codeArray[0x4f] = SprmCode.CSfxText; codeArray[0x53] = SprmCode.CPlain; codeArray[0x55] = SprmCode.CFBold; codeArray[0x56] = SprmCode.CFItalic; codeArray[0x57] = SprmCode.CFStrike; codeArray[0x58] = SprmCode.CFOutline; codeArray[0x59] = SprmCode.CFShadow; codeArray[90] = SprmCode.CFSmallCaps; codeArray[0x5b] = SprmCode.CFCaps; codeArray[0x5c] = SprmCode.CFVanish; codeArray[0x5e] = SprmCode.CKul; codeArray[0x62] = SprmCode.CIco; codeArray[100] = SprmCode.CHpsInc; codeArray[0x66] = SprmCode.CHpsPosAdj; codeArray[0x68] = SprmCode.CIss; codeArray[0x73] = SprmCode.CFDStrike; codeArray[0x74] = SprmCode.CFImprint; codeArray[0x75] = SprmCode.CFSpec; codeArray[0x76] = SprmCode.CFObj; codeArray[0x77] = SprmCode.PicBrcl; codeArray[120] = SprmCode.POutLvl; sprmCode_0 = codeArray; }
protected void method_6(SprmCode A_0, int A_1) { object obj2 = this.wordAttrCollection_0.method_31(A_1); if (obj2 != null) { this.class345_0.method_4(A_0, !((bool)obj2)); } }
protected void method_27(SprmCode A_0, object A_1, float A_2) { Border border = (Border)A_1; if ((border != null) && !border.IsDefault) { this.class345_0.method_5(A_0); Class355.smethod_3(border, this.class345_0, true, A_2); } }
private static Hashtable smethod_8(WordAttrCollection A_0, SprmCode A_1, Interface53 A_2) { Hashtable hashtable = new Hashtable(); smethod_9(hashtable, A_0, A_1, CellAlign.Left, A_2); smethod_9(hashtable, A_0, A_1, CellAlign.Right, A_2); smethod_9(hashtable, A_0, A_1, CellAlign.Top, A_2); smethod_9(hashtable, A_0, A_1, CellAlign.Bottom, A_2); return(hashtable); }
protected void method_33(SprmCode A_0, object A_1) { Class16 class2 = (Class16)A_1; if (((class2 != null) && (class2.OwnerBase == null)) && !class2.IsDefault) { this.class345_0.method_5(A_0); Class1106.smethod_2(class2, this.class345_0); } }
protected long method_36(SprmCode A_0, ConditionalFormattingCode A_1) { this.bool_0 = true; this.class345_0.method_5(A_0); long position = (int)this.class345_0.BaseStream.Position; this.class345_0.Write((byte)0); this.class345_0.Write((ushort)smethod_0(A_1)); return(position); }
protected void method_5(SprmCode A_0, object A_1) { bool flag = true; if (A_1 != null) { flag = ((LayoutType)A_1) == LayoutType.AutoFit; this.class345_0.method_4(A_0, flag); } }
private static void smethod_1(BinaryReader A_0, WordAttrCollection A_1, SprmCode A_2) { Class16 class2 = (Class16)A_1.method_31(0xc62); Class16 class3 = (A_2 == SprmCode.TCellShd) ? Class1106.smethod_0(A_0, class2) : Class1106.smethod_1(A_0, class2); if (class3 != null) { A_1.SetAttr(0xc62, class3); } }
private static void smethod_5(ArrayList A_0, SprmCode A_1, Interface53 A_2, IComparer A_3) { if (A_3 != null) { A_0.Sort(A_3); } foreach (Class127 class2 in A_0) { A_2.imethod_2(A_1, class2.method_0(), class2.method_1(), class2.method_2(), class2.method_3()); } }
protected void method_31(SprmCode A_0, object A_1) { Border border = (Border)A_1; if ((border != null) && !border.IsDefault) { this.class345_0.method_5(A_0); this.class345_0.Write((byte)8); Class355.smethod_4(border, this.class345_0, true); } }
private void method_70(SprmCode A_0) { bool flag = A_0 == SprmCode.TTableBorders; this.method_69(0xfd2, flag); this.method_69(0xfdc, flag); this.method_69(0xfe6, flag); this.method_69(0xff0, flag); this.method_69(0xffa, flag); this.method_69(0x1004, flag); }
internal static void smethod_2(WordAttrCollection A_0, SprmCode A_1, Interface53 A_2, IComparer A_3) { Hashtable hashtable = smethod_8(A_0, A_1, A_2); ArrayList list = new ArrayList(); foreach (object obj2 in hashtable.Keys) { CellAlign align = (CellAlign)hashtable[obj2]; list.Add(new Class127(0, 0, align, obj2)); } smethod_5(list, A_1, A_2, A_3); }
private void method_27(int A_0, int A_1, Border A_2, CellAlign A_3, SprmCode A_4) { if ((A_2 != null) && !A_2.IsDefault) { this.class345_0.method_5(A_4); int num = 3 + Class355.smethod_7(A_4 == SprmCode.TSetBrc); this.class345_0.Write((byte)num); this.class345_0.Write((byte)A_0); this.class345_0.Write((byte)A_1); this.class345_0.Write((byte)A_3); Class355.smethod_6(A_2.Equals(new Border()) ? null : A_2, this.class345_0, false, A_4 == SprmCode.TSetBrc); } }