Exemple #1
0
    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);
            }
        }
    }
Exemple #2
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;
                    }
                }
            }
        }
    }
    internal static void smethod_0(Class857 A_0, bool A_1)
    {
        int      num    = 4;
        Class396 class2 = A_0.method_11();
        string   str    = class2.method_1();
        Class93  class3 = smethod_1(class2.method_12(BookmarkStart.b("䰩䴫䌭夯帱䴳", 4), null));

        smethod_2(A_0, class3);
        while (class2.method_9(str))
        {
            string key = class2.method_1();
            if (key != null)
            {
                int num2;
                if (Class1160.dictionary_185 == null)
                {
                    Dictionary <string, int> dictionary1 = new Dictionary <string, int>(11);
                    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);
                    Class1160.dictionary_185 = dictionary1;
                }
                if (Class1160.dictionary_185.TryGetValue(key, out num2))
                {
                    switch (num2)
                    {
                    case 0:
                        goto Label_0175;

                    case 1:
                    {
                        if (class3 is Class97)
                        {
                            Class413.smethod_0(A_0, (Class97)class3);
                        }
                        continue;
                    }

                    case 2:
                    {
                        if (class3 is Class95)
                        {
                            Class242.smethod_0(A_0, (Class95)class3);
                        }
                        continue;
                    }

                    case 3:
                    {
                        if (class3 is Class106)
                        {
                            Class853.smethod_0(A_0, (Class106)class3);
                        }
                        continue;
                    }

                    case 4:
                    {
                        if (class3 is Class94)
                        {
                            Class853.smethod_5(A_0, (Class94)class3);
                        }
                        continue;
                    }

                    case 5:
                    {
                        if (class3 is Class103)
                        {
                            Class853.smethod_1(A_0, (Class103)class3);
                        }
                        continue;
                    }

                    case 6:
                    {
                        if (class3 is Class100)
                        {
                            Class853.smethod_2(A_0, (Class100)class3);
                        }
                        continue;
                    }

                    case 7:
                    {
                        if (class3 is Class98)
                        {
                            Class794.smethod_0(A_0, (Class98)class3);
                        }
                        continue;
                    }

                    case 8:
                    {
                        if (class3 is Class105)
                        {
                            Class1095.smethod_0(A_0, (Class105)class3);
                        }
                        continue;
                    }

                    case 9:
                    {
                        if (class3 is Class104)
                        {
                            Class529.smethod_0(A_0, (Class104)class3);
                        }
                        continue;
                    }

                    case 10:
                    {
                        if (class3 is Class99)
                        {
                            Class648.smethod_0(A_0, (Class99)class3);
                        }
                        continue;
                    }
                    }
                }
            }
            goto Label_02BD;
Label_0175:
            if (class3 is Class96)
            {
                Class96         class4 = (Class96)class3;
                CharacterFormat format = Class1141.smethod_0(A_0, (Class96)class3);
                if (format.Count > 0)
                {
                    class4.method_14(format);
                }
                if (class3.method_8() != null)
                {
                    format.CharStyleName = class3.method_8();
                }
            }
            continue;
Label_02BD:
            class2.vmethod_1();
        }
        A_0.method_13().method_1(class3, A_0.method_20(), A_1);
    }