Exemple #1
0
    internal static void smethod_1(Class857 A_0)
    {
        int      num    = 1;
        Class101 class2 = new Class101();

        class2.method_22(new ListStyle(A_0.method_9()));
        class2.method_21().Name = BookmarkStart.b("栦䴨弪爬怮䐰䜲礴帶圸帺焼嘾㉀㝂ᙄ㍆え❊⡌", 1);
        A_0.method_66(class2);
        Class396 class3 = A_0.method_11();

        class3.method_18();
        while (class3.method_9(BookmarkStart.b("䠦尨弪䄬䘮弰嘲ᠴ䐶䴸䈺儼娾", num)))
        {
            string str;
            class3 = A_0.method_11();
            if (((str = class3.method_1()) != null) && (str == BookmarkStart.b("䠦尨弪䄬䘮弰嘲ᠴ嬶尸䴺堼匾汀あㅄ㹆╈⹊", num)))
            {
                ListStyle listStyle = class2.method_21();
                ListLevel level     = new ListLevel(listStyle);
                listStyle.Levels.method_5(level);
                smethod_5(A_0, class2, level, BookmarkStart.b("䠦尨弪䄬䘮弰嘲ᠴ嬶尸䴺堼匾汀あㅄ㹆╈⹊", num));
            }
            else
            {
                class3.vmethod_1();
            }
        }
        A_0.method_13().method_1(class2, A_0.method_20(), false);
        A_0.method_9().ListStyles.Add(class2.method_21());
    }
Exemple #2
0
    private static void smethod_2(Class857 A_0, DocumentObject A_1, Class101 A_2)
    {
        int      num    = 6;
        Class396 class2 = A_0.method_11();
        int      num2   = 1;

        while (class2.method_19())
        {
            string str;
            if (((str = class2.method_1()) != null) && (str == BookmarkStart.b("弫娭儯䀱䀳ᬵ丷嬹倻䬽┿", num)))
            {
                if (A_2 != null)
                {
                    A_2.method_21().Levels[A_0.method_24()].StartAt = class2.method_4();
                }
                num2 = class2.method_4();
            }
        }
        if (A_2.method_27() != null)
        {
            string              str2   = A_2.method_27();
            Class12             class3 = A_0.method_9().ListOverrides.method_35(str2);
            OverrideLevelFormat format = new OverrideLevelFormat(A_0.method_9());
            class3.method_23().method_9(A_0.method_24(), format);
            format.OverrideStartAtValue = true;
            format.OverrideListLevel    = A_0.method_9().ListStyles.FindByName(A_2.method_0()).Levels[A_0.method_24()];
            class3.method_23().method_5(A_0.method_24()).StartAt = num2;
        }
        smethod_3(A_0, A_1, BookmarkStart.b("䀫䜭䌯䘱ᤳ張䰷弹儻", num), A_2);
    }
Exemple #3
0
 internal static void smethod_0(Class857 A_0, string A_1, ref DocumentObject A_2, Class101 A_3, bool A_4)
 {
     bool_0 = A_4;
     smethod_1(A_0, A_1, A_2);
     bool_0 = false;
     if (A_3 != null)
     {
         if (A_2 == null)
         {
             A_2 = A_0.method_9().LastSection.Body;
         }
         Paragraph lastChild = (Paragraph) A_2.LastChild;
         if (A_4)
         {
             ListStyle style = A_3.method_21();
             lastChild.ListFormat.ListLevelNumber = A_0.method_24();
             lastChild.ListFormat.ApplyStyle(style.Name);
             if (A_3.method_27() != null)
             {
                 lastChild.ListFormat.LFOStyleName = A_3.method_27();
             }
             A_3.method_26(true);
         }
     }
 }
Exemple #4
0
    private static void smethod_13(Class857 A_0)
    {
        int num = 6;

        for (int i = 0; i < A_0.method_9().Styles.Count; i++)
        {
            Style style4 = (Style)A_0.method_9().Styles[i];
            if ((style4.StyleIdentifier != StyleIdentifier.Normal) && (style4.StyleIdentifier != StyleIdentifier.DefaultParagraphFont))
            {
                Class91 class4 = A_0.method_13().method_2(style4.Name, null, false, false);
                if (class4 is Class93)
                {
                    Class93 class3 = class4 as Class93;
                    if (class3.method_8() != null)
                    {
                        Style style = A_0.method_9().Styles.method_12(class3.method_8(), false);
                        if (((style != null) && (style.StyleType == style4.StyleType)) && (class3.method_0() != class3.method_8()))
                        {
                            style4.BasedOnIstd = A_0.method_9().Styles.method_12(class3.method_8(), false).Istd;
                        }
                    }
                }
            }
        }
        for (int j = 0; j < A_0.method_13().method_8(); j++)
        {
            Class91 class5 = A_0.method_13().method_5(j);
            if ((class5 != null) && (class5 is Class101))
            {
                Class101 class6 = class5 as Class101;
                string   str    = (string)class6.method_23()[0];
                Class93  class2 = (Class93)A_0.method_13().method_2(str, BookmarkStart.b("堫䬭䠯䘱", num), false, false);
                if ((class2 != null) && (class2.method_8() != null))
                {
                    Style     style3 = A_0.method_9().Styles.method_12(class2.method_8(), false);
                    ListStyle style2 = A_0.method_9().ListStyles[class6.method_21().ListDefId];
                    if (style3.StyleIdentifier != StyleIdentifier.NoList)
                    {
                        style2.ListStyleIstd = style3.Istd;
                    }
                }
            }
        }
    }
Exemple #5
0
    internal static void smethod_0(Class857 A_0, bool A_1)
    {
        Class101 class2 = new Class101();

        class2.method_22(new ListStyle(A_0.method_9()));
        smethod_2(A_0, class2);
        smethod_3(A_0, class2);
        for (int i = 0; i < 9; i++)
        {
            Class91 class3 = A_0.method_13().method_3((string)class2.method_23()[i], null, A_0.method_20());
            if ((class3 != null) && (class3 is Class96))
            {
                CharacterFormat format = (class3 as Class96).method_13();
                if ((format != null) && (format.Count > 0))
                {
                    format.method_37(class2.method_21().Levels[i].CharacterFormat);
                }
            }
        }
        A_0.method_13().method_1(class2, A_0.method_20(), A_1);
    }
Exemple #6
0
    private static void smethod_4(Class857 A_0, Class101 A_1)
    {
        int       num       = 5;
        Class396  class2    = A_0.method_11();
        int       num2      = Class1041.smethod_11(class2.method_12(BookmarkStart.b("䜪䠬央吰弲", 5), BookmarkStart.b("ᨪ", 5))) - 1;
        ListStyle listStyle = A_1.method_21();
        ListLevel level     = new ListLevel(listStyle);

        listStyle.Levels.method_5(level);
        class2.method_18();
        if (ListLevel.smethod_0(num2))
        {
            string str = class2.method_1();
            if (str != null)
            {
                if (str != BookmarkStart.b("䜪䐬尮䔰Ḳ头制伸帺儼ሾ㉀㝂㱄⭆ⱈ晊⍌㩎㱐ㅒご╖", num))
                {
                    if (!(str == BookmarkStart.b("䜪䐬尮䔰Ḳ头制伸帺儼ሾ㉀㝂㱄⭆ⱈ晊⽌㩎㵐㽒ご⍖", num)))
                    {
                        if (str == BookmarkStart.b("䜪䐬尮䔰Ḳ头制伸帺儼ሾ㉀㝂㱄⭆ⱈ晊⑌≎ぐ㑒ご", num))
                        {
                            smethod_9(A_0, A_1, level);
                        }
                    }
                    else
                    {
                        smethod_8(A_0, A_1, level);
                    }
                }
                else
                {
                    smethod_5(A_0, A_1, level, BookmarkStart.b("䜪䐬尮䔰Ḳ头制伸帺儼ሾ㉀㝂㱄⭆ⱈ晊⍌㩎㱐ㅒご╖", num));
                }
            }
            if (A_1.method_13() != null)
            {
                A_1.method_13().method_37(level.CharacterFormat);
            }
        }
    }
Exemple #7
0
    internal static void smethod_0(Class857 A_0, DocumentObject A_1, Class101 A_2)
    {
        int      num    = 6;
        Class396 class2 = A_0.method_11();
        int      num2   = smethod_1(A_0);

        if (A_0.method_24() == -1)
        {
            switch (num2)
            {
            case 1:
                A_0.method_43(true);
                break;

            case 0:
                A_0.method_43(false);
                break;
            }
        }
        else
        {
            A_0.method_43(true);
        }
        A_0.method_25(A_0.method_24() + 1);
        string   str2     = A_0.method_16();
        Document document = A_0.method_9();

        if ((A_2 == null) || ((str2 != null) && (str2 != A_2.method_0())))
        {
            A_2 = A_0.method_13().method_3(str2, null, A_0.method_20()) as Class101;
            A_2.method_21().Name = str2;
            if (document.ListStyles.FindByName(str2) == null)
            {
                document.ListStyles.Add(A_2.method_21());
            }
            else if (num2 != 1)
            {
                Class12 class3 = null;
                string  str3   = BookmarkStart.b("怫䠭弯愱䀳伵吷弹挻", num) + Guid.NewGuid();
                if (document.ListOverrides.method_35(str3) == null)
                {
                    int count = document.ListOverrides.Count;
                    class3 = new Class12(document, count + 1)
                    {
                        Name = str3
                    };
                    document.ListOverrides.method_34(class3);
                    A_2.method_28(str3);
                }
            }
        }
        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)))
                    {
                        goto Label_018A;
                    }
                    smethod_2(A_0, A_1, A_2);
                }
                else
                {
                    smethod_3(A_0, A_1, BookmarkStart.b("䀫䜭䌯䘱ᤳ帵崷嬹堻嬽㈿", num), A_2);
                }
                goto Label_0190;
            }
Label_018A:
            class2.vmethod_1();
Label_0190:
            A_0.method_43(true);
        }
        A_0.method_25(A_0.method_24() - 1);
        if (A_0.method_24() == -1)
        {
            A_0.method_43(false);
        }
    }
Exemple #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);
 }