internal void method_7() { int num = this.binaryReader_0.ReadByte(); int num2 = this.binaryReader_0.ReadByte(); CellAlign align = (CellAlign)this.binaryReader_0.ReadByte(); Class15 class2 = smethod_2(this.binaryReader_0); if (class2.method_57()) { num = Math.Min(num, this.class732_0.Count); num2 = Math.Min(num2, this.class732_0.Count); int num3 = (int)class2.method_49(); for (int i = num; i < num2; i++) { CellFormat format = this.class732_0.method_0(i); format.SamePaddingsAsTable = false; if ((align & CellAlign.Left) != CellAlign.None) { format.SetAttr(0xc12, ((float)num3) / 20f); } if ((align & CellAlign.Top) != CellAlign.None) { format.SetAttr(0xbfe, ((float)num3) / 20f); } if ((align & CellAlign.Bottom) != CellAlign.None) { format.SetAttr(0xc08, ((float)num3) / 20f); } if ((align & CellAlign.Right) != CellAlign.None) { format.SetAttr(0xc1c, ((float)num3) / 20f); } } } }
internal static void smethod_2(Class857 A_0, Class100 A_1) { int num = 8; Class396 class2 = A_0.method_11(); CellFormat format = new CellFormat(); while (class2.method_19()) { string str; if ((!Class857.smethod_9(class2, A_1.method_35()) && !Class857.smethod_2(class2, A_1.method_39())) && (!Class857.smethod_1(class2, A_1.method_37()) && ((str = class2.method_1()) != null))) { if (str != BookmarkStart.b("夭䈯嬱䀳張嘷崹ᄻ匽⼿♁⅃", num)) { if (str != BookmarkStart.b("䤭尯䬱䐳帵ᔷ唹主圽┿ⱁぃ❅㱇⍉⍋⁍絏ㅓⱗ㍙㽛㽝", num)) { if (str != BookmarkStart.b("堭唯䀱䀳張嬷嬹倻ጽℿ⹁ⵃⅅ♇", num)) { if (!(str == BookmarkStart.b("䰭儯儱弳儵䨷唹䤻倽潁❃⥅⑇╉㹋", num))) { if (str == BookmarkStart.b("夭䈯匱䐳ᬵ圷䨹䠻圽⼿ⱁ", num)) { format.SetAttr(0xc6c, class2.method_3() == BookmarkStart.b("夭䈯匱䐳", num)); } } else { format.SetAttr(0xc62, Class576.smethod_62(class2.method_3(), (Class16)format.method_31(0xc62))); } } else { format.SetAttr(0xbf4, Class922.smethod_48(class2.method_3())); } } else if (class2.method_3() == BookmarkStart.b("ḭ", num)) { format.SetAttr(0xbea, TextOrientation.Upward); } } else if (Class922.smethod_37(class2.method_3()) != TextOrientation.Horizontal) { format.SetAttr(0xbea, Class922.smethod_37(class2.method_3())); } } } smethod_3(format, A_1); if (format.Count > 0) { A_1.method_46(format); } }
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 static void smethod_0(bool A_0, CellFormat A_1, TableCell A_2, int A_3) { object obj2 = A_0 ? A_2.CellFormat.method_32(A_3) : A_2.CellFormat.method_31(A_3); if (obj2 != null) { A_1.SetAttr(A_3, obj2); } }
private static bool smethod_1(CellFormat A_0, int A_1, CellFormat A_2, int A_3) { bool flag; object obj2 = A_2.method_31(A_3); if (flag = obj2 != null) { A_0.SetAttr(A_1, obj2); } return(flag); }
private void method_28(CellFormat A_0, int A_1, Border A_2) { Border border = (Border)A_0.method_33(A_1); if (A_2 == null) { A_0.SetAttr(A_1, border); } else { this.method_11(border, A_2); } }
private bool method_21(Class925 A_0, int A_1, int A_2) { bool flag; if (flag = A_0.method_2()) { CellFormat format = A_0.method_0(); bool flag2 = A_1 == 0; bool flag3 = A_1 == (this.class982_0.Count - 1); bool flag4 = !flag2 && smethod_1(format, 0xc26, this.class982_0.method_0(A_1 - 1).method_1()[A_2].method_0(), 0xc3a); bool flag7 = !flag3 && smethod_1(format, 0xc3a, this.class982_0.method_0(A_1 + 1).method_1()[A_2].method_0(), 0xc26); if (this.border_0 == null) { return(flag); } if ((flag2 && this.bool_5) || ((!flag2 && this.bool_7) && !flag4)) { format.SetAttr(0xc26, this.border_0); } if ((flag3 && this.bool_6) || ((!flag3 && this.bool_7) && !flag7)) { format.SetAttr(0xc3a, this.border_0); } bool flag6 = A_2 == 0; bool flag5 = A_2 == (this.method_9() - 1); bool flag8 = !flag6 && smethod_1(format, 0xc30, this.class982_0.method_0(A_1).method_1()[A_2 - 1].method_0(), 0xc44); bool flag9 = !flag5 && smethod_1(format, 0xc44, this.class982_0.method_0(A_1).method_1()[A_2 + 1].method_0(), 0xc30); if ((flag6 && this.bool_3) || ((!flag6 && this.bool_8) && !flag8)) { format.SetAttr(0xc30, this.border_0); } if ((flag5 && this.bool_4) || ((!flag5 && this.bool_8) && !flag9)) { format.SetAttr(0xc44, this.border_0); } } return(flag); }
internal static Class925 smethod_1(CellFormat A_0, TableCell A_1) { Class925 class2 = smethod_0(A_0, A_1); CellFormat format = class2.cellFormat_0; format.HorizontalMerge = CellMerge.Continue; format.SetAttr(0xc26, A_0.Borders.Top); format.SetAttr(0xc30, A_0.Borders.Left); format.SetAttr(0xc3a, A_0.Borders.Bottom); format.SetAttr(0xc44, A_0.Borders.Right); format.SetAttr(0xc4e, A_0.Borders.DiagonalDown); format.SetAttr(0xc58, A_0.Borders.DiagonalUp); format.SetAttr(0xc26, A_0.Borders.Top); return(class2); }
internal static void smethod_0(BinaryReader A_0, CellFormat A_1) { CellMerge start; CellMerge none; int num = A_0.ReadInt16(); bool flag = (num & 1) != 0; bool flag2 = (num & 2) != 0; if (flag) { start = CellMerge.Start; } else if (flag2) { start = CellMerge.Continue; } else { start = CellMerge.None; } A_1.SetAttr(0xbe0, start); A_1.SetAttr(0xbea, Class417.smethod_36((num & 0x1c) >> 2)); bool flag3 = (num & 0x20) != 0; if ((num & 0x40) != 0) { none = CellMerge.Start; } else if (flag3) { none = CellMerge.Continue; } else { none = CellMerge.None; } A_1.SetAttr(0xbd6, none); A_1.SetAttr(0xbf4, (VerticalAlignment)((num & 0x180) >> 7)); FtsWidth width = (FtsWidth)((num & 0xe00) >> 9); int num2 = A_0.ReadInt16(); switch (width) { case FtsWidth.Auto: A_1.SetAttr(0xbc6, width); A_1.SetAttr(0xbc4, 0f); break; case FtsWidth.Percentage: A_1.SetAttr(0xbc6, width); A_1.SetAttr(0xbc4, ((float)num2) / 50f); break; case FtsWidth.Point: A_1.SetAttr(0xbc6, width); A_1.SetAttr(0xbc4, ((float)num2) / 20f); break; } A_1.SetAttr(0xc76, (num & 0x1000) != 0); A_1.SetAttr(0xc6c, (num & 0x2000) == 0); smethod_2(A_0, A_1, 0xc26); smethod_2(A_0, A_1, 0xc30); smethod_2(A_0, A_1, 0xc3a); smethod_2(A_0, A_1, 0xc44); }
internal static void smethod_0(Class581 A_0, CellFormat A_1) { int num = 0; Class394 class2 = A_0.imethod_1(); A_1.SetAttr(0xc6c, true); A_1.SetAttr(0xc76, false); A_1.SetAttr(0xbe0, CellMerge.None); A_1.SetAttr(0xbd6, CellMerge.None); A_1.SetAttr(0xbf4, VerticalAlignment.Top); A_1.SetAttr(0xbea, TextDirection.TopToBottom); class2.method_18(); string str = class2.method_1(); while (class2.method_9(str)) { string str2; string str3; string key = class2.method_1(); if (key != null) { int num2; if (Class1160.dictionary_33 == null) { Dictionary <string, int> dictionary1 = new Dictionary <string, int>(0x12); dictionary1.Add(BookmarkStart.b("䔥䘧䰩缫娭䤯帱儳", num), 0); dictionary1.Add(BookmarkStart.b("別䬧紩", num), 1); dictionary1.Add(BookmarkStart.b("䄥娧䌩䠫紭䀯匱娳", num), 2); dictionary1.Add(BookmarkStart.b("严䔧伩師䤭唯", num), 3); dictionary1.Add(BookmarkStart.b("严攧伩師䤭唯", num), 4); dictionary1.Add(BookmarkStart.b("倥䔧伩師䤭唯", num), 5); dictionary1.Add(BookmarkStart.b("倥攧伩師䤭唯", num), 6); dictionary1.Add(BookmarkStart.b("別䬧栩䌫尭启圱䘳䔵", num), 7); dictionary1.Add(BookmarkStart.b("唥䀧丩", num), 8); dictionary1.Add(BookmarkStart.b("䠥䜧紩師伭䀯", num), 9); dictionary1.Add(BookmarkStart.b("严䄧丩䤫挭儯䀱弳", num), 10); dictionary1.Add(BookmarkStart.b("別䬧朩䴫尭", num), 11); dictionary1.Add(BookmarkStart.b("別䴧利堫栭尯崱䌳", num), 12); dictionary1.Add(BookmarkStart.b("別䴧利堫樭夯䀱儳唵䰷匹医倽", num), 13); dictionary1.Add(BookmarkStart.b("別䬧氩䔫娭搯圱䰳䈵", num), 14); dictionary1.Add(BookmarkStart.b("倥椧䘩䔫䤭帯", num), 15); dictionary1.Add(BookmarkStart.b("別䬧稩師洭堯匱娳儵崷", num), 0x10); dictionary1.Add(BookmarkStart.b("䜥䘧䐩䌫娭儯䘱崳夵嘷", num), 0x11); Class1160.dictionary_33 = dictionary1; } if (Class1160.dictionary_33.TryGetValue(key, out num2)) { switch (num2) { case 0: { class2.method_26(); continue; } case 1: { class2.method_45(A_1); continue; } case 2: { short num3 = (short)class2.method_29(); A_1.GridSpan = num3; continue; } case 3: case 4: goto Label_0291; case 5: case 6: goto Label_02C6; case 7: { smethod_1(class2, A_1); continue; } case 8: { A_1.SetAttr(0xc62, class2.method_39()); continue; } case 9: { A_1.SetAttr(0xc6c, !class2.method_31()); continue; } case 10: { A_1.SetAttr(0xc94, class2.method_31()); continue; } case 11: { A_1.SamePaddingsAsTable = false; smethod_2(class2, A_1); continue; } case 12: case 13: { A_1.SetAttr(0xbea, Class417.smethod_38(class2.method_28())); continue; } case 14: { A_1.SetAttr(0xc76, class2.method_31()); continue; } case 15: { A_1.SetAttr(0xbf4, Class859.smethod_6(class2.method_28())); continue; } case 0x10: { continue; } case 0x11: { Class519.smethod_9(A_1, A_0); continue; } } } } goto Label_03BA; Label_0291: str3 = class2.method_28(); if (str3 == null) { str3 = BookmarkStart.b("䔥䜧䐩堫䜭帯䜱儳", num); } A_1.SetAttr(0xbe0, Class859.smethod_4(str3)); continue; Label_02C6: str2 = class2.method_28(); if (str2 == null) { str2 = BookmarkStart.b("䔥䜧䐩堫䜭帯䜱儳", num); } A_1.SetAttr(0xbd6, Class859.smethod_4(str2)); continue; Label_03BA: class2.vmethod_1(); } }