internal static void smethod_0(Class581 A_0, ParagraphFormat A_1, CharacterFormat A_2, Class584 A_3) { object obj2 = A_1.method_31(0x465); A_1.method_71(0x465); object obj3 = A_1.method_31(0x62c); A_1.method_71(0x62c); ParagraphFormat format = (ParagraphFormat)A_1.method_23(); A_1.ClearFormatting(); Class924.smethod_0(A_0, A_1, A_2); bool flag = A_1.method_31(0x3e8) != null; bool flag2 = format.method_31(0x3e8) != null; if (flag && !flag2) { format.SetAttr(0x3e8, format.method_31(0x3e8)); } if (obj2 != null) { A_1.SetAttr(0x465, obj2); } if (obj3 != null) { A_1.SetAttr(0x62c, obj3); } }
private static Class13 smethod_7(Class582 A_0) { int num = 2; Class394 class2 = A_0.imethod_1(); Class13 class3 = new Class13(A_0.Interface50.imethod_0()); while (class2.method_19()) { string str2 = class2.method_1(); if (str2 != null) { bool flag1 = str2 == BookmarkStart.b("尧匩尫䬭", num); } } while (class2.method_9(BookmarkStart.b("尧䠩䀫紭䐯䬱堳匵样䠹", num))) { string str = class2.method_1(); if (str != 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)) { Class419.smethod_0(A_0, class3.Interface8.imethod_1()); } } else { Class1131.smethod_0(class3.Interface8.imethod_2(), A_0); } } else { Class829.smethod_0(class3.Interface8.imethod_3(), A_0, true); } } else { Class733.smethod_0(A_0, class3.CharacterFormat); } } else { Class924.smethod_0(A_0, class3.imethod_0(), class3.CharacterFormat); } } } return(class3); }
private static bool smethod_6(Class581 A_0, Paragraph A_1) { int num = 0; bool flag = false; Class394 class2 = A_0.imethod_1(); if (A_0.vmethod_1() && !smethod_5(A_0)) { Class9 class3 = Class402.smethod_0(A_0, MarkupLevel.Inline); A_0.method_3(class3); while (class2.method_9(class3.method_22())) { flag = smethod_6(A_0, A_1); } A_0.method_5(DocumentObjectType.CustomXml); return(flag); } string str = class2.method_1(); if (str != null) { if (str == BookmarkStart.b("嘥砧堩", num)) { return(Class924.smethod_0(A_0, A_1.Format, A_1.BreakCharacterFormat)); } if (str != BookmarkStart.b("䨥䄧天堫縭䈯", num)) { if ((str == BookmarkStart.b("嘥䴧堩䄫紭䐯匱䘳䈵", num)) || (str == BookmarkStart.b("嘥䴧堩䄫欭帯嘱", num))) { Class464.smethod_1(A_0); return(flag); } if (str == BookmarkStart.b("䜥䘧䐩䌫娭儯䘱崳夵嘷", num)) { Class519.smethod_1(A_0, A_1); return(flag); } } else { Class924.smethod_7(A_0, A_1.Format); return(flag); } } Class464.smethod_1(A_0); return(flag); }
private static void smethod_3(Class582 A_0, ArrayList A_1, Hashtable A_2, Dictionary <string, string> A_3, Dictionary <string, string> A_4) { int num = 3; StyleCollection styles = A_0.Interface50.imethod_0().Styles; Class394 class2 = A_0.imethod_1(); StyleType paragraphStyle = StyleType.ParagraphStyle; string str = null; bool flag = false; while (class2.method_19()) { string str6 = class2.method_1(); if (str6 != null) { if (str6 != BookmarkStart.b("崨刪崬䨮", num)) { if (!(str6 == BookmarkStart.b("䴨个䬬丮䐰弲䄴", num))) { if (str6 == BookmarkStart.b("娨弪听䌮吰稲儴", num)) { str = class2.method_3(); } } else { flag = class2.method_63(); } } else { paragraphStyle = Class911.smethod_8(class2.method_3()); } } } if (paragraphStyle == StyleType.ListStyle) { MemoryStream stream = new MemoryStream(); XmlWriter writer = Class57.smethod_19(stream, Encoding.UTF8); writer.WriteNode(class2.method_8(), false); writer.Flush(); } else { Style style = Style.smethod_1(paragraphStyle, A_0.Interface50.imethod_0()) as Style; if (!string.IsNullOrEmpty(str)) { style.method_5(str); } Class801 class3 = new Class801(style); string str3 = null; while (class2.method_9(BookmarkStart.b("娨弪听䌮吰", num))) { string str2; string str5; string str7; string key = class2.method_1(); if (key != null) { int num2; if (Class1160.dictionary_223 == null) { Dictionary <string, int> dictionary1 = new Dictionary <string, int>(0x10); 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); Class1160.dictionary_223 = dictionary1; } if (Class1160.dictionary_223.TryGetValue(key, out num2)) { switch (num2) { case 0: goto Label_02A7; case 1: { str3 = class2.method_28(); continue; } case 2: { if (style.Name.ToLower() != BookmarkStart.b("䜨䐪弬䈮倰弲", num)) { str5 = class2.method_28(); if (A_0.Interface50.imethod_0().StyleNameIds.ContainsKey(str5)) { goto Label_0345; } A_3.Add(style.StyleId, str5); } continue; } case 3: { style.NextStyle = class2.method_28(); continue; } case 4: { str2 = class2.method_28(); if (!A_0.Interface50.imethod_0().StyleNameIds.ContainsKey(str2)) { goto Label_03EB; } style.LinkStyle = A_0.Interface50.imethod_0().StyleNameIds[str2]; continue; } case 5: { style.AutomaticallyUpdate = class2.method_31(); continue; } case 6: { style.Hidden = class2.method_31(); continue; } case 7: { style.IsSemiHidden = class2.method_31(); continue; } case 8: { style.Locked = class2.method_31(); continue; } case 9: { style.Personal = class2.method_31(); continue; } case 10: { style.PersonalCompose = class2.method_31(); continue; } case 11: { style.PersonalReply = class2.method_31(); continue; } case 12: { int num3 = Class114.smethod_7(class2.method_28()); if (num3 != -2147483648) { style.Rsid = num3; } continue; } case 13: { Class924.smethod_0(A_0, style.ParaPr, style.CharacterFormat); continue; } case 14: { Class733.smethod_0(A_0, style.CharacterFormat); continue; } case 15: { continue; } } } } goto Label_04DE; Label_02A7: str7 = class2.method_28(); if (Class567.smethod_16(str7)) { Class1145.smethod_0(str7, styles, false, style); if (!Class567.smethod_16(str)) { str = str7; } A_0.Interface58.imethod_1(str, style.Istd); } continue; Label_0345: if (A_0.Interface50.imethod_0().Styles.FindByName(A_0.Interface50.imethod_0().StyleNameIds[str5]) == null) { A_3.Add(style.StyleId, str5); } else { style.ApplyBaseStyle(A_0.Interface50.imethod_0().StyleNameIds[str5]); } continue; Label_03EB: if (A_4.ContainsKey(style.StyleId)) { A_4[style.StyleId] = str2; } else { A_4.Add(style.StyleId, str2); } continue; Label_04DE: smethod_6(A_0, style); } string[] strArray = null; if (str3 != null) { strArray = str3.Split(new char[] { ',' }); } if (!string.IsNullOrEmpty(str) && !A_0.Interface50.imethod_0().StyleNameIds.ContainsKey(str)) { A_0.Interface50.imethod_0().StyleNameIds.Add(str, style.Name); } if (Class567.smethod_16(style.Name)) { if (styles.method_9(style.StyleId) == null) { styles.method_7(style, strArray); if (flag && (paragraphStyle == StyleType.ParagraphStyle)) { styles.DefaultParaStyle = style as ParagraphStyle; } } A_1.Add(class3); } } }
private static void smethod_6(ListLevel A_0, Class582 A_1, int A_2) { int num = 3; Class394 class2 = A_1.imethod_1(); while (class2.method_19()) { string str3 = class2.method_1(); if (str3 != null) { if (!(str3 == BookmarkStart.b("崨嬪䄬䰮", num))) { if (str3 == BookmarkStart.b("崨个䌬嬮倰䜲尴䄶尸", num)) { class2.method_63(); } } else { Class114.smethod_9(class2.method_3()); } } } A_0.StartAt = 0; while (class2.method_9(BookmarkStart.b("䔨崪䄬", num))) { string str; string str4; string key = class2.method_1(); if (key != null) { int num3; if (Class1160.dictionary_121 == null) { Dictionary <string, int> dictionary1 = new Dictionary <string, int>(12); 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); Class1160.dictionary_121 = dictionary1; } if (Class1160.dictionary_121.TryGetValue(key, out num3)) { switch (num3) { case 0: A_0.StartAt = class2.method_29(); break; case 1: A_0.PatternType = (ListPatternType)class2.method_29(); break; case 2: if (class2.method_29() == 0) { A_0.NoRestartByHigher = true; } break; case 3: A_0.ParaStyleName = class2.method_28(); break; case 4: A_0.IsLegalStyleNumbering = class2.method_31(); break; case 5: A_0.FollowCharacter = Class463.smethod_2(class2.method_28()); break; case 6: goto Label_0314; case 7: A_0.PicBulletId = (short)class2.method_29(); A_0.PicBullet = dictionary_0[A_0.PicBulletId.ToString()]; break; case 8: goto Label_03BF; case 9: A_0.NumberAlignment = Class463.smethod_0(class2.method_28()); break; case 10: Class924.smethod_0(A_1, A_0.ParagraphFormat, A_0.CharacterFormat); break; case 11: Class733.smethod_0(A_1, A_0.CharacterFormat); break; } } } continue; Label_0234: if ((str4 = class2.method_1()) != null) { if (!(str4 == BookmarkStart.b("弨䨪䄬", num))) { if (str4 == BookmarkStart.b("䜨帪䄬䌮", num)) { } } else if (A_0.PatternType == ListPatternType.Bullet) { A_0.BulletCharacter = class2.method_3(); } else { string str5 = class2.method_3(); A_0.LevelText = str5; string str6 = BookmarkStart.b("న", num) + ((A_0.LevelNumber + 1)).ToString(); int index = str5.IndexOf(str6); if (index != -1) { A_0.NumberPrefix = class2.method_3().Substring(0, index); A_0.NumberPrefix = smethod_7(A_0.NumberPrefix); int startIndex = index + 2; A_0.NumberSufix = str5.Substring(startIndex, str5.Length - startIndex); } } } Label_0314: if (class2.method_19()) { goto Label_0234; } continue; Label_0354: if ((str = class2.method_1()) != null) { if (str != BookmarkStart.b("䔨个䨬丮到䨲", num)) { if (!(str == BookmarkStart.b("䔨个䨬丮到䨲昴䜶堸堺堼", num))) { if (str == BookmarkStart.b("䔨个䨬丮到䨲簴夶崸帺匼䬾", num)) { A_0.LegacyIndent = class2.method_4(); } } else { A_0.LegacySpace = class2.method_4(); } } else { A_0.Word6Legacy = class2.method_63(); } } Label_03BF: if (class2.method_19()) { goto Label_0354; } } }