internal static void smethod_0(Class421 A_0, FootnoteType A_1, AttrCollection A_2, bool A_3)
    {
        int    num  = 0;
        bool   flag = A_1 == FootnoteType.Endnote;
        object obj2 = A_2.method_31(2);
        object obj3 = A_2.method_31(1);
        object obj4 = A_2.method_31(4);
        object obj5 = A_2.method_31(3);

        if ((((obj2 != null) || (obj3 != null)) || ((obj4 != null) || (obj5 != null))) || A_3)
        {
            Class398 class2 = A_0.Interface52.imethod_1();
            class2.method_4(flag ? BookmarkStart.b("儥ሧ伩䈫䨭帯崱䀳匵样䠹", num) : BookmarkStart.b("儥ሧ䰩䌫䄭䐯就嬳䈵崷樹主", num));
            if (obj2 != null)
            {
                class2.method_24(BookmarkStart.b("儥ሧ娩䌫崭", num), Class339.smethod_7((FootnotePosition)obj2, false));
            }
            class2.method_24(BookmarkStart.b("儥ሧ䐩夫䌭瘯弱䀳", num), Class911.smethod_3(Class911.smethod_12((FootnoteNumberFormat)obj3)));
            if (obj4 != null)
            {
                class2.method_32(BookmarkStart.b("儥ሧ䐩夫䌭振䘱唳䐵䰷", num), (int)obj4, 1);
            }
            if (obj5 != null)
            {
                class2.method_24(BookmarkStart.b("儥ሧ䐩夫䌭戯圱䜳䈵夷䠹䠻", num), Class339.smethod_1((FootnoteRestartRule)obj5, false));
            }
            if (A_3)
            {
                smethod_1(A_0, flag, flag ? FootnoteSeparatorType.EndnoteSeparator : FootnoteSeparatorType.FootnoteSeparator);
                smethod_1(A_0, flag, flag ? FootnoteSeparatorType.EndnoteContinuation : FootnoteSeparatorType.FootnoteContinuation);
            }
            class2.method_5();
        }
    }
Beispiel #2
0
    private void method_5(Interface46 A_0, AttrCollection A_1, bool A_2)
    {
        int            num   = 7;
        AttrCollection attrs = this.method_11(A_0, A_1, A_2);

        this.class972_0.class1048_0.bool_0 = false;
        ParagraphFormat paraPr = null;

        if (A_0 is Paragraph)
        {
            paraPr = (A_0 as Paragraph).Format;
        }
        else if (A_0 is Style)
        {
            paraPr = (A_0 as Style).ParaPr;
        }
        if (A_2)
        {
            this.class972_0.string_14 = BookmarkStart.b("䐬䬮吰尲刴䔶堸䬺唼ሾ⁀⽂㕄⽆⡈", num);
            this.class972_0.string_15 = BookmarkStart.b("䔬丮弰吲尴夶常", num);
        }
        HorizontalAlignment left = HorizontalAlignment.Left;
        bool flag = false;

        for (int i = 0; i < attrs.Count; i++)
        {
            int    num3;
            int    num5 = attrs.method_18(i);
            object obj2 = attrs.method_19(i);
            if (obj2 != null)
            {
                this.class972_0.int_0++;
                num3 = num5;
                if (num3 <= 0x4ba)
                {
                    if (num3 <= 0x442)
                    {
                        if (num3 <= 0x410)
                        {
                            switch (num3)
                            {
                            case 20:
                            {
                                Borders borders = obj2 as Borders;
                                if (!borders.Left.IsDefault)
                                {
                                    this.class972_0.class1048_0.class411_2.border_0 = borders.Left;
                                }
                                if (!borders.Right.IsDefault)
                                {
                                    this.class972_0.class1048_0.class411_3.border_0 = borders.Right;
                                }
                                if (!borders.Top.IsDefault)
                                {
                                    this.class972_0.class1048_0.class411_0.border_0 = borders.Top;
                                }
                                if (!borders.Bottom.IsDefault)
                                {
                                    this.class972_0.class1048_0.class411_1.border_0 = borders.Bottom;
                                }
                                if (borders.IsDefault || (borders == null))
                                {
                                    this.class972_0.int_0--;
                                }
                                continue;
                            }

                            case 0x3fc:
                            {
                                flag = true;
                                left = (HorizontalAlignment)obj2;
                                continue;
                            }
                            }
                            if (num3 != 0x410)
                            {
                                goto Label_09CD;
                            }
                            if ((bool)obj2)
                            {
                                this.class972_0.string_9 = BookmarkStart.b("䰬䌮䘰刲䰴䐶", num);
                            }
                            else
                            {
                                this.class972_0.int_0--;
                            }
                        }
                        else
                        {
                            switch (num3)
                            {
                            case 0x41a:
                            {
                                if ((bool)obj2)
                                {
                                    this.class972_0.string_8 = BookmarkStart.b("䰬䌮䘰刲䰴䐶", num);
                                }
                                else
                                {
                                    this.class972_0.int_0--;
                                }
                                continue;
                            }

                            case 0x424:
                            {
                                this.class972_0.string_0 = ((bool)obj2) ? BookmarkStart.b("崬丮嘰嘲", num) : BookmarkStart.b("䰬娮䔰尲", num);
                                continue;
                            }
                            }
                            if (num3 != 0x442)
                            {
                                goto Label_09CD;
                            }
                            if (!((bool)obj2))
                            {
                                this.class972_0.string_15 = BookmarkStart.b("帬䘮尰䌲头制", num);
                            }
                            else
                            {
                                this.class972_0.int_0--;
                            }
                        }
                    }
                    else if (num3 <= 0x47e)
                    {
                        switch (num3)
                        {
                        case 0x46a:
                        {
                            if (!((bool)obj2))
                            {
                                this.class972_0.string_11 = BookmarkStart.b("夬崮䐰嘲", num);
                            }
                            else
                            {
                                this.class972_0.int_0--;
                            }
                            continue;
                        }

                        case 0x474:
                        {
                            if ((obj2 != null) && (((TabCollection)obj2).Count != 0))
                            {
                                this.class972_0.tabCollection_0 = (TabCollection)obj2;
                            }
                            this.class972_0.int_0--;
                            continue;
                        }
                        }
                        if (num3 != 0x47e)
                        {
                            goto Label_09CD;
                        }
                        if (((A_0 is Paragraph) && ((Paragraph)A_0).IsList) && (((Paragraph)A_0).ListFormat.method_31(0x47e) != null))
                        {
                            this.class972_0.int_0--;
                        }
                        else
                        {
                            this.class972_0.class1048_0.class411_3.string_3 = Class576.smethod_42((double)((float)obj2));
                            this.method_7(A_0);
                        }
                    }
                    else if (num3 <= 0x492)
                    {
                        if (num3 == 0x488)
                        {
                            if (((A_0 is Paragraph) && ((Paragraph)A_0).IsList) && (((Paragraph)A_0).ListFormat.method_31(0x488) != null))
                            {
                                this.class972_0.int_0--;
                            }
                            else
                            {
                                this.class972_0.class1048_0.class411_2.string_3 = Class576.smethod_42((double)((float)obj2));
                                this.method_7(A_0);
                            }
                            this.class972_0.int_1 = (int)((float)obj2);
                        }
                        else
                        {
                            if (num3 != 0x492)
                            {
                                goto Label_09CD;
                            }
                            if ((A_0 is Paragraph) && (((float)obj2) < 0f))
                            {
                                if ((A_0 is Paragraph) && !(A_0 as Paragraph).IsList)
                                {
                                    this.class972_0.string_6 = Class576.smethod_42((double)((float)obj2));
                                }
                                else
                                {
                                    this.class972_0.int_0--;
                                }
                            }
                            else
                            {
                                this.class972_0.string_6 = Class576.smethod_42((double)((float)obj2));
                            }
                        }
                    }
                    else if (num3 != 0x4b0)
                    {
                        if (num3 != 0x4ba)
                        {
                            goto Label_09CD;
                        }
                        this.class972_0.bool_0 = (bool)obj2;
                        this.class972_0.int_0--;
                    }
                    else
                    {
                        this.class972_0.class1048_0.class411_0.string_3 = Class576.smethod_42((double)((float)obj2));
                    }
                }
                else
                {
                    if (num3 > 0x5aa)
                    {
                        goto Label_0837;
                    }
                    if (num3 > 0x4d8)
                    {
                        goto Label_073E;
                    }
                    switch (num3)
                    {
                    case 0x4c4:
                    {
                        if (!(A_0 is Paragraph))
                        {
                            goto Label_0717;
                        }
                        Paragraph paragraph = (Paragraph)A_0;
                        if ((paragraph.NextSibling == null) || !(paragraph.NextSibling is Paragraph))
                        {
                            goto Label_06E9;
                        }
                        Paragraph nextSibling = (Paragraph)paragraph.NextSibling;
                        object    obj3        = nextSibling.Format.method_31(0x4b0);
                        if ((obj3 != null) && nextSibling.Format.BeforeAutoSpacing)
                        {
                            obj3 = 280f;
                        }
                        if ((obj3 != null) && (((float)obj3) > ((float)obj2)))
                        {
                            this.class972_0.int_0--;
                        }
                        else
                        {
                            this.class972_0.class1048_0.class411_1.string_3 = Class576.smethod_42((double)((float)obj2));
                            this.method_7(A_0);
                        }
                        continue;
                    }

                    case 0x4ce:
                    {
                        this.class972_0.bool_1 = (bool)obj2;
                        this.class972_0.int_0--;
                        continue;
                    }
                    }
                    if (num3 != 0x4d8)
                    {
                        goto Label_09CD;
                    }
                    this.class972_0.string_14 = ((bool)obj2) ? BookmarkStart.b("䐬䬮吰尲刴䔶堸䬺唼ሾ⁀⽂㕄⽆⡈", num) : BookmarkStart.b("䌬䀮弰嘲", num);
                }
            }
            continue;
Label_06E9:
            this.class972_0.class1048_0.class411_1.string_3 = Class576.smethod_42((double)((float)obj2));
            this.method_7(A_0);
            continue;
Label_0717:
            this.class972_0.class1048_0.class411_1.string_3 = Class576.smethod_42((double)((float)obj2));
            continue;
Label_073E:
            if (num3 <= 0x500)
            {
                if (num3 != 0x4ec)
                {
                    if (num3 != 0x500)
                    {
                        goto Label_09CD;
                    }
                    this.class972_0.int_2 = (byte)obj2;
                }
                else if ((bool)obj2)
                {
                    this.class972_0.string_13 = BookmarkStart.b("夬崮䐰嘲", num);
                }
                else
                {
                    this.class972_0.int_0--;
                }
            }
            else if (num3 != 0x582)
            {
                if (num3 != 0x5aa)
                {
                    goto Label_09CD;
                }
                this.class972_0.string_4 = ((int)obj2).ToString();
                this.class972_0.int_0--;
            }
            else if ((bool)obj2)
            {
                this.class972_0.string_16 = BookmarkStart.b("䌬䀮ᰰ弲尴娶倸伺", num);
            }
            else
            {
                this.class972_0.int_0--;
            }
            continue;
Label_0837:
            if (num3 <= 0x5dc)
            {
                switch (num3)
                {
                case 0x5b4:
                {
                    this.class972_0.string_1 = Class576.smethod_83((Class16)obj2);
                    if (this.class972_0.string_1 == null)
                    {
                        this.class972_0.int_0--;
                    }
                    continue;
                }

                case 0x5be:
                {
                    if ((bool)obj2)
                    {
                        this.class972_0.bool_2 = true;
                    }
                    else
                    {
                        this.class972_0.bool_2 = false;
                        this.class972_0.int_0--;
                    }
                    continue;
                }
                }
                if (num3 != 0x5dc)
                {
                    goto Label_09CD;
                }
                if (attrs.HasValue(0x5aa))
                {
                    this.class972_0.string_5 = Class576.smethod_35(obj2);
                }
                this.class972_0.int_0--;
                continue;
            }
            if (num3 <= 0x618)
            {
                if (num3 == 0x5e6)
                {
                    this.class972_0.string_17 = Class922.smethod_42((BaselineAlignment)obj2);
                    if (this.class972_0.string_17 == null)
                    {
                        this.class972_0.int_0--;
                    }
                }
                else
                {
                    if (num3 != 0x618)
                    {
                        goto Label_09CD;
                    }
                    if ((bool)obj2)
                    {
                        this.class972_0.string_10 = BookmarkStart.b("弬䌮ᰰ䜲圴", num);
                    }
                    else
                    {
                        this.class972_0.string_10 = BookmarkStart.b("䄬崮ᰰ䜲圴", num);
                    }
                }
                continue;
            }
            switch (num3)
            {
            case 0x672:
            {
                float           num4 = Math.Abs((float)obj2);
                LineSpacingRule rule = (LineSpacingRule)attrs.method_31(0x677);
                this.class972_0.lineSpacingRule_0 = rule;
                if (((A_0 is Paragraph) && ((Paragraph)A_0).Format.HasKey(0x532)) || (!(A_0 is Paragraph) && !(A_0 is Style)))
                {
                    goto Label_0A84;
                }
                this.class972_0.string_7 = Class576.smethod_9(num4, rule);
                continue;
            }

            case 0x271a:
            {
                this.class972_0.class580_0 = (Class580)obj2;
                this.class972_0.int_0--;
                continue;
            }
            }
Label_09CD:
            this.class972_0.int_0--;
            continue;
Label_0A84:
            this.class972_0.int_0--;
        }
        this.method_8(A_0);
        this.method_9(A_0, paraPr, left, flag);
        if (this.class972_0.bool_0 && (this.class972_0.class1048_0.class411_0.string_3 != null))
        {
            if ((A_0 is Paragraph) && (((Paragraph)A_0).PreviousSibling == null))
            {
                this.class972_0.class1048_0.class411_0.string_3 = null;
                this.class972_0.int_0--;
            }
            else
            {
                this.class972_0.class1048_0.class411_0.string_3 = Class576.smethod_42(280.0);
            }
        }
        if (this.class972_0.bool_1 && (this.class972_0.class1048_0.class411_1.string_3 != null))
        {
            if ((A_0 is Paragraph) && (((Paragraph)A_0).NextSibling == null))
            {
                this.class972_0.class1048_0.class411_1.string_3 = null;
                this.class972_0.int_0--;
            }
            else
            {
                this.class972_0.class1048_0.class411_1.string_3 = Class576.smethod_42(280.0);
            }
        }
        this.method_6(A_0, paraPr);
    }