Example #1
0
 public virtual void vmethod_1()
 {
     if (Enum50 == Enum5.Const3)
     {
         for (var i = 0; i < Int0; i++)
         {
             Class940[i] = new Class95(i);
         }
         return;
     }
     if (Enum50 == Enum5.Const1)
     {
         int i;
         for (i = 0; i < Class1070.method_26(); i++)
         {
             Class940[i] = new Class97(i);
         }
         while (i < Int0)
         {
             Class940[i] = new Class96(i);
             i++;
         }
         return;
     }
     for (var i = 0; i < Int0; i++)
     {
         Class940[i] = new Class97(i);
     }
 }
Example #2
0
    internal static bool smethod_0(Class396 A_0, Class97 A_1, ParagraphFormat A_2)
    {
        int    num = 9;
        string str = A_0.method_1();

        if (str != null)
        {
            if (str == BookmarkStart.b("䴮䌰嘲吴尶ᐸ夺堼夾⹀ㅂ⁄", num))
            {
                if (A_0.method_3() == BookmarkStart.b("弮倰吲倴", num))
                {
                    A_2.SetAttr(0x424, true);
                    A_1.method_34(true);
                }
                if (A_0.method_3() == BookmarkStart.b("丮䐰䜲娴", num))
                {
                    A_2.SetAttr(0x424, false);
                    A_1.method_34(false);
                }
                A_1.method_32(A_0.method_3() == BookmarkStart.b("䰮帰弲䀴娶圸", num));
                return(true);
            }
            if (str == BookmarkStart.b("䴮䌰嘲吴尶ᐸ娺嬼䬾⑀ㅂ", num))
            {
                A_1.method_28(A_0.method_3() == BookmarkStart.b("弮倰吲倴", num));
                A_1.method_30(A_0.method_3() == BookmarkStart.b("䰮帰弲䀴娶圸", num));
                return(true);
            }
        }
        return(false);
    }
Example #3
0
    internal CharacterFormat method_12(Class97 A_0)
    {
        CharacterFormat format = null;

        if ((A_0 != null) && (A_0.method_13() != null))
        {
            format = (CharacterFormat)A_0.method_13().Clone();
        }
        if (this.characterFormat_0 != null)
        {
            if (format == null)
            {
                format = (CharacterFormat)this.characterFormat_0.Clone();
            }
            else
            {
                this.characterFormat_0.method_37(format);
            }
        }
        if (format == null)
        {
            format = new CharacterFormat();
        }
        return(format);
    }
Example #4
0
    private static void smethod_5(Class857 A_0, Class97 A_1, ParagraphFormat A_2)
    {
        int      num    = 8;
        Class396 class2 = A_0.method_11();

        while (class2.method_9(BookmarkStart.b("席儯䀱唳儵䨷嬹䰻嘽洿㉁㙃⥅㡇⽉㹋㩍㥏㝑❓", num)))
        {
            string str = class2.method_1();
            if (str != null)
            {
                if (str != BookmarkStart.b("娭儯倱ᤳ䔵䰷唹䰻䴽", num))
                {
                    if (!(str == BookmarkStart.b("䨭䈯崱䐳ᬵ嬷嬹䰻", num)))
                    {
                        if (!(str == BookmarkStart.b("䰭儯儱弳儵䨷唹䤻倽␿潁ⵃ⭅⥇ⵉ⥋", num)))
                        {
                            goto Label_0088;
                        }
                        smethod_9(A_0, A_1);
                    }
                    else
                    {
                        smethod_8(A_0, A_2, A_1);
                    }
                }
                else
                {
                    A_2.SetAttr(0x474, smethod_6(A_0, A_1.method_35().method_0().method_0()));
                }
                continue;
            }
Label_0088:
            class2.vmethod_1();
        }
    }
Example #5
0
 internal static void smethod_14(Class857 A_0, Paragraph A_1, Class97 A_2)
 {
     if ((A_2 != null) && A_2.method_29())
     {
         Break @break = new Break(A_0.method_9(), BreakType.ColumnBreak);
         A_1.method_13(@break);
     }
 }
Example #6
0
    // Token: 0x060007BE RID: 1982 RVA: 0x000065AF File Offset: 0x000047AF
    public override Class80 vmethod_4()
    {
        Class97 @class = new Class97();

        @class.method_3(this.bool_0);
        @class.method_1(base.method_0());
        return(@class);
    }
Example #7
0
    private static void smethod_12(Class857 A_0, Class93 A_1)
    {
        int num = 0x10;

        if (Class567.smethod_16(A_1.method_0()))
        {
            string name = Class922.smethod_79(A_1.method_0());
            if (A_0.method_9().Styles.FindByName(name) == null)
            {
                Style   style  = smethod_11(StyleType.ParagraphStyle, A_1.method_0(), A_0.method_9());
                Class97 class2 = (Class97)A_1;
                if (A_1.method_8() != null)
                {
                    style.ApplyBaseStyle(smethod_11(StyleType.ParagraphStyle, A_1.method_8(), A_0.method_9()));
                }
                if (class2.method_13() != null)
                {
                    class2.method_13().CopyPropertiesTo(style.RunPr);
                }
                if ((class2.method_15() != null) && (style.ParaPr != null))
                {
                    class2.method_15().CopyPropertiesTo(style.ParaPr);
                }
                if (class2.method_25() != -1)
                {
                    style.ParaPr.SetAttr(0x500, (byte)class2.method_25());
                }
                if (style.StyleIdentifier == StyleIdentifier.Normal)
                {
                    style.QuickFormat = true;
                    A_0.method_9().Styles.DefaultParaStyle = style as ParagraphStyle;
                    style.Name = BookmarkStart.b("砵圷䠹儻弽ⰿ", num);
                    style.method_5(BookmarkStart.b("圵", num));
                    A_0.method_9().Styles.method_7(style, null);
                }
                else
                {
                    A_0.method_9().Styles.method_7(style, null);
                }
            }
        }
        else
        {
            Class97 class3 = (Class97)A_1;
            if (class3.method_13() != null)
            {
                A_0.method_9().DefCharFormat = new CharacterFormat(A_0.method_9());
                class3.method_13().method_37(A_0.method_9().DefCharFormat);
            }
            if (class3.method_15() != null)
            {
                A_0.method_9().DefParaFormat = new ParagraphFormat(A_0.method_9());
                class3.method_15().method_37(A_0.method_9().DefParaFormat);
            }
        }
    }
Example #8
0
    // Token: 0x06000EED RID: 3821 RVA: 0x000460CC File Offset: 0x000442CC
    internal static bool smethod_1(object object_2, object object_3)
    {
        if (object_2.Equals(object_3))
        {
            return(true);
        }
        if ((object_2.Type == JTokenType.Integer && object_3.Type == JTokenType.Float) || (object_2.Type == JTokenType.Float && object_3.Type == JTokenType.Integer))
        {
            return(JValue.smethod_7(object_2.Type, object_2.Value, object_3.Value) == 0);
        }
        if (object_3.Type != JTokenType.String)
        {
            return(false);
        }
        string b = (string)object_3.Value;
        string a;

        switch (object_2.Type)
        {
        case JTokenType.Date:
            using (StringWriter stringWriter = Class97.smethod_6(64))
            {
                object value;
                if ((value = object_2.Value) is DateTimeOffset)
                {
                    DateTimeOffset dateTimeOffset_ = (DateTimeOffset)value;
                    Class25.IxisRjgvuh(stringWriter, dateTimeOffset_, DateFormatHandling.IsoDateFormat, null, CultureInfo.InvariantCulture);
                }
                else
                {
                    Class25.smethod_24(stringWriter, (DateTime)object_2.Value, DateFormatHandling.IsoDateFormat, null, CultureInfo.InvariantCulture);
                }
                a = stringWriter.ToString();
                goto IL_11C;
            }
            break;

        case JTokenType.Bytes:
            a = Convert.ToBase64String((byte[])object_2.Value);
            goto IL_11C;

        case JTokenType.Guid:
        case JTokenType.TimeSpan:
            a = object_2.Value.ToString();
            goto IL_11C;

        case JTokenType.Uri:
            a = ((Uri)object_2.Value).OriginalString;
            goto IL_11C;
        }
        return(false);

IL_11C:
        return(string.Equals(a, b, StringComparison.Ordinal));
    }
Example #9
0
 private static void smethod_18(Class857 A_0, Paragraph A_1, Class97 A_2, DocumentObject A_3)
 {
     int num = 9;
     string str = A_0.method_16();
     Class396 class2 = A_0.method_11();
     while (class2.method_19())
     {
         A_0.method_4(class2);
     }
     smethod_8(A_0, A_1, BookmarkStart.b("尮䄰刲嬴", num), A_2, A_3);
     A_0.method_17(str);
 }
Example #10
0
    // Token: 0x060006E9 RID: 1769 RVA: 0x0002CDE0 File Offset: 0x0002AFE0
    public static string smethod_3(string string_0, char char_0, bool bool_3, StringEscapeHandling stringEscapeHandling_0)
    {
        bool[] object_ = Class70.smethod_0(stringEscapeHandling_0, char_0);
        string result;

        using (StringWriter stringWriter = Class97.smethod_6((string_0 != null) ? string_0.Length : 16))
        {
            char[] array = null;
            Class70.smethod_2(stringWriter, string_0, char_0, bool_3, object_, stringEscapeHandling_0, null, ref array);
            result = stringWriter.ToString();
        }
        return(result);
    }
Example #11
0
 internal static void smethod_13(Class857 A_0, Paragraph A_1, Class97 A_2)
 {
     if (A_0.method_18())
     {
         A_1.Format.SetAttr(0x424, true);
         A_0.method_19(false);
     }
     A_0.method_19((A_2 != null) && A_2.method_27());
     if ((A_2 != null) && A_2.method_31())
     {
         Break @break = new Break(A_0.method_9(), BreakType.ColumnBreak);
         A_1.method_13(@break);
     }
 }
Example #12
0
 private static void smethod_5(Paragraph A_0, Class97 A_1)
 {
     int num = 0x13;
     if ((A_0.Format.method_55(0x5aa) && (A_0.ChildObjects.Count != 0)) && (A_1 != null))
     {
         Paragraph paragraph = (Paragraph) A_0.Clone();
         A_0.Owner.method_18(paragraph, A_0);
         int length = (A_1.method_21() > 1) ? A_1.method_21() : 1;
         if (A_1.method_23())
         {
             length = Regex.Matches(A_0.Text, BookmarkStart.b("攸䰺ᘼ", num))[0].Length;
         }
         int num3 = 0;
         while (num3 < A_0.ChildObjects.Count)
         {
             if (length <= 0)
             {
                 break;
             }
             if (A_0.ChildObjects[num3] is TextRange)
             {
                 TextRange range2 = (TextRange) A_0.ChildObjects[num3];
                 TextRange entity = (TextRange) range2.Clone();
                 if (length >= range2.Text.Length)
                 {
                     range2.method_19();
                     length -= range2.Text.Length;
                 }
                 else
                 {
                     entity.Text = entity.Text.Substring(0, length);
                     range2.Text = range2.Text.Substring(length);
                     length = 0;
                     num3++;
                 }
                 paragraph.ChildObjects.Add(entity);
             }
         }
         paragraph.Format.SetAttr(0x5a0, DropCapPosition.Normal);
         paragraph.Format.SetAttr(0x53c, WrapMode.Square);
         if (A_0.HasChildElements)
         {
             A_0.Format.method_71(0x5aa);
         }
         else
         {
             A_0.method_19();
         }
     }
 }
Example #13
0
 private static void smethod_2(Paragraph A_0, Class97 A_1)
 {
     if ((A_0.method_49() != null) && (A_0 == A_0.method_49().Body.Paragraphs[0]))
     {
         if (Class567.smethod_16(A_1.method_43()))
         {
             A_0.method_49().SectPr.SetAttr(0x898, Class1041.smethod_11(A_1.method_43()));
             A_0.method_49().SectPr.SetAttr(0x802, true);
         }
         if ((A_1.method_41() > 0) && (A_0.method_49().SectPr.method_70() != LineNumberingRestartMode.Continuous))
         {
             A_0.method_49().SectPr.SetAttr(0x884, A_1.method_41());
             A_0.method_49().SectPr.SetAttr(0x83e, LineNumberingRestartMode.RestartSection);
             A_0.Format.SetAttr(0x46a, false);
         }
     }
 }
Example #14
0
    private static void smethod_2(ParagraphFormat A_0, Class97 A_1, bool A_2)
    {
        Class852 class2 = A_1.method_37();
        Class412 class3 = A_1.method_39();
        Class572 class4 = A_1.method_35();

        if ((class2.method_0() != null) || (class3.method_0() != 0.0))
        {
            Class1031 class7 = smethod_4(class2.method_0(), class3.method_0(), A_2);
            smethod_3(A_0.Borders.Top, class7);
        }
        if (class4.method_2().method_4())
        {
            A_0.SetAttr(0x4b0, (float)class4.method_2().method_0());
        }
        if ((class2.method_2() != null) || (class3.method_2() != 0.0))
        {
            Class1031 class6 = smethod_4(class2.method_2(), class3.method_2(), A_2);
            smethod_3(A_0.Borders.Bottom, class6);
        }
        if (class4.method_2().method_6())
        {
            A_0.SetAttr(0x4c4, (float)class4.method_2().method_2());
        }
        if ((class2.method_4() != null) || (class3.method_4() != 0.0))
        {
            Class1031 class8 = smethod_4(class2.method_4(), class3.method_4(), A_2);
            smethod_3(A_0.Borders.Left, class8);
        }
        if (class4.method_0().method_4())
        {
            A_0.SetAttr(0x488, (float)class4.method_0().method_0());
        }
        if ((class2.method_6() != null) || (class3.method_6() != 0.0))
        {
            Class1031 class5 = smethod_4(class2.method_6(), class3.method_6(), A_2);
            smethod_3(A_0.Borders.Right, class5);
        }
        if (class4.method_0().method_6())
        {
            A_0.SetAttr(0x47e, (float)class4.method_0().method_2());
        }
    }
Example #15
0
    private static void smethod_8(Class857 A_0, ParagraphFormat A_1, Class97 A_2)
    {
        int      num    = 6;
        Class396 class2 = A_0.method_11();

        while (class2.method_19())
        {
            string str = class2.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))
                            {
                            }
                        }
                        else if (class2.method_3() == BookmarkStart.b("嬫䄭䈯嘱", num))
                        {
                            A_2.method_24(true);
                        }
                        else
                        {
                            A_2.method_22(class2.method_4());
                        }
                    }
                    else
                    {
                        A_1.SetAttr(0x5dc, Class576.smethod_36(class2.method_3()));
                    }
                }
                else
                {
                    A_1.DropCapLinesToDrop = class2.method_4();
                }
            }
        }
    }
Example #16
0
    internal static void smethod_0(Class857 A_0, Class97 A_1)
    {
        ParagraphFormat format = new ParagraphFormat(A_0.method_9());

        smethod_1(A_0, A_1, format);
        smethod_5(A_0, A_1, format);
        if (A_1.method_25() != -1)
        {
            format.OutlineLevel = (OutlineLevel)A_1.method_25();
        }
        if (format.Count > 0)
        {
            if (A_1.method_15() == null)
            {
                A_1.method_16(format);
            }
            else
            {
                format.method_37(A_1.method_15());
            }
        }
    }
Example #17
0
    private static void smethod_3(Class43 A_0, Class97 A_1, bool A_2)
    {
        Class852 class2 = A_1.method_37();
        Class412 class3 = A_1.method_39();

        A_1.method_35();
        if (((class2.method_0() != null) && (class2.method_0().method_2() != BorderStyle.None)) || (A_2 || (class3.method_0() != 0.0)))
        {
            Class413.smethod_3(A_0.method_58().Top, Class472.smethod_1(class2.method_0(), class3.method_0(), 0));
        }
        if (((class2.method_2() != null) && (class2.method_2().method_2() != BorderStyle.None)) || (A_2 || (class3.method_2() != 0.0)))
        {
            Class413.smethod_3(A_0.method_58().Bottom, Class472.smethod_1(class2.method_2(), class3.method_2(), 0));
        }
        if (((class2.method_4() != null) && (class2.method_4().method_2() != BorderStyle.None)) || (A_2 || (class3.method_4() != 0.0)))
        {
            Class413.smethod_3(A_0.method_58().Left, Class472.smethod_1(class2.method_4(), class3.method_4(), 0));
        }
        if (((class2.method_6() != null) && (class2.method_6().method_2() != BorderStyle.None)) || (A_2 || (class3.method_6() != 0.0)))
        {
            Class413.smethod_3(A_0.method_58().Right, Class472.smethod_1(class2.method_6(), class3.method_6(), 0));
        }
    }
Example #18
0
 private static void smethod_9(Class857 A_0, Class97 A_1)
 {
 }
Example #19
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);
    }
Example #20
0
    // Token: 0x060006E8 RID: 1768 RVA: 0x0002CB48 File Offset: 0x0002AD48
    public static void smethod_2(TextWriter textWriter_0, string string_0, char char_0, bool bool_3, object object_0, StringEscapeHandling stringEscapeHandling_0, IArrayPool <char> iarrayPool_0, ref char[] char_1)
    {
        if (bool_3)
        {
            textWriter_0.Write(char_0);
        }
        if (!string.IsNullOrEmpty(string_0))
        {
            int num = Class70.smethod_4(string_0, object_0, stringEscapeHandling_0);
            if (num == -1)
            {
                textWriter_0.Write(string_0);
            }
            else
            {
                if (num != 0)
                {
                    if (char_1 == null || char_1.Length < num)
                    {
                        char_1 = Class69.smethod_2(iarrayPool_0, num, char_1);
                    }
                    string_0.CopyTo(0, char_1, 0, num);
                    textWriter_0.Write(char_1, 0, num);
                }
                int num2;
                for (int i = num; i < string_0.Length; i++)
                {
                    char c = string_0[i];
                    if ((int)c >= object_0.Length || object_0[(int)c])
                    {
                        string text;
                        if (c <= '\\')
                        {
                            switch (c)
                            {
                            case '\b':
                                text = "\\b";
                                break;

                            case '\t':
                                text = "\\t";
                                break;

                            case '\n':
                                text = "\\n";
                                break;

                            case '\v':
                                goto IL_10D;

                            case '\f':
                                text = "\\f";
                                break;

                            case '\r':
                                text = "\\r";
                                break;

                            default:
                                if (c != '\\')
                                {
                                    goto IL_10D;
                                }
                                text = "\\\\";
                                break;
                            }
                        }
                        else if (c != '\u0085')
                        {
                            if (c != '\u2028')
                            {
                                if (c != '\u2029')
                                {
                                    goto IL_10D;
                                }
                                text = "\\u2029";
                            }
                            else
                            {
                                text = "\\u2028";
                            }
                        }
                        else
                        {
                            text = "\\u0085";
                        }
IL_185:
                        if (text == null)
                        {
                            goto IL_229;
                        }
                        bool flag = string.Equals(text, "!", StringComparison.Ordinal);
                        if (i > num)
                        {
                            num2 = i - num + (flag ? 6 : 0);
                            int num3 = flag ? 6 : 0;
                            if (char_1 == null || char_1.Length < num2)
                            {
                                char[] array = Class69.smethod_0(iarrayPool_0, num2);
                                if (flag)
                                {
                                    Array.Copy(char_1, array, 6);
                                }
                                Class69.smethod_1(iarrayPool_0, char_1);
                                char_1 = array;
                            }
                            string_0.CopyTo(num, char_1, num3, num2 - num3);
                            textWriter_0.Write(char_1, num3, num2 - num3);
                        }
                        num = i + 1;
                        if (!flag)
                        {
                            textWriter_0.Write(text);
                            goto IL_229;
                        }
                        textWriter_0.Write(char_1, 0, 6);
                        goto IL_229;
IL_10D:
                        if ((int)c >= object_0.Length)
                        {
                            if (stringEscapeHandling_0 != StringEscapeHandling.EscapeNonAscii)
                            {
                                text = null;
                                goto IL_185;
                            }
                        }
                        if (c == '\'' && stringEscapeHandling_0 != StringEscapeHandling.EscapeHtml)
                        {
                            text = "\\'";
                            goto IL_185;
                        }
                        if (c == '"' && stringEscapeHandling_0 != StringEscapeHandling.EscapeHtml)
                        {
                            text = "\\\"";
                            goto IL_185;
                        }
                        if (char_1 == null || char_1.Length < 6)
                        {
                            char_1 = Class69.smethod_2(iarrayPool_0, 6, char_1);
                        }
                        Class97.smethod_7(c, char_1);
                        text = "!";
                        goto IL_185;
                    }
                    IL_229 :;
                }
                num2 = string_0.Length - num;
                if (num2 > 0)
                {
                    if (char_1 == null || char_1.Length < num2)
                    {
                        char_1 = Class69.smethod_2(iarrayPool_0, num2, char_1);
                    }
                    string_0.CopyTo(num, char_1, 0, num2);
                    textWriter_0.Write(char_1, 0, num2);
                }
            }
        }
        if (bool_3)
        {
            textWriter_0.Write(char_0);
        }
    }
Example #21
0
    internal static bool smethod_0(Class857 A_0, Paragraph A_1, CharacterFormat A_2, Style A_3, Class97 A_4, DocumentObject A_5)
    {
        int      num    = 4;
        Class396 class2 = A_0.method_11();
        string   key    = class2.method_1();

        if (key != null)
        {
            int num2;
            if (Class1160.dictionary_149 == null)
            {
                Dictionary <string, int> dictionary1 = new Dictionary <string, int>(0x25);
                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);
                Class1160.dictionary_149 = dictionary1;
            }
            if (Class1160.dictionary_149.TryGetValue(key, out num2))
            {
                switch (num2)
                {
                case 0:
                    smethod_2(A_0, A_1, A_2, A_3);
                    return(true);

                case 1:
                    smethod_11(A_0, A_1, FieldType.FieldRevisionNum, BookmarkStart.b("砩椫砭縯朱礳", num), A_2, A_3);
                    return(true);

                case 2:
                    smethod_11(A_0, A_1, FieldType.FieldEditTime, BookmarkStart.b("漩栫札搯昱紳笵紷", num), A_2, A_3);
                    return(true);

                case 3:
                    smethod_11(A_0, A_1, FieldType.FieldKeyWord, BookmarkStart.b("愩椫眭术紱昳爵欷", num), A_2, A_3);
                    return(true);

                case 4:
                    smethod_11(A_0, A_1, FieldType.FieldSubject, BookmarkStart.b("礩礫氭稯眱眳戵", num), A_2, A_3);
                    return(true);

                case 5:
                    smethod_11(A_0, A_1, FieldType.FieldComments, BookmarkStart.b("椩挫挭累眱稳戵欷", num), A_2, A_3);
                    return(true);

                case 6:
                    smethod_3(A_0, A_1, A_4, A_5, A_2, A_3);
                    return(true);

                case 7:
                    smethod_11(A_0, A_1, FieldType.FieldMergeField, string.Format(BookmarkStart.b("朩椫簭眯眱爳缵紷瘹砻ḽ㬿牁㥃", num), class2.method_12(BookmarkStart.b("䤩䌫䈭䔯弱娳ᬵ嘷嬹儻嬽", num), null)), A_2, A_3);
                    return(true);

                case 8:
                    smethod_11(A_0, A_1, FieldType.FieldNext, BookmarkStart.b("搩椫瘭搯", num), A_2, A_3);
                    return(true);

                case 9:
                    smethod_11(A_0, A_1, FieldType.FieldMergeRec, BookmarkStart.b("朩椫簭眯眱昳猵笷", num), A_2, A_3);
                    return(true);

                case 10:
                    smethod_11(A_0, A_1, FieldType.FieldSequence, string.Format(BookmarkStart.b("礩椫缭ု䤱г䬵", num), class2.method_12(BookmarkStart.b("䐩䴫䌭唯", num), "")), A_2, A_3);
                    return(true);

                case 11:
                {
                    string str2 = class2.method_12(BookmarkStart.b("丩䔫崭䀯帱唳伵", num), BookmarkStart.b("䐩䴫䌭唯ἱ唳堵尷᜹夻䘽㐿❁⩃㕅ⅇ╉≋", num));
                    smethod_11(A_0, A_1, FieldType.FieldFileName, Class576.smethod_19(str2), A_2, A_3);
                    return(true);
                }

                case 12:
                {
                    string str3 = class2.method_12(BookmarkStart.b("丩䔫崭䀯帱唳伵", num), BookmarkStart.b("䐩䴫䌭唯ἱ唳堵尷᜹夻䘽㐿❁⩃㕅ⅇ╉≋", num));
                    smethod_11(A_0, A_1, FieldType.FieldTemplate, Class576.smethod_19(str3), A_2, A_3);
                    return(true);
                }

                case 13:
                    smethod_4(A_0, A_1, A_2, A_3);
                    return(true);

                case 14:
                    smethod_5(A_0, A_1, A_2, A_3);
                    return(true);

                case 15:
                    smethod_11(A_0, A_1, FieldType.FieldPage, string.Format(BookmarkStart.b("਩簫漭眯眱ᐳ樵ሷᨹ䜻฽㴿扁", num), smethod_10(A_0)), A_2, A_3);
                    return(true);

                case 0x10:
                    smethod_11(A_0, A_1, FieldType.FieldUserName, BookmarkStart.b("缩缫欭戯簱申笵紷", num), A_2, A_3);
                    return(true);

                case 0x11:
                    smethod_11(A_0, A_1, FieldType.FieldUserInitials, BookmarkStart.b("缩缫欭戯笱稳缵氷猹紻爽ጿ", num), A_2, A_3);
                    return(true);

                case 0x12:
                    smethod_11(A_0, A_1, FieldType.FieldAuthor, BookmarkStart.b("欩礫稭砯紱昳", num), A_2, A_3);
                    return(true);

                case 0x13:
                    smethod_9(A_0, A_1, BookmarkStart.b("温洫稭甯", num), FieldType.FieldDate, A_2, A_3);
                    return(true);

                case 20:
                    smethod_9(A_0, A_1, BookmarkStart.b("縩攫挭甯", num), FieldType.FieldDate, A_2, A_3);
                    return(true);

                case 0x15:
                case 0x16:
                    smethod_9(A_0, A_1, BookmarkStart.b("稩縫札縯昱瀳眵氷缹", num), FieldType.FieldPrintDate, A_2, A_3);
                    return(true);

                case 0x17:
                case 0x18:
                    smethod_9(A_0, A_1, BookmarkStart.b("椩縫欭焯昱焳爵礷渹礻", num), FieldType.FieldCreateDate, A_2, A_3);
                    return(true);

                case 0x19:
                    smethod_11(A_0, A_1, FieldType.FieldTitle, BookmarkStart.b("縩攫稭簯眱", num), A_2, A_3);
                    return(true);

                case 0x1a:
                case 0x1b:
                    smethod_9(A_0, A_1, BookmarkStart.b("礩洫砭甯瘱申戵紷", num), FieldType.FieldSaveDate, A_2, A_3);
                    return(true);

                case 0x1c:
                    smethod_11(A_0, A_1, FieldType.FieldLastSavedBy, BookmarkStart.b("昩洫紭搯愱申怵紷縹縻朽", num), A_2, A_3);
                    return(true);

                case 0x1d:
                    smethod_11(A_0, A_1, FieldType.FieldDocProperty, BookmarkStart.b("温挫洭怯怱笳昵紷根栻朽怿ቁՃᑅे൉ṋཌྷOᩑݓ", num), A_2, A_3);
                    return(true);

                case 30:
                    smethod_11(A_0, A_1, FieldType.FieldDocProperty, BookmarkStart.b("温挫洭怯怱笳昵紷根栻朽怿Łృ݅ᩇ୉ཋᩍᕏQݓŕᅗ๙ᑛ൝た⍡❣⍥㭧", num), A_2, A_3);
                    return(true);

                case 0x1f:
                    smethod_11(A_0, A_1, FieldType.FieldNumPages, string.Format(BookmarkStart.b("搩礫挭怯猱猳猵欷䄹఻䌽", num), smethod_10(A_0)), A_2, A_3);
                    return(true);

                case 0x20:
                    smethod_11(A_0, A_1, FieldType.FieldNumWords, string.Format(BookmarkStart.b("਩戫笭累攱笳搵簷椹᰻戽樿扁㽃癅㕇橉", num), smethod_10(A_0)), A_2, A_3);
                    return(true);

                case 0x21:
                    smethod_8(A_0, A_1, A_2, A_3);
                    return(true);

                case 0x22:
                    smethod_6(A_0, A_1, A_2, A_3);
                    return(true);

                case 0x23:
                {
                    string str4 = class2.method_12(BookmarkStart.b("䐩䴫䌭唯", num), "");
                    smethod_11(A_0, A_1, FieldType.FieldDocProperty, string.Format(BookmarkStart.b("温挫洭怯怱笳昵紷根栻朽怿恁㽃癅㕇桉", num), str4), A_2, A_3);
                    return(true);
                }

                case 0x24:
                    smethod_1(A_0, A_1, class2);
                    return(true);
                }
            }
        }
        return(false);
    }
Example #22
0
    internal static void smethod_3(Class857 A_0, Paragraph A_1, Class97 A_2, DocumentObject A_3, CharacterFormat A_4, Style A_5)
    {
        int      num    = 11;
        Class396 class2 = A_0.method_11();
        string   str    = class2.method_0();
        Field    field  = new Field(A_0.method_9())
        {
            Type = FieldType.FieldHyperlink
        };
        Hyperlink hyperlink = new Hyperlink(field);

        A_1.method_13(field);
        string str2 = "";
        string str3 = "";

        while (class2.method_19())
        {
            string str5 = class2.method_1();
            if (str5 != null)
            {
                if (!(str5 == BookmarkStart.b("夰䄲倴儶", num)))
                {
                    if (str5 == BookmarkStart.b("䔰刲䜴倶尸伺ြ夾㍀≂⡄≆摈╊ⱌ≎㑐", num))
                    {
                        str3 = class2.method_3();
                    }
                }
                else
                {
                    str2 = Class576.smethod_91(class2.method_3());
                }
            }
        }
        if ((str == BookmarkStart.b("䔰嘲䴴䌶", num)) && Class567.smethod_16(str2))
        {
            string.Format(BookmarkStart.b("礰樲攴父欸眺琼焾ੀ捂杄㱆祈㙊潌", num), str2);
            if (str2.StartsWith(BookmarkStart.b("ሰ", num)))
            {
                hyperlink.Type = HyperlinkType.Bookmark;
                string str4 = str2.Replace(BookmarkStart.b("ሰ", num), string.Empty);
                hyperlink.BookmarkName = str4;
                field.m_fieldValue     = str4;
            }
            else
            {
                field.m_fieldValue = BookmarkStart.b("ጰ", num) + str2.Replace(BookmarkStart.b("洰", num), BookmarkStart.b("洰漲", num)) + BookmarkStart.b("ጰ", num);
                field.Code         = string.Format(BookmarkStart.b("礰樲攴父欸眺琼焾ੀ捂㹄睆㑈", num), field.m_fieldValue);
            }
            FieldMark mark = new FieldMark(A_0.method_9(), FieldMarkType.FieldSeparator);
            A_1.method_13(mark);
            field.Separator = mark;
        }
        if (str == BookmarkStart.b("唰䄲吴䀶", num))
        {
            A_0.method_49(str2);
            A_0.method_51(str3);
        }
        Class1099.smethod_8(A_0, A_1, BookmarkStart.b("倰", num), A_2, A_3);
        if (str == BookmarkStart.b("唰䄲吴䀶", num))
        {
            A_0.method_49(null);
            A_0.method_51(null);
        }
        if ((A_2 != null) && (A_2.method_13() != null))
        {
            A_4.method_73(A_2.method_13());
        }
        FieldMark mark2 = new FieldMark(A_0.method_9(), FieldMarkType.FieldEnd);

        A_1.method_13(mark2);
        field.End = mark2;
    }
Example #23
0
    // Token: 0x06000148 RID: 328 RVA: 0x0000F174 File Offset: 0x0000D374
    public static Class80 smethod_1(object object_0, Type type_0)
    {
        Class80 @class = object_0 as Class80;

        if (@class != null)
        {
            return(@class);
        }
        if (type_0 == null)
        {
            if (object_0 == null)
            {
                return(new Class90());
            }
            type_0 = object_0.GetType();
        }
        type_0 = Class37.smethod_1(type_0);
        if (type_0 == Class175.type_0)
        {
            @class = new Class90();
            if (object_0 != null && object_0.GetType() != Class175.type_0)
            {
                @class.method_1(object_0.GetType());
            }
        }
        else if (Class29.smethod_0 <Array>(type_0))
        {
            @class = new Class93();
        }
        else if (Class29.smethod_0 <string>(type_0))
        {
            @class = new Class96();
        }
        else if (Class29.smethod_0 <IntPtr>(type_0))
        {
            @class = new Class99();
        }
        else if (Class29.smethod_0 <UIntPtr>(type_0))
        {
            @class = new Class83();
        }
        else if (Class29.smethod_0 <ulong>(type_0))
        {
            @class = new Class89();
        }
        else if (Class29.smethod_0 <uint>(type_0))
        {
            @class = new Class92();
        }
        else if (Class29.smethod_0 <ushort>(type_0))
        {
            @class = new Class87();
        }
        else if (Class29.smethod_0 <long>(type_0))
        {
            @class = new Class82();
        }
        else if (Class29.smethod_0 <int>(type_0))
        {
            @class = new Class98();
        }
        else if (Class29.smethod_0 <short>(type_0))
        {
            @class = new Class94();
        }
        else if (Class29.smethod_0 <byte>(type_0))
        {
            @class = new Class88();
        }
        else if (Class29.smethod_0 <sbyte>(type_0))
        {
            @class = new Class85();
        }
        else if (Class29.smethod_0 <double>(type_0))
        {
            @class = new Class86();
        }
        else if (Class29.smethod_0 <float>(type_0))
        {
            @class = new Class91();
        }
        else if (Class29.smethod_0 <bool>(type_0))
        {
            @class = new Class97();
        }
        else if (Class29.smethod_0 <char>(type_0))
        {
            @class = new Class81();
        }
        else if (Class175.smethod_0(type_0))
        {
            Class90 class2 = new Class90();
            class2.method_1(type_0);
            @class = class2;
        }
        else
        {
            if (Class29.smethod_0 <Enum>(type_0))
            {
                Enum enum_;
                if (object_0 == null)
                {
                    if (type_0 == Class175.type_2)
                    {
                        enum_ = null;
                    }
                    else
                    {
                        enum_ = (Enum)Activator.CreateInstance(type_0);
                    }
                }
                else if (type_0 == Class175.type_2 && object_0 is Enum)
                {
                    enum_ = (Enum)object_0;
                }
                else
                {
                    enum_ = (Enum)Enum.ToObject(type_0, object_0);
                }
                return(new Class84(enum_));
            }
            if (Class29.smethod_0 <ValueType>(type_0))
            {
                if (object_0 == null)
                {
                    object object_;
                    if (type_0 == Class175.type_3)
                    {
                        object_ = null;
                    }
                    else
                    {
                        object_ = Activator.CreateInstance(type_0);
                    }
                    @class = new Class107(object_);
                }
                else
                {
                    if (object_0.GetType() != type_0)
                    {
                        try
                        {
                            object_0 = Convert.ChangeType(object_0, type_0);
                        }
                        catch
                        {
                        }
                    }
                    @class = new Class107(object_0);
                }
                return(@class);
            }
            @class = new Class90();
        }
        if (object_0 != null)
        {
            @class.vmethod_1(object_0);
        }
        return(@class);
    }
Example #24
0
 internal static void smethod_8(Class857 A_0, Paragraph A_1, string A_2, Class97 A_3, DocumentObject A_4)
 {
     int num = 14;
     Class396 class2 = A_0.method_11();
     string str = (A_2 == BookmarkStart.b("䜳䘵夷吹", 14)) ? BookmarkStart.b("䀳匵䀷丹", num) : BookmarkStart.b("䐳圵䨷嬹嬻䰽ℿ㉁ⱃ", num);
     Class96 class3 = (Class96) A_0.method_13().method_2(A_0.method_16(), str, A_0.method_20(), true);
     if (class3 == null)
     {
         class3 = (Class96) A_0.method_13().method_2(A_0.method_16(), str, A_0.method_20(), false);
     }
     CharacterFormat format = new CharacterFormat();
     if (((str == BookmarkStart.b("䀳匵䀷丹", num)) && (A_3 != null)) && (A_3.method_13() != null))
     {
         format.method_73(A_3.method_13());
     }
     Style style = null;
     if (class3 != null)
     {
         if (class3.method_13() != null)
         {
             format.method_73(class3.method_13());
         }
         if ((str == BookmarkStart.b("䀳匵䀷丹", num)) && Class567.smethod_16(class3.method_8()))
         {
             style = (Style) A_0.method_9().Styles[class3.method_8()];
         }
     }
     A_0.method_41(true);
     while (class2.method_10(A_2, XmlDocumentTextHandling.TextAndSignificantAndIgnorable))
     {
         if (!Class857.smethod_10(A_0, A_1, format, style))
         {
             string key = class2.method_1();
             if (key != null)
             {
                 int num2;
                 if (Class1160.dictionary_229 == null)
                 {
                     Dictionary<string, int> dictionary1 = new Dictionary<string, int>(12);
                     dictionary1.Add("", 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);
                     Class1160.dictionary_229 = dictionary1;
                 }
                 if (Class1160.dictionary_229.TryGetValue(key, out num2))
                 {
                     switch (num2)
                     {
                         case 0:
                         {
                             smethod_23(A_0, A_1, format, style);
                             continue;
                         }
                         case 1:
                         {
                             smethod_16(A_0, A_1, format, style);
                             continue;
                         }
                         case 2:
                         {
                             smethod_17(A_0, A_1, format, style);
                             continue;
                         }
                         case 3:
                         {
                             smethod_12(A_0, A_1, format, Class816.string_6, style);
                             continue;
                         }
                         case 4:
                         {
                             smethod_9(A_0, A_1);
                             continue;
                         }
                         case 5:
                         {
                             smethod_18(A_0, A_1, A_3, A_4);
                             A_0.method_41(true);
                             continue;
                         }
                         case 6:
                         {
                             smethod_19(A_0, A_1, format);
                             A_0.method_41(true);
                             continue;
                         }
                         case 7:
                         {
                             smethod_21(A_0, A_1, format);
                             A_0.method_41(true);
                             continue;
                         }
                         case 8:
                         {
                             A_1.method_13(new BookmarkStart(A_0.method_9(), class2.method_12(BookmarkStart.b("娳圵唷弹", num), null)));
                             A_1.method_13(new BookmarkEnd(A_0.method_9(), class2.method_12(BookmarkStart.b("娳圵唷弹", num), null)));
                             A_0.method_41(true);
                             continue;
                         }
                         case 9:
                         {
                             A_1.method_13(new BookmarkStart(A_0.method_9(), class2.method_12(BookmarkStart.b("娳圵唷弹", num), null)));
                             A_0.method_41(true);
                             continue;
                         }
                         case 10:
                         {
                             A_1.method_13(new BookmarkEnd(A_0.method_9(), class2.method_12(BookmarkStart.b("娳圵唷弹", num), null)));
                             A_0.method_41(true);
                             continue;
                         }
                         case 11:
                         {
                             smethod_10(A_0, A_1, format, style);
                             continue;
                         }
                     }
                 }
             }
             if (Class567.smethod_16(Class857.string_4) && !smethod_27(A_1.Text))
             {
                 smethod_12(A_0, A_1, format, BookmarkStart.b("ᐳ", num), style);
                 Class857.string_4 = "";
             }
             if (Class797.smethod_0(A_0, A_1, format, style, A_3, A_4))
             {
                 A_0.method_41(true);
             }
             else
             {
                 smethod_8(A_0, A_1, class2.method_1(), A_3, A_4);
             }
         }
         else
         {
             A_0.method_41(true);
         }
     }
     if (((class3 != null) && (!A_1.HasChildElements || bool_0)) && ((class3.method_13() != null) && ((A_2 == BookmarkStart.b("䐳", num)) || (A_2 == BookmarkStart.b("尳", num)))))
     {
         A_1.BreakCharacterFormat.method_25(class3.method_13());
     }
 }
Example #25
0
    // Token: 0x060006F0 RID: 1776 RVA: 0x0002D080 File Offset: 0x0002B280
    private static async Task smethod_10(TextWriter textWriter_0, string string_0, int int_0, bool[] bool_3, StringEscapeHandling stringEscapeHandling_0, JsonTextWriter jsonTextWriter_0, char[] char_0, CancellationToken cancellationToken_0)
    {
        if (char_0 == null || char_0.Length < int_0)
        {
            char_0 = jsonTextWriter_0.method_95(int_0, 6);
        }
        if (int_0 != 0)
        {
            string_0.CopyTo(0, char_0, 0, int_0);
            await textWriter_0.smethod_6(char_0, 0, int_0, cancellationToken_0).ConfigureAwait(false);
        }
        bool   isEscapedUnicodeText = false;
        string escapedValue         = null;
        int    num;

        ConfiguredTaskAwaitable.ConfiguredTaskAwaiter configuredTaskAwaiter2;
        for (int i = int_0; i < string_0.Length; i++)
        {
            char c = string_0[i];
            if ((int)c >= bool_3.Length || bool_3[(int)c])
            {
                if (c <= '\\')
                {
                    switch (c)
                    {
                    case '\b':
                        escapedValue = "\\b";
                        goto IL_308;

                    case '\t':
                        escapedValue = "\\t";
                        goto IL_308;

                    case '\n':
                        escapedValue = "\\n";
                        goto IL_308;

                    case '\v':
                        break;

                    case '\f':
                        escapedValue = "\\f";
                        goto IL_308;

                    case '\r':
                        escapedValue = "\\r";
                        goto IL_308;

                    default:
                        if (c == '\\')
                        {
                            escapedValue = "\\\\";
                            goto IL_308;
                        }
                        break;
                    }
                }
                else
                {
                    if (c == '\u0085')
                    {
                        escapedValue = "\\u0085";
                        goto IL_308;
                    }
                    if (c == '\u2028')
                    {
                        escapedValue = "\\u2028";
                        goto IL_308;
                    }
                    if (c == '\u2029')
                    {
                        escapedValue = "\\u2029";
                        goto IL_308;
                    }
                }
                if ((int)c >= bool_3.Length && stringEscapeHandling_0 != StringEscapeHandling.EscapeNonAscii)
                {
                    goto IL_410;
                }
                if (c == '\'' && stringEscapeHandling_0 != StringEscapeHandling.EscapeHtml)
                {
                    escapedValue = "\\'";
                }
                else if (c == '"' && stringEscapeHandling_0 != StringEscapeHandling.EscapeHtml)
                {
                    escapedValue = "\\\"";
                }
                else
                {
                    if (char_0.Length < 6)
                    {
                        char_0 = jsonTextWriter_0.method_95(6, 0);
                    }
                    Class97.smethod_7(c, char_0);
                    isEscapedUnicodeText = true;
                }
IL_308:
                if (i > int_0)
                {
                    num = i - int_0 + (isEscapedUnicodeText ? 6 : 0);
                    int num2 = isEscapedUnicodeText ? 6 : 0;
                    if (char_0.Length < num)
                    {
                        char_0 = jsonTextWriter_0.method_95(num, 6);
                    }
                    string_0.CopyTo(int_0, char_0, num2, num - num2);
                    ConfiguredTaskAwaitable.ConfiguredTaskAwaiter configuredTaskAwaiter = textWriter_0.smethod_6(char_0, num2, num - num2, cancellationToken_0).ConfigureAwait(false).GetAwaiter();
                    if (!configuredTaskAwaiter.IsCompleted)
                    {
                        await configuredTaskAwaiter;
                        configuredTaskAwaiter  = configuredTaskAwaiter2;
                        configuredTaskAwaiter2 = default(ConfiguredTaskAwaitable.ConfiguredTaskAwaiter);
                    }
                    configuredTaskAwaiter.GetResult();
                }
                int_0 = i + 1;
                if (!isEscapedUnicodeText)
                {
                    ConfiguredTaskAwaitable.ConfiguredTaskAwaiter configuredTaskAwaiter = textWriter_0.smethod_5(escapedValue, cancellationToken_0).ConfigureAwait(false).GetAwaiter();
                    if (!configuredTaskAwaiter.IsCompleted)
                    {
                        await configuredTaskAwaiter;
                        configuredTaskAwaiter  = configuredTaskAwaiter2;
                        configuredTaskAwaiter2 = default(ConfiguredTaskAwaitable.ConfiguredTaskAwaiter);
                    }
                    configuredTaskAwaiter.GetResult();
                }
                else
                {
                    ConfiguredTaskAwaitable.ConfiguredTaskAwaiter configuredTaskAwaiter = textWriter_0.smethod_6(char_0, 0, 6, cancellationToken_0).ConfigureAwait(false).GetAwaiter();
                    if (!configuredTaskAwaiter.IsCompleted)
                    {
                        await configuredTaskAwaiter;
                        configuredTaskAwaiter  = configuredTaskAwaiter2;
                        configuredTaskAwaiter2 = default(ConfiguredTaskAwaitable.ConfiguredTaskAwaiter);
                    }
                    configuredTaskAwaiter.GetResult();
                    isEscapedUnicodeText = false;
                }
            }
            IL_410 :;
        }
        num = string_0.Length - int_0;
        if (num != 0)
        {
            if (char_0.Length < num)
            {
                char_0 = jsonTextWriter_0.method_95(num, 0);
            }
            string_0.CopyTo(int_0, char_0, 0, num);
            ConfiguredTaskAwaitable.ConfiguredTaskAwaiter configuredTaskAwaiter = textWriter_0.smethod_6(char_0, 0, num, cancellationToken_0).ConfigureAwait(false).GetAwaiter();
            if (!configuredTaskAwaiter.IsCompleted)
            {
                await configuredTaskAwaiter;
                configuredTaskAwaiter  = configuredTaskAwaiter2;
                configuredTaskAwaiter2 = default(ConfiguredTaskAwaitable.ConfiguredTaskAwaiter);
            }
            configuredTaskAwaiter.GetResult();
        }
    }
Example #26
0
 internal static void smethod_1(Class857 A_0, string A_1, DocumentObject A_2)
 {
     Paragraph paragraph;
     int num = 12;
     Class396 class2 = A_0.method_11();
     A_0.method_17(null);
     while (class2.method_19())
     {
         smethod_7(A_0);
     }
     class2.method_8().MoveToElement();
     Class108 class6 = Class574.smethod_10(A_0);
     if (!Class576.smethod_1(class2))
     {
         A_2 = Class574.smethod_4(A_0, class6, A_2);
     }
     Class97 class4 = (Class97) A_0.method_13().method_2(A_0.method_16(), BookmarkStart.b("䈱唳䐵夷崹主弽〿⩁", num), A_0.method_20(), true);
     if ((A_0.method_36().Count > 0) && (A_2 is Body))
     {
         paragraph = (Paragraph) A_0.method_36()[A_0.method_36().Count - 1];
         A_0.method_36().RemoveAt(A_0.method_36().Count - 1);
     }
     else
     {
         paragraph = new Paragraph(A_0.method_9());
         if (A_2 is ShapeObject)
         {
             (A_2 as ShapeObject).InternerTextbox.method_13(paragraph);
         }
         else if (A_2 is Footnote)
         {
             (A_2 as Footnote).TextBody.method_13(paragraph);
         }
         else if (A_2 is Comment)
         {
             (A_2 as Comment).Body.method_13(paragraph);
         }
         else
         {
             A_2.method_13(paragraph);
         }
     }
     if ((A_0.method_38() != null) && !A_0.method_38().method_10())
     {
         paragraph.method_18(new FieldMark(A_0.method_9(), new CharacterFormat(A_0.method_9()), FieldMarkType.FieldSeparator), paragraph.FirstChild);
         paragraph.method_17(new FieldMark(A_0.method_9(), new CharacterFormat(A_0.method_9()), FieldMarkType.FieldSeparator), paragraph.method_17(new TextRange(A_0.method_9(), string.Format(BookmarkStart.b("䤱г䬵", num), A_0.method_38().method_8()), new CharacterFormat(A_0.method_9())), paragraph.FirstChild));
         A_0.method_38().method_11(true);
     }
     if (A_1 == BookmarkStart.b("娱", num))
     {
         smethod_6(A_0, paragraph);
     }
     else
     {
         paragraph.Format.SetAttr(0x500, (byte) 9);
     }
     Class857.string_4 = "";
     smethod_13(A_0, paragraph, class4);
     smethod_8(A_0, paragraph, A_1, class4, A_2);
     smethod_14(A_0, paragraph, class4);
     if (class4 == null)
     {
         Style style2 = (Style) A_0.method_9().Styles[(A_0.method_16() == null) ? BookmarkStart.b("愱䀳圵嘷帹崻䰽␿", num) : A_0.method_16()];
         if (style2 != null)
         {
             paragraph.ApplyStyle(style2.Name);
         }
     }
     else
     {
         if (class4.method_15() != null)
         {
             class4.method_15().CopyPropertiesTo(paragraph.Format);
             paragraph.Format.Borders.IsDefault = class4.method_15().Borders.IsDefault;
         }
         if (class4.method_13() != null)
         {
             CharacterFormat.smethod_5(class4.method_13(), paragraph.BreakCharacterFormat);
         }
         if (Class567.smethod_16(class4.method_8()))
         {
             Style style = (Style) A_0.method_9().Styles[class4.method_8()];
             if ((style != null) && (style.ParaPr != null))
             {
                 paragraph.method_65(style as ParagraphStyle);
                 smethod_4(style.ParaPr.Tabs, paragraph.Format.Tabs);
             }
         }
         if (Class567.smethod_16(class4.method_10()))
         {
             Class101 class3 = A_0.method_13().method_3(class4.method_10(), null, A_0.method_20()) as Class101;
             class3.method_21().Name = class4.method_10();
             if (A_0.method_9().ListStyles.FindByName(class4.method_10()) == null)
             {
                 A_0.method_9().ListStyles.Add(class3.method_21());
             }
             paragraph.ListFormat.ApplyStyle(class3.method_21().Name);
         }
         if ((paragraph.IsInCell && (((TableCell) paragraph.OwnerTextBody).Paragraphs[0] == paragraph)) && (class4.method_19() != TextOrientation.Horizontal))
         {
             ((TableCell) paragraph.OwnerTextBody).CellFormat.SetAttr(0xbea, class4.method_19());
         }
         if (paragraph.method_1() == null)
         {
             smethod_2(paragraph, class4);
         }
     }
     if ((paragraph.Format.OutlineLevel != OutlineLevel.Body) && (A_0.method_65() != null))
     {
         Class101 class5 = A_0.method_65();
         int outlineLevelEx = paragraph.Format.OutlineLevelEx;
         if (((class5 != null) && class5.hashtable_0.ContainsKey(outlineLevelEx)) && ((bool) class5.hashtable_0[outlineLevelEx]))
         {
             paragraph.ListFormat.ListLevelNumber = outlineLevelEx - 1;
             paragraph.ListFormat.ApplyStyle(A_0.method_65().method_21().Name);
         }
     }
     smethod_5(paragraph, class4);
     smethod_3(paragraph);
 }