Exemple #1
0
    private void method_8(bool A_0)
    {
        int num = 6;
        FootEndnoteOptions options = A_0 ? this.class422_0.method_15().EndnoteOptions : this.class422_0.method_15().FootnoteOptions;

        this.class400_0.method_4(BookmarkStart.b("堫䬭䠯䘱ำ堵圷丹夻䴽洿⅁⭃⡅⹇⍉⭋㭍≏㍑⁓㽕㝗㑙", num));
        this.class400_0.method_40(BookmarkStart.b("堫䬭䠯䘱ำ堵圷丹夻ጽ⌿⹁╃㕅㭇", num), A_0 ? BookmarkStart.b("䤫䀭启就嬳䈵崷", num) : BookmarkStart.b("䨫䄭弯䘱娳夵䰷弹", num));
        this.class400_0.method_40(BookmarkStart.b("弫娭䤯帱儳వ嘷伹儻ጽ☿ⵁ㙃⭅⥇㹉", num), Class922.smethod_56(options.NumberFormat));
        if (options.StartNumber > 0)
        {
            this.class400_0.method_40(BookmarkStart.b("堫䬭䠯䘱ำ䔵䰷嬹主䨽洿㑁╃⩅㵇⽉", num), (options.StartNumber - 1).ToString());
        }
        this.class400_0.method_40(BookmarkStart.b("堫䬭䠯䘱ำ倵圷唹䠻倽⼿㙁⅃㕅敇㩉⍋㵍㥏♑㵓㥕㙗", num), Class922.smethod_30(options.Position));
        this.class400_0.method_40(BookmarkStart.b("堫䬭䠯䘱ำ䔵䰷嬹主䨽洿ⱁㅃ⭅⩇⽉㹋❍㹏㕑祓㝕ⱗ", num), Class922.smethod_23(options.RestartRule));
        this.method_9(BookmarkStart.b("堫䬭䠯䘱ำ唵儷丹崻䨽⤿ⵁ⩃歅㭇㹉㕋≍㕏网㩓㝕㕗㽙", num), A_0 ? StyleIdentifier.EndnoteReference : StyleIdentifier.FootnoteReference);
        this.method_9(BookmarkStart.b("堫䬭䠯䘱ำ唵儷丹崻䨽⤿ⵁ⩃歅⩇╉⡋㝍絏⅑⁓⽕㑗㽙煛そşཡţ", num), A_0 ? StyleIdentifier.EndnoteText : StyleIdentifier.FootnoteText);
        this.class400_0.method_6(BookmarkStart.b("堫䬭䠯䘱ำ堵圷丹夻䴽洿⅁⭃⡅⹇⍉⭋㭍≏㍑⁓㽕㝗㑙", num));
    }
        SizeF Interface2.Measure(Class196 dc)
        {
            SizeF empty = SizeF.Empty;

            if (!dc.method_127().Contains(this) && (this.FootnoteType == Spire.Doc.FootnoteType.Endnote))
            {
                dc.method_127().Add(this);
            }
            if (!this.IsAutoNumbered)
            {
                return(empty);
            }
            string  str     = string.Empty;
            Section section = base.method_2();

            if (section == null)
            {
                return(empty);
            }
            FootEndnoteOptions endnoteOptions = null;

            if (this.FootnoteType == Spire.Doc.FootnoteType.Endnote)
            {
                endnoteOptions = section.EndnoteOptions;
                endnoteOptions.ApplyBase(base.m_doc.EndnoteOptions);
            }
            else
            {
                endnoteOptions = section.FootnoteOptions;
                endnoteOptions.ApplyBase(base.m_doc.FootnoteOptions);
            }
            if (!(((Interface1)this).imethod_0() as Class205).method_5())
            {
                if (this.FootnoteType == Spire.Doc.FootnoteType.Footnote)
                {
                    if (endnoteOptions.RestartRule != FootnoteRestartRule.RestartPage)
                    {
                        Class500 class1 = dc.method_28();
                        class1.method_7(class1.method_6() + 1);
                    }
                    else
                    {
                        dc.method_28().method_7(dc.method_28().method_4().Count + 1);
                    }
                    str = ListLevel.smethod_2(dc.method_28().method_6(), endnoteOptions.NumberFormat);
                }
                else
                {
                    if (endnoteOptions.RestartRule != FootnoteRestartRule.DoNotRestart)
                    {
                        Class500 class2 = dc.method_28();
                        class2.method_12(class2.method_11() + 1);
                    }
                    else
                    {
                        dc.method_28().method_12(dc.method_127().Count);
                    }
                    str = ListLevel.smethod_2(dc.method_28().method_11(), endnoteOptions.NumberFormat);
                }
                (base.interface23_0 as Class209).method_16(str);
            }
            else
            {
                str = (base.interface23_0 as Class209).method_15();
            }
            return(dc.method_322(str, this.MarkerCharacterFormat));
        }
Exemple #3
0
 internal Class907(Document A_0)
 {
     this.document_0           = A_0;
     this.footEndnoteOptions_0 = new FootEndnoteOptions(this.document_0, true);
     this.viewSetup_0          = new ViewSetup(this.document_0);
 }
Exemple #4
0
    private static void smethod_6(Class857 A_0)
    {
        int      num    = 4;
        Class396 class2 = A_0.method_11();
        string   str    = class2.method_12(BookmarkStart.b("䐩䌫娭唯ἱ圳娵夷䤹伻", 4), "");

        if (str != "")
        {
            bool flag;
            FootEndnoteOptions options = (flag = str == BookmarkStart.b("伩䈫䨭帯崱䀳匵", num)) ? A_0.method_9().EndnoteOptions : A_0.method_9().FootnoteOptions;
            options.method_53(FootnoteNumberFormat.None);
            options.method_56(0);
            class2.method_18();
            while (class2.method_19())
            {
                string key = class2.method_1();
                if (key != null)
                {
                    int num2;
                    if (Class1160.dictionary_148 == null)
                    {
                        Dictionary <string, int> dictionary1 = new Dictionary <string, int>(13);
                        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);
                        Class1160.dictionary_148 = dictionary1;
                    }
                    if (Class1160.dictionary_148.TryGetValue(key, out num2))
                    {
                        switch (num2)
                        {
                        case 0:
                            smethod_7(A_0, class2.method_3(), flag, false);
                            break;

                        case 1:
                            smethod_7(A_0, class2.method_3(), flag, true);
                            break;

                        case 2:
                            options.method_56(class2.method_4() + 1);
                            break;

                        case 3:
                            options.method_54(Class922.smethod_29(class2.method_3()));
                            break;

                        case 4:
                            options.method_53(Class922.smethod_59(class2.method_3()));
                            break;

                        case 5:
                            options.method_55(Class922.smethod_24(class2.method_3()));
                            break;
                        }
                    }
                }
            }
        }
    }