Пример #1
0
    internal static void smethod_1(Class581 A_0, RowFormat A_1)
    {
        int      num    = 10;
        Class394 class2 = A_0.imethod_1();

        class2.method_18();
        if (A_0.vmethod_1())
        {
            Class9 class3 = Class402.smethod_0(A_0, MarkupLevel.Row);
            A_0.method_3(class3);
            while (class2.method_9(class3.method_22()))
            {
                smethod_1(A_0, A_1);
            }
            A_0.method_5(DocumentObjectType.CustomXml);
        }
        else
        {
            string str = class2.method_1();
            if (str != null)
            {
                if (str == BookmarkStart.b("䐯倱堳昵䨷", num))
                {
                    Class829.smethod_0(A_1, A_0, false);
                    ((Table)A_0.method_13()).TableFormat.ImportContainer(A_1);
                    return;
                }
                if (str == BookmarkStart.b("䐯倱堳焵䨷匹堻", num))
                {
                    Class532.smethod_1(class2, ((Table)A_0.method_13()).TableFormat);
                    return;
                }
                if (str == BookmarkStart.b("䐯䀱", num))
                {
                    Class912.smethod_0(A_0, A_1);
                    return;
                }
                if (str == BookmarkStart.b("儯就娳夵䰷嬹䠻圽⼿ⱁ", num))
                {
                    TableRow  lastRow   = A_0.Interface50.imethod_0().LastSection.Tables[A_0.Interface50.imethod_0().LastSection.Tables.Count - 1].LastRow;
                    TableCell cell      = lastRow.Cells[lastRow.Cells.Count - 1];
                    Paragraph paragraph = cell.Items[cell.Items.Count - 1] as Paragraph;
                    if (paragraph == null)
                    {
                        paragraph = cell.AddParagraph();
                    }
                    Class519.smethod_1(A_0, paragraph);
                    return;
                }
            }
            smethod_3(A_0, A_1);
        }
    }
Пример #2
0
 private static void smethod_2(Class581 A_0, CharacterFormat A_1)
 {
     if ((A_0.imethod_1().method_52().Count <= 0) || (A_0.imethod_1().method_53() != FieldCharType.Seperate))
     {
         bool flag = A_0.imethod_1().method_53() == FieldCharType.Begin;
         fieldCharType_0 = FieldCharType.Seperate;
         A_0.imethod_1().method_52().Push(fieldCharType_0);
         ParagraphBase lastChild = A_0.method_13().LastChild as ParagraphBase;
         if (A_0.imethod_1().method_57() != null)
         {
             lastChild = A_0.imethod_1().method_57();
         }
         else if (flag)
         {
             lastChild = new Field(A_0.Interface50.imethod_0());
             A_0.imethod_1().method_54().Push(lastChild as Field);
             A_0.method_9(lastChild);
         }
         if (((lastChild is Field) || (lastChild is TextRange)) && !(lastChild is MergeField))
         {
             if ((lastChild is Field) ? ((lastChild as Field).Type == FieldType.FieldTOC) : false)
             {
                 if (lastChild.Owner == null)
                 {
                     return;
                 }
                 (lastChild as Field).ParseFieldCode((lastChild as Field).Code);
                 TableOfContent content          = new TableOfContent(A_0.Interface50.imethod_0(), A_0.imethod_1().method_57().FormattingString);
                 A_0.Interface50.imethod_0().TOC = content;
                 content.FormattingString = A_0.imethod_1().method_57().FormattingString;
                 A_0.method_13().ChildObjects.Remove(lastChild);
                 A_0.method_9(content);
                 if (A_0.method_13() is Paragraph)
                 {
                     (A_0.method_13() as Paragraph).IsTOCPara = true;
                 }
                 else
                 {
                     (A_0.method_13() as ParagraphBase).OwnerParagraph.IsTOCPara = true;
                 }
                 lastChild = content.TOCField;
             }
             FieldMark mark = new FieldMark(A_0.Interface50.imethod_0(), A_1, FieldMarkType.FieldSeparator);
             A_0.method_9(mark);
             if (lastChild is Field)
             {
                 (lastChild as Field).Separator = mark;
             }
         }
     }
 }
Пример #3
0
    private static void smethod_2(Class581 A_0, RowFormat A_1)
    {
        Table table = (Table)A_0.method_13();

        table.PreferredTableWidth = A_1.TablePreferredWidthInfo;
        A_0.method_5(DocumentObjectType.Table);
    }
Пример #4
0
    internal static void smethod_0(Class581 A_0, DocumentObject A_1)
    {
        DocumentObject obj2 = A_0.method_13();

        A_0.method_14(A_1);
        smethod_1(A_0);
        A_0.method_14(obj2);
    }
Пример #5
0
    private static void smethod_1(Class581 A_0)
    {
        int      num    = 5;
        Class394 class2 = A_0.imethod_1();

        class2.method_18();
        string str = class2.method_1();

        while (class2.method_9(str))
        {
            string str2;
            if (((str2 = class2.method_1()) != null) && (str2 == BookmarkStart.b("堪䠬䰮䔰挲䜴", num)))
            {
                Body body = (Body)A_0.method_13();
                Class980.smethod_0(A_0, body.ParentSection);
            }
            else
            {
                Class629.smethod_2(A_0);
            }
        }
    }
Пример #6
0
    internal static void smethod_0(Class581 A_0)
    {
        Class394 class2 = A_0.imethod_1();

        A_0.Interface50.imethod_0();
        Field field = smethod_1(class2.method_12(BookmarkStart.b("嬱娳䔵䰷䠹", 12), ""), A_0.Interface50.imethod_0());

        field.ParseFieldCode(field.Code);
        FieldType type = field.Type;

        A_0.method_9(field);
        class2.method_54().Push(field);
        if (!(field is MergeField))
        {
            FieldMark mark = new FieldMark(A_0.Interface50.imethod_0(), FieldMarkType.FieldSeparator);
            field.Separator = mark;
            A_0.method_9(mark);
        }
        Class464.smethod_0(A_0);
        if (!(field is MergeField))
        {
            ParagraphBase lastChild = A_0.method_13().LastChild as ParagraphBase;
            if ((lastChild != null) && !lastChild.CharacterFormat.HasDeleteRevision)
            {
                CharacterFormat format1 = (CharacterFormat)lastChild.CharacterFormat.Clone();
            }
            else
            {
                new CharacterFormat(A_0.Interface50.imethod_0());
            }
            FieldMark mark2 = new FieldMark(A_0.Interface50.imethod_0(), FieldMarkType.FieldEnd);
            A_0.method_9(mark2);
            field.End = mark2;
        }
        if ((class2.method_54().Count > 0) && (class2.method_54().Peek() == field))
        {
            class2.method_54().Pop();
        }
    }
Пример #7
0
    internal static void smethod_0(Class581 A_0)
    {
        int      num    = 0x10;
        string   str    = "";
        string   str2   = "";
        Class394 class2 = A_0.imethod_1();

        while (class2.method_19())
        {
            string str3 = class2.method_1();
            if (str3 != null)
            {
                if (str3 != BookmarkStart.b("刵崷䤹䠻", num))
                {
                    if (str3 != BookmarkStart.b("吵圷唹圻匽ℿぁ⽃", num))
                    {
                        if (!(str3 == BookmarkStart.b("䈵夷䠹嬻嬽㐿", num)))
                        {
                            if (str3 == BookmarkStart.b("䔵嬷䠹夻嬽⸿ᙁⵃ㙅", num))
                            {
                                class2.method_3();
                            }
                        }
                        else
                        {
                            class2.method_3();
                        }
                    }
                    else
                    {
                        str2 = class2.method_3();
                    }
                }
                else
                {
                    str = class2.method_3();
                }
            }
        }
        DocumentObject lastChild = A_0.method_13().LastChild;
        Field          field     = new Field(A_0.Interface50.imethod_0())
        {
            Type = FieldType.FieldHyperlink
        };
        Hyperlink hyperlink = new Hyperlink(field)
        {
            Type         = HyperlinkType.Bookmark,
            BookmarkName = str2
        };

        if (!string.IsNullOrEmpty(str))
        {
            field.m_fieldValue = BookmarkStart.b("ᐵ", num) + str.Replace(BookmarkStart.b("樵", num), BookmarkStart.b("樵搷", num)) + BookmarkStart.b("ᐵ", num);
            field.Code         = BookmarkStart.b("縵愷樹礻氽ిୁ੃൅桇", num) + field.m_fieldValue;
        }
        Class464.smethod_0(A_0);
        int index = (A_0.method_13() as Paragraph).ChildObjects.IndexOf(lastChild);

        (A_0.method_13() as Paragraph).ChildObjects.Insert(index + 1, field);
        index = (A_0.method_13() as Paragraph).ChildObjects.IndexOf(field);
        FieldMark entity = new FieldMark(A_0.Interface50.imethod_0(), FieldMarkType.FieldSeparator);

        (A_0.method_13() as Paragraph).ChildObjects.Insert(index + 1, entity);
        field.Separator = entity;
        FieldMark mark2 = new FieldMark(A_0.Interface50.imethod_0(), FieldMarkType.FieldEnd);

        A_0.method_11(A_0.method_13(), mark2, A_0.method_13().LastChild);
        field.End = mark2;
    }
Пример #8
0
    private static void smethod_6(Class581 A_0, CharacterFormat A_1)
    {
        Class394 class2 = A_0.imethod_1();
        string   str    = class2.method_1();

        while (class2.method_10(str, XmlDocumentTextHandling.TextAndSignificant))
        {
            string str2 = class2.method_3();
            switch (str2)
            {
            case null:
            case string.Empty:
                return;
            }
            Field field = smethod_7(str2, A_0.Interface50.imethod_0());
            if (!class2.bool_0 && (class2.method_57() != null))
            {
                int index = -1;
                if ((class2.method_57() != null) && (class2.method_57().NextSibling == null))
                {
                    index = (A_0.method_13() as Paragraph).ChildObjects.IndexOf(class2.method_57());
                }
                if (((class2.method_53() != FieldCharType.Seperate) && (index >= 0)) && (index == ((A_0.method_13() as Paragraph).ChildObjects.Count - 1)))
                {
                    Field field3 = class2.method_57();
                    field3.Code = field3.Code + str2;
                    if (class2.method_57().Type == FieldType.FieldUnknown)
                    {
                        Field field2 = class2.method_54().Pop();
                        (A_0.method_13() as Paragraph).method_20(field2);
                        field2 = smethod_7(field2.Code, A_0.Interface50.imethod_0());
                        if (A_1 != null)
                        {
                            field2.ApplyCharacterFormat(A_1);
                        }
                        field2.IsLocked = class2.method_55();
                        class2.method_56(false);
                        A_0.method_9(field2);
                        if (class2.method_57() != field2)
                        {
                            class2.method_54().Push(field2);
                        }
                    }
                }
                else
                {
                    TextRange range = new TextRange(A_0.Interface50.imethod_0());
                    if (A_1 != null)
                    {
                        range.ApplyCharacterFormat(A_1);
                    }
                    range.Text = str2;
                    A_0.method_9(range);
                }
                return;
            }
            if (A_1 != null)
            {
                field.CharacterFormat.method_73(A_1);
            }
            field.IsLocked = class2.method_55();
            class2.method_56(false);
            A_0.method_9(field);
            class2.method_54().Push(field);
        }
    }
Пример #9
0
    internal static bool smethod_0(Class581 A_0, ParagraphFormat A_1, CharacterFormat A_2)
    {
        int      num    = 0x13;
        bool     flag   = false;
        Class394 class2 = A_0.imethod_1();

        while (class2.method_9(BookmarkStart.b("䤸欺似", num)))
        {
            string key = class2.method_1();
            if (key != null)
            {
                int num4;
                if (Class1160.dictionary_196 == null)
                {
                    Dictionary <string, int> dictionary1 = new Dictionary <string, int>(0x24);
                    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("丸刺夼倾㙀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);
                    Class1160.dictionary_196 = dictionary1;
                }
                if (Class1160.dictionary_196.TryGetValue(key, out num4))
                {
                    switch (num4)
                    {
                    case 0:
                    {
                        string str  = class2.method_28();
                        int    num3 = A_0.Interface58.imethod_0(str, 0);
                        A_1.SetAttr(0x3e8, num3);
                        if (!string.IsNullOrEmpty(str))
                        {
                            str = str.Trim();
                            if ((A_1.OwnerBase is Paragraph) && A_1.OwnerBase.Document.StyleNameIds.ContainsKey(str))
                            {
                                IParagraphStyle style = A_1.OwnerBase.Document.Styles.FindByName(A_1.OwnerBase.Document.StyleNameIds[str], StyleType.ParagraphStyle) as IParagraphStyle;
                                if (style != null)
                                {
                                    A_1.SetAttr(0x3e8, (style as Style).Istd);
                                    (A_1.OwnerBase as Paragraph).method_65(style);
                                }
                            }
                        }
                        continue;
                    }

                    case 1:
                    {
                        A_1.SetAttr(0x41a, class2.method_31());
                        continue;
                    }

                    case 2:
                    {
                        A_1.SetAttr(0x410, class2.method_31());
                        continue;
                    }

                    case 3:
                    {
                        A_1.SetAttr(0x424, class2.method_31());
                        continue;
                    }

                    case 4:
                    {
                        smethod_1(class2, A_1);
                        continue;
                    }

                    case 5:
                    {
                        A_1.SetAttr(0x5be, class2.method_31());
                        continue;
                    }

                    case 6:
                    case 7:
                    {
                        smethod_7(A_0, A_1);
                        continue;
                    }

                    case 8:
                    case 9:
                    {
                        A_1.SetAttr(0x46a, class2.method_31());
                        continue;
                    }

                    case 10:
                    {
                        smethod_6(class2, A_1);
                        continue;
                    }

                    case 11:
                    {
                        A_1.SetAttr(0x5b4, class2.method_39());
                        continue;
                    }

                    case 12:
                    {
                        smethod_5(class2, A_1);
                        continue;
                    }

                    case 13:
                    {
                        A_1.SetAttr(0x582, class2.method_31());
                        continue;
                    }

                    case 14:
                    {
                        A_1.SetAttr(0x42e, class2.method_31());
                        continue;
                    }

                    case 15:
                    {
                        A_1.SetAttr(0x438, class2.method_31());
                        continue;
                    }

                    case 0x10:
                    {
                        A_1.SetAttr(0x442, class2.method_31());
                        continue;
                    }

                    case 0x11:
                    {
                        A_1.SetAttr(0x44c, class2.method_31());
                        continue;
                    }

                    case 0x12:
                    {
                        A_1.SetAttr(0x4d8, class2.method_31());
                        continue;
                    }

                    case 0x13:
                    {
                        A_1.SetAttr(0x4e2, class2.method_31());
                        continue;
                    }

                    case 20:
                    {
                        A_1.SetAttr(0x618, class2.method_31());
                        continue;
                    }

                    case 0x15:
                    {
                        A_1.SetAttr(0x4f6, class2.method_31());
                        continue;
                    }

                    case 0x16:
                    {
                        A_1.SetAttr(0x4ec, class2.method_31());
                        continue;
                    }

                    case 0x17:
                    {
                        smethod_3(class2, A_1);
                        continue;
                    }

                    case 0x18:
                    {
                        smethod_2(class2, A_1);
                        continue;
                    }

                    case 0x19:
                    {
                        A_1.SetAttr(0x3fe, class2.method_31());
                        continue;
                    }

                    case 0x1a:
                    {
                        A_1.SetAttr(0x67c, class2.method_31());
                        continue;
                    }

                    case 0x1b:
                    {
                        A_1.SetAttr(0x3fc, Class248.smethod_18(class2.method_28(), false));
                        continue;
                    }

                    case 0x1c:
                    {
                        A_1.SetAttr(0x5c8, Class417.smethod_38(class2.method_28()));
                        continue;
                    }

                    case 0x1d:
                    {
                        A_1.SetAttr(0x5e6, Class248.smethod_0(class2.method_28()));
                        continue;
                    }

                    case 30:
                    {
                        int num2 = class2.method_29();
                        A_1.SetAttr(0x500, ((num2 < 0) || (num2 > 9)) ? ((byte)9) : ((byte)((OutlineLevel)Enum.ToObject(typeof(OutlineLevel), num2))));
                        continue;
                    }

                    case 0x1f:
                    {
                        Class733.smethod_0(A_0, A_2);
                        continue;
                    }

                    case 0x20:
                    {
                        Class980.smethod_0(A_0, ((Paragraph)A_0.method_13()).method_49());
                        flag = true;
                        continue;
                    }

                    case 0x21:
                    {
                        continue;
                    }

                    case 0x22:
                    {
                        Class519.smethod_7(A_0, A_1, A_2);
                        continue;
                    }

                    case 0x23:
                    {
                        A_1.SetAttr(0x479, class2.method_31());
                        continue;
                    }
                    }
                }
            }
            Class733.smethod_1(A_0, A_2);
        }
        return(flag);
    }
Пример #10
0
    internal static void smethod_1(Class581 A_0, CharacterFormat A_1)
    {
        int      num    = 1;
        Class394 class2 = A_0.imethod_1();
        string   key    = class2.method_1();

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                case 40:
                    class2.method_26();
                    return;

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

                case 0x2a:
                {
                    TableCell parentObject = A_0.method_13().ParentObject as TableCell;
                    if (parentObject != null)
                    {
                        parentObject.CellFormat.GridSpan = (short)class2.method_29();
                    }
                    return;
                }
                }
            }
        }
        if (!smethod_2(A_0, A_1))
        {
            class2.vmethod_1();
        }
    }
Пример #11
0
    internal static void smethod_2(Class581 A_0)
    {
        int      num    = 4;
        bool     flag   = false;
        Class394 class2 = A_0.imethod_1();

        if (A_0.vmethod_1())
        {
            Class9 class3 = Class402.smethod_0(A_0, MarkupLevel.Block);
            A_0.method_3(class3);
            while (class2.method_9(class3.method_22()))
            {
                smethod_2(A_0);
            }
            if (A_0.method_13().DocumentObjectType == DocumentObjectType.CustomXml)
            {
                A_0.method_5(DocumentObjectType.CustomXml);
                return;
            }
            return;
        }
        string key = class2.method_1();

        if (key != null)
        {
            int num2;
            if (Class1160.dictionary_115 == null)
            {
                Dictionary <string, int> dictionary1 = new Dictionary <string, int>(7);
                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);
                Class1160.dictionary_115 = dictionary1;
            }
            if (Class1160.dictionary_115.TryGetValue(key, out num2))
            {
                switch (num2)
                {
                case 0:
                    flag = Class518.smethod_0(A_0, list_0, list_1, list_2, list_3);
                    goto Label_01C9;

                case 1:
                    Class1080.smethod_0(A_0);
                    goto Label_01C9;

                case 2:
                    Class519.smethod_2(A_0, A_0.Interface50.imethod_0().LastParagraph, list_0, list_1);
                    goto Label_01C9;

                case 3:
                    if (A_0.method_13().DocumentObjectType == DocumentObjectType.Body)
                    {
                        Body body = (Body)A_0.method_13();
                        Class980.smethod_0(A_0, body.ParentSection);
                    }
                    smethod_1(A_0);
                    goto Label_01C9;

                case 4:
                    A_0.imethod_9();
                    goto Label_01C9;

                case 5:
                    smethod_3(A_0);
                    goto Label_01C9;

                case 6:
                    smethod_4(A_0);
                    goto Label_01C9;
                }
            }
        }
        smethod_1(A_0);
Label_01C9:
        if (flag)
        {
            if (A_0.method_13().DocumentObjectType == DocumentObjectType.CustomXml)
            {
                while (A_0.method_13().DocumentObjectType == DocumentObjectType.CustomXml)
                {
                    Class9 class4 = (Class9)A_0.method_13();
                    A_0.method_5(DocumentObjectType.CustomXml);
                    while (class4.HasChildElements)
                    {
                        class4.Owner.method_17(class4.LastChild, class4);
                    }
                    class4.method_19();
                }
            }
            A_0.method_5(DocumentObjectType.Body);
            A_0.method_5(DocumentObjectType.Section);
            Section section = A_0.Interface50.imethod_0().AddSection();
            A_0.method_4(section);
            A_0.method_4(section.Body);
        }
    }