예제 #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);
    }
예제 #2
0
        // Token: 0x06002671 RID: 9841 RVA: 0x0008905C File Offset: 0x0008725C
        protected override void vmethod_2(BinaryReader reader, int version)
        {
            this.Docks = new List <Class108>();
            int num = reader.ReadInt32();

            if (version > 1)
            {
                for (int i = 0; i < num; i++)
                {
                    Class108 @class = new Class108(reader);
                    if (@class.PondCapture != null)
                    {
                        this.Docks.Add(@class);
                    }
                    else
                    {
                        @class.Dispose();
                    }
                }
            }
            else
            {
                for (int j = 0; j < num; j++)
                {
                    Class108 class2 = new Class108(reader);
                    class2.Dispose();
                }
                DialogBox.smethod_3(Class103.string_0, string.Format(Class103.string_1, num));
            }
            base.vmethod_2(reader, version);
        }
예제 #3
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);
    }
예제 #4
0
    private static HeaderFooterType smethod_1(Class108 A_0, string A_1)
    {
        int num = 7;

        if (A_1.StartsWith(BookmarkStart.b("䔬䨮倰圲倴䔶", 7)))
        {
            if (A_1.EndsWith(BookmarkStart.b(",䌮吰唲䄴", num)))
            {
                return(HeaderFooterType.HeaderEven);
            }
            if (Class567.smethod_16(A_0.method_6()))
            {
                return(HeaderFooterType.HeaderFirstPage);
            }
            return(HeaderFooterType.HeaderOdd);
        }
        if (A_1.EndsWith(BookmarkStart.b(",䌮吰唲䄴", num)))
        {
            return(HeaderFooterType.FooterEven);
        }
        if (Class567.smethod_16(A_0.method_6()))
        {
            return(HeaderFooterType.FooterFirstPage);
        }
        return(HeaderFooterType.FooterOdd);
    }
예제 #5
0
    internal static void smethod_2(Class108 A_0, Class108 A_1, HeaderFooterType A_2)
    {
        HeaderFooter footer = A_1.method_8().HeadersFooters[A_2];

        switch (A_2)
        {
        case HeaderFooterType.HeaderEven:
            A_0.method_8().HeadersFooters[HeaderFooterType.HeaderEven] = footer;
            return;

        case HeaderFooterType.HeaderOdd:
            A_0.method_8().HeadersFooters[HeaderFooterType.HeaderOdd] = footer;
            return;

        case HeaderFooterType.FooterEven:
            A_0.method_8().HeadersFooters[HeaderFooterType.FooterEven] = footer;
            return;

        case HeaderFooterType.FooterOdd:
            A_0.method_8().HeadersFooters[HeaderFooterType.FooterOdd] = footer;
            return;

        case HeaderFooterType.HeaderFirstPage:
            A_0.method_8().HeadersFooters[HeaderFooterType.HeaderFirstPage] = footer;
            return;

        case HeaderFooterType.FooterFirstPage:
            A_0.method_8().HeadersFooters[HeaderFooterType.FooterFirstPage] = footer;
            return;
        }
    }
예제 #6
0
        public static Task <string> SerializeObjectAsync(object value, Newtonsoft.Json.Formatting formatting, JsonSerializerSettings settings)
        {
            Class108 class2 = new Class108 {
                object_0                 = value,
                formatting_0             = formatting,
                jsonSerializerSettings_0 = settings
            };

            return(Task.Factory.StartNew <string>(new Func <string>(class2.method_0)));
        }
예제 #7
0
    internal static Class108 smethod_11(Class857 A_0, Class854 A_1, string A_2)
    {
        int      num    = 3;
        Class108 class2 = A_1.method_0(A_2);

        if (class2 != null)
        {
            return(class2);
        }
        return(A_1.method_0(BookmarkStart.b("稨弪䰬䄮唰刲䜴匶", num)));
    }
예제 #8
0
    private void method_1()
    {
        Class92 class2 = new Class92();

        class2.method_1(BookmarkStart.b("尫䌭/", 6));
        this.class89_0.method_1(class2, false, true);
        Class108 class3 = new Class108();

        class3.method_1(BookmarkStart.b("缫娭儯就倳圵䨷帹", 6));
        class3.method_5(class2.method_0());
        class3.method_9(new Section(this.document_0));
        this.class854_0.Add(class3);
    }
예제 #9
0
    internal static void smethod_1(Class857 A_0, string A_1, DocumentObject A_2, Class106 A_3)
    {
        int      num    = 0x10;
        Class396 class2 = A_0.method_11();

        while (class2.method_9(A_1))
        {
            A_0.method_17(class2.method_12(BookmarkStart.b("䔵䰷䌹倻嬽洿ⱁ╃⭅ⵇ", num), BookmarkStart.b("攵䰷嬹刻娽ℿぁ⁃", num)));
            Class108 class3 = smethod_10(A_0);
            A_2 = smethod_4(A_0, class3, A_2);
            if (!smethod_3(A_0, A_2, A_3, class3))
            {
                class2.vmethod_1();
            }
        }
    }
예제 #10
0
    private static void smethod_9(Class857 A_0, Class108 A_1, Section A_2)
    {
        Class92 class2 = A_0.method_13().method_2(A_1.method_4(), null, A_0.method_20(), true) as Class92;

        if (class2 != null)
        {
            if (class2.method_12() != null)
            {
                A_2.SectPr.method_50().Top += class2.method_12().method_8();
            }
            if (class2.method_14() != null)
            {
                A_2.SectPr.method_50().Bottom += class2.method_14().method_8();
            }
        }
    }
예제 #11
0
    // Token: 0x06000010 RID: 16 RVA: 0x000072AC File Offset: 0x000054AC
    public static string smethod_1(string string_0, string string_1, string string_2)
    {
        if (string_1.Contains(Class185.smethod_0(537692180)) && GForm3.string_0.Contains(Class185.smethod_0(537706090)))
        {
            return(GForm0.smethod_0(string_0, string_1, string_2));
        }
        if (!GForm1.gform7_0.Visible)
        {
            GForm1.gform1_0.Invoke(new MethodInvoker(GForm0.Class0.class0_0.method_0));
        }
        string text = Class108.smethod_0(16);
        ConcurrentDictionary <string, string> concurrentDictionary = new ConcurrentDictionary <string, string>();

        concurrentDictionary[Class185.smethod_0(537692629)] = string_0;
        concurrentDictionary[Class185.smethod_0(537692611)] = string_1;
        concurrentDictionary[Class185.smethod_0(537692656)] = string_2;
        concurrentDictionary[Class185.smethod_0(537692633)] = text;
        concurrentDictionary[Class185.smethod_0(537706414)] = Class185.smethod_0(537692590);
        concurrentDictionary[Class185.smethod_0(537692776)] = Class185.smethod_0(537692774);
        GForm0.list_0.Add(concurrentDictionary);
        string result;

        try
        {
            while (!GForm0.concurrentDictionary_0.ContainsKey(text))
            {
                Thread.Sleep(100);
            }
            result = GForm0.concurrentDictionary_0[text];
        }
        catch (ThreadAbortException)
        {
            GForm0.list_0.Remove(concurrentDictionary);
            if (concurrentDictionary.ContainsKey(Class185.smethod_0(537706450)))
            {
                GForm0.concurrentDictionary_1[concurrentDictionary[Class185.smethod_0(537706450)]] = true;
            }
            Thread.CurrentThread.Abort();
            result = string.Empty;
        }
        catch
        {
            result = string.Empty;
        }
        return(result);
    }
예제 #12
0
 internal static void smethod_1(Class854 A_0)
 {
     foreach (Class108 class2 in A_0)
     {
         if (Class567.smethod_16(class2.method_6()))
         {
             Class108 class3 = A_0.method_0(class2.method_6());
             if (class3 != null)
             {
                 smethod_2(class2, class3, HeaderFooterType.HeaderOdd);
                 smethod_2(class2, class3, HeaderFooterType.FooterOdd);
                 smethod_2(class2, class3, HeaderFooterType.HeaderEven);
                 smethod_2(class2, class3, HeaderFooterType.FooterEven);
                 class2.method_8().SectPr.method_59(true);
             }
         }
     }
 }
예제 #13
0
    private static bool smethod_7(Class857 A_0, Class108 A_1)
    {
        Class108 class2 = null;
        Class91  class3 = A_0.method_13().method_2(A_0.method_16(), null, A_0.method_20(), true);

        if (!(class3 is Class92))
        {
            class2 = smethod_11(A_0, A_0.method_14(), A_0.method_26());
        }
        bool flag  = ((class3 != null) && !(class3 is Class92)) && Class567.smethod_16(((Class93)class3).method_6());
        bool flag2 = (A_1.method_0() != A_0.method_26()) && (A_0.method_26() != null);

        if (!flag)
        {
            return(false);
        }
        return(((flag2 || A_0.method_34()) || ((class2 == null) || !A_1.method_8().SectPr.Equals(class2.method_8().SectPr))) || ((class3 is Class97) && ((Class97)class3).method_33()));
    }
예제 #14
0
    private static void smethod_6(Class857 A_0, Class108 A_1)
    {
        int      num    = 6;
        Class396 class2 = A_0.method_11();

        while (class2.method_9(BookmarkStart.b("䄫伭䌯䘱儳䐵ᔷ䨹崻夽┿", num)))
        {
            string str;
            if (((str = class2.method_1()) != null) && (((str == BookmarkStart.b("䐫䬭儯嘱儳䐵", num)) || (str == BookmarkStart.b("䨫䄭弯䘱儳䐵", num))) || ((str == BookmarkStart.b("䐫䬭儯嘱儳䐵ᔷ嘹夻堽㐿", num)) || (str == BookmarkStart.b("䨫䄭弯䘱儳䐵ᔷ嘹夻堽㐿", num)))))
            {
                Class575.smethod_0(A_0, A_1, class2.method_1());
            }
            else
            {
                class2.vmethod_1();
            }
        }
    }
예제 #15
0
    internal static void smethod_0(Class857 A_0)
    {
        Class108 class2 = new Class108();

        smethod_5(A_0, class2);
        Class92 class3 = A_0.method_13().method_2(class2.method_4(), null, A_0.method_20(), true) as Class92;

        if ((class3 != null) && (class3.method_4() != null))
        {
            class2.method_9(new Section(A_0.method_9()));
            smethod_1(class2.method_8(), class3.method_4());
        }
        else
        {
            class2.method_9(new Section(A_0.method_9()));
        }
        A_0.method_14().Add(class2);
        smethod_6(A_0, class2);
    }
예제 #16
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();
    }
예제 #17
0
    // Token: 0x06000159 RID: 345 RVA: 0x0000F5D8 File Offset: 0x0000D7D8
    public static Notification smethod_0(string string_1, string string_2, Notification.GEnum0 genum0_0, bool bool_1)
    {
        Notification.Class34 @class = new Notification.Class34();
        @class.genum0_0 = genum0_0;
        @class.string_0 = string_1;
        @class.string_1 = string_2;
        if (Notification.bool_0)
        {
            return(null);
        }
        string string_3 = Class108.smethod_17(10);

        Notification.string_0 = string_3;
        Notification.notification_0.Show();
        Notification.smethod_3(new Action(@class.method_0));
        if (bool_1)
        {
            Notification.smethod_1(string_3);
        }
        return(Notification.notification_0);
    }
예제 #18
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();
                }
            }
        }
    }
예제 #19
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);
    }
예제 #20
0
    private static void smethod_5(Class857 A_0, Class108 A_1)
    {
        int      num    = 2;
        Class396 class2 = A_0.method_11();

        while (class2.method_19())
        {
            string str;
            if (!Class857.smethod_8(class2, A_1) && ((str = class2.method_1()) != null))
            {
                if (!(str == BookmarkStart.b("堧䬩䬫䬭ᴯ帱唳伵圷伹䠻ጽ⸿⍁⥃⍅", num)))
                {
                    if (str == BookmarkStart.b("䘧伩含娭ᴯ䄱䀳伵吷弹ᄻ倽ℿ⽁⅃", num))
                    {
                        A_1.method_7(Class576.smethod_87(class2.method_3()));
                    }
                }
                else
                {
                    A_1.method_5(class2.method_3());
                }
            }
        }
    }
예제 #21
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);
    }
예제 #22
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);
 }
예제 #23
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);
    }
예제 #24
0
    private static bool smethod_3(Class857 A_0, DocumentObject A_1, Class106 A_2, Class108 A_3)
    {
        int      num    = 10;
        Class396 class2 = A_0.method_11();

        if (Class857.smethod_10(A_0, A_1, null, null))
        {
            return(true);
        }
        string key = class2.method_1();

        if (key != null)
        {
            int num2;
            if (Class1160.dictionary_108 == null)
            {
                Dictionary <string, int> dictionary1 = new Dictionary <string, int>(15);
                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);
                Class1160.dictionary_108 = dictionary1;
            }
            if (Class1160.dictionary_108.TryGetValue(key, out num2))
            {
                switch (num2)
                {
                case 0:
                case 1:
                    Class1099.smethod_1(A_0, class2.method_1(), A_1);
                    return(true);

                case 2:
                    Class530.smethod_0(A_0, A_1, null);
                    return(true);

                case 3:
                    Class90.smethod_1(A_0, A_1, A_2);
                    return(true);

                case 4:
                case 5:
                case 6:
                case 7:
                case 8:
                case 9:
                case 10:
                    return(Class246.smethod_0(A_0, A_1, A_3));

                case 11:
                    smethod_0(A_0, BookmarkStart.b("夯就倳匵䀷᜹䠻圽㐿⹁⅃", num), A_1);
                    return(true);

                case 12:
                    Class1098.smethod_0(A_0, A_3);
                    return(true);

                case 13:
                    Class1144.smethod_0(A_0, A_1, null, null);
                    return(true);

                case 14:
                    bool_0 = true;
                    return(true);
                }
            }
        }
        return(false);
    }
예제 #25
0
 internal static bool smethod_2(Class857 A_0, DocumentObject A_1, Class108 A_2)
 {
     return(smethod_3(A_0, A_1, null, A_2));
 }
        // Token: 0x06001D6E RID: 7534 RVA: 0x0005EB80 File Offset: 0x0005CD80
        public static bool smethod_6(Class142 toontownWindow, ManualResetEventSlim waitHandle, Class101 wayPointsSettings, Class108 dock, Class104 settings)
        {
            Struct56? @struct = Class269.smethod_0(toontownWindow, waitHandle, -1);

            if (@struct == null)
            {
                return(false);
            }
            if (@struct.Value.IsDock)
            {
                return(true);
            }
            Enum57 playground = toontownWindow.Playground;
            Dictionary <PointF, Enum99> points_dic;

            if (wayPointsSettings.WayPoints.ContainsKey(playground))
            {
                points_dic = wayPointsSettings.WayPoints[playground];
            }
            else
            {
                points_dic = null;
            }
            List <PointF> path = Class269.smethod_21(points_dic, @struct.Value.Location, dock.DockLocation);

            return(Class269.smethod_7(toontownWindow, waitHandle, path, settings));
        }
 public abstract void Visit(Class108 c);
 public override void Visit(Class108 c) { }
예제 #29
0
    internal static void smethod_0(Class857 A_0, Class108 A_1, string A_2)
    {
        int              num        = 6;
        Class92          class2     = A_0.method_13().method_2(A_1.method_4(), null, A_0.method_20(), true) as Class92;
        HeaderFooterType type       = smethod_1(A_1, A_2);
        HeaderFooter     evenHeader = null;

        switch (type)
        {
        case HeaderFooterType.HeaderEven:
            evenHeader = A_1.method_8().HeadersFooters.EvenHeader;
            break;

        case HeaderFooterType.HeaderOdd:
            evenHeader = A_1.method_8().HeadersFooters.OddHeader;
            break;

        case HeaderFooterType.FooterEven:
            evenHeader = A_1.method_8().HeadersFooters.EvenFooter;
            break;

        case HeaderFooterType.FooterOdd:
            evenHeader = A_1.method_8().HeadersFooters.OddFooter;
            break;

        case HeaderFooterType.HeaderFirstPage:
            evenHeader = A_1.method_8().HeadersFooters.FirstPageHeader;
            break;

        case HeaderFooterType.FooterFirstPage:
            evenHeader = A_1.method_8().HeadersFooters.FirstPageFooter;
            break;
        }
        Class17 class3 = null;

        if (class2 != null)
        {
            Class107 class4 = A_2.StartsWith(BookmarkStart.b("䐫䬭儯嘱儳䐵", num)) ? class2.method_12() : class2.method_14();
            if (class4 != null)
            {
                class3 = class4.method_4();
            }
            if (A_2.EndsWith(BookmarkStart.b("ī䈭唯吱䀳", num)))
            {
                A_0.method_9().Settings.bool_37 = true;
            }
            if (class3 != null)
            {
                class3.method_37(A_1.method_8().SectPr);
            }
            while (A_0.method_11().method_9(A_2))
            {
                string key = A_0.method_11().method_1();
                if (key != null)
                {
                    int num2;
                    if (Class1160.dictionary_109 == null)
                    {
                        Dictionary <string, int> dictionary1 = new Dictionary <string, int>(11);
                        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);
                        Class1160.dictionary_109 = dictionary1;
                    }
                    if (Class1160.dictionary_109.TryGetValue(key, out num2))
                    {
                        switch (num2)
                        {
                        case 0:
                        case 1:
                        {
                            Class1099.smethod_1(A_0, A_0.method_11().method_1(), evenHeader);
                            continue;
                        }

                        case 2:
                        {
                            Class530.smethod_0(A_0, evenHeader, null);
                            continue;
                        }

                        case 3:
                        {
                            Class90.smethod_0(A_0, evenHeader);
                            continue;
                        }

                        case 4:
                        case 5:
                        case 6:
                        case 7:
                        case 8:
                        case 9:
                        case 10:
                        {
                            if (!Class246.smethod_0(A_0, evenHeader, A_1))
                            {
                                A_0.method_11().vmethod_1();
                            }
                            continue;
                        }
                        }
                    }
                }
                A_0.method_11().vmethod_1();
            }
        }
    }