Пример #1
0
    private void method_16(Class196 A_0, RectangleF A_1, Interface18 A_2)
    {
        bool flag = false;
        int  num  = 0;

        A_1 = new RectangleF(new PointF(A_1.Location.X, A_1.Location.Y + 12f), new SizeF(A_1.Width, A_1.Height - 12f));
        foreach (Footnote footnote in A_0.method_127())
        {
            Class615 class2 = Class615.smethod_0(footnote.TextBody, this, A_1.Width);
            Class375 class3 = class2.vmethod_0(A_1);
            if (class2.method_15() || ((class2.method_1() == LayoutState.NotFitted) && (class2.method_0() != null)))
            {
                RectangleF ef;
                A_0.method_28().method_5().method_7(class3);
                A_2.imethod_1(out ef, out A_1, ref num, ref flag, true);
                A_1.Y += 12f;
                Interface3 interface2 = class2.method_0() as Interface3;
                class2 = Class615.smethod_0(interface2, this, A_1.Width);
                class3 = class2.vmethod_0(A_1);
            }
            A_0.method_28().method_5().method_7(class3);
            A_1 = class2.method_3().method_13();
        }
    }
Пример #2
0
        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));
        }