Пример #1
0
    internal static void smethod_1(Class857 A_0)
    {
        int      num    = 9;
        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)) || (str == BookmarkStart.b("弮䌰尲䄴制娸伺吼倾⽀湂⹄≆え", num))) || ((str == BookmarkStart.b("䬮堰䀲䔴嬶堸䈺", num)) || (str == BookmarkStart.b("䰮帰崲儴帶䴸刺刼儾", num))))
                        {
                        }
                    }
                    else
                    {
                        A_0.method_38().method_5(class2.method_3());
                    }
                }
                else
                {
                    A_0.method_38().method_3(class2.method_3());
                }
            }
        }
    }
Пример #2
0
    private static void smethod_5(Class857 A_0, DocumentObject A_1)
    {
        int      num    = 1;
        Class396 class2 = A_0.method_11();

        if (class2.method_9(A_0.method_38().method_12()))
        {
            if (class2.method_1() == BookmarkStart.b("並䜨伪䠬圮ᰰ䜲尴䌶唸帺ြ䬾⑀⹂㕄⭆⡈㽊⡌", num))
            {
                smethod_6(A_0, A_1);
            }
            else if (class2.method_1() == A_0.method_38().method_14())
            {
                smethod_7(A_0, A_1);
            }
            else if (class2.method_1() == BookmarkStart.b("並䜨伪䠬圮ᰰ䀲娴䈶䬸堺堼ሾ㉀㝂㱄⭆ⱈ㡊", num))
            {
                smethod_8(A_0, A_1);
            }
            else
            {
                class2.vmethod_1();
            }
        }
    }
Пример #3
0
    private static void smethod_2(Class857 A_0, DocumentObject A_1)
    {
        int      num    = 7;
        Class396 class2 = A_0.method_11();

        while (class2.method_9(A_0.method_38().method_0()))
        {
            if (class2.method_1() == A_0.method_38().method_12())
            {
                smethod_3(A_0, A_1);
            }
            else
            {
                if (class2.method_1() == BookmarkStart.b("䐬䄮唰嘲䴴ᨶ嬸吺夼䘾", num))
                {
                    Class574.smethod_0(A_0, BookmarkStart.b("䐬䄮唰嘲䴴ᨶ嬸吺夼䘾", num), A_1);
                    continue;
                }
                class2.vmethod_1();
            }
        }
        A_0.method_17(A_0.method_11().method_12(BookmarkStart.b("帬嬮䠰弲倴ᨶ圸娺值娾", num), BookmarkStart.b("縬嬮倰崲儴嘶䬸强", num)));
        Class108 class3 = Class574.smethod_10(A_0);

        A_1 = Class574.smethod_4(A_0, class3, A_1);
    }
Пример #4
0
    private static void smethod_4(Class857 A_0)
    {
        int      num    = 5;
        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)) || (str == BookmarkStart.b("帪帬䨮ᰰ娲嬴匶尸䌺ြ刾⁀ㅂ⹄㑆", num))) || ((str == BookmarkStart.b("帪帬䨮ᰰ娲嬴匶尸䌺ြ䰾⹀㙂㝄⑆ⱈ晊㹌㭎⡐㽒ご⑖", num)) || (str == BookmarkStart.b("䈪䌬䬮吰䬲ᠴ䐶娸吺䴼娾", num)))) || (str == BookmarkStart.b("太䠬䌮倰䜲尴䄶尸ᘺ䤼帾⍀湂㙄㍆♈㭊恌㽎㹐⁒㱔⍖じ㑚㍜", num)))
                    {
                    }
                }
                else
                {
                    A_0.method_38().method_17(Class1041.smethod_11(class2.method_3()));
                    A_0.method_38().method_9(string.Format(BookmarkStart.b("倪ᴬ刮ᄰ漲娴᜶ᬸ਺ြ䐾灀㹂杄", num), A_0.method_38().method_8(), class2.method_3()));
                }
            }
        }
    }
Пример #5
0
    internal static DocumentObject smethod_4(Class857 A_0, Class108 A_1, DocumentObject A_2)
    {
        int num = 0x10;

        if (smethod_8(A_0) && ((A_2 == null) || (A_2 is Body)))
        {
            bool flag2;
            if (((A_2 is TableCell) || (A_2 is TextBox)) || (A_2 is HeaderFooter))
            {
                return(A_2);
            }
            Section lastSection = A_0.method_9().LastSection;
            bool    flag        = smethod_7(A_0, A_1);
            if ((flag2 = ((A_0.method_32() || A_0.method_30()) || flag) || (A_0.method_9().Sections.Count == 0)) || ((A_2 == null) && (A_0.method_29().Count == 0)))
            {
                if (A_0.method_29().Count == 0)
                {
                    if (flag2)
                    {
                        lastSection = A_1.method_8();
                        A_0.method_9().Sections.Add(lastSection);
                    }
                }
                else
                {
                    Section section2 = (Section)A_0.method_29().Peek();
                    lastSection = section2.Clone();
                    A_1.method_8().SectPr.method_37(lastSection.SectPr);
                    smethod_5((Class17)section2.SectPr.Clone(), lastSection.SectPr);
                    A_0.method_9().Sections.Add(lastSection);
                }
                Section section3 = (Section)A_0.method_9().GetChildElements(1, 1)[0];
                if ((flag && (((A_0.method_38() == null) || A_0.method_38().method_10()) || (section3.Body.ChildObjects.Count != 0))) && bool_0)
                {
                    lastSection.SectPr.method_57(SectionBreakType.NewPage);
                }
                Class91 class2 = A_0.method_13().method_2(A_0.method_16(), null, A_0.method_20(), true);
                if (!(class2 is Class92))
                {
                    Class93 class3 = (Class93)class2;
                    A_0.method_27((class3 != null) ? class3.method_6() : BookmarkStart.b("攵䰷嬹刻娽ℿぁ⁃", num));
                    A_0.method_35((((A_0.method_16() != BookmarkStart.b("攵䰷嬹刻娽ℿぁ⁃", num)) && (class3 != null)) && (class3 is Class97)) && Class567.smethod_16(class3.method_6()));
                }
            }
            smethod_6(A_0.method_9());
            A_0.method_33(false);
            A_0.method_31(false);
            foreach (Paragraph paragraph2 in A_0.method_36())
            {
                if (paragraph2.ParentObject != lastSection.Body)
                {
                    lastSection.Body.method_13(paragraph2);
                }
            }
            A_0.method_36().Clear();
            return(lastSection.Body);
        }
        if (A_2 != null)
        {
            foreach (Paragraph paragraph in A_0.method_36())
            {
                if (paragraph.Owner == null)
                {
                    A_2.method_13(paragraph);
                }
            }
        }
        return(A_2);
    }
Пример #6
0
    internal static bool smethod_0(Class857 A_0, DocumentObject A_1, Class108 A_2)
    {
        int num = 14;

        A_0.method_39(new Class1052());
        A_0.method_38().method_1(A_0.method_11().method_1());
        A_0.method_38().method_13(string.Format(BookmarkStart.b("伳ص䔷᜹伻儽㔿ぁ❃⍅", 14), A_0.method_38().method_0()));
        string str = A_0.method_38().method_0();

        if (str != null)
        {
            if (!(str == BookmarkStart.b("䀳圵娷嘹夻ጽ⼿⑁楃╅❇⑉㡋⭍㹏♑", num)))
            {
                if (!(str == BookmarkStart.b("唳娵䠷刹崻尽┿㙁ⵃ╅⥇♉態❍㹏㙑ㅓ⹕", num)))
                {
                    goto Label_020E;
                }
                A_0.method_38().method_7(FieldType.FieldIndex);
                A_0.method_38().method_9(BookmarkStart.b("紳砵簷缹搻", num));
            }
            else
            {
                A_0.method_38().method_7(FieldType.FieldTOC);
                A_0.method_38().method_9(BookmarkStart.b("怳礵笷", num));
            }
            Class396 class3 = A_0.method_11();
            A_0.method_38().method_5(class3.method_12(BookmarkStart.b("䜳䈵䄷嘹夻ጽ⸿⍁⥃⍅", num), null));
            if (Class567.smethod_16(A_0.method_38().method_4()))
            {
                Section section = A_2.method_8().Clone();
                section.SectPr.method_57(SectionBreakType.NoBreak);
                Class95 class4 = (Class95)A_0.method_13().method_3(A_0.method_38().method_4(), BookmarkStart.b("䜳匵嬷丹唻儽⸿", num), A_0.method_20());
                if ((class4 != null) && (class4.method_12() != null))
                {
                    ((Class17)section.SectPr.Clone()).method_37(section.SectPr);
                }
                A_0.method_29().Push(section);
                A_0.method_31(true);
            }
            smethod_2(A_0, A_1);
            smethod_1(A_0);
            if (A_1 == null)
            {
                A_1 = A_0.method_9().LastSection.Body;
            }
            List <DocumentObject> childElements = A_1.GetChildElements(DocumentObjectType.Paragraph, false);
            if (childElements.Count != 0)
            {
                Paragraph paragraph1 = (Paragraph)childElements[childElements.Count - 1];
            }
            else
            {
                new Paragraph(A_0.method_9());
            }
            if (Class567.smethod_16(A_0.method_38().method_4()))
            {
                A_0.method_33(true);
                A_0.method_29().Pop();
            }
            return(true);
        }
Label_020E:
        A_0.method_38().method_11(true);
        smethod_2(A_0, A_1);
        return(false);
    }
Пример #7
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);
 }