Ejemplo n.º 1
0
    protected override void vmethod_7()
    {
        RectangleF ef = base.class375_1.method_69();

        if (!base.method_4().method_28().method_13())
        {
            if (base.class774_0.method_11().X != base.class774_0.method_13().X)
            {
                base.class774_0.method_17();
            }
            ef.Height -= (float)base.class375_1.method_73().imethod_0().imethod_1().method_4();
            base.class774_0.method_18((double)ef.Bottom);
        }
        else
        {
            base.class774_0.method_15((double)base.method_4().method_28().method_15());
            base.method_4().method_28().method_14(false);
            base.method_4().method_28().method_16(0f);
            List <RectangleF> list = new List <RectangleF>();
            int num2  = 0;
            int count = base.class375_1.method_74().Count;
            while (num2 < count)
            {
                Class375 class2 = base.class375_1.method_74().method_4(num2);
                if ((class2.method_73() is DocPicture) && ((class2.method_73() as DocPicture).TextWrappingStyle == TextWrappingStyle.Inline))
                {
                    list.Add(class2.method_69());
                }
                num2++;
            }
            if (list.Count > 0)
            {
                RectangleF ef4 = new RectangleF();
                foreach (RectangleF ef5 in list)
                {
                    ef4 = (ef4.Bottom > ef5.Bottom) ? ef4 : ef5;
                }
                list = null;
                if (!ef4.IsEmpty)
                {
                    ef4.Height -= (float)base.class375_1.method_73().imethod_0().imethod_1().method_4();
                    Paragraph paragraph = (base.class375_1.method_73() is Paragraph) ? (base.class375_1.method_73() as Paragraph) : ((!(base.class375_1.method_73() is Class65) || !((base.class375_1.method_73() as Class65).method_2() is Paragraph)) ? null : ((base.class375_1.method_73() as Class65).method_2() as Paragraph));
                    if (paragraph != null)
                    {
                        float num = 0f;
                        if (base.method_4().method_1())
                        {
                            num = (float)base.method_4().method_346(base.method_4().method_376(paragraph.BreakCharacterFormat)).method_0();
                        }
                        else
                        {
                            num = (float)base.method_4().method_339(base.method_4().method_365(paragraph.BreakCharacterFormat)).method_0();
                        }
                        ef4.Height -= num;
                    }
                    base.class774_0.method_18((double)ef4.Bottom);
                }
            }
        }
    }
Ejemplo n.º 2
0
 public void imethod_1(Class196 A_0, Class375 A_1)
 {
     if (((this.interface21_0 is Field) && (this.method_0() != null)) && (this.method_0() != string.Empty))
     {
         string text = (this.interface21_0 as Field).Text;
         (this.interface21_0 as Field).Text = this.method_0();
         this.interface21_0.imethod_1(A_0, A_1);
         (this.interface21_0 as Field).Text = text;
     }
     else if (((A_1.method_73() as Class542).method_2() as TextRange).PreviousSibling is FieldMark)
     {
         string        str             = ((A_1.method_73() as Class542).method_2() as TextRange).Text;
         ParagraphBase previousSibling = ((A_1.method_73() as Class542).method_2() as TextRange).PreviousSibling as ParagraphBase;
         if (((previousSibling.PreviousSibling != null) && (previousSibling.PreviousSibling is Field)) && ((previousSibling.PreviousSibling as Field).Type == FieldType.FieldNumPages))
         {
             this.interface21_0.imethod_7(A_0, A_1, str);
         }
         else
         {
             this.interface21_0.imethod_7(A_0, A_1, this.method_0());
         }
     }
     else
     {
         this.interface21_0.imethod_7(A_0, A_1, this.method_0());
     }
 }
Ejemplo n.º 3
0
 void Interface1.imethod_1(Class196 A_0, Class375 A_1)
 {
     if ((A_1.method_73() is Class65) && (A_1.method_74().Count > 0))
     {
         Class375 class5 = A_1.method_74().method_4(0);
         if ((class5.method_73() is Class65) && (class5.method_74().Count > 0))
         {
             Class375 class3 = class5.method_74().method_4(class5.method_74().Count - 1);
             int      count  = class3.method_74().Count;
             if (((count > 0) && (class3.method_74().method_4(0).method_60() != HorizontalAlignment.Distributed)) && ((class3.method_74().method_4(count - 1).method_73() is Class542) || (class3.method_74().method_4(count - 1).method_73() is TextRange)))
             {
                 for (int i = 0; i < class3.method_74().Count; i++)
                 {
                     class3.method_74().method_4(i).method_55(true);
                 }
                 class3.method_74().method_4(0).method_70(new RectangleF(class3.method_74().method_4(0).method_69().X, class3.method_74().method_4(0).method_69().Y, class3.method_74().method_4(0).method_69().Width - Convert.ToSingle((float)(class3.method_74().method_4(0).method_50() * class3.method_74().method_4(0).method_62())), class3.method_74().method_4(0).method_69().Height));
                 for (int j = 1; j < class3.method_74().Count; j++)
                 {
                     Class375 class4 = class3.method_74().method_4(j - 1);
                     Class375 class2 = class3.method_74().method_4(j);
                     if (((!(class4.method_73() is Table) || ((class4.method_73() as Table).TextBoxFormat.TextWrappingStyle == TextWrappingStyle.Inline)) && (!(class2.method_73() is Table) || ((class2.method_73() as Table).TextBoxFormat.TextWrappingStyle == TextWrappingStyle.Inline))) && ((!(class4.method_73() is DocPicture) || ((class4.method_73() as DocPicture).TextWrappingStyle == TextWrappingStyle.Inline)) && (!(class2.method_73() is DocPicture) || ((class2.method_73() as DocPicture).TextWrappingStyle == TextWrappingStyle.Inline))))
                     {
                         float width = class2.method_69().Width - ((class2.method_58() != 0f) ? Convert.ToSingle((float)(class2.method_50() * class2.method_62())) : 0f);
                         class2.method_70(new RectangleF(class4.method_69().X + class4.method_69().Width, class2.method_69().Y, width, class2.method_69().Height));
                     }
                 }
             }
         }
     }
     this.method_2().imethod_1(A_0, A_1);
 }
Ejemplo n.º 4
0
 private static void smethod_0(Class196 A_0, Class375 A_1)
 {
     if ((A_1.method_73() is Class65) && (A_1.method_74().Count > 0))
     {
         Class375 class5 = A_1.method_74().method_4(0);
         if ((class5.method_73() is Class65) && (class5.method_74().Count > 0))
         {
             Class375 class2 = class5.method_74().method_4(class5.method_74().Count - 1);
             int      count  = class2.method_74().Count;
             if (((count > 0) && (class2.method_74().method_4(0).method_60() != HorizontalAlignment.Distributed)) && ((class2.method_74().method_4(count - 1).method_73() is Class542) || (class2.method_74().method_4(count - 1).method_73() is TextRange)))
             {
                 for (int i = 0; i < class2.method_74().Count; i++)
                 {
                     class2.method_74().method_4(i).method_55(true);
                 }
                 class2.method_74().method_4(0).method_70(new RectangleF(class2.method_74().method_4(0).method_69().X, class2.method_74().method_4(0).method_69().Y, class2.method_74().method_4(0).method_69().Width - Convert.ToSingle((float)(class2.method_74().method_4(0).method_50() * class2.method_74().method_4(0).method_62())), class2.method_74().method_4(0).method_69().Height));
                 for (int j = 1; j < class2.method_74().Count; j++)
                 {
                     Class375 class3 = class2.method_74().method_4(j - 1);
                     Class375 class4 = class2.method_74().method_4(j);
                     float    width  = class4.method_69().Width - ((class4.method_58() != 0f) ? Convert.ToSingle((float)(class4.method_50() * class4.method_62())) : 0f);
                     class4.method_70(new RectangleF(class3.method_69().X + class3.method_69().Width, class4.method_69().Y, width, class4.method_69().Height));
                 }
             }
         }
     }
 }
Ejemplo n.º 5
0
 void Interface1.Draw(Class196 dc, Class375 ltWidget)
 {
     if (!ltWidget.method_73().imethod_0().imethod_10())
     {
         string str = (ltWidget.method_64() != null) ? ltWidget.method_64() : this.Text;
         ((Interface21)this).imethod_7(dc, ltWidget, str);
     }
 }
Ejemplo n.º 6
0
    private bool method_92(Class615 A_0)
    {
        bool flag;

        using (List <Class375> .Enumerator enumerator = A_0.method_5().method_74().GetEnumerator())
        {
            while (enumerator.MoveNext())
            {
                Class375 current = enumerator.Current;
                if (current.method_73() is Footnote)
                {
                    goto Label_0034;
                }
            }
            return(false);

Label_0034:
            flag = true;
        }
        return(flag);
    }
Ejemplo n.º 7
0
    private void method_93(Class375 A_0)
    {
        RectangleF ef20;
        int        num   = 4;
        bool       flag  = false;
        bool       flag2 = false;
        int        count = A_0.method_74().Count;

        A_0.method_105(base.method_4());
        Class210 class2 = A_0.method_73().imethod_0() as Class210;

        if (((A_0.method_73() is Paragraph) && (class2 as Class213).method_105()) && ((A_0.method_73().imethod_0() as Class213).method_59() != float.MinValue))
        {
            A_0.method_27((class2 as Class213).method_59() + (A_0.method_73() as Paragraph).Format.FrameWidthEx);
        }
        else
        {
            A_0.method_27(base.class774_0.method_13().Right);
        }
        HorizontalAlignment alignment = (class2 != null) ? class2.method_15() : HorizontalAlignment.Left;
        double num4     = base.method_4().method_169(A_0);
        PointF location = A_0.method_69().Location;

        if ((count > 0) && (A_0.method_69().Location != A_0.method_74().method_4(0).method_69().Location))
        {
            using (List <Class375> .Enumerator enumerator = A_0.method_74().GetEnumerator())
            {
                Class375 current;
                while (enumerator.MoveNext())
                {
                    current = enumerator.Current;
                    if (((!(current.method_73() is Class7) || ((current.method_73() as Class7).TextBoxFormat.TextWrappingStyle == TextWrappingStyle.Inline)) && (!(current.method_73() is DocOleObject) || ((current.method_73() as DocOleObject).Interface49.get_OlePicture().TextWrappingStyle == TextWrappingStyle.Inline))) && (!(current.method_73() is DocPicture) || ((current.method_73() as DocPicture).TextWrappingStyle == TextWrappingStyle.Inline)))
                    {
                        goto Label_01AA;
                    }
                }
                goto Label_01CC;
Label_01AA:
                location = current.method_69().Location;
            }
        }
Label_01CC:
        ef20 = new RectangleF(location, new SizeF(A_0.method_69().Width + ((float)num4), A_0.method_69().Height));
        Class312 class4 = base.method_4().method_28().method_51(ef20, base.class375_0.method_73());

        if (((!class4.method_0().IsEmpty&& (class4.method_2().method_0() != TextWrappingStyle.Inline)) && ((class4.method_2().method_0() != TextWrappingStyle.Behind) && (class4.method_2().method_0() != TextWrappingStyle.InFrontOfText))) && (class4.method_0().X > A_0.method_69().X))
        {
            double num3  = num4;
            float  right = A_0.method_74().method_4(base.method_4().method_170(A_0.method_74(), A_0.method_74().method_0(), false)).method_69().Right;
            num4 = class4.method_0().X - A_0.method_69().Right;
            if (class4.method_0().X > right)
            {
                if (class2.method_85().Right >= class4.method_0().X)
                {
                    num4 = class4.method_0().X - right;
                }
                else
                {
                    num4 = num3;
                }
            }
        }
        Paragraph paragraph = this.method_96();

        if (((paragraph != null) && base.method_73(paragraph)) && (paragraph.Format.FrameWidth == 0))
        {
            num4 = 0.0;
        }
        if (num4 < 0.0)
        {
            num4 = 0.0;
        }
        CharacterSpacing compressPunctuation = CharacterSpacing.compressPunctuation;
        bool             flag3 = false;

        if (paragraph != null)
        {
            Section section = this.method_95(paragraph);
            if (section != null)
            {
                compressPunctuation = section.PageSetup.CharacterSpacingControl;
            }
            if ((((alignment == HorizontalAlignment.Justify) && (paragraph != null)) && ((A_0.method_64() != BookmarkStart.b("礩尫䈭夯䘱䀳匵尷", num)) && (A_0.method_64() != BookmarkStart.b("礩尫䈭夯䘱䀳匵尷甹娻爽⤿ⱁ⅃х㩇⽉ⵋ╍", num)))) && ((A_0.method_74().Count > 0) && !A_0.method_74().method_4(0).method_66()))
            {
                flag = true;
            }
            flag3 = !paragraph.Document.Settings.method_5().method_29();
            if (((alignment == HorizontalAlignment.Justify) && (A_0.method_64() == BookmarkStart.b("礩尫䈭夯䘱䀳匵尷甹娻爽⤿ⱁ⅃х㩇⽉ⵋ╍", num))) && !flag3)
            {
                flag2 = true;
            }
        }
        if (compressPunctuation != CharacterSpacing.doNotCompress)
        {
            this.method_94(A_0);
        }
        if (!this.method_97(paragraph) && ((!flag2 && !flag) || ((flag && paragraph.IsEndOfSection) && (!paragraph.IsEndOfDocument && flag3))))
        {
            switch (alignment)
            {
            case HorizontalAlignment.Center:
                A_0.method_106(base.method_4(), num4);
                break;

            case HorizontalAlignment.Right:
                A_0.method_107(base.method_4(), num4);
                break;

            case HorizontalAlignment.Justify:
            case HorizontalAlignment.Distributed:
            {
                int num6 = 0;
                A_0.method_109(base.method_4(), num4, ref num6);
                for (int i = num6; i < A_0.method_74().Count; i++)
                {
                    A_0.method_74().method_4(i).method_61(alignment);
                    A_0.method_74().method_4(i).method_70(new RectangleF(A_0.method_74().method_4(i).method_69().X, A_0.method_74().method_4(i).method_69().Y, A_0.method_74().method_4(i).method_69().Width, A_0.method_74().method_4(i).method_69().Height));
                    if (i < (A_0.method_74().Count - 1))
                    {
                        A_0.method_74().method_4(i + 1).method_70(new RectangleF(A_0.method_74().method_4(i + 1).method_69().Location.X, A_0.method_74().method_4(i + 1).method_69().Location.Y, A_0.method_74().method_4(i + 1).method_69().Width, A_0.method_74().method_4(i + 1).method_69().Height));
                    }
                }
                break;
            }
            }
        }
        if (((base.method_4().method_28().method_3().Count == 2) && base.method_4().method_28().method_1()) && (A_0.method_12() != float.MinValue))
        {
            base.method_4().method_28().method_2(false);
            float  num7  = Math.Max(base.method_4().method_28().method_3().method_4(0).method_69().Bottom, base.method_4().method_28().method_28().Margins.Top);
            float  num9  = A_0.method_12() - num7;
            double num10 = ((double)num9) % A_0.method_7().method_7();
            double num11 = 0.0;
            if (((int)num10) > 0)
            {
                if (((int)(((double)num9) / A_0.method_7().method_7())) == 0)
                {
                    num11 = A_0.method_7().method_7() - num9;
                    A_0.method_94(0.0, num11, true);
                }
                else if ((num10 >= A_0.method_7().method_0()) && (num10 <= A_0.method_7().method_7()))
                {
                    num11 = A_0.method_7().method_4();
                    A_0.method_94(0.0, num11, true);
                }
                else
                {
                    num11 = Math.Abs((double)(A_0.method_7().method_4() - num10));
                    A_0.method_94(0.0, num11, true);
                }
                base.class774_0.method_18((double)A_0.method_69().Bottom);
            }
        }
    }
Ejemplo n.º 8
0
 private void method_18(Class615 A_0)
 {
     if (A_0.method_15())
     {
         Interface1 interface3 = A_0.method_0();
         Class65    class4     = null;
         while (interface3 != null)
         {
             if (!(interface3 is Class65))
             {
                 break;
             }
             class4     = interface3 as Class65;
             interface3 = class4.method_0();
         }
         if (((class4 != null) && (interface3 is DocumentObject)) && interface3.imethod_0().imethod_14())
         {
             List <Interface1> list = new List <Interface1>();
             int        num2        = class4.method_3();
             Interface1 item        = interface3;
             for (Interface1 interface5 = (item as DocumentObject).PreviousSibling as Interface1; interface5 != null; interface5 = (interface5 as DocumentObject).PreviousSibling as Interface1)
             {
                 if (!interface5.imethod_0().imethod_20())
                 {
                     break;
                 }
                 num2--;
                 item = interface5;
                 list.Add(item);
             }
             if (num2 < class4.method_3())
             {
                 class4.method_4(num2);
                 class4.method_1(item);
                 Class375 class6 = null;
                 Class375 class5 = A_0.method_5();
                 while (true)
                 {
                     if ((class5 == null) || (class5.method_74().Count <= 0))
                     {
                         break;
                     }
                     if (((class5.method_73() is Paragraph) && (class5.method_74().Count > 0)) && (class5.method_74().method_4(0).method_73() is Paragraph))
                     {
                         class6 = class5;
                         break;
                     }
                     class5 = class5.method_74().method_4(class5.method_74().Count - 1);
                 }
                 if (class6 != null)
                 {
                     for (int i = class6.method_74().Count - 1; i >= 0; i--)
                     {
                         if (list.Count <= 0)
                         {
                             break;
                         }
                         Class375 class2 = class6.method_74().method_4(i);
                         for (int j = class2.method_74().Count - 1; j >= 0; j--)
                         {
                             Class375   class3     = class2.method_74().method_4(j);
                             Interface1 interface2 = class3.method_73();
                             interface2 = (interface2 is Class7) ? ((interface2 as Class7).TextBox as Interface1) : interface2;
                             if (list.Contains(interface2))
                             {
                                 class2.method_72().method_45(class3);
                                 class2.method_72().method_42(class3);
                                 class2.method_74().method_11(class3);
                                 list.Remove(interface2);
                             }
                             if (list.Count <= 0)
                             {
                                 break;
                             }
                         }
                     }
                 }
             }
             list = null;
         }
     }
 }