internal CharacterFormat method_12(Class97 A_0) { CharacterFormat format = null; if ((A_0 != null) && (A_0.method_13() != null)) { format = (CharacterFormat)A_0.method_13().Clone(); } if (this.characterFormat_0 != null) { if (format == null) { format = (CharacterFormat)this.characterFormat_0.Clone(); } else { this.characterFormat_0.method_37(format); } } if (format == null) { format = new CharacterFormat(); } return(format); }
private static void smethod_12(Class857 A_0, Class93 A_1) { int num = 0x10; if (Class567.smethod_16(A_1.method_0())) { string name = Class922.smethod_79(A_1.method_0()); if (A_0.method_9().Styles.FindByName(name) == null) { Style style = smethod_11(StyleType.ParagraphStyle, A_1.method_0(), A_0.method_9()); Class97 class2 = (Class97)A_1; if (A_1.method_8() != null) { style.ApplyBaseStyle(smethod_11(StyleType.ParagraphStyle, A_1.method_8(), A_0.method_9())); } if (class2.method_13() != null) { class2.method_13().CopyPropertiesTo(style.RunPr); } if ((class2.method_15() != null) && (style.ParaPr != null)) { class2.method_15().CopyPropertiesTo(style.ParaPr); } if (class2.method_25() != -1) { style.ParaPr.SetAttr(0x500, (byte)class2.method_25()); } if (style.StyleIdentifier == StyleIdentifier.Normal) { style.QuickFormat = true; A_0.method_9().Styles.DefaultParaStyle = style as ParagraphStyle; style.Name = BookmarkStart.b("砵圷䠹儻弽ⰿ", num); style.method_5(BookmarkStart.b("圵", num)); A_0.method_9().Styles.method_7(style, null); } else { A_0.method_9().Styles.method_7(style, null); } } } else { Class97 class3 = (Class97)A_1; if (class3.method_13() != null) { A_0.method_9().DefCharFormat = new CharacterFormat(A_0.method_9()); class3.method_13().method_37(A_0.method_9().DefCharFormat); } if (class3.method_15() != null) { A_0.method_9().DefParaFormat = new ParagraphFormat(A_0.method_9()); class3.method_15().method_37(A_0.method_9().DefParaFormat); } } }
internal static void smethod_1(Class857 A_0, string A_1, DocumentObject A_2) { Paragraph paragraph; int num = 12; Class396 class2 = A_0.method_11(); A_0.method_17(null); while (class2.method_19()) { smethod_7(A_0); } class2.method_8().MoveToElement(); Class108 class6 = Class574.smethod_10(A_0); if (!Class576.smethod_1(class2)) { A_2 = Class574.smethod_4(A_0, class6, A_2); } Class97 class4 = (Class97) A_0.method_13().method_2(A_0.method_16(), BookmarkStart.b("䈱唳䐵夷崹主弽〿⩁", num), A_0.method_20(), true); if ((A_0.method_36().Count > 0) && (A_2 is Body)) { paragraph = (Paragraph) A_0.method_36()[A_0.method_36().Count - 1]; A_0.method_36().RemoveAt(A_0.method_36().Count - 1); } else { paragraph = new Paragraph(A_0.method_9()); if (A_2 is ShapeObject) { (A_2 as ShapeObject).InternerTextbox.method_13(paragraph); } else if (A_2 is Footnote) { (A_2 as Footnote).TextBody.method_13(paragraph); } else if (A_2 is Comment) { (A_2 as Comment).Body.method_13(paragraph); } else { A_2.method_13(paragraph); } } if ((A_0.method_38() != null) && !A_0.method_38().method_10()) { paragraph.method_18(new FieldMark(A_0.method_9(), new CharacterFormat(A_0.method_9()), FieldMarkType.FieldSeparator), paragraph.FirstChild); paragraph.method_17(new FieldMark(A_0.method_9(), new CharacterFormat(A_0.method_9()), FieldMarkType.FieldSeparator), paragraph.method_17(new TextRange(A_0.method_9(), string.Format(BookmarkStart.b("䤱г䬵", num), A_0.method_38().method_8()), new CharacterFormat(A_0.method_9())), paragraph.FirstChild)); A_0.method_38().method_11(true); } if (A_1 == BookmarkStart.b("娱", num)) { smethod_6(A_0, paragraph); } else { paragraph.Format.SetAttr(0x500, (byte) 9); } Class857.string_4 = ""; smethod_13(A_0, paragraph, class4); smethod_8(A_0, paragraph, A_1, class4, A_2); smethod_14(A_0, paragraph, class4); if (class4 == null) { Style style2 = (Style) A_0.method_9().Styles[(A_0.method_16() == null) ? BookmarkStart.b("愱䀳圵嘷帹崻䰽", num) : A_0.method_16()]; if (style2 != null) { paragraph.ApplyStyle(style2.Name); } } else { if (class4.method_15() != null) { class4.method_15().CopyPropertiesTo(paragraph.Format); paragraph.Format.Borders.IsDefault = class4.method_15().Borders.IsDefault; } if (class4.method_13() != null) { CharacterFormat.smethod_5(class4.method_13(), paragraph.BreakCharacterFormat); } if (Class567.smethod_16(class4.method_8())) { Style style = (Style) A_0.method_9().Styles[class4.method_8()]; if ((style != null) && (style.ParaPr != null)) { paragraph.method_65(style as ParagraphStyle); smethod_4(style.ParaPr.Tabs, paragraph.Format.Tabs); } } if (Class567.smethod_16(class4.method_10())) { Class101 class3 = A_0.method_13().method_3(class4.method_10(), null, A_0.method_20()) as Class101; class3.method_21().Name = class4.method_10(); if (A_0.method_9().ListStyles.FindByName(class4.method_10()) == null) { A_0.method_9().ListStyles.Add(class3.method_21()); } paragraph.ListFormat.ApplyStyle(class3.method_21().Name); } if ((paragraph.IsInCell && (((TableCell) paragraph.OwnerTextBody).Paragraphs[0] == paragraph)) && (class4.method_19() != TextOrientation.Horizontal)) { ((TableCell) paragraph.OwnerTextBody).CellFormat.SetAttr(0xbea, class4.method_19()); } if (paragraph.method_1() == null) { smethod_2(paragraph, class4); } } if ((paragraph.Format.OutlineLevel != OutlineLevel.Body) && (A_0.method_65() != null)) { Class101 class5 = A_0.method_65(); int outlineLevelEx = paragraph.Format.OutlineLevelEx; if (((class5 != null) && class5.hashtable_0.ContainsKey(outlineLevelEx)) && ((bool) class5.hashtable_0[outlineLevelEx])) { paragraph.ListFormat.ListLevelNumber = outlineLevelEx - 1; paragraph.ListFormat.ApplyStyle(A_0.method_65().method_21().Name); } } smethod_5(paragraph, class4); smethod_3(paragraph); }
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()); } }
internal static void smethod_3(Class857 A_0, Paragraph A_1, Class97 A_2, DocumentObject A_3, CharacterFormat A_4, Style A_5) { int num = 11; Class396 class2 = A_0.method_11(); string str = class2.method_0(); Field field = new Field(A_0.method_9()) { Type = FieldType.FieldHyperlink }; Hyperlink hyperlink = new Hyperlink(field); A_1.method_13(field); string str2 = ""; string str3 = ""; while (class2.method_19()) { string str5 = class2.method_1(); if (str5 != null) { if (!(str5 == BookmarkStart.b("夰䄲倴儶", num))) { if (str5 == BookmarkStart.b("䔰刲䜴倶尸伺ြ夾㍀≂⡄≆摈╊ⱌ≎㑐", num)) { str3 = class2.method_3(); } } else { str2 = Class576.smethod_91(class2.method_3()); } } } if ((str == BookmarkStart.b("䔰嘲䴴䌶", num)) && Class567.smethod_16(str2)) { string.Format(BookmarkStart.b("礰樲攴父欸眺琼焾ੀ捂杄㱆祈㙊潌", num), str2); if (str2.StartsWith(BookmarkStart.b("ሰ", num))) { hyperlink.Type = HyperlinkType.Bookmark; string str4 = str2.Replace(BookmarkStart.b("ሰ", num), string.Empty); hyperlink.BookmarkName = str4; field.m_fieldValue = str4; } else { field.m_fieldValue = BookmarkStart.b("ጰ", num) + str2.Replace(BookmarkStart.b("洰", num), BookmarkStart.b("洰漲", num)) + BookmarkStart.b("ጰ", num); field.Code = string.Format(BookmarkStart.b("礰樲攴父欸眺琼焾ੀ捂㹄睆㑈", num), field.m_fieldValue); } FieldMark mark = new FieldMark(A_0.method_9(), FieldMarkType.FieldSeparator); A_1.method_13(mark); field.Separator = mark; } if (str == BookmarkStart.b("唰䄲吴䀶", num)) { A_0.method_49(str2); A_0.method_51(str3); } Class1099.smethod_8(A_0, A_1, BookmarkStart.b("倰", num), A_2, A_3); if (str == BookmarkStart.b("唰䄲吴䀶", num)) { A_0.method_49(null); A_0.method_51(null); } if ((A_2 != null) && (A_2.method_13() != null)) { A_4.method_73(A_2.method_13()); } FieldMark mark2 = new FieldMark(A_0.method_9(), FieldMarkType.FieldEnd); A_1.method_13(mark2); field.End = mark2; }