private static void smethod_7(Class857 A_0, string A_1, bool A_2, bool A_3) { if (Class567.smethod_16(A_1)) { Class96 class2 = (Class96)A_0.method_13().method_2(Class576.smethod_87(A_1), null, false, false); Style style = (Style)Style.smethod_1(StyleType.CharacterStyle, A_0.method_9()); style.Name = class2.method_0(); if (class2.method_13() != null) { class2.method_13().method_37(style.RunPr); } } }
private static void smethod_9(Class857 A_0, Class93 A_1) { if (!smethod_10(A_0, A_1)) { Class96 class2 = (Class96)A_1; if (Class567.smethod_16(A_1.method_0())) { Style style = smethod_11(StyleType.CharacterStyle, A_1.method_0().ToString(), A_0.method_9()); if (class2.method_13() != null) { class2.method_13().method_37(style.RunPr); } A_0.method_9().Styles.method_7(style, null); } } }
internal void method_6(bool A_0, bool A_1) { int num = 11; int num2 = this.class89_0.method_8(); if (!A_0) { num2 = this.class89_0.method_9(); } else if (A_1) { num2 = this.class89_0.method_10(); } for (int i = 0; i < num2; i++) { Class96 class2; Class91 class4; if (!A_0) { class4 = this.class89_0.method_7(i); } else { class4 = A_1 ? this.class89_0.method_6(i) : this.class89_0.method_5(i); } if (!(class4 is Class96)) { continue; } Class96 class3 = class4 as Class96; if (((class3.method_17() <= 0.0) || (class3.method_13() == null)) || class3.method_13().HasValue(190)) { continue; } int fontSize = -1; string str = class3.method_8(); goto Label_0129; Label_00C5: if ((class2.method_13() != null) && class2.method_13().HasValue(190)) { fontSize = (int)class2.method_13().FontSize; str = null; } else { str = (str == BookmarkStart.b("戰䜲吴夶崸娺似嬾", num)) ? null : class2.method_8(); } if (!Class567.smethod_16(class2.method_0()) || (fontSize != -1)) { goto Label_0149; } Label_0129: class2 = (Class96)this.class89_0.method_4(str, class3.method_4()); if (class2 != null) { goto Label_00C5; } Label_0149: if (fontSize == -1) { fontSize = 20; } class3.method_13().SetAttr(190, (float)Class1133.smethod_5((fontSize * class3.method_17()) / 100.0)); } }
internal static void smethod_8(Class857 A_0, Paragraph A_1, string A_2, Class97 A_3, DocumentObject A_4) { int num = 14; Class396 class2 = A_0.method_11(); string str = (A_2 == BookmarkStart.b("䜳䘵夷吹", 14)) ? BookmarkStart.b("䀳匵䀷丹", num) : BookmarkStart.b("䐳圵䨷嬹嬻䰽ℿ㉁ⱃ", num); Class96 class3 = (Class96) A_0.method_13().method_2(A_0.method_16(), str, A_0.method_20(), true); if (class3 == null) { class3 = (Class96) A_0.method_13().method_2(A_0.method_16(), str, A_0.method_20(), false); } CharacterFormat format = new CharacterFormat(); if (((str == BookmarkStart.b("䀳匵䀷丹", num)) && (A_3 != null)) && (A_3.method_13() != null)) { format.method_73(A_3.method_13()); } Style style = null; if (class3 != null) { if (class3.method_13() != null) { format.method_73(class3.method_13()); } if ((str == BookmarkStart.b("䀳匵䀷丹", num)) && Class567.smethod_16(class3.method_8())) { style = (Style) A_0.method_9().Styles[class3.method_8()]; } } A_0.method_41(true); while (class2.method_10(A_2, XmlDocumentTextHandling.TextAndSignificantAndIgnorable)) { if (!Class857.smethod_10(A_0, A_1, format, style)) { string key = class2.method_1(); if (key != null) { int num2; if (Class1160.dictionary_229 == null) { Dictionary<string, int> dictionary1 = new Dictionary<string, int>(12); dictionary1.Add("", 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); Class1160.dictionary_229 = dictionary1; } if (Class1160.dictionary_229.TryGetValue(key, out num2)) { switch (num2) { case 0: { smethod_23(A_0, A_1, format, style); continue; } case 1: { smethod_16(A_0, A_1, format, style); continue; } case 2: { smethod_17(A_0, A_1, format, style); continue; } case 3: { smethod_12(A_0, A_1, format, Class816.string_6, style); continue; } case 4: { smethod_9(A_0, A_1); continue; } case 5: { smethod_18(A_0, A_1, A_3, A_4); A_0.method_41(true); continue; } case 6: { smethod_19(A_0, A_1, format); A_0.method_41(true); continue; } case 7: { smethod_21(A_0, A_1, format); A_0.method_41(true); continue; } case 8: { A_1.method_13(new BookmarkStart(A_0.method_9(), class2.method_12(BookmarkStart.b("娳圵唷弹", num), null))); A_1.method_13(new BookmarkEnd(A_0.method_9(), class2.method_12(BookmarkStart.b("娳圵唷弹", num), null))); A_0.method_41(true); continue; } case 9: { A_1.method_13(new BookmarkStart(A_0.method_9(), class2.method_12(BookmarkStart.b("娳圵唷弹", num), null))); A_0.method_41(true); continue; } case 10: { A_1.method_13(new BookmarkEnd(A_0.method_9(), class2.method_12(BookmarkStart.b("娳圵唷弹", num), null))); A_0.method_41(true); continue; } case 11: { smethod_10(A_0, A_1, format, style); continue; } } } } if (Class567.smethod_16(Class857.string_4) && !smethod_27(A_1.Text)) { smethod_12(A_0, A_1, format, BookmarkStart.b("ᐳ", num), style); Class857.string_4 = ""; } if (Class797.smethod_0(A_0, A_1, format, style, A_3, A_4)) { A_0.method_41(true); } else { smethod_8(A_0, A_1, class2.method_1(), A_3, A_4); } } else { A_0.method_41(true); } } if (((class3 != null) && (!A_1.HasChildElements || bool_0)) && ((class3.method_13() != null) && ((A_2 == BookmarkStart.b("䐳", num)) || (A_2 == BookmarkStart.b("尳", num))))) { A_1.BreakCharacterFormat.method_25(class3.method_13()); } }