Ejemplo n.º 1
0
    internal static void smethod_0(Class581 A_0, ParagraphFormat A_1, CharacterFormat A_2, Class584 A_3)
    {
        object obj2 = A_1.method_31(0x465);

        A_1.method_71(0x465);
        object obj3 = A_1.method_31(0x62c);

        A_1.method_71(0x62c);
        ParagraphFormat format = (ParagraphFormat)A_1.method_23();

        A_1.ClearFormatting();
        Class924.smethod_0(A_0, A_1, A_2);
        bool flag  = A_1.method_31(0x3e8) != null;
        bool flag2 = format.method_31(0x3e8) != null;

        if (flag && !flag2)
        {
            format.SetAttr(0x3e8, format.method_31(0x3e8));
        }
        if (obj2 != null)
        {
            A_1.SetAttr(0x465, obj2);
        }
        if (obj3 != null)
        {
            A_1.SetAttr(0x62c, obj3);
        }
    }
Ejemplo n.º 2
0
    private static void smethod_1(Class857 A_0, Class97 A_1, ParagraphFormat A_2)
    {
        int      num    = 0x10;
        Class396 class2 = A_0.method_11();
        bool     flag   = false;
        int      num2   = 0;
        int      num3   = 0;
        string   str    = null;
        string   str2   = null;
        bool     flag2  = false;

        while (class2.method_19())
        {
            string str3;
            if (((!Class857.smethod_0(class2, A_1, A_2) && !Class857.smethod_9(class2, A_1.method_35())) && (!Class857.smethod_1(class2, A_1.method_37()) && !Class857.smethod_2(class2, A_1.method_39()))) && ((str3 = class2.method_1()) != null))
            {
                int num4;
                if (Class1160.dictionary_27 == null)
                {
                    Dictionary <string, int> dictionary1 = new Dictionary <string, int>(0x16);
                    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);
                    Class1160.dictionary_27 = dictionary1;
                }
                if (Class1160.dictionary_27.TryGetValue(str3, out num4))
                {
                    switch (num4)
                    {
                    case 0:
                        if (class2.method_3() != BookmarkStart.b("圵䴷丹医", num))
                        {
                            A_1.method_44(class2.method_3());
                        }
                        break;

                    case 1:
                        str = class2.method_3();
                        break;

                    case 2:
                        A_1.method_42(class2.method_4());
                        break;

                    case 3:
                        if (class2.method_3() == BookmarkStart.b("䈵䨷伹夻", num))
                        {
                            A_2.SuppressLineNumbers = false;
                        }
                        break;

                    case 4:
                        if (!Class567.smethod_16(A_1.method_6()))
                        {
                            A_1.method_7(Class576.smethod_87(class2.method_3()));
                        }
                        break;

                    case 5:
                        str2 = class2.method_3();
                        break;

                    case 6:
                        goto Label_0340;

                    case 7:
                        A_2.FirstLineIndent = ((float)Class576.smethod_36(class2.method_3())) / 20f;
                        break;

                    case 8:
                        if (class2.method_3() != BookmarkStart.b("堵圷䠹儻弽ⰿ", num))
                        {
                            A_2.LineSpacing     = ((float)Class576.smethod_52(class2.method_3())) / 20f;
                            A_2.LineSpacingRule = class2.method_3().EndsWith(BookmarkStart.b("ጵ", num)) ? LineSpacingRule.Multiple : LineSpacingRule.Exactly;
                        }
                        break;

                    case 9:
                        A_2.LineSpacingRule = LineSpacingRule.AtLeast;
                        A_2.LineSpacing     = ((float)Class576.smethod_36(class2.method_3())) / 20f;
                        break;

                    case 10:
                        if (class2.method_3() == BookmarkStart.b("圵吷䴹崻䜽㌿", num))
                        {
                            A_2.SetAttr(0x410, true);
                        }
                        break;

                    case 11:
                        if (class2.method_3() == BookmarkStart.b("圵吷䴹崻䜽㌿", num))
                        {
                            A_2.SetAttr(0x41a, true);
                        }
                        break;

                    case 12:
                        if (class2.method_3() != BookmarkStart.b("䈵䨷嬹刻䴽〿⍁㙃⍅♇㹉", num))
                        {
                            A_2.SetAttr(0x5b4, Class576.smethod_62(class2.method_3(), (Class16)A_2.method_31(0x5b4)));
                            A_1.method_15().SetAttr(0x5b4, Class576.smethod_62(class2.method_3(), (Class16)A_2.method_31(0x5b4)));
                        }
                        break;

                    case 13:
                        A_2.SetAttr(0x4d8, class2.method_3() == BookmarkStart.b("張尷弹医夽㈿⍁㑃⹅敇⭉⁋㹍㡏㍑", num));
                        break;

                    case 14:
                        if (class2.method_3() == BookmarkStart.b("䔵儷圹䰻刽┿", num))
                        {
                            A_2.SetAttr(0x442, false);
                        }
                        break;

                    case 15:
                    {
                        BaselineAlignment alignment = Class922.smethod_43(class2.method_3());
                        if (alignment != BaselineAlignment.Baseline)
                        {
                            A_2.SetAttr(0x5e6, alignment);
                        }
                        break;
                    }

                    case 0x10:
                        if (class2.method_3() == BookmarkStart.b("䈵䨷伹夻", num))
                        {
                            A_2.SetAttr(0x4ec, true);
                        }
                        break;

                    case 0x11:
                        if (class2.method_3() == BookmarkStart.b("堵圷᜹倻圽ⴿ⭁ぃ", num))
                        {
                            A_2.SetAttr(0x582, true);
                        }
                        break;

                    case 0x12:
                        if (A_1.method_0() == null)
                        {
                            A_0.method_9().Settings.float_0 = Class576.smethod_36(class2.method_3());
                        }
                        break;

                    case 0x13:
                        flag = Class576.smethod_90(class2.method_3());
                        break;

                    case 20:
                        num2 = class2.method_4();
                        break;

                    case 0x15:
                        num3 = class2.method_4();
                        break;
                    }
                }
            }
            continue;
Label_0340:
            flag2 = class2.method_3() == BookmarkStart.b("䐵吷᜹䠻尽", num);
            if ((class2.method_3() == BookmarkStart.b("䐵吷᜹䠻尽", num)) || (class2.method_3() == BookmarkStart.b("䐵吷", num)))
            {
                A_2.SetAttr(0x618, true);
            }
            if ((class2.method_3() == BookmarkStart.b("娵䨷᜹䠻尽", num)) || (class2.method_3() == BookmarkStart.b("娵䨷", num)))
            {
                A_2.SetAttr(0x618, false);
            }
        }
        if (str2 != null)
        {
            A_2.HorizontalAlignment = Class922.smethod_65(str2, flag2);
        }
        bool flag3 = (num2 == 2) && (num3 == 2);

        if ((A_1.method_0() != null) && (A_1.method_0() != BookmarkStart.b("攵䰷嬹刻娽ℿぁ⁃", num)))
        {
            if (flag3)
            {
                A_2.SetAttr(0x5be, true);
            }
            else if (!flag3)
            {
                A_2.SetAttr(0x5be, false);
            }
        }
        else if ((num2 >= 2) && (num3 >= 2))
        {
            if (flag3)
            {
                A_0.method_9().Settings.bool_67 = true;
            }
        }
        else
        {
            A_0.method_9().Settings.bool_67 = false;
        }
        if (str == BookmarkStart.b("尵䴷䤹䠻圽☿㭁", num))
        {
            A_2.SetAttr(0x3fc, HorizontalAlignment.Distribute);
        }
        smethod_2(A_2, A_1, flag);
    }
Ejemplo n.º 3
0
    private void method_1(Paragraph A_0, ParagraphFormat A_1)
    {
        if (A_0 == null)
        {
            return;
        }
        if (A_1.method_31(0x3e8) == null)
        {
            goto Label_00B8;
        }
        int    num2 = (int)A_1.method_31(0x3e8);
        string str2 = string.Empty;

        using (Dictionary <string, int> .Enumerator enumerator2 = this.class764_0.method_47().GetEnumerator())
        {
            KeyValuePair <string, int> current;
            while (enumerator2.MoveNext())
            {
                current = enumerator2.Current;
                if (current.Value == num2)
                {
                    goto Label_0065;
                }
            }
            goto Label_007E;
Label_0065:
            str2 = current.Key;
        }
Label_007E:
        if (this.document_0.StyleNameIds.ContainsValue(str2))
        {
            IParagraphStyle style2 = this.document_0.Styles.FindByName(str2, StyleType.ParagraphStyle) as IParagraphStyle;
            if (style2 != null)
            {
                A_0.method_65(style2);
            }
        }
Label_00B8:
        if ((A_1.FormatRevision == null) || (A_1.FormatRevision.method_4().method_31(0x3e8) == null))
        {
            return;
        }
        int    num = (int)A_1.FormatRevision.method_4().method_31(0x3e8);
        string str = string.Empty;

        using (Dictionary <string, int> .Enumerator enumerator = this.class764_0.method_47().GetEnumerator())
        {
            KeyValuePair <string, int> pair;
            while (enumerator.MoveNext())
            {
                pair = enumerator.Current;
                if (pair.Value == num)
                {
                    goto Label_0131;
                }
            }
            goto Label_0149;
Label_0131:
            str = pair.Key;
        }
Label_0149:
        if (this.document_0.StyleNameIds.ContainsValue(str))
        {
            IParagraphStyle style = this.document_0.Styles.FindByName(str, StyleType.ParagraphStyle) as IParagraphStyle;
            if (style != null)
            {
                A_1.FormatRevision.method_4().ApplyBase(style.ParagraphFormat);
            }
        }
    }
Ejemplo n.º 4
0
    private void method_2(Paragraph A_0, ParagraphFormat A_1)
    {
        int num = 0;

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