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); } } }
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); } } }
private static bool smethod_10(Class857 A_0, Class93 A_1) { for (int i = 0; i < A_0.method_13().method_8(); i++) { Class91 class2 = A_0.method_13().method_5(i); if ((class2 is Class101) && (class2 as Class101).method_23().Contains(A_1.method_0())) { return(true); } } return(false); }
private static void smethod_8(Class857 A_0) { int num = 9; for (int i = 0; i < A_0.method_13().method_8(); i++) { Class91 class3 = A_0.method_13().method_5(i); if (class3 is Class93) { Class93 class2 = class3 as Class93; if (class2.method_4() == BookmarkStart.b("弮倰䄲吴倶䬸娺䴼圾", num)) { smethod_12(A_0, class2); } if ((class2.method_4() == BookmarkStart.b("嬮吰䬲䄴", num)) && (!Class567.smethod_16(class2.method_0()) || (A_0.method_9().Styles.method_12(class2.method_0(), false) == null))) { smethod_9(A_0, class2); } } } smethod_13(A_0); }
private static void smethod_13(Class857 A_0) { int num = 6; for (int i = 0; i < A_0.method_9().Styles.Count; i++) { Style style4 = (Style)A_0.method_9().Styles[i]; if ((style4.StyleIdentifier != StyleIdentifier.Normal) && (style4.StyleIdentifier != StyleIdentifier.DefaultParagraphFont)) { Class91 class4 = A_0.method_13().method_2(style4.Name, null, false, false); if (class4 is Class93) { Class93 class3 = class4 as Class93; if (class3.method_8() != null) { Style style = A_0.method_9().Styles.method_12(class3.method_8(), false); if (((style != null) && (style.StyleType == style4.StyleType)) && (class3.method_0() != class3.method_8())) { style4.BasedOnIstd = A_0.method_9().Styles.method_12(class3.method_8(), false).Istd; } } } } } for (int j = 0; j < A_0.method_13().method_8(); j++) { Class91 class5 = A_0.method_13().method_5(j); if ((class5 != null) && (class5 is Class101)) { Class101 class6 = class5 as Class101; string str = (string)class6.method_23()[0]; Class93 class2 = (Class93)A_0.method_13().method_2(str, BookmarkStart.b("堫䬭䠯䘱", num), false, false); if ((class2 != null) && (class2.method_8() != null)) { Style style3 = A_0.method_9().Styles.method_12(class2.method_8(), false); ListStyle style2 = A_0.method_9().ListStyles[class6.method_21().ListDefId]; if (style3.StyleIdentifier != StyleIdentifier.NoList) { style2.ListStyleIstd = style3.Istd; } } } } }