예제 #1
0
    private static void smethod_9(Class1054 A_0, Class398 A_1, bool A_2)
    {
        int num = 2;

        A_1.method_54(BookmarkStart.b("弧ဩ堫䰭尯攱", 2), A_0.class15_0);
        A_1.method_24(BookmarkStart.b("弧ဩ䘫䴭", 2), A_0.string_13);
        A_1.method_48(BookmarkStart.b("弧ဩ堫䰭尯焱儳娵吷椹䰻弽⌿⭁⩃ⅅ", 2), A_0.string_14);
        A_1.method_48(BookmarkStart.b("弧ဩ堫䰭尯笱娳刵", 2), A_0.string_15);
        A_1.method_46(BookmarkStart.b("弧ဩ堫䰭尯瀱嬳䐵尷弹主䴽", 2), A_0.bool_6, new object[] { BookmarkStart.b("弧ဩ堫䄭䀯", 2), A_0.border_4, BookmarkStart.b("弧ဩ䀫䬭嘯䘱", 2), A_0.border_2, BookmarkStart.b("弧ဩ丫䄭䐯䘱嬳嬵", 2), A_0.border_0, BookmarkStart.b("弧ဩ師䜭圯娱䀳", 2), A_0.border_3, BookmarkStart.b("弧ဩ䔫䀭䌯嬱倳匵瀷", 2), A_0.border_1, BookmarkStart.b("弧ဩ䔫䀭䌯嬱倳匵渷", 2), A_0.border_5 });
        A_1.vmethod_4(A_0.class16_0);
        if (!A_2 && !((bool)A_0.object_0))
        {
            A_1.method_33(BookmarkStart.b("弧ဩ堫䰭尯縱唳伵圷伹䠻", num), new object[] { BookmarkStart.b("弧ဩ堫圭䀯圱", num), A_0.bool_6 ? BookmarkStart.b("丧䌩含䬭启", num) : BookmarkStart.b("渧䌩含䬭启", num) });
        }
        A_1.method_50(BookmarkStart.b("弧ဩ堫䰭尯焱儳娵吷眹崻䰽", num), A_0.string_16, A_0.string_17, A_0.string_18, A_0.string_19);
        if (!A_0.bool_6 && !A_2)
        {
            if (A_0.string_20 == null)
            {
                A_1.method_24(BookmarkStart.b("弧ဩ堫䰭尯縱嬳夵匷", num), Class1041.smethod_41(Class531.smethod_1(TableStyleOptions.Default)));
            }
            else if (A_0.string_20 != Class1041.smethod_41(Class531.smethod_1(TableStyleOptions.Default2003)))
            {
                A_1.method_24(BookmarkStart.b("弧ဩ堫䰭尯縱嬳夵匷", num), A_0.string_20);
            }
        }
        else
        {
            A_1.method_24(BookmarkStart.b("弧ဩ堫䰭尯縱嬳夵匷", num), A_0.string_20);
        }
    }
예제 #2
0
    private static string smethod_6(string A_0)
    {
        int           num     = 0x11;
        StringBuilder builder = new StringBuilder(BookmarkStart.b("堶̸", 0x11));

        for (int i = 0; i < A_0.Length; i++)
        {
            char c = A_0[i];
            if ((!char.IsLetter(c) && (c != '_')) && (c != '-'))
            {
                builder.Append(BookmarkStart.b("栶䄸", num));
                builder.Append(Class1041.smethod_41(c));
                builder.Append('_');
            }
            else
            {
                builder.Append(c);
            }
        }
        return(builder.ToString());
    }
예제 #3
0
    private void method_1(TextRange A_0)
    {
        int    num  = 8;
        string text = A_0.Text;

        if (Class567.smethod_16(text) && (text[0] != '\x0001'))
        {
            bool flag  = Class738.smethod_2(text[0]);
            bool flag2 = A_0.CharacterFormat.HasKey(230);
            if (flag && flag2)
            {
                for (int i = 0; i < text.Length; i++)
                {
                    this.method_3(A_0);
                    this.class399_0.method_33(BookmarkStart.b("夭ਯ䄱䴳嬵", num), new object[] { BookmarkStart.b("夭ਯ吱嬳堵䰷", num), A_0.CharacterFormat.FontNameNonFarEast, BookmarkStart.b("夭ਯ儱尳圵䨷", num), Class1041.smethod_41(text[i]) });
                    this.method_5();
                }
            }
            else
            {
                int index = text.IndexOf(BookmarkStart.b("⌭", num));
                if ((index != -1) && (A_0.OwnerParagraph != null))
                {
                    string str4 = text.Substring(0, index);
                    string str3 = text.Substring(index + 1);
                    A_0.Text = str4;
                    text     = str4;
                    Paragraph entity         = new Paragraph(this.class421_0.Interface52.imethod_0());
                    TextRange range          = new TextRange(this.class421_0.Interface52.imethod_0());
                    Paragraph ownerParagraph = A_0.OwnerParagraph;
                    Body      owner          = A_0.OwnerParagraph.Owner as Body;
                    entity.Format.ImportContainer(ownerParagraph.Format);
                    entity.Format.method_21(ownerParagraph.Format);
                    entity.ListFormat.ImportContainer(ownerParagraph.ListFormat);
                    if (ownerParagraph.StyleName != null)
                    {
                        entity.ApplyStyle(ownerParagraph.StyleName);
                    }
                    entity.BreakCharacterFormat.ImportContainer(ownerParagraph.BreakCharacterFormat);
                    entity.BreakCharacterFormat.method_21(ownerParagraph.BreakCharacterFormat);
                    int num4 = ownerParagraph.method_5() + 1;
                    owner.ChildObjects.Insert(num4, entity);
                    range.Text = str3;
                    range.CharacterFormat.ImportContainer(A_0.CharacterFormat);
                    range.CharacterFormat.method_21(A_0.CharacterFormat);
                    entity.Items.Insert(0, range);
                    this.method_2(entity, ownerParagraph, A_0.method_5() + 1);
                }
                this.method_3(A_0);
                foreach (Match match in regex_0.Matches(text))
                {
                    string str2 = match.Groups[10].Value;
                    if (Class567.smethod_16(str2))
                    {
                        this.method_7(str2);
                    }
                    else if (Class567.smethod_16(match.Groups[1].Value))
                    {
                        this.method_6();
                    }
                    else if (Class567.smethod_16(match.Groups[2].Value))
                    {
                        this.class399_0.method_10(BookmarkStart.b("夭ਯ䄱儳䘵夷䠹崻䨽⼿ぁ", num));
                    }
                    else if (Class567.smethod_16(match.Groups[3].Value))
                    {
                        this.class399_0.method_10(BookmarkStart.b("夭ਯ儱嬳堵䰷匹刻䬽ℿ㙁ⵃ⥅♇᥉⥋㹍ㅏ⁑㕓≕㝗⡙", num));
                    }
                    else if (Class567.smethod_16(match.Groups[4].Value))
                    {
                        this.class399_0.method_10(BookmarkStart.b("夭ਯ匱娳堵圷丹崻䨽⤿ⵁ⩃ᑅⵇⱉ", num));
                    }
                    else if (Class567.smethod_16(match.Groups[5].Value))
                    {
                        this.method_8();
                    }
                    else if (Class567.smethod_16(match.Groups[6].Value))
                    {
                        this.class399_0.method_10(BookmarkStart.b("夭ਯ儱䘳", num));
                    }
                    else if (!Class567.smethod_16(match.Groups[7].Value))
                    {
                        if (Class567.smethod_16(match.Groups[9].Value))
                        {
                            if (!text.StartsWith(Class816.string_21))
                            {
                                this.method_5();
                                this.method_3(A_0);
                            }
                            this.class399_0.method_10(BookmarkStart.b("夭ਯ䄱嬳倵䰷爹䔻丽⠿❁⩃", num));
                        }
                        else if (Class567.smethod_16(match.Groups[8].Value))
                        {
                            if (!text.StartsWith(Class816.string_12))
                            {
                                this.method_5();
                                this.method_3(A_0);
                            }
                            this.class399_0.method_10(BookmarkStart.b("夭ਯ就嬳琵䨷弹崻唽࠿㭁㑃⹅ⵇ⑉", num));
                        }
                    }
                }
                this.method_5();
            }
        }
    }
예제 #4
0
    internal Class1054(RowFormat A_0, bool A_1, Interface52 A_2)
    {
        int num4 = 5;

        this.bool_1 = true;
        this.bool_4 = true;
        this.bool_6 = A_2.imethod_2();
        for (int i = 0; i < A_0.Count; i++)
        {
            int    num2 = A_0.method_18(i);
            object obj2 = A_0.method_19(i);
            int    num3 = num2;
            if (num3 <= 0x10a4)
            {
                if (num3 <= 0x100e)
                {
                    if (num3 <= 0xfa5)
                    {
                        switch (num3)
                        {
                        case 1:
                            if (!(obj2 as Borders).IsDefault)
                            {
                                this.border_4 = (obj2 as Borders).Top;
                                this.border_2 = (obj2 as Borders).Left;
                                this.border_0 = (obj2 as Borders).Bottom;
                                this.border_3 = (obj2 as Borders).Right;
                                this.border_1 = (obj2 as Borders).Horizontal;
                                this.border_5 = (obj2 as Borders).Vertical;
                                this.int_1   += 6;
                            }
                            break;

                        case 3:
                            this.string_18 = A_2.imethod_1().method_23((obj2 as Paddings).Bottom, 20f).ToString();
                            this.string_17 = A_2.imethod_1().method_23((obj2 as Paddings).Left, 20f).ToString();
                            this.string_16 = A_2.imethod_1().method_23((obj2 as Paddings).Top, 20f).ToString();
                            this.string_19 = A_2.imethod_1().method_23((obj2 as Paddings).Right, 20f).ToString();
                            this.int_1    += 4;
                            break;

                        case 0x77:
                            this.bool_0 = (bool)obj2;
                            break;

                        case 120:
                        {
                            this.bool_0 = true;
                            RowFormat.TablePositioning positioning = obj2 as RowFormat.TablePositioning;
                            this.string_3  = (positioning.DistanceFromTop != 0f) ? A_2.imethod_1().method_23(positioning.DistanceFromTop, 20f).ToString() : null;
                            this.string_4  = (positioning.DistanceFromLeft != 9f) ? A_2.imethod_1().method_23(positioning.DistanceFromLeft, 20f).ToString() : null;
                            this.string_5  = (positioning.DistanceFromBottom != 0f) ? A_2.imethod_1().method_23(positioning.DistanceFromBottom, 20f).ToString() : null;
                            this.string_6  = (positioning.DistanceFromRight != 9f) ? A_2.imethod_1().method_23(positioning.DistanceFromRight, 20f).ToString() : null;
                            this.string_8  = Class417.smethod_16(Class417.smethod_21(positioning.HorizRelationTo));
                            this.string_7  = Class417.smethod_14((VerticalOrigin)positioning.VertRelationTo);
                            this.string_9  = (positioning.HorizPositionAbs != HorizontalPosition.Left) ? Class417.smethod_18(positioning.HorizPositionAbs) : null;
                            this.string_11 = (positioning.VertPositionAbs != VerticalPosition.None) ? Class417.smethod_23(positioning.VertPositionAbs) : null;
                            this.string_10 = A_2.imethod_1().method_23(positioning.HorizPositionEx, 20f).ToString();
                            this.string_12 = A_2.imethod_1().method_23(positioning.VertPositionEx, 20f).ToString();
                            this.bool_1    = positioning.TableOverlap;
                            break;
                        }

                        case 0xfa5:
                            if (obj2 != null)
                            {
                                Style style = A_2.imethod_0().Styles.method_13((int)obj2, false);
                                if (A_2.imethod_2())
                                {
                                    this.string_0 = style.StyleId;
                                }
                                else
                                {
                                    this.string_0 = A_2.imethod_4(style.Istd);
                                }
                            }
                            break;
                        }
                    }
                    else
                    {
                        switch (num3)
                        {
                        case 0xfaa:
                        {
                            this.string_13 = Class859.smethod_1((RowAlignment)obj2);
                            this.int_0++;
                            this.int_1++;
                            continue;
                        }

                        case 0xfc8:
                        {
                            if ((bool)obj2)
                            {
                                this.bool_3 = (bool)obj2;
                                this.int_0++;
                            }
                            continue;
                        }
                        }
                        if (num3 == 0x100e)
                        {
                            TableRowHeightType type = (TableRowHeightType)obj2;
                            if (type != TableRowHeightType.AtLeast)
                            {
                                this.string_22 = Class859.smethod_3(type, this.bool_6);
                                this.int_0++;
                            }
                            if ((this.bool_6 && (type == TableRowHeightType.Auto)) && (this.string_21 == null))
                            {
                                this.string_21 = BookmarkStart.b("ᬪ", num4);
                            }
                        }
                    }
                }
                else if (num3 <= 0x1086)
                {
                    switch (num3)
                    {
                    case 0x1018:
                    {
                        this.string_21 = Class1041.smethod_8((int)A_2.imethod_1().method_23(obj2, 20f));
                        this.int_0++;
                        continue;
                    }

                    case 0x102c:
                    {
                        this.string_20 = Class1041.smethod_41(Class531.smethod_1((TableStyleOptions)obj2));
                        this.int_1++;
                        continue;
                    }
                    }
                    if (num3 == 0x1086)
                    {
                        this.class15_0 = (Class15)obj2;
                        if (this.bool_6)
                        {
                            this.int_1++;
                        }
                    }
                }
                else
                {
                    switch (num3)
                    {
                    case 0x1090:
                    {
                        if (!A_1)
                        {
                            this.object_0 = ((LayoutType)obj2) == LayoutType.AutoFit;
                            this.int_1++;
                        }
                        continue;
                    }

                    case 0x109a:
                    {
                        this.int_3 = (int)Math.Round((double)(obj2 as Class15).method_49());
                        if (this.int_3 > 0)
                        {
                            this.int_0++;
                        }
                        continue;
                    }
                    }
                    if (num3 == 0x10a4)
                    {
                        this.int_5 = (int)(obj2 as Class15).method_49();
                        if (this.int_5 > 0)
                        {
                            this.int_0++;
                        }
                    }
                }
            }
            else if (num3 <= 0x1130)
            {
                if (num3 <= 0x10f4)
                {
                    switch (num3)
                    {
                    case 0x10c2:
                    {
                        this.string_14 = A_2.imethod_1().method_23(obj2, 20f).ToString();
                        this.int_0++;
                        this.int_1++;
                        continue;
                    }

                    case 0x10ea:
                    {
                        this.class16_0 = (Class16)obj2;
                        this.int_1++;
                        continue;
                    }
                    }
                    if (num3 == 0x10f4)
                    {
                        this.string_15 = A_2.imethod_1().method_23(obj2, 20f).ToString();
                        this.int_1++;
                    }
                }
                else
                {
                    switch (num3)
                    {
                    case 0x1108:
                    {
                        if (!((bool)obj2))
                        {
                            this.bool_4 = (bool)obj2;
                            this.int_0++;
                        }
                        continue;
                    }

                    case 0x111c:
                    {
                        this.bool_2 = (bool)obj2;
                        continue;
                    }
                    }
                    if (num3 == 0x1130)
                    {
                        this.string_25 = Class114.smethod_5((int)obj2);
                    }
                }
            }
            else if (num3 <= 0x11a8)
            {
                switch (num3)
                {
                case 0x1194:
                {
                    this.string_1 = Class1041.smethod_9((long)obj2);
                    continue;
                }

                case 0x119e:
                {
                    this.string_2 = Class1041.smethod_9((long)obj2);
                    continue;
                }
                }
                if ((num3 == 0x11a8) && A_2.imethod_2())
                {
                    this.bool_5 = true;
                    this.int_0++;
                }
            }
            else
            {
                switch (num3)
                {
                case 0x13f0:
                    this.int_2 = (int)obj2;
                    this.int_0++;
                    break;

                case 0x13f1:
                    this.int_4 = (int)obj2;
                    this.int_0++;
                    break;

                case 0x1392:
                    this.string_24 = (string)obj2;
                    break;

                case 0x1388:
                    this.string_23 = (string)obj2;
                    break;
                }
            }
        }
        if (!A_1)
        {
            if (this.object_0 == null)
            {
                this.object_0 = A_0.LayoutType == LayoutType.AutoFit;
                this.int_1++;
            }
            if ((bool)this.object_0)
            {
                this.int_1--;
            }
        }
        if ((A_0.OwnerBase is Table) && ((A_0.OwnerBase as Table).TableStyle != null))
        {
            if (this.bool_6)
            {
                this.string_0 = (A_0.OwnerBase as Table).TableStyle.StyleId;
            }
            else
            {
                this.string_0 = A_2.imethod_5((A_0.OwnerBase as Table).TableStyle.StyleId);
            }
        }
    }