Exemplo n.º 1
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());
     }
 }
Exemplo n.º 2
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;
    }