Beispiel #1
0
    private static void smethod_1(ListLevel A_0)
    {
        CharacterFormat characterFormat = A_0.CharacterFormat;

        if (A_0.HasPictureBullet)
        {
            characterFormat.SetAttr(480, A_0.CharacterFormat.ListPictureIndex);
            characterFormat.SetAttr(490, PictureBulletFlags.Active);
        }
        else
        {
            characterFormat.SetAttr(480, 0);
            characterFormat.SetAttr(490, PictureBulletFlags.None);
        }
    }
Beispiel #2
0
    private static char smethod_25(Class394 A_0, CharacterFormat A_1)
    {
        int       num       = 4;
        BreakType lineBreak = BreakType.LineBreak;

        while (A_0.method_19())
        {
            string str = A_0.method_1();
            if (str != null)
            {
                if (!(str == BookmarkStart.b("帩唫席唯", num)))
                {
                    if (str == BookmarkStart.b("䤩䀫䬭儯䀱", num))
                    {
                        A_1.SetAttr(0x2d, Class860.smethod_11(A_0.method_3()));
                    }
                }
                else
                {
                    lineBreak = Class860.smethod_13(A_0.method_3());
                }
            }
        }
        return(smethod_26(lineBreak));
    }
Beispiel #3
0
    public static void smethod_15(CharacterFormat A_0, Class581 A_1)
    {
        string   str;
        int      num    = 14;
        Class394 class2 = A_1.imethod_1();
        Class584 class3 = new Class584(class2);

        if (class3.method_10() && ((str = class3.method_9()) != null))
        {
            if (str == BookmarkStart.b("挳夵䨷帹ሻ眽⸿ㅁ⅃㑅㱇⍉⍋⁍", num))
            {
                A_0.SetAttr(14, smethod_16(class3, EditRevisionType.Insertion));
            }
            else if (str == BookmarkStart.b("挳夵䨷帹ሻ稽┿⹁⅃㉅ⅇ╉≋", num))
            {
                A_0.SetAttr(12, smethod_16(class3, EditRevisionType.Deletion));
            }
            else if (str == BookmarkStart.b("挳夵䨷帹ሻ砽⼿ぁ⥃❅㱇㹉╋⁍㝏", num))
            {
                while (class2.method_9(BookmarkStart.b("唳堵嘷唹䠻弽㐿⭁⭃⡅", num)))
                {
                    string str3;
                    if (((str3 = class2.method_1()) != null) && (str3 == BookmarkStart.b("圳夵嘷丹夻倽㐿", num)))
                    {
                        while (class2.method_9(BookmarkStart.b("圳夵嘷丹夻倽㐿", num)))
                        {
                            string str2;
                            if (((str2 = class2.method_1()) != null) && (str2 == BookmarkStart.b("䘳昵䨷", num)))
                            {
                                Class1146.smethod_1(A_1, A_0, class3);
                            }
                            else
                            {
                                class2.vmethod_1();
                            }
                        }
                    }
                    else
                    {
                        class2.vmethod_1();
                    }
                }
            }
        }
    }
Beispiel #4
0
    private static void smethod_4(CharacterFormat A_0, Class394 A_1)
    {
        int num = 5;

        while (A_1.method_19())
        {
            string str = A_1.method_1();
            if (str != null)
            {
                if (str != BookmarkStart.b("䨪帬䰮堰娲", num))
                {
                    if (str != BookmarkStart.b("䌪,丮弰䀲尴", num))
                    {
                        if (str != BookmarkStart.b("䴪䰬崮吰刲䘴䌶", num))
                        {
                            if (!(str == BookmarkStart.b("䠪帬", num)))
                            {
                                if (str == BookmarkStart.b("䌪䐬䄮䔰", num))
                                {
                                    A_0.SetAttr(400, Class860.smethod_9(A_1.method_3()));
                                }
                            }
                            else if (Class567.smethod_16(A_1.method_3()))
                            {
                                A_0.SetAttr(270, A_1.method_3());
                            }
                        }
                        else if (Class567.smethod_16(A_1.method_3()))
                        {
                            A_0.SetAttr(0xeb, A_1.method_3());
                        }
                    }
                    else if (Class567.smethod_16(A_1.method_3()))
                    {
                        A_0.SetAttr(240, A_1.method_3());
                    }
                }
                else if (Class567.smethod_16(A_1.method_3()))
                {
                    A_0.SetAttr(230, A_1.method_3());
                }
            }
        }
    }
Beispiel #5
0
    private static void smethod_7(CharacterFormat A_0, Class394 A_1)
    {
        int  num  = 12;
        bool flag = false;

        while (A_1.method_19())
        {
            string str = A_1.method_1();
            if (str != null)
            {
                if (str != BookmarkStart.b("䐱唳娵", num))
                {
                    if (!(str == BookmarkStart.b("吱唳䐵崷嬹伻䨽", num)))
                    {
                        if (str == BookmarkStart.b("倱崳刵儷", num))
                        {
                            A_0.SetAttr(340, (short)Class860.smethod_0(A_1.method_3(), false));
                            flag = true;
                        }
                    }
                    else
                    {
                        A_0.SetAttr(390, (short)Class860.smethod_0(A_1.method_3(), false));
                        flag = true;
                    }
                }
                else
                {
                    A_0.SetAttr(380, (short)Class860.smethod_0(A_1.method_3(), false));
                    flag = true;
                }
            }
        }
        if (!flag)
        {
            A_0.SetAttr(380, (short)0);
        }
    }
Beispiel #6
0
    private static void smethod_6(CharacterFormat A_0, Class394 A_1)
    {
        int num = 0x10;

        while (A_1.method_19())
        {
            string str = A_1.method_1();
            if (str != null)
            {
                if (!(str == BookmarkStart.b("䀵夷嘹", num)))
                {
                    if (str == BookmarkStart.b("䐵䴷嘹夻", num))
                    {
                        A_0.SetAttr(460, Class860.smethod_23(A_1.method_3()));
                    }
                }
                else if (Class567.smethod_16(A_1.method_3()))
                {
                    A_0.SetAttr(470, A_1.method_3()[0]);
                }
            }
        }
    }
Beispiel #7
0
    private static void smethod_5(CharacterFormat A_0, Class394 A_1)
    {
        int num = 13;

        while (A_1.method_19())
        {
            string str = A_1.method_1();
            if (str != null)
            {
                if (!(str == BookmarkStart.b("䔲吴嬶", num)))
                {
                    if (str == BookmarkStart.b("倲娴嬶嘸䤺", num))
                    {
                        A_0.SetAttr(450, Class114.smethod_13(A_1.method_3()));
                    }
                }
                else
                {
                    A_0.SetAttr(140, Class860.smethod_17(A_1.method_3()));
                }
            }
        }
    }
Beispiel #8
0
    internal static void smethod_1(Class581 A_0, CharacterFormat A_1, Class584 A_2)
    {
        object obj2 = A_1.method_31(14);

        A_1.Remove(14);
        object obj3 = A_1.method_31(12);

        A_1.Remove(12);
        object obj4 = A_1.method_31(40);

        A_1.Remove(40);
        object obj5 = A_1.method_31(30);

        A_1.Remove(30);
        CharacterFormat format1 = (CharacterFormat)A_1.method_23();

        A_1.ClearFormatting();
        Class733.smethod_0(A_0, A_1);
        A_1.Remove(14);
        A_1.Remove(12);
        if (obj2 != null)
        {
            A_1.SetAttr(14, obj2);
        }
        if (obj3 != null)
        {
            A_1.SetAttr(12, obj3);
        }
        if (obj4 != null)
        {
            A_1.SetAttr(40, obj4);
        }
        if (obj5 != null)
        {
            A_1.SetAttr(30, obj5);
        }
    }
    internal static CharacterFormat smethod_0(Class857 A_0, Class96 A_1)
    {
        int             num    = 1;
        Class396        class2 = A_0.method_11();
        CharacterFormat format = new CharacterFormat(A_0.method_9());
        string          str    = class2.method_12(BookmarkStart.b("䄦䘨䔪夬Ȯ䈰娲伴制", 1), BookmarkStart.b("ᘦᤨ嬪夬", 1));

        if (str.EndsWith(BookmarkStart.b("Ȧ", 1)))
        {
            str = BookmarkStart.b("ᘦᤨ嬪夬", num);
        }
        float    num3   = Class576.smethod_68(str);
        string   str3   = "";
        string   str4   = "";
        string   str5   = "";
        string   str6   = "";
        string   str7   = "";
        string   str8   = "";
        string   str12  = "";
        string   str9   = "";
        string   str10  = "";
        string   str13  = "";
        Color    black  = Color.Black;
        Class340 class3 = null;
        bool     flag   = true;
        string   str14  = string.Empty;
        string   str15  = string.Empty;
        bool     flag2  = false;
        bool     flag3  = false;

        class2.method_18();
        while (class2.method_19())
        {
            int      num2;
            string[] strArray;
            bool     flag4;
            string   str2 = class2.method_3();
            string   key  = class2.method_1();
            if (key != null)
            {
                int num4;
                if (Class1160.dictionary_231 == null)
                {
                    Dictionary <string, int> dictionary1 = new Dictionary <string, int>(0x2b);
                    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);
                    dictionary1.Add(BookmarkStart.b("䄦䘨䔪夬Ȯ弰刲場制ᐸ堺刼刾ㅀ⽂⁄㽆", num), 11);
                    dictionary1.Add(BookmarkStart.b("䄦䘨䔪夬Ȯ弰刲場制ᐸ娺丼嘾⁀ⵂ", num), 12);
                    dictionary1.Add(BookmarkStart.b("䄦䘨䔪夬Ȯ䈰娲伴制", num), 13);
                    dictionary1.Add(BookmarkStart.b("䄦䘨䔪夬Ȯ䈰娲伴制ᐸ娺丼嘾⁀ⵂ", num), 14);
                    dictionary1.Add(BookmarkStart.b("䄦䘨䔪夬Ȯ䈰娲伴制ᐸ堺刼刾ㅀ⽂⁄㽆", num), 15);
                    dictionary1.Add(BookmarkStart.b("䄦䘨䔪夬Ȯ䘰嘲尴倶儸伺", num), 0x10);
                    dictionary1.Add(BookmarkStart.b("䄦䘨䔪夬Ȯ䘰嘲尴倶儸伺ြ帾㉀⩂⑄⥆", num), 0x11);
                    dictionary1.Add(BookmarkStart.b("䄦䘨䔪夬Ȯ䘰嘲尴倶儸伺ြ尾⹀⹂㕄⭆ⱈ㍊", num), 0x12);
                    dictionary1.Add(BookmarkStart.b("䄦䘨䔪夬Ȯ䈰䜲䰴嬶尸", num), 0x13);
                    dictionary1.Add(BookmarkStart.b("䄦䘨䔪夬Ȯ䈰䜲䰴嬶尸ᘺ尼䰾⡀≂⭄", num), 20);
                    dictionary1.Add(BookmarkStart.b("䄦䘨䔪夬Ȯ䈰䜲䰴嬶尸ᘺ帼倾ⱀ㍂⥄≆ㅈ", num), 0x15);
                    dictionary1.Add(BookmarkStart.b("䬦䠨䔪䨬娮倰吲倴", num), 0x16);
                    dictionary1.Add(BookmarkStart.b("䐦䘨帪䌬嬮䌰䨲", num), 0x17);
                    dictionary1.Add(BookmarkStart.b("䬦䠨䔪䨬娮倰吲倴ᨶ堸䠺吼帾⽀", num), 0x18);
                    dictionary1.Add(BookmarkStart.b("䐦䘨帪䌬嬮䌰䨲ᠴ嘶䨸刺尼儾", num), 0x19);
                    dictionary1.Add(BookmarkStart.b("䬦䠨䔪䨬娮倰吲倴ᨶ娸吺值伾ⵀ♂㵄", num), 0x1a);
                    dictionary1.Add(BookmarkStart.b("䐦䘨帪䌬嬮䌰䨲ᠴ吶嘸嘺䴼匾⑀㭂", num), 0x1b);
                    dictionary1.Add(BookmarkStart.b("䔦䠨䠪䘬䠮䌰尲䀴夶崸ᘺ帼倾ⵀⱂ㝄", num), 0x1c);
                    dictionary1.Add(BookmarkStart.b("䬦䰨弪夬䨮䌰Ḳ䘴䜶堸堺吼儾♀", num), 0x1d);
                    dictionary1.Add(BookmarkStart.b("䄦䘨䔪夬Ȯ䌰嘲头帶尸崺", num), 30);
                    dictionary1.Add(BookmarkStart.b("䌦䀨堪崬䌮倰䨲", num), 0x1f);
                    dictionary1.Add(BookmarkStart.b("匦䰨匪夬Ȯ匰弲尴夶券刺匼堾", num), 0x20);
                    dictionary1.Add(BookmarkStart.b("匦䰨匪夬Ȯ䈰倲吴嬶尸", num), 0x21);
                    dictionary1.Add(BookmarkStart.b("匦䰨匪夬Ȯ䈰嬲吴匶嘸䰺", num), 0x22);
                    dictionary1.Add(BookmarkStart.b("匦䰨匪夬Ȯ䐰崲儴制䬸场吼儾⑀湂㉄⹆ⵈ㽊╌", num), 0x23);
                    dictionary1.Add(BookmarkStart.b("匦䰨匪夬Ȯ䐰崲儴制䬸场吼儾⑀湂㙄㍆え❊⡌", num), 0x24);
                    dictionary1.Add(BookmarkStart.b("匦䰨匪夬Ȯ䐰崲儴制䬸场吼儾⑀湂ㅄ㹆㥈⹊", num), 0x25);
                    dictionary1.Add(BookmarkStart.b("匦䰨匪夬Ȯ䐰崲儴制䬸场吼儾⑀湂⡄⡆ⵈ⹊", num), 0x26);
                    dictionary1.Add(BookmarkStart.b("匦䰨匪夬Ȯ䐰崲儴制䬸场吼儾⑀湂♄⡆╈⑊㽌", num), 0x27);
                    dictionary1.Add(BookmarkStart.b("匦䰨匪夬Ȯ䌰尲䄴嘶䴸刺刼儾汀あ♄♆╈⹊", num), 40);
                    dictionary1.Add(BookmarkStart.b("匦䰨匪夬Ȯ䌰尲䄴嘶䴸刺刼儾汀≂⭄⁆╈⹊", num), 0x29);
                    dictionary1.Add(BookmarkStart.b("匦䰨匪夬Ȯ吰帲䔴弶堸䠺吼䔾⑀", num), 0x2a);
                    Class1160.dictionary_231 = dictionary1;
                }
                if (Class1160.dictionary_231.TryGetValue(key, out num4))
                {
                    switch (num4)
                    {
                    case 0:
                        goto Label_04F5;

                    case 1:
                        if (str2 == BookmarkStart.b("否䐨䨪䄬䌮ᰰ倲吴䜶䨸", num))
                        {
                            format.SetAttr(110, Class650.class650_1);
                        }
                        break;

                    case 2:
                        if (str2 == BookmarkStart.b("刦夨嬪䠬崮到刲䘴制", num))
                        {
                            format.SetAttr(120, Class650.class650_1);
                        }
                        break;

                    case 3:
                        format.SetAttr(160, Class576.smethod_76(str2));
                        break;

                    case 4:
                        if (str2 == BookmarkStart.b("匦嬨帪䠬", num))
                        {
                            format.SetAttr(90, Class650.class650_1);
                        }
                        break;

                    case 5:
                        goto Label_05F1;

                    case 6:
                        if (str2 == "")
                        {
                            flag = false;
                        }
                        break;

                    case 7:
                        if (!(str2 == BookmarkStart.b("否䘨䜪䐬䬮", num)))
                        {
                            goto Label_067D;
                        }
                        format.SetAttr(80, Class650.class650_1);
                        break;

                    case 8:
                        format.SetAttr(220, 1.5f);
                        if (str2 != BookmarkStart.b("匦嬨帪䠬", num))
                        {
                            format.SetAttr(220, 0f);
                        }
                        break;

                    case 9:
                        strArray = str2.Split(new char[] { ' ' });
                        if (!(strArray[0] == BookmarkStart.b("否尨嬪䠬崮", num)))
                        {
                            goto Label_072E;
                        }
                        format.SetAttr(210, SubSuperScript.SuperScript);
                        goto Label_0755;

                    case 10:
                    {
                        string str11 = (string)A_0.method_54()[class2.method_3()];
                        if (Class567.smethod_16(str11))
                        {
                            format.FontNameAscii      = str11;
                            format.FontNameNonFarEast = str11;
                        }
                        break;
                    }

                    case 11:
                    {
                        string str17 = (string)A_0.method_54()[class2.method_3()];
                        if (Class567.smethod_16(str17))
                        {
                            format.FontNameBidi = (string)A_0.method_54()[class2.method_3()];
                        }
                        break;
                    }

                    case 12:
                    {
                        string str16 = (string)A_0.method_54()[class2.method_3()];
                        if (Class567.smethod_16(str16))
                        {
                            format.FontNameFarEast = (string)A_0.method_54()[class2.method_3()];
                        }
                        break;
                    }

                    case 13:
                        Class576.smethod_66(class2.method_3(), A_1, format, 190);
                        break;

                    case 14:
                    case 15:
                        Class576.smethod_66(class2.method_3(), A_1, format, 350);
                        break;

                    case 0x10:
                        str14 = smethod_4(str2);
                        break;

                    case 0x11:
                        str15 = smethod_4(str2);
                        break;

                    case 0x12:
                        format.SetAttr(250, new Class650(Class576.smethod_70(class2.method_3())));
                        break;

                    case 0x13:
                        flag2 = Class576.smethod_69(class2.method_3());
                        break;

                    case 20:
                        flag3 = Class576.smethod_69(class2.method_3());
                        break;

                    case 0x15:
                        format.SetAttr(260, new Class650(Class576.smethod_69(class2.method_3())));
                        break;

                    case 0x16:
                        str3 = class2.method_3();
                        break;

                    case 0x17:
                        str4 = class2.method_3();
                        break;

                    case 0x18:
                        str5 = class2.method_3();
                        break;

                    case 0x19:
                        str6 = class2.method_3();
                        break;

                    case 0x1a:
                        str7 = class2.method_3();
                        break;

                    case 0x1b:
                        str8 = class2.method_3();
                        break;

                    case 0x1c:
                        format.SetAttr(370, Class576.smethod_62(str2, (Class16)format.method_31(370)));
                        break;

                    case 0x1d:
                        format.SetAttr(150, (class2.method_3() == BookmarkStart.b("䤦䘨太䀬丮崰", num)) ? 0f : (((float)Class576.smethod_36(class2.method_3())) / 20f));
                        break;

                    case 30:
                        goto Label_09A1;

                    case 0x1f:
                        goto Label_09F9;

                    case 0x20:
                        smethod_3(class2.method_3(), black);
                        break;

                    case 0x21:
                        format.SetAttr(290, smethod_2(class2.method_3()));
                        break;

                    case 0x22:
                        if (class2.method_3() != BookmarkStart.b("䤦䘨䔪䠬", num))
                        {
                            format.SetAttr(100, Class650.class650_1);
                        }
                        break;

                    case 0x23:
                        str12 = class2.method_3();
                        break;

                    case 0x24:
                        str9 = class2.method_3();
                        break;

                    case 0x25:
                        str13 = class2.method_3();
                        break;

                    case 0x26:
                        str10 = class2.method_3();
                        break;

                    case 0x27:
                        if (class2.method_3() != BookmarkStart.b("䄦䘨䔪夬Ȯ到尲头堶䬸", num))
                        {
                            format.SetAttr(450, Class576.smethod_76(class2.method_3()));
                        }
                        break;

                    case 40:
                        goto Label_0B20;

                    case 0x29:
                        goto Label_0B51;

                    case 0x2a:
                        format.SetAttr(770, smethod_5(str2));
                        break;
                    }
                }
            }
            continue;
Label_04F5:
            flag4 = str2 == BookmarkStart.b("匦嬨帪䠬", num);
            if ((A_1.method_4() == BookmarkStart.b("圦䠨太䰬䠮䌰刲䔴弶", num)) && (A_1.method_0() == null))
            {
                A_0.method_9().Settings.bool_27 = flag4;
            }
            A_1.method_15().SetAttr(0x582, !flag4);
            continue;
Label_05F1:
            if (str2 == BookmarkStart.b("䌦䘨帪伬䌮吰", num))
            {
                format.SetAttr(300, Class650.class650_1);
            }
            if (str2 == BookmarkStart.b("否䀨䔪䨬䌮吰", num))
            {
                format.SetAttr(80, Class650.class650_1);
            }
            continue;
Label_067D:
            if (str2 == BookmarkStart.b("䤦䘨䔪䠬", num))
            {
                format.SetAttr(80, Class650.class650_0);
            }
            continue;
Label_072E:
            if (strArray[0] == BookmarkStart.b("否尨䤪", num))
            {
                format.SetAttr(210, SubSuperScript.SubScript);
            }
Label_0755:
            format.SetAttr(200, Class576.smethod_73(format, str2, num3));
            continue;
Label_09A1:
            if (class2.method_3() == BookmarkStart.b("䈦䜨䰪弬丮䜰嘲儴", num))
            {
                format.SetAttr(180, Class650.class650_1);
            }
            if (class2.method_3() == BookmarkStart.b("䈦䐨䤪䈬尮䈰嘲儴", num))
            {
                format.SetAttr(170, Class650.class650_1);
            }
            continue;
Label_09F9:
            if (class2.method_3() == BookmarkStart.b("䤦䘨䔪䠬", num))
            {
                format.SetAttr(130, Class650.class650_1);
            }
            if (class2.method_3() == BookmarkStart.b("匦嬨帪䠬", num))
            {
                format.SetAttr(130, Class650.class650_0);
            }
            continue;
Label_0B20:
            if (class2.method_3() == BookmarkStart.b("䬦䀨䔪䠬Ȯ夰嘲尴倶儸伺", num))
            {
                if (class3 == null)
                {
                    class3 = smethod_1(A_0);
                }
                class3.method_7(true);
            }
            continue;
Label_0B51:
            num2 = Class1041.smethod_23(str2) % 360;
            if (((num2 >= 0x2d) && (num2 < 180)) || ((num2 >= -315) && (num2 < -180)))
            {
                if (class3 == null)
                {
                    class3 = smethod_1(A_0);
                }
                class3.method_1(true);
            }
            if (class3 == null)
            {
                A_1.method_20(Class922.smethod_70(class2.method_3()));
            }
        }
        if (!flag)
        {
            format.SetAttr(80, Class650.class650_0);
            format.SetAttr(300, Class650.class650_0);
        }
        if ((str14 != string.Empty) || (str15 != string.Empty))
        {
            if (!(str14 == BookmarkStart.b("匦嬨帪䠬", num)) && !(str15 == BookmarkStart.b("匦嬨帪䠬", num)))
            {
                format.SetAttr(60, Class650.class650_0);
            }
            else
            {
                format.SetAttr(60, Class650.class650_1);
            }
        }
        if (flag2 || flag3)
        {
            format.SetAttr(70, Class650.class650_1);
        }
        if (class3 != null)
        {
            format.SetAttr(780, class3);
        }
        format.SetAttr(380, (short)Class922.smethod_81(string.Format(BookmarkStart.b("尦ᤨ嘪,吮0串", num), str3, str4)));
        format.SetAttr(390, (short)Class922.smethod_81(string.Format(BookmarkStart.b("尦ᤨ嘪,吮0串", num), str5, str6)));
        format.SetAttr(340, (short)Class922.smethod_81(string.Format(BookmarkStart.b("尦ᤨ嘪,吮0串", num), str7, str8)));
        if ((Class567.smethod_16(str9) || (str10 == BookmarkStart.b("否䈨䈪崬Ȯ䘰嬲尴䌶尸ᘺ丼伾⁀⁂⁄", num))) || (str12 == BookmarkStart.b("匦䄨䈪丬䐮", num)))
        {
            format.SetAttr(140, Class922.smethod_68(str9, str12, str10, str13));
        }
        return(format);
    }
Beispiel #10
0
    internal static void smethod_1(Class581 A_0, CharacterFormat A_1)
    {
        int      num    = 1;
        Class394 class2 = A_0.imethod_1();
        string   key    = class2.method_1();

        if (key != null)
        {
            int num2;
            if (Class1160.dictionary_126 == null)
            {
                Dictionary <string, int> dictionary1 = new Dictionary <string, int>(0x2b);
                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);
                dictionary1.Add(BookmarkStart.b("䠦尨弪䄬䘮弰嘲", num), 11);
                dictionary1.Add(BookmarkStart.b("否䄨䨪䤬䀮䘰", num), 12);
                dictionary1.Add(BookmarkStart.b("䈦䐨䤪䈬尮䈰", num), 13);
                dictionary1.Add(BookmarkStart.b("並䐨嬪弬䘮弰䜲", num), 14);
                dictionary1.Add(BookmarkStart.b("䤦䘨笪弬䀮帰唲", num), 15);
                dictionary1.Add(BookmarkStart.b("儦䠨䔪䐬尮夰", num), 0x10);
                dictionary1.Add(BookmarkStart.b("否䜨䨪崬笮帰琲䜴帶崸", num), 0x11);
                dictionary1.Add(BookmarkStart.b("倦䰨䤪攬䘮唰圲倴夶", num), 0x12);
                dictionary1.Add(BookmarkStart.b("䐦䘨䜪䈬崮", num), 0x13);
                dictionary1.Add(BookmarkStart.b("否夨䨪丬䘮弰吲", num), 20);
                dictionary1.Add(BookmarkStart.b("倦", num), 0x15);
                dictionary1.Add(BookmarkStart.b("䰦䰨太䌬", num), 0x16);
                dictionary1.Add(BookmarkStart.b("圦䘨堪䐬嬮堰尲嬴", num), 0x17);
                dictionary1.Add(BookmarkStart.b("否匨", num), 0x18);
                dictionary1.Add(BookmarkStart.b("否匨ت丬尮", num), 0x19);
                dictionary1.Add(BookmarkStart.b("伦䀨䰪䔬䌮堰吲崴䌶", num), 0x1a);
                dictionary1.Add(BookmarkStart.b("刦", num), 0x1b);
                dictionary1.Add(BookmarkStart.b("䈦伨䴪䠬䰮䔰", num), 0x1c);
                dictionary1.Add(BookmarkStart.b("䔦䴨太", num), 0x1d);
                dictionary1.Add(BookmarkStart.b("否䄨伪", num), 30);
                dictionary1.Add(BookmarkStart.b("䄦䀨弪礬䨮䤰䜲", num), 0x1f);
                dictionary1.Add(BookmarkStart.b("儦䰨太夬渮崰娲刴夶", num), 0x20);
                dictionary1.Add(BookmarkStart.b("唦崨䜪", num), 0x21);
                dictionary1.Add(BookmarkStart.b("䐦娨", num), 0x22);
                dictionary1.Add(BookmarkStart.b("䈦䐨", num), 0x23);
                dictionary1.Add(BookmarkStart.b("伦倨嬪䔬䨮弰", num), 0x24);
                dictionary1.Add(BookmarkStart.b("䬦䠨䔪䨬", num), 0x25);
                dictionary1.Add(BookmarkStart.b("䘦娨䈪䰬䄮細刲䰴堶䰸伺", num), 0x26);
                dictionary1.Add(BookmarkStart.b("否夨个丬礮倰崲尴䐶儸", num), 0x27);
                dictionary1.Add(BookmarkStart.b("否倨䘪", num), 40);
                dictionary1.Add(BookmarkStart.b("䘦䜨䔪䈬嬮倰䜲尴堶圸", num), 0x29);
                dictionary1.Add(BookmarkStart.b("䀦嬨䈪䤬簮䄰刲嬴", num), 0x2a);
                Class1160.dictionary_126 = dictionary1;
            }
            if (Class1160.dictionary_126.TryGetValue(key, out num2))
            {
                switch (num2)
                {
                case 0:
                {
                    string str4 = class2.method_28();
                    if (A_0.Interface50.imethod_0().StyleNameIds.ContainsKey(str4))
                    {
                        A_1.CharStyleName = A_0.Interface50.imethod_0().StyleNameIds[str4];
                    }
                    return;
                }

                case 1:
                    smethod_4(A_1, class2);
                    return;

                case 2:
                    if (!A_1.method_72(230))
                    {
                        A_1.SetAttr(230, class2.method_28());
                    }
                    return;

                case 3:
                    A_1.SetAttr(60, class2.method_32());
                    return;

                case 4:
                    A_1.SetAttr(250, class2.method_32());
                    return;

                case 5:
                    A_1.SetAttr(70, class2.method_32());
                    return;

                case 6:
                    A_1.SetAttr(260, class2.method_32());
                    return;

                case 7:
                    A_1.SetAttr(120, class2.method_32());
                    return;

                case 8:
                    A_1.SetAttr(110, class2.method_32());
                    return;

                case 9:
                    A_1.SetAttr(80, class2.method_32());
                    return;

                case 10:
                    A_1.SetAttr(300, class2.method_32());
                    return;

                case 11:
                    A_1.SetAttr(90, class2.method_32());
                    return;

                case 12:
                    A_1.SetAttr(100, class2.method_32());
                    return;

                case 13:
                    A_1.SetAttr(170, class2.method_32());
                    return;

                case 14:
                    A_1.SetAttr(180, class2.method_32());
                    return;

                case 15:
                    A_1.SetAttr(440, class2.method_32());
                    return;

                case 0x10:
                    A_1.SetAttr(130, class2.method_32());
                    return;

                case 0x11:
                    A_1.SetAttr(330, class2.method_32());
                    return;

                case 0x12:
                    A_1.SetAttr(0x84, class2.method_32());
                    return;

                case 0x13:
                {
                    string str3 = class2.method_28();
                    if (str3 != null)
                    {
                        A_1.SetAttr(160, Class114.smethod_13(str3));
                    }
                    return;
                }

                case 20:
                {
                    float num3 = class2.method_29();
                    if (num3 != float.MaxValue)
                    {
                        A_1.SetAttr(150, num3 / 20f);
                    }
                    return;
                }

                case 0x15:
                {
                    string str6 = class2.method_28();
                    if (!string.IsNullOrEmpty(str6))
                    {
                        short num5 = short.Parse(str6.Replace(BookmarkStart.b("Ȧ", num), string.Empty), NumberStyles.Integer, CultureInfo.InvariantCulture);
                        A_1.SetAttr(290, num5);
                    }
                    return;
                }

                case 0x16:
                    A_1.SetAttr(220, float.Parse(class2.method_29().ToString(), NumberStyles.Number, CultureInfo.InvariantCulture) / 2f);
                    return;

                case 0x17:
                    A_1.SetAttr(200, ((float)class2.method_29()) / 2f);
                    return;

                case 0x18:
                {
                    string s = class2.method_28();
                    if (s != null)
                    {
                        A_1.SetAttr(190, float.Parse(s, NumberStyles.Number, CultureInfo.InvariantCulture) / 2f);
                    }
                    return;
                }

                case 0x19:
                {
                    string str5 = class2.method_28();
                    if (str5 != null)
                    {
                        A_1.SetAttr(350, float.Parse(str5, NumberStyles.Number, CultureInfo.InvariantCulture) / 2f);
                    }
                    return;
                }

                case 0x1a:
                {
                    Color color = Class860.smethod_19(class2.method_28());
                    if (color != Color.Empty)
                    {
                        A_1.SetAttr(20, color);
                    }
                    return;
                }

                case 0x1b:
                    smethod_5(A_1, class2);
                    return;

                case 0x1c:
                    A_1.SetAttr(310, Class860.smethod_15(class2.method_28()));
                    return;

                case 0x1d:
                    class2.method_36(A_1.Border);
                    return;

                case 30:
                    A_1.SetAttr(370, class2.method_39());
                    return;

                case 0x1f:
                    class2.vmethod_1();
                    return;

                case 0x20:
                    A_1.SetAttr(210, Class860.smethod_21(class2.method_28()));
                    return;

                case 0x21:
                    A_1.SetAttr(0x109, class2.method_32());
                    return;

                case 0x22:
                    A_1.SetAttr(0x10c, class2.method_32());
                    return;

                case 0x23:
                    A_1.SetAttr(770, Class860.smethod_3(class2.method_28()));
                    return;

                case 0x24:
                    smethod_6(A_1, class2);
                    return;

                case 0x25:
                    smethod_7(A_1, class2);
                    return;

                case 0x26:
                    smethod_3(A_1, class2);
                    return;

                case 0x27:
                    A_1.SetAttr(10, class2.method_32());
                    return;

                case 40:
                    class2.method_26();
                    return;

                case 0x29:
                    Class519.smethod_15(A_1, A_0);
                    return;

                case 0x2a:
                {
                    TableCell parentObject = A_0.method_13().ParentObject as TableCell;
                    if (parentObject != null)
                    {
                        parentObject.CellFormat.GridSpan = (short)class2.method_29();
                    }
                    return;
                }
                }
            }
        }
        if (!smethod_2(A_0, A_1))
        {
            class2.vmethod_1();
        }
    }