Пример #1
0
    private void method_2(Paragraph A_0, ParagraphFormat A_1)
    {
        int num = 0;

        if (A_0 != null)
        {
            int    key  = -1;
            object obj2 = null;
            if (A_1.method_6(0x460))
            {
                key = (int)A_1.method_31(0x460);
            }
            else if ((A_1.FormatRevision != null) && A_1.FormatRevision.method_4().method_6(0x460))
            {
                key = (int)A_1.FormatRevision.method_4().method_31(0x460);
            }
            if (A_1.method_6(0x456))
            {
                obj2 = A_1.method_31(0x456);
            }
            else if ((A_1.FormatRevision != null) && A_1.FormatRevision.method_4().method_6(0x456))
            {
                obj2 = A_1.FormatRevision.method_4().method_31(0x456);
            }
            if (key == 0)
            {
                A_0.ListFormat.IsEmptyList = true;
            }
            else if ((key > 0) && this.document_0.ListStyles.ListStyleNames.ContainsKey(key.ToString()))
            {
                string    name  = this.document_0.ListStyles.ListStyleNames[key.ToString()];
                ListStyle style = this.document_0.ListStyles.FindByName(name);
                if (style != null)
                {
                    if (!string.IsNullOrEmpty(style.BaseListStyleName) && this.document_0.ListStyles.ListStyleNames.ContainsKey(style.BaseListStyleName))
                    {
                        string str = this.document_0.ListStyles.ListStyleNames[style.BaseListStyleName];
                        if (this.document_0.ListStyles.ListStyleNames.ContainsKey(str))
                        {
                            name = this.document_0.ListStyles.ListStyleNames[str];
                        }
                    }
                    if (name != null)
                    {
                        A_0.ListFormat.ApplyStyle(name);
                    }
                    if (this.class764_0.method_48().ContainsKey(key))
                    {
                        A_0.ListFormat.LFOStyleName = this.class764_0.method_48()[key];
                    }
                }
                if (obj2 != null)
                {
                    int num3;
                    if (obj2.GetType().Name == BookmarkStart.b("搥儧帩䤫", num))
                    {
                        num3 = (byte)obj2;
                    }
                    else
                    {
                        num3 = (int)obj2;
                    }
                    if (num3 > 8)
                    {
                        num3 = 8;
                    }
                    A_0.ListFormat.ListLevelNumber = num3;
                }
            }
        }
    }