Esempio n. 1
0
    internal static void smethod_7(Class581 A_0, ParagraphFormat A_1)
    {
        int        num        = 0x11;
        Class394   class2     = A_0.imethod_1();
        string     str        = class2.method_1();
        ListFormat listFormat = null;

        if (A_1.OwnerBase is Paragraph)
        {
            listFormat = (A_1.OwnerBase as Paragraph).ListFormat;
        }
        else if (A_1.OwnerBase is ParagraphStyle)
        {
            listFormat = (A_1.OwnerBase as ParagraphStyle).ListFormat;
        }
        else if (A_1.OwnerBase is Class13)
        {
            listFormat = (A_1.OwnerBase as Class13).method_23();
        }
        while (class2.method_9(str))
        {
            string str3;
            int    num2;
            int    num3;
            string key = class2.method_1();
            if (key != null)
            {
                int num4;
                if (Class1160.dictionary_200 == null)
                {
                    Dictionary <string, int> dictionary1 = new Dictionary <string, int>(8);
                    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);
                    Class1160.dictionary_200 = dictionary1;
                }
                if (Class1160.dictionary_200.TryGetValue(key, out num4))
                {
                    switch (num4)
                    {
                    case 0:
                        goto Label_017A;

                    case 1:
                    case 2:
                    {
                        num2 = class2.method_29();
                        str3 = num2.ToString();
                        A_1.SetAttr(0x460, num2);
                        if (num2 != 0)
                        {
                            goto Label_01EC;
                        }
                        listFormat.IsEmptyList = true;
                        continue;
                    }

                    case 3:
                    case 4:
                    case 5:
                    case 6:
                    case 7:
                    {
                        continue;
                    }
                    }
                }
            }
            goto Label_02E2;
Label_017A:
            num3 = class2.method_29();
            if (num3 < 0)
            {
                num3 = 0x100 + num3;
            }
            if (num3 > 8)
            {
                num3 = 8;
            }
            A_1.SetAttr(0x456, (byte)num3);
            listFormat.ListLevelNumber = num3;
            continue;
Label_01EC:
            if (A_0.method_20().ContainsKey(str3))
            {
                string    name  = A_0.method_20()[str3];
                ListStyle style = A_0.Interface50.imethod_0().ListStyles.FindByName(name);
                if (((A_0.method_20() != null) && (style.BaseListStyleName != null)) && ((style.BaseListStyleName != string.Empty) && A_0.method_20().ContainsKey(style.BaseListStyleName)))
                {
                    string str2 = A_0.method_20()[style.BaseListStyleName];
                    if (A_0.method_20().ContainsKey(str2))
                    {
                        name = A_0.method_20()[str2];
                    }
                }
                if (name != null)
                {
                    listFormat.ApplyStyle(name);
                }
                if (A_0.method_21().ContainsKey(num2))
                {
                    listFormat.LFOStyleName = A_0.method_21()[num2].ToString();
                }
                listFormat.ApplyStyle(A_0.method_20()[str3].ToString());
            }
            continue;
Label_02E2:
            class2.vmethod_1();
        }
    }