Ejemplo n.º 1
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);
    }
Ejemplo n.º 2
0
    internal static void smethod_1(Class857 A_0, DocumentObject A_1, Class106 A_2)
    {
        int num = 14;

        A_0.method_17(null);
        smethod_5(A_0);
        A_0.method_11().method_8().MoveToElement();
        Class108 class2 = Class574.smethod_10(A_0);

        if (!Class576.smethod_1(A_0.method_11()))
        {
            A_1 = Class574.smethod_4(A_0, class2, A_1);
        }
        Class106 class3 = (Class106)A_0.method_13().method_2(A_0.method_16(), BookmarkStart.b("䀳圵娷嘹夻", num), A_0.method_20(), true);

        if (class3 == null)
        {
            class3 = A_2;
        }
        if (class3 == null)
        {
            class3 = new Class106();
        }
        Class975 class4 = new Class975();

        smethod_6(A_0, class3, class4);
        class4.method_4();
        Table table = smethod_3(A_0, class3, class4);

        if (A_1.LastChild is Table)
        {
            A_1.method_13(smethod_2(A_0.method_9()));
        }
        A_1.method_13(table);
    }
Ejemplo n.º 3
0
 private static void smethod_19(Class857 A_0, Paragraph A_1, CharacterFormat A_2)
 {
     int num = 0x11;
     Class396 class2 = A_0.method_11();
     FootnoteType type = (class2.method_12(BookmarkStart.b("夶嘸伺堼ሾ≀⽂⑄㑆㩈", 0x11), BookmarkStart.b("制圸强匼倾㕀♂", 0x11)) == BookmarkStart.b("制圸强匼倾㕀♂", 0x11)) ? FootnoteType.Endnote : FootnoteType.Footnote;
     Footnote footnote = new Footnote(A_0.method_9()) {
         FootnoteType = type,
         IsAutoNumbered = true,
         CustomMarker = null
     };
     if (A_2 == null)
     {
         throw new ArgumentNullException(BookmarkStart.b("䔶䰸唺洼䴾", num));
     }
     A_2.method_37(footnote.CharacterFormat);
     while (class2.method_9(BookmarkStart.b("夶嘸伺堼", num)))
     {
         string str2 = class2.method_1();
         if (str2 != null)
         {
             if (!(str2 == BookmarkStart.b("夶嘸伺堼ሾ≀⩂ㅄ♆㵈≊≌ⅎ", num)))
             {
                 if (!(str2 == BookmarkStart.b("夶嘸伺堼ሾ⍀ⱂ⅄㹆", num)))
                 {
                     goto Label_0110;
                 }
                 A_0.method_56(true);
                 Class574.smethod_0(A_0, BookmarkStart.b("夶嘸伺堼ሾ⍀ⱂ⅄㹆", num), footnote);
                 Class857.string_4 = "";
                 A_0.method_56(false);
             }
             else
             {
                 string str = class2.method_12(BookmarkStart.b("嬶堸夺堼匾", num), null);
                 if (str != null)
                 {
                     footnote.IsAutoNumbered = false;
                     footnote.CustomMarker = str;
                 }
             }
             continue;
         }
     Label_0110:
         class2.vmethod_1();
     }
     Paragraph paragraph = smethod_20(footnote.TextBody.ChildObjects);
     if (paragraph != null)
     {
         if (footnote.IsAutoNumbered)
         {
             new Class818();
         }
         else
         {
             paragraph.method_18(new TextRange(A_0.method_9(), footnote.CustomMarker, A_2), paragraph.FirstChild);
         }
     }
     A_1.method_13(footnote);
 }
Ejemplo n.º 4
0
    internal static void smethod_6(Class857 A_0, Class100 A_1, TableCell A_2, Class106 A_3)
    {
        Class396 class2 = A_0.method_11();

        class2.method_18();
        Class574.smethod_1(A_0, class2.method_1(), A_2, A_3);
        smethod_7(A_0, A_2);
    }
Ejemplo n.º 5
0
    internal static void smethod_0(Class857 A_0, Class108 A_1)
    {
        int     num     = 15;
        Section section = A_1.method_8().Clone();

        section.SectPr.method_57(SectionBreakType.NoBreak);
        smethod_1(A_0, section.SectPr);
        Class95 class2 = (Class95)A_0.method_13().method_3(A_0.method_16(), BookmarkStart.b("䘴制娸伺吼倾⽀", 15), A_0.method_20());

        A_0.method_9().Settings.method_5().method_14((class2 != null) && class2.method_14());
        if ((class2 != null) && (class2.method_12() != null))
        {
            class2.method_12().method_37(section.SectPr);
        }
        A_0.method_29().Push(section);
        A_0.method_31(true);
        Class574.smethod_0(A_0, BookmarkStart.b("䘴制娸伺吼倾⽀", num), section.Body);
        A_0.method_33(true);
        A_0.method_29().Pop();
    }
Ejemplo n.º 6
0
    private static void smethod_2(Class857 A_0)
    {
        int            num    = 10;
        Class396       class2 = A_0.method_11();
        DocumentObject obj2   = null;

        while (class2.method_9(BookmarkStart.b("䐯圱䰳䈵", num)))
        {
            Class108 class3 = Class574.smethod_10(A_0);
            if (!Class574.smethod_2(A_0, obj2, class3))
            {
                string str;
                if (((str = class2.method_1()) != null) && (str == BookmarkStart.b("嘯崱䘳嬵䬷", num)))
                {
                    smethod_3(A_0);
                }
                else
                {
                    class2.vmethod_1();
                }
            }
        }
    }
Ejemplo n.º 7
0
    private static int smethod_4(Class857 A_0, Class106 A_1, Class975 A_2)
    {
        int      num    = 0;
        Class108 class2 = Class574.smethod_11(A_0, A_0.method_14(), A_0.method_26());

        if (class2 != null)
        {
            int num2 = Class969.smethod_31((double)class2.method_8().PageSetup.ClientWidth);
            int num3 = 0;
            int num4 = 0;
            if (A_1 == null)
            {
                return(num);
            }
            int num5 = (A_1.method_16() == -2147483648) ? num2 : A_1.method_16();
            foreach (Class94 class3 in A_1.method_20())
            {
                if (class3.method_12() == -2147483648)
                {
                    num3++;
                }
                else
                {
                    num4 += class3.method_12();
                }
            }
            if (A_2.method_5() > A_1.method_20().Count)
            {
                num3 += A_2.method_5() - A_1.method_20().Count;
            }
            if (num3 > 0)
            {
                num = (num5 - num4) / num3;
            }
        }
        return(num);
    }
Ejemplo n.º 8
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);
 }
Ejemplo n.º 9
0
 internal static void smethod_2(Class857 A_0, ShapeObject A_1)
 {
     Class574.smethod_0(A_0, BookmarkStart.b("䐯圱䰳䈵ᔷ堹医䘽", 10), A_1);
 }