Ejemplo n.º 1
0
    private void method_5(IRunAttrSource A_0, AttrCollection A_1, bool A_2)
    {
        bool           flag;
        int            num        = 13;
        Paragraph      paragraph2 = (flag = (A_0 != null) && (A_0 is Paragraph)) ? ((Paragraph)A_0) : null;
        AttrCollection attrs      = this.method_6(A_0, A_1, A_2);

        for (int i = 0; i < attrs.Count; i++)
        {
            int    num2 = attrs.method_18(i);
            object obj2 = attrs.method_19(i);
            if (obj2 == null)
            {
                continue;
            }
            this.class743_0.int_0++;
            int num3 = num2;
            if (num3 <= 210)
            {
                if (num3 <= 120)
                {
                    if (num3 <= 80)
                    {
                        if (num3 <= 60)
                        {
                            if (num3 != 20)
                            {
                                if (num3 != 60)
                                {
                                    goto Label_085E;
                                }
                                this.class743_0.string_21 = this.method_9(attrs as CharacterFormat, num2, BookmarkStart.b("儲娴嬶崸", num), BookmarkStart.b("崲娴䔶吸娺儼", num));
                            }
                            else
                            {
                                this.class743_0.string_33 = Class576.smethod_74((Color)obj2, false);
                            }
                        }
                        else if (num3 != 70)
                        {
                            if (num3 != 80)
                            {
                                goto Label_085E;
                            }
                            this.class743_0.string_30 = this.method_9(attrs as CharacterFormat, num2, BookmarkStart.b("䀲娴嬶倸强", num), null);
                            if (this.class743_0.string_30 == null)
                            {
                                this.class743_0.string_30 = BookmarkStart.b("崲娴夶尸", num);
                            }
                        }
                        else
                        {
                            this.class743_0.string_25 = this.method_9(attrs as CharacterFormat, num2, BookmarkStart.b("娲䄴嘶唸刺帼", num), BookmarkStart.b("崲娴䔶吸娺儼", num));
                        }
                    }
                    else if (num3 <= 100)
                    {
                        if (num3 != 90)
                        {
                            if (num3 != 100)
                            {
                                goto Label_085E;
                            }
                            this.class743_0.string_35 = this.method_9(attrs as CharacterFormat, num2, BookmarkStart.b("Ȳ䔴䌶ᤸ਺䴼䬾", num), null);
                        }
                        else
                        {
                            this.class743_0.string_34 = this.method_9(attrs as CharacterFormat, num2, BookmarkStart.b("䜲䜴䈶尸", num), null);
                        }
                    }
                    else if (num3 != 110)
                    {
                        if (num3 != 120)
                        {
                            goto Label_085E;
                        }
                        this.class743_0.string_29 = this.method_9(attrs as CharacterFormat, num2, BookmarkStart.b("䘲䔴䜶尸䤺帼帾㉀♂", num), null);
                    }
                    else
                    {
                        this.class743_0.string_28 = this.method_9(attrs as CharacterFormat, num2, BookmarkStart.b("䀲場嘶唸场ြ尾⁀㍂㙄", num), null);
                    }
                }
                else if (num3 <= 160)
                {
                    if (num3 <= 140)
                    {
                        if (num3 != 130)
                        {
                            if (num3 != 140)
                            {
                                goto Label_085E;
                            }
                            UnderlineStyle style = (UnderlineStyle)obj2;
                            this.class743_0.string_15 = Class922.smethod_67(style);
                            this.class743_0.string_18 = Class922.smethod_66(style);
                            switch (style)
                            {
                            case UnderlineStyle.Double:
                            case UnderlineStyle.WavyDouble:
                                this.class743_0.string_16 = BookmarkStart.b("圲娴䈶嬸场堼", num);
                                break;
                            }
                            if (style == UnderlineStyle.Words)
                            {
                                this.class743_0.string_17 = BookmarkStart.b("䀲帴帶䤸ᘺ䨼圾⡀㝂⁄橆㩈㭊ⱌⱎ㑐", num);
                            }
                        }
                        else
                        {
                            this.class743_0.string_37 = this.method_9(attrs as CharacterFormat, num2, BookmarkStart.b("崲娴夶尸", num), BookmarkStart.b("䜲䜴䈶尸", num));
                        }
                    }
                    else if (num3 != 150)
                    {
                        if (num3 != 160)
                        {
                            goto Label_085E;
                        }
                        this.class743_0.string_20 = Class576.smethod_75((Color)obj2);
                    }
                    else
                    {
                        this.class743_0.string_40 = Class576.smethod_35(obj2);
                    }
                }
                else if (num3 <= 180)
                {
                    if (num3 != 170)
                    {
                        if (num3 != 180)
                        {
                            goto Label_085E;
                        }
                        this.class743_0.string_36 = this.method_9(attrs as CharacterFormat, num2, BookmarkStart.b("嘲嬴倶䬸娺䬼娾╀", num), null);
                    }
                    else
                    {
                        this.class743_0.string_36 = this.method_9(attrs as CharacterFormat, num2, BookmarkStart.b("嘲場唶嘸䠺丼娾╀", num), null);
                    }
                }
                else
                {
                    switch (num3)
                    {
                    case 190:
                    {
                        this.class743_0.string_3 = Class576.smethod_65(obj2);
                        continue;
                    }

                    case 200:
                    {
                        this.class743_0.string_32 = Class576.smethod_71(obj2, ((CharacterFormat)attrs).FontSize);
                        continue;
                    }
                    }
                    if (num3 != 210)
                    {
                        goto Label_085E;
                    }
                    this.class743_0.string_32 = Class922.smethod_74((SubSuperScript)obj2);
                }
                continue;
            }
            if (num3 <= 310)
            {
                if (num3 <= 250)
                {
                    if (num3 <= 230)
                    {
                        if (num3 != 220)
                        {
                            if (num3 != 230)
                            {
                                goto Label_085E;
                            }
                            this.class743_0.string_0 = (string)obj2;
                        }
                        else
                        {
                            this.class743_0.string_46 = BookmarkStart.b("䜲䜴䈶尸", num);
                            if (((float)obj2) == 0f)
                            {
                                this.class743_0.string_46 = BookmarkStart.b("唲吴嬶䨸帺", num);
                            }
                        }
                    }
                    else if (num3 != 0xeb)
                    {
                        if (num3 != 250)
                        {
                            goto Label_085E;
                        }
                        this.class743_0.string_23 = this.method_9(attrs as CharacterFormat, num2, BookmarkStart.b("儲娴嬶崸", num), BookmarkStart.b("崲娴䔶吸娺儼", num));
                    }
                    else
                    {
                        this.class743_0.string_2 = (string)obj2;
                    }
                }
                else if (num3 <= 270)
                {
                    if (num3 != 260)
                    {
                        if (num3 != 270)
                        {
                            goto Label_085E;
                        }
                        this.class743_0.string_1 = (string)obj2;
                    }
                    else
                    {
                        this.class743_0.string_27 = this.method_9(attrs as CharacterFormat, num2, BookmarkStart.b("娲䄴嘶唸刺帼", num), BookmarkStart.b("崲娴䔶吸娺儼", num));
                    }
                }
                else
                {
                    switch (num3)
                    {
                    case 290:
                    {
                        this.class743_0.string_39 = string.Format(BookmarkStart.b("䠲Դ䨶᰸", num), (short)obj2);
                        continue;
                    }

                    case 300:
                    {
                        this.class743_0.string_31 = this.method_9(attrs as CharacterFormat, num2, BookmarkStart.b("圲娴䈶嬸场堼", num), null);
                        if (this.class743_0.string_30 == null)
                        {
                            this.class743_0.string_30 = BookmarkStart.b("崲娴夶尸", num);
                        }
                        continue;
                    }
                    }
                    if (num3 != 310)
                    {
                        goto Label_085E;
                    }
                    if (((TextEffect)obj2) == TextEffect.None)
                    {
                        this.class743_0.int_0--;
                    }
                    else
                    {
                        this.class743_0.string_38 = BookmarkStart.b("䜲䜴䈶尸", num);
                    }
                }
                continue;
            }
            if (num3 <= 380)
            {
                if (num3 <= 350)
                {
                    if (num3 != 340)
                    {
                        if (num3 != 350)
                        {
                            goto Label_085E;
                        }
                        this.class743_0.string_5 = Class576.smethod_65(((CharacterFormat)attrs).FontSize);
                        this.class743_0.string_4 = Class576.smethod_65(obj2);
                    }
                    else
                    {
                        this.class743_0.string_11 = Class922.smethod_80(int.Parse(obj2.ToString()));
                        if (this.class743_0.string_11 == BookmarkStart.b("崲娴夶尸", num))
                        {
                            this.class743_0.int_0--;
                        }
                    }
                }
                else if (num3 != 370)
                {
                    if (num3 != 380)
                    {
                        goto Label_085E;
                    }
                    this.class743_0.string_9 = Class922.smethod_80((short)obj2);
                    if (this.class743_0.string_9 == BookmarkStart.b("崲娴夶尸", num))
                    {
                        this.class743_0.int_0--;
                    }
                }
                else
                {
                    this.class743_0.string_33 = Class576.smethod_83((Class16)obj2);
                }
                continue;
            }
            if (num3 <= 450)
            {
                if (num3 != 390)
                {
                    if (num3 != 450)
                    {
                        goto Label_085E;
                    }
                    this.class743_0.string_19 = Class576.smethod_74((Color)obj2, false);
                }
                else
                {
                    this.class743_0.string_10 = Class922.smethod_80((short)obj2);
                    if (this.class743_0.string_10 == BookmarkStart.b("崲娴夶尸", num))
                    {
                        this.class743_0.int_0--;
                    }
                }
                continue;
            }
            switch (num3)
            {
            case 770:
            {
                this.class743_0.string_47 = this.method_10((Emphasis)obj2);
                continue;
            }

            case 780:
            {
                Class340 class2 = (Class340)obj2;
                if (class2.method_6())
                {
                    this.class743_0.string_45 = BookmarkStart.b("弲尴夶尸ᘺ唼娾⡀⑂ⵄ㍆", num);
                }
                if (class2.method_0())
                {
                    this.class743_0.string_24 = BookmarkStart.b("ਲԴ", num);
                }
                continue;
            }

            case 0x271a:
            {
                this.class743_0.class580_0 = (Class580)obj2;
                continue;
            }
            }
Label_085E:
            this.class743_0.int_0--;
        }
        this.class743_0.string_6  = Class922.smethod_82(this.class743_0.string_9);
        this.class743_0.string_12 = Class922.smethod_83(this.class743_0.string_9);
        this.class743_0.string_7  = Class922.smethod_82(this.class743_0.string_10);
        this.class743_0.string_13 = Class922.smethod_83(this.class743_0.string_10);
        this.class743_0.string_8  = Class922.smethod_82(this.class743_0.string_11);
        this.class743_0.string_14 = Class922.smethod_83(this.class743_0.string_11);
        if (!flag && (A_0 is DocumentObject))
        {
            DocumentObject obj4 = (DocumentObject)A_0;
            if (obj4.ParentObject is Paragraph)
            {
                Paragraph parentObject = (Paragraph)obj4.ParentObject;
                object    obj5         = null;
                if (parentObject.IsInCell || (parentObject.IsInCell && (((TableCell)parentObject.OwnerTextBody).Paragraphs[0] == parentObject)))
                {
                    obj5 = ((TableCell)parentObject.OwnerTextBody).CellFormat.method_31(0xbea);
                }
                if (obj5 != null)
                {
                    this.class743_0.string_24 = Class922.smethod_69((TextOrientation)obj5);
                    if (this.class743_0.string_24 != null)
                    {
                        this.class743_0.int_0++;
                    }
                }
            }
        }
        if (paragraph2 != null)
        {
            object obj3 = paragraph2.Format.method_31(0x582);
            if ((obj3 != null) && ((bool)obj3))
            {
                this.class743_0.string_42 = BookmarkStart.b("唲吴嬶䨸帺", num);
                this.class743_0.string_43 = BookmarkStart.b("IJ", num);
                this.class743_0.string_44 = BookmarkStart.b("IJ", num);
                this.class743_0.int_0++;
            }
            else if (!((bool)obj3))
            {
                this.class743_0.string_42 = BookmarkStart.b("䜲䜴䈶尸", num);
                this.class743_0.int_0++;
            }
        }
        if (A_2)
        {
            this.class743_0.string_41 = BookmarkStart.b("䜲䜴䈶尸", num);
            this.class743_0.int_0++;
        }
    }
Ejemplo n.º 2
0
    private static void smethod_1(AttrCollection A_0, bool A_1, Interface52 A_2)
    {
        int              num     = 13;
        Class398         class2  = A_2.imethod_1();
        bool             flag    = A_2.imethod_2();
        string           str     = null;
        string           str2    = null;
        string           str3    = null;
        string           str4    = null;
        string           str5    = null;
        string           str6    = null;
        string           str7    = null;
        string           str8    = null;
        string           str9    = null;
        string           str10   = null;
        string           str11   = null;
        string           str12   = null;
        string           str13   = null;
        string           str14   = null;
        string           str15   = null;
        string           str16   = null;
        Border           top     = null;
        Border           left    = null;
        Border           bottom  = null;
        Border           right   = null;
        string           str17   = null;
        string           str18   = null;
        string           str19   = null;
        string           str20   = null;
        string           str21   = null;
        string           str22   = null;
        string           str23   = null;
        string           str24   = null;
        object           obj2    = null;
        string           str25   = null;
        string           str26   = null;
        object           obj3    = null;
        ColumnCollection columns = null;
        string           str27   = null;
        string           str28   = null;
        string           str29   = null;
        string           str30   = null;
        string           str31   = null;
        object           obj4    = null;
        object           obj5    = null;
        object           obj6    = null;
        object           obj7    = null;
        object           obj8    = null;
        object           obj9    = null;

        for (int i = 0; i < A_0.Count; i++)
        {
            int    num3  = A_0.method_18(i);
            object obj10 = A_0.method_19(i);
            int    num4  = num3;
            if (num4 <= 0x8a2)
            {
                if (num4 <= 0x820)
                {
                    if (num4 <= 0x7e4)
                    {
                        if (num4 <= 0x7d0)
                        {
                            if (num4 == 0x7c6)
                            {
                                bottom = (obj10 as Borders).Bottom;
                                left   = (obj10 as Borders).Left;
                                top    = (obj10 as Borders).Top;
                                right  = (obj10 as Borders).Right;
                            }
                            else if (num4 == 0x7d0)
                            {
                                MarginsF sf = (MarginsF)obj10;
                                str5  = A_2.imethod_1().method_23(sf.Top, 20f).ToString();
                                str8  = A_2.imethod_1().method_23(sf.Left, 20f).ToString();
                                str6  = A_2.imethod_1().method_23(sf.Right, 20f).ToString();
                                str7  = A_2.imethod_1().method_23(sf.Bottom, 20f).ToString();
                                str11 = A_2.imethod_1().method_23(sf.Gutter, 20f).ToString();
                            }
                        }
                        else if (num4 == 0x7da)
                        {
                            str21 = Class911.smethod_3((ListPatternType)obj10);
                        }
                        else if (num4 == 0x7e4)
                        {
                            str24 = Class339.smethod_11((PageSeparator)obj10, flag);
                        }
                    }
                    else if (num4 <= 0x7f8)
                    {
                        if (num4 == 0x7ee)
                        {
                            str30 = Class339.smethod_21((SectionBreakType)obj10, flag);
                        }
                        else if (num4 == 0x7f8)
                        {
                            obj6 = obj10;
                        }
                    }
                    else
                    {
                        switch (num4)
                        {
                        case 0x80c:
                        {
                            obj3 = obj10;
                            continue;
                        }

                        case 0x816:
                        {
                            str12 = Class1041.smethod_8((int)obj10);
                            continue;
                        }
                        }
                        if (num4 == 0x820)
                        {
                            str13 = Class1041.smethod_8((int)obj10);
                        }
                    }
                }
                else if (num4 <= 0x848)
                {
                    if (num4 <= 0x834)
                    {
                        if (num4 == 0x82a)
                        {
                            str4 = Class1041.smethod_8((int)obj10);
                        }
                        else if (num4 == 0x834)
                        {
                            obj8 = obj10;
                        }
                    }
                    else if (num4 == 0x83e)
                    {
                        str20 = Class339.smethod_13((LineNumberingRestartMode)obj10, flag);
                    }
                    else if (num4 == 0x848)
                    {
                        str17 = Class1041.smethod_8((int)obj10);
                    }
                }
                else if (num4 <= 0x884)
                {
                    if (num4 == 0x87a)
                    {
                        str28 = A_2.imethod_1().method_23(obj10, 20f).ToString();
                    }
                    else if (num4 == 0x884)
                    {
                        str18 = Class1041.smethod_8(((int)obj10) - 1);
                    }
                }
                else
                {
                    switch (num4)
                    {
                    case 0x88e:
                    {
                        str23 = Class1041.smethod_8((int)obj10);
                        continue;
                    }

                    case 0x898:
                    {
                        if ((bool)A_0.method_32(0x802))
                        {
                            str22 = Class1041.smethod_8((int)obj10);
                        }
                        continue;
                    }
                    }
                    if (num4 == 0x8a2)
                    {
                        str3 = Class339.smethod_19((PageOrientation)obj10);
                    }
                }
            }
            else if (num4 <= 0x92e)
            {
                if (num4 <= 0x8d4)
                {
                    if (num4 <= 0x8b6)
                    {
                        if (num4 == 0x8ac)
                        {
                            str15 = Class339.smethod_17((PageBordersApplyType)obj10, flag);
                        }
                        else if (num4 == 0x8b6)
                        {
                            if ((bool)obj10)
                            {
                                str14 = BookmarkStart.b("唲䜴堶圸伺", num);
                            }
                            else
                            {
                                str14 = BookmarkStart.b("儲吴吶券", num);
                            }
                        }
                    }
                    else if (num4 == 0x8c0)
                    {
                        str16 = Class339.smethod_15((PageBorderOffsetFrom)obj10);
                    }
                    else if (num4 == 0x8d4)
                    {
                        str = A_2.imethod_1().method_23(obj10, 20f).ToString();
                    }
                }
                else if (num4 <= 0x910)
                {
                    if (num4 == 0x8de)
                    {
                        str2 = A_2.imethod_1().method_23(obj10, 20f).ToString();
                    }
                    else if (num4 == 0x910)
                    {
                        str9 = A_2.imethod_1().method_23(obj10, 20f).ToString();
                    }
                }
                else
                {
                    switch (num4)
                    {
                    case 0x91a:
                    {
                        str10 = A_2.imethod_1().method_23(obj10, 20f).ToString();
                        continue;
                    }

                    case 0x924:
                    {
                        str31 = Class339.smethod_9((PageAlignment)obj10);
                        continue;
                    }
                    }
                    if (num4 == 0x92e)
                    {
                        str26 = Class1041.smethod_8((int)obj10);
                    }
                }
            }
            else if (num4 <= 0x960)
            {
                if (num4 <= 0x942)
                {
                    if (num4 == 0x938)
                    {
                        obj2 = obj10;
                    }
                    else if (num4 == 0x942)
                    {
                        str25 = Class1041.smethod_8((int)obj10);
                    }
                }
                else
                {
                    switch (num4)
                    {
                    case 0x94c:
                    {
                        columns = (ColumnCollection)obj10;
                        str26   = columns.Count.ToString();
                        continue;
                    }

                    case 0x956:
                    {
                        obj7 = !((bool)obj10);
                        continue;
                    }
                    }
                    if (num4 == 0x960)
                    {
                        str19 = Class1041.smethod_10(Convert.ToUInt32(obj10));
                    }
                }
            }
            else
            {
                switch (num4)
                {
                case 0x96a:
                    obj5 = obj10;
                    break;

                case 0x974:
                    str29 = Class1041.smethod_8((int)obj10);
                    break;

                case 0x97e:
                    str27 = Class339.smethod_3((GridPitchType)obj10, flag);
                    break;

                case 0x988:
                    obj9 = Class911.smethod_5((TextDirection)obj10);
                    break;

                case 0x992:
                    obj4 = obj10;
                    break;
                }
            }
        }
        if (!A_1)
        {
            if (str9 == null)
            {
                str9 = A_2.imethod_1().method_23((float)A_0.method_32(0x910), 20f).ToString();
            }
            if (str10 == null)
            {
                str10 = A_2.imethod_1().method_23((float)A_0.method_32(0x91a), 20f).ToString();
            }
            if (((str25 == null) && (columns != null)) && (columns.Count > 0))
            {
                str25 = (columns[0].Space * 20f).ToString();
            }
        }
        A_2.imethod_8(A_0, false);
        class2.method_24(BookmarkStart.b("䐲༴䌶䀸䬺堼", num), str30);
        bool   flag2 = ((PageOrientation)A_0[0x8a2]) == PageOrientation.Landscape;
        string str32 = str;
        string str33 = str2;
        float  num7  = (A_0 as Class17).method_96() * 20f;
        float  num8  = (A_0 as Class17).method_98() * 20f;

        if (flag2 && (num7 < num8))
        {
            str32 = num8.ToString();
            str33 = num7.ToString();
        }
        class2.method_33(BookmarkStart.b("䐲༴䜶常栺䜼", num), new object[] { BookmarkStart.b("䐲༴䀶", num), str32, BookmarkStart.b("䐲༴弶", num), str33, BookmarkStart.b("䐲༴堶䬸刺堼儾㕀", num), str3, BookmarkStart.b("䐲༴吶嘸强堼", num), str4 });
        class2.method_33(BookmarkStart.b("䐲༴䜶常瘺尼䴾", num), new object[] { BookmarkStart.b("䐲༴䌶嘸䬺", num), str5, BookmarkStart.b("䐲༴䔶倸尺唼䬾", num), str6, BookmarkStart.b("䐲༴唶嘸伺䤼倾ⱀ", num), str7, BookmarkStart.b("䐲༴嬶尸崺䤼", num), str8, BookmarkStart.b("䐲༴弶尸娺夼娾㍀", num), str9, BookmarkStart.b("䐲༴儶嘸吺䤼娾㍀", num), str10, BookmarkStart.b("䐲༴倶䰸伺䤼娾㍀", num), str11 });
        class2.method_33(BookmarkStart.b("䐲༴䜶堸䬺堼䴾ቀㅂ♄", num), new object[] { BookmarkStart.b("䐲༴儶倸䤺丼䬾", num), str12, BookmarkStart.b("䐲༴堶䴸区堼䴾", num), str13 });
        if (((top != null) || (left != null)) || ((bottom != null) || (right != null)))
        {
            class2.method_4(BookmarkStart.b("䐲༴䜶常示刼䴾╀♂㝄㑆", num));
            class2.method_40(flag ? BookmarkStart.b("䐲༴䴶瘸䤺夼娾㍀", num) : BookmarkStart.b("䐲༴䴶ᐸ吺似嬾⑀ㅂ", num), str14);
            class2.method_40(BookmarkStart.b("䐲༴匶倸䠺䴼匾⁀㩂", num), str15);
            class2.method_40(flag ? BookmarkStart.b("䐲༴堶弸崺丼娾㕀Ղ㝄⡆⑈", num) : BookmarkStart.b("䐲༴堶弸崺丼娾㕀湂⍄㕆♈♊", num), str16);
            class2.method_47(BookmarkStart.b("䐲༴䌶嘸䬺", num), top, flag);
            class2.method_47(BookmarkStart.b("䐲༴嬶尸崺䤼", num), left, flag);
            class2.method_47(BookmarkStart.b("䐲༴唶嘸伺䤼倾ⱀ", num), bottom, flag);
            class2.method_47(BookmarkStart.b("䐲༴䔶倸尺唼䬾", num), right, flag);
            class2.method_5();
        }
        class2.method_33(BookmarkStart.b("䐲༴嬶圸町䠼刾ᕀ㩂㕄≆", num), new object[] { flag?BookmarkStart.b("䐲༴吶嘸为匼䬾̀㩂", num) : BookmarkStart.b("䐲༴吶嘸为匼䬾汀⅂㱄", num), str17, BookmarkStart.b("䐲༴䐶䴸娺似䬾", num), str18, BookmarkStart.b("䐲༴匶倸䠺䤼帾⽀⁂⁄", num), str19, BookmarkStart.b("䐲༴䔶尸䠺䤼帾㍀㝂", num), str20 });
        class2.method_33(BookmarkStart.b("䐲༴䜶常町䠼刾ᕀ㩂㕄≆", num), new object[] { BookmarkStart.b("䐲༴儶吸伺", num), str21, BookmarkStart.b("䐲༴䐶䴸娺似䬾", num), str22, flag ? BookmarkStart.b("䐲༴吶儸娺䴼氾㕀㩂⥄≆", num) : BookmarkStart.b("䐲༴吶儸娺䴼ሾ㉀㝂㱄⭆ⱈ", num), str23, flag ? BookmarkStart.b("䐲༴吶儸娺䴼氾⑀㍂", num) : BookmarkStart.b("䐲༴吶儸娺䴼ሾ㉀♂㕄", num), str24 });
        if (class2.method_34(BookmarkStart.b("䐲༴吶嘸场丼", num), new object[] { BookmarkStart.b("䐲༴夶䰸嘺", num), str26, BookmarkStart.b("䐲༴䐶尸䬺", num), obj3, BookmarkStart.b("䐲༴䐶䤸娺帼娾", num), str25, BookmarkStart.b("䐲༴制䠸为尼匾ᙀ⩂⅄㍆ⅈ", num), obj2 }))
        {
            if (columns != null)
            {
                for (int j = 0; j < columns.Count; j++)
                {
                    class2.method_33(BookmarkStart.b("䐲༴吶嘸场", num), new object[] { BookmarkStart.b("䐲༴䀶", num), (columns[j].Width > 0f) ? ((object)(columns[j].Width * 20f)) : null, BookmarkStart.b("䐲༴䐶䤸娺帼娾", num), (columns[j].Space > 0f) ? ((object)(columns[j].Space * 20f)) : null });
                }
            }
            class2.method_5();
        }
        class2.method_22(BookmarkStart.b("䐲༴儶嘸䤺值漾㍀ⱂㅄ", num), obj7);
        class2.method_24(BookmarkStart.b("䐲༴䄶砸场吼堾⽀", num), str31);
        class2.method_22(BookmarkStart.b("䐲༴夶嘸縺匼嬾⽀ⱂㅄ≆", num), obj8);
        class2.method_22(BookmarkStart.b("䐲༴䌶倸伺儼娾ᅀ⑂", num), obj6);
        class2.method_22(flag ? BookmarkStart.b("䐲༴䌶尸䌺䤼笾⡀ㅂ⁄⑆㵈≊≌ⅎ", num) : BookmarkStart.b("䐲༴䌶尸䌺䤼社ⵀⱂ㉄", num), obj9);
        class2.method_22(BookmarkStart.b("䐲༴唶倸强吼", num), obj4);
        class2.method_22(BookmarkStart.b("䐲༴䔶䴸场稼䨾㕀㝂⁄㕆", num), obj5);
        class2.method_33(BookmarkStart.b("䐲༴匶嘸堺稼䴾⡀❂", num), new object[] { BookmarkStart.b("䐲༴䌶䀸䬺堼", num), str27, flag ? BookmarkStart.b("䐲༴嬶倸唺堼漾⡀㝂♄⽆", num) : BookmarkStart.b("䐲༴嬶倸唺堼ሾㅀ⩂ㅄ⑆ⅈ", num), str28, flag ? BookmarkStart.b("䐲༴吶儸娺似氾ㅀ≂♄≆", num) : BookmarkStart.b("䐲༴吶儸娺似ሾ㉀㍂⑄⑆ⱈ", num), str29 });
    }
Ejemplo n.º 3
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);
    }
Ejemplo n.º 4
0
    private static void smethod_1(AttrCollection A_0, Interface52 A_1)
    {
        int      num          = 14;
        bool     flag         = A_1.imethod_2();
        Class398 class2       = A_1.imethod_1();
        Class15  class3       = null;
        object   obj2         = null;
        object   obj3         = null;
        object   obj4         = null;
        string   str          = null;
        string   str2         = null;
        Border   top          = null;
        Border   left         = null;
        Border   bottom       = null;
        Border   right        = null;
        Border   diagonalDown = null;
        Border   diagonalUp   = null;
        Border   horizontal   = null;
        Border   vertical     = null;
        Class16  class4       = null;
        object   obj5         = null;
        string   str3         = null;
        string   str4         = null;
        string   str5         = null;
        string   str6         = null;
        string   str7         = null;
        object   obj6         = null;
        string   str8         = null;
        object   obj7         = null;
        object   obj8         = null;

        for (int i = 0; i < A_0.Count; i++)
        {
            int    num3 = A_0.method_18(i);
            object obj9 = A_0.method_19(i);
            int    num4 = num3;
            if (num4 <= 0xbea)
            {
                if (num4 <= 0xbc6)
                {
                    switch (num4)
                    {
                    case 1:
                        top          = (obj9 as Borders).Top;
                        left         = (obj9 as Borders).Left;
                        bottom       = (obj9 as Borders).Bottom;
                        right        = (obj9 as Borders).Right;
                        diagonalDown = (obj9 as Borders).DiagonalDown;
                        diagonalUp   = (obj9 as Borders).DiagonalUp;
                        horizontal   = (obj9 as Borders).Horizontal;
                        vertical     = (obj9 as Borders).Vertical;
                        break;

                    case 2:
                        str3 = ((obj9 as Paddings).Top >= 0f) ? A_1.imethod_1().method_23((obj9 as Paddings).Top, 20f).ToString() : BookmarkStart.b("г", num);
                        str4 = ((obj9 as Paddings).Left >= 0f) ? A_1.imethod_1().method_23((obj9 as Paddings).Left, 20f).ToString() : BookmarkStart.b("Գص7", num);
                        str5 = ((obj9 as Paddings).Bottom >= 0f) ? A_1.imethod_1().method_23((obj9 as Paddings).Bottom, 20f).ToString() : BookmarkStart.b("г", num);
                        str6 = ((obj9 as Paddings).Right >= 0f) ? A_1.imethod_1().method_23((obj9 as Paddings).Right, 20f).ToString() : BookmarkStart.b("Գص7", num);
                        break;

                    case 6:
                        obj4 = class2.method_23(obj9, 50f);
                        break;

                    case 0xbc4:
                        obj3 = class2.method_23(obj9, 20f);
                        break;

                    case 0xbc6:
                        obj2 = (FtsWidth)obj9;
                        break;
                    }
                }
                else if (num4 <= 0xbd6)
                {
                    switch (num4)
                    {
                    case 0xbcc:
                        class3 = (Class15)obj9;
                        break;

                    case 0xbd6:
                        str2 = Class859.smethod_5((CellMerge)obj9);
                        break;
                    }
                }
                else if (num4 != 0xbe0)
                {
                    if ((num4 == 0xbea) && (((TextDirection)obj9) != TextDirection.TopToBottom))
                    {
                        str7 = Class417.smethod_39((TextDirection)obj9, flag);
                    }
                }
                else
                {
                    str = Class859.smethod_5((CellMerge)obj9);
                }
            }
            else if (num4 <= 0xc6c)
            {
                switch (num4)
                {
                case 0xbf4:
                {
                    if (((VerticalAlignment)obj9) != VerticalAlignment.Top)
                    {
                        str8 = Class859.smethod_7((VerticalAlignment)obj9);
                    }
                    continue;
                }

                case 0xc62:
                {
                    class4 = (Class16)obj9;
                    continue;
                }
                }
                if ((num4 == 0xc6c) && !((bool)obj9))
                {
                    obj5 = true;
                }
            }
            else if (num4 <= 0xc94)
            {
                if (num4 == 0xc76)
                {
                    if ((bool)obj9)
                    {
                        obj6 = true;
                    }
                }
                else if ((num4 == 0xc94) && ((bool)obj9))
                {
                    obj7 = true;
                }
            }
            else
            {
                switch (num4)
                {
                case 0xf3c:
                    obj8 = (short)obj9;
                    break;
                }
            }
        }
        if (((obj3 != null) || (obj4 != null)) && (obj2 != null))
        {
            if (((WidthType)obj2) == WidthType.Percentage)
            {
                class3 = new Class15((FtsWidth)obj2, (short)((int)obj4));
                class2.method_53(BookmarkStart.b("䌳వ䰷夹欻", num), class3);
            }
            else if (((WidthType)obj2) == WidthType.Twip)
            {
                class3 = new Class15((FtsWidth)obj2, (short)((int)obj3));
                class2.method_53(BookmarkStart.b("䌳వ䰷夹欻", num), class3);
            }
        }
        else if (class3 != null)
        {
            class2.method_53(BookmarkStart.b("䌳వ䰷夹欻", num), class3);
        }
        if (((str != BookmarkStart.b("䘳匵䬷丹崻䰽㐿", num)) && (obj8 != null)) && (((short)obj8) > 1))
        {
            class2.method_22(BookmarkStart.b("䌳వ強䠹唻娽ጿ㉁╃⡅", num), obj8);
        }
        string str9 = flag ? BookmarkStart.b("䌳వ倷眹夻䰽✿❁", num) : BookmarkStart.b("䌳వ倷圹夻䰽✿❁", num);

        if (str == BookmarkStart.b("圳夵嘷丹唻倽㔿❁", num))
        {
            class2.method_10(str9);
        }
        else
        {
            class2.method_24(str9, str);
        }
        string str10 = flag ? BookmarkStart.b("䌳వ丷眹夻䰽✿❁", num) : BookmarkStart.b("䌳వ丷圹夻䰽✿❁", num);

        if (str2 == BookmarkStart.b("圳夵嘷丹唻倽㔿❁", num))
        {
            class2.method_10(str10);
        }
        else
        {
            class2.method_24(str10, str2);
        }
        class2.method_46(BookmarkStart.b("䌳వ䰷夹縻儽㈿♁⅃㑅㭇", num), flag, new object[] { BookmarkStart.b("䌳వ䰷唹䰻", num), top, BookmarkStart.b("䌳వ吷弹娻䨽", num), left, BookmarkStart.b("䌳వ娷唹䠻䨽⼿⽁", num), bottom, BookmarkStart.b("䌳వ䨷匹嬻嘽㐿", num), right, BookmarkStart.b("䌳వ儷吹伻圽␿❁ృ", num), horizontal, BookmarkStart.b("䌳వ儷吹伻圽␿❁ቃ", num), vertical, BookmarkStart.b("䌳వ䰷嘹฻尽㈿", num), diagonalDown, BookmarkStart.b("䌳వ䰷䠹฻尽ⰿ", num), diagonalUp });
        class2.vmethod_4(class4);
        class2.method_22(BookmarkStart.b("䌳వ嘷唹欻䰽ℿ㉁", num), obj5);
        if (!(A_0.OwnerBase is TableCell) || !(A_0.OwnerBase as TableCell).CellFormat.SamePaddingsAsTable)
        {
            class2.method_50(BookmarkStart.b("䌳వ䰷夹焻弽㈿", num), str3, str4, str5, str6);
        }
        class2.method_24(flag ? BookmarkStart.b("䌳వ䰷弹䐻䨽п⭁㙃⍅⭇㹉╋⅍㹏", num) : BookmarkStart.b("䌳వ䰷弹䐻䨽ؿ⹁⭃ㅅ", num), str7);
        class2.method_22(BookmarkStart.b("䌳వ䰷夹稻圽㐿ᙁ⅃㹅㱇", num), obj6);
        class2.method_24(BookmarkStart.b("䌳వ丷笹倻圽✿ⱁ", num), str8);
        class2.method_22(BookmarkStart.b("䌳వ倷匹堻嬽ി⍁㙃ⵅ", num), obj7);
    }