示例#1
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);
 }
示例#2
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));
                 }
             }
         }
     }
 }
示例#3
0
    private void method_94(Class375 A_0)
    {
        float num = 0f;

        A_0.method_82(null, base.method_4());
        for (int i = 0; i < A_0.method_74().Count; i++)
        {
            if (!A_0.method_74().method_4(i).method_79())
            {
                A_0.method_74().method_4(i).method_94((double)-num, 0.0, true);
                if (A_0.method_74().method_4(i).method_73() is TextRange)
                {
                    num += (A_0.method_74().method_4(i).method_73() as TextRange).method_30() / 2f;
                }
                else if (A_0.method_74().method_4(i).method_73() is Class542)
                {
                    num += (A_0.method_74().method_4(i).method_73() as Class542).method_4() / 2f;
                }
            }
        }
    }
示例#4
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);
            }
        }
    }
示例#5
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;
         }
     }
 }