Ejemplo n.º 1
0
    protected override void vmethod_10(Class615 A_0)
    {
        RectangleF ef     = base.class774_0.method_13();
        Class210   class2 = base.method_2() as Class210;
        bool       flag   = false;

        if (class2 != null)
        {
            flag = !(class2.method_19() == 0f);
        }
        if (base.class375_0.method_74().Count == 0)
        {
            if ((flag && (class2.method_13() < 0)) && !(A_0.method_8() is Class65))
            {
                ef.X     += class2.method_19();
                ef.Width -= class2.method_19();
            }
            if (class2.method_13() < 0)
            {
                ef.X     += class2.method_51();
                ef.Width -= class2.method_51();
            }
            if (class2.method_13() != -1)
            {
                if (flag && !(A_0.method_8() is Class65))
                {
                    ef.X     += class2.method_19() + class2.method_51();
                    ef.Width -= class2.method_19() + class2.method_51();
                }
                else if (!flag && !(A_0.method_8() is Class65))
                {
                    ef.X     += class2.method_51();
                    ef.Width -= class2.method_51();
                }
            }
            if ((A_0.method_8() is Class65) && ((A_0.method_8() as Class65).method_2() is Paragraph))
            {
                Paragraph paragraph = (A_0.method_8() as Class65).method_2() as Paragraph;
                int       count     = paragraph.WidgetCollection.Count;
                if ((count > 1) && (count != (A_0.method_8() as Class65).Interface3.imethod_3()))
                {
                    DocumentObject obj2 = paragraph.WidgetCollection[(count - 1) - (A_0.method_8() as Class65).Interface3.imethod_3()];
                    if ((obj2 is Break) && (((obj2 as Break).BreakType == BreakType.PageBreak) || ((obj2 as Break).BreakType == BreakType.ColumnBreak)))
                    {
                        ef.X     += class2.method_19() + class2.method_51();
                        ef.Width -= class2.method_19() + class2.method_51();
                    }
                }
            }
        }
        base.class375_1 = A_0.vmethod_0(ef);
        (base.interface30_0 as Class304).method_12(new Class206.Class215());
        (base.interface30_0 as Class304).method_14(0f);
    }
Ejemplo n.º 2
0
        internal float method_41(Class196 A_0, float A_1)
        {
            float num = 0f;

            if (base.Owner != null)
            {
                DocumentObject owner = base.Owner;
                while (!(owner is Section))
                {
                    if (((owner is Table) || (owner is Footnote)) || (owner.Owner == null))
                    {
                        break;
                    }
                    owner = owner.Owner;
                }
                if (owner is Section)
                {
                    Paragraph ownerParagraph = base.OwnerParagraph;
                    if (base.Owner is SDTInlineContent)
                    {
                        ownerParagraph = (base.Owner as SDTInlineContent).OwnerParagraph;
                    }
                    if (ownerParagraph.Format.IsFrame && (ownerParagraph.Format.FrameWidthRule == FrameSizeRule.Exact))
                    {
                        A_1 = ownerParagraph.Format.FrameWidthEx;
                    }
                    Class210 class2 = ((Interface1)ownerParagraph).imethod_0() as Class210;
                    return(A_1 - (((float)(class2.Interface22.imethod_1().method_0() + class2.Interface22.imethod_1().method_8())) + class2.method_51()));
                }
                if (owner is Table)
                {
                    return(A_0.method_394(this));
                }
                if (owner is Footnote)
                {
                    num = A_1;
                }
            }
            return(num);
        }