Ejemplo n.º 1
0
 // Token: 0x06002216 RID: 8726
 // RVA: 0x000C982C File Offset: 0x000C7A2C
 internal Class492(Class312 class312_1)
 {
     this.class312_0 = class312_1;
     this.double_3 = new double[class312_1.class297_0.class421_0.list_0.Count];
     this.double_2 = new double[class312_1.class297_0.class421_0.list_0.Count];
     for (int i = 0; i < class312_1.class297_0.class421_0.list_0.Count; i++)
     {
         this.double_3[i] = 0.0;
         this.double_2[i] = 0.0;
     }
 }
Ejemplo n.º 2
0
    int IComparable.CompareTo(object A_0)
    {
        int num = 0x12;

        if (!(A_0 is Class312))
        {
            throw new NotImplementedException(BookmarkStart.b("眷堹嘻ḽ⤿ㅁ摃⡅❇㹉汋⽍灏ő㱓㝕⡗㽙ṛㅝᕟౡcᕥ⥧ѩ࡫㩭ᕯੱsⅵ੷᭹౻๽ꞅ", num));
        }
        Class312 class2 = A_0 as Class312;

        if ((this.method_0().IsEmpty || class2.method_0().IsEmpty) || (this.method_24() < class2.method_24()))
        {
            return(-1);
        }
        return(this.method_24().CompareTo(class2.method_24()));
    }
 public abstract void Visit(Class312 c);
 public override void Visit(Class312 c) { }
Ejemplo n.º 5
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.º 6
0
 // Token: 0x06002303 RID: 8963
 // RVA: 0x0001BCDA File Offset: 0x00019EDA
 public void method_0(Class312 class312_0)
 {
     class312_0.int_3 = this.int_1;
     class312_0.int_9 = this.int_0;
 }
Ejemplo n.º 7
0
    private Class545 method_17(string A_0, float A_1)
    {
        int num = 13;

        if (A_0 == null)
        {
            throw new ArgumentNullException(BookmarkStart.b("弲尴夶尸", num));
        }
        A_0 = A_0.Replace(BookmarkStart.b("㨲", num), BookmarkStart.b("ጲᔴ᜶ᤸ", num));
        Class545 class3 = new Class545 {
            float_0 = this.method_14()
        };
        List <Struct11> list  = new List <Struct11>();
        float           width = this.sizeF_0.Width;
        float           num6  = this.method_20(A_0) + A_1;
        TextLineType    firstParagraphLine = TextLineType.FirstParagraphLine;
        bool            flag2    = true;
        bool            flag3    = false;
        PointF          location = this.method_0().method_128().method_13().Location;
        SizeF           size     = (this.sprᝪ_0 != null) ? ((SizeF)this.method_7(A_0.ToString(), this.sprᝪ_0)) : ((SizeF)this.method_6(A_0.ToString(), this.font_0));
        RectangleF      ef18     = new RectangleF(location, size);
        Class312        class5   = this.method_0().method_28().method_51(ef18, this.interface1_0);

        if (((width <= 0f) || (num6 <= width)) && ((width > 0f) && class5.method_0().IsEmpty))
        {
            this.method_18(class3, list, A_0, num6, TextLineType.NewLineBreak | firstParagraphLine);
        }
        else
        {
            StringBuilder builder  = new StringBuilder();
            StringBuilder builder2 = new StringBuilder();
            num6 = A_1;
            Class543 class4 = new Class543(A_0);
            string   str3   = class4.method_7();
            if ((str3.Length != class4.method_1()) && (str3 == BookmarkStart.b("ጲ", num)))
            {
                class4.method_3(class4.method_2() + 1);
                str3 = BookmarkStart.b("ጲ", num) + class4.method_7();
            }
            while (str3 != null)
            {
                int    num9;
                PointF tf;
                bool   flag = this.method_16(str3);
                int    num7 = 0;
                if (!flag)
                {
                    builder2.Append(str3);
                }
                else
                {
                    num9 = 0;
                    while (num9 < str3.Length)
                    {
                        builder2.Append(str3.Substring(num9, 1));
                        if (this.method_20(builder2.ToString()) > width)
                        {
                            goto Label_01FD;
                        }
                        num9++;
                    }
                }
                goto Label_0201;
Label_01FD:
                num7 = num9;
Label_0201:
                tf = this.method_0().method_128().method_13().Location;
                SizeF                 ef12        = (this.sprᝪ_0 != null) ? ((SizeF)this.method_7(builder2.ToString(), this.sprᝪ_0)) : ((SizeF)this.method_6(builder2.ToString(), this.font_0));
                RectangleF            ef2         = new RectangleF(tf, new SizeF(ef12.Width, ef12.Height));
                Class312              class2      = this.method_0().method_28().method_51(ef2, this.interface1_0);
                float                 num13       = ef2.Right + class2.method_0().Width;
                float                 num5        = this.method_20(builder2.ToString());
                LineBreaksPunctuation punctuation = Class203.smethod_0(builder2[builder2.Length - 1]);
                bool  flag4 = char.IsPunctuation(builder2[builder2.Length - 1]);
                float num11 = 0f;
                if (flag4)
                {
                    num11 = (this.sprᝪ_0 != null) ? ((float)this.method_7(BookmarkStart.b("ጲ", num), this.sprᝪ_0).Width) : ((float)this.method_6(BookmarkStart.b("ጲ", num), this.font_0).Width);
                }
                if ((((num5 - width) > 0.005) && ((punctuation != LineBreaksPunctuation.LineBreaksBefore) || ((num5 - width) > (num11 / 2f)))) || (((!class2.method_0().IsEmpty&& (class2.method_2().method_0() != TextWrappingStyle.Inline)) && ((class2.method_2().method_0() != TextWrappingStyle.InFrontOfText) && (class2.method_2().method_0() != TextWrappingStyle.Behind))) && (class2.method_2().method_0() != TextWrappingStyle.TopAndBottom)))
                {
                    if (((class2.method_2().method_0() != TextWrappingStyle.Inline) && (class2.method_2().method_0() != TextWrappingStyle.InFrontOfText)) && ((class2.method_2().method_0() != TextWrappingStyle.Behind) && (class2.method_2().method_0() != TextWrappingStyle.TopAndBottom)))
                    {
                        if (num13 < this.method_0().method_128().method_13().Right)
                        {
                            this.method_0().method_28().method_14(true);
                            float num14 = class2.method_0().Left + ((float)Math.Round((double)class2.method_0().Width, 6));
                            this.method_0().method_28().method_16(Math.Max(class2.method_0().Right, num14));
                        }
                        else if (((num13 > this.method_0().method_128().method_13().Right) && !this.bool_0) && ((ef2.Left < class2.method_0().Left) || (this.method_0().method_128().method_13().Left > class2.method_0().Left)))
                        {
                            builder.Append(BookmarkStart.b("ጲ", num));
                            break;
                        }
                    }
                    if (this.method_22() == StringTrimming.None)
                    {
                        break;
                    }
                    if ((builder2.Length == str3.Length) && !flag)
                    {
                        int length = A_0.Split(null).Length;
                        if ((this.method_22() == StringTrimming.Word) || (length == 1))
                        {
                            class3.string_0 = A_0.Substring(class4.method_2());
                            if (str3.StartsWith(BookmarkStart.b("ጲ", num)))
                            {
                                builder.Append(A_0.Substring(0, class4.method_2()));
                            }
                            break;
                        }
                        flag2           = false;
                        builder2.Length = 0;
                        str3            = class4.method_11().ToString();
                    }
                    else
                    {
                        if ((this.method_22() != StringTrimming.Character) || !flag2)
                        {
                            string str4 = builder.ToString();
                            if (flag && (num7 > 0))
                            {
                                builder2.Remove(builder2.Length - 1, 1);
                                str4    = builder2.ToString();
                                builder = builder2;
                                class4.method_3(builder2.Length);
                            }
                            else if ((flag && (str4.Length == 0)) && (num7 == 0))
                            {
                                class4.method_3(0);
                                class3.string_0 = class4.method_13();
                                flag3           = true;
                            }
                            break;
                        }
                        flag2           = false;
                        builder2.Length = 0;
                        builder2.Append(builder.ToString());
                        str3 = class4.method_11().ToString();
                    }
                }
                else
                {
                    if ((flag && ((num7 > 0) || (builder2.Length == 1))) && ((punctuation == LineBreaksPunctuation.LineBreaksBefore) && ((num5 - width) <= (num11 / 2f))))
                    {
                        builder.Append(builder2);
                        num6  = num5;
                        flag2 = false;
                        class4.method_3(builder2.Length - 1);
                    }
                    else
                    {
                        builder.Append(str3);
                        num6 = num5;
                    }
                    if (flag2)
                    {
                        class4.method_6();
                        str3 = class4.method_7();
                    }
                    else
                    {
                        class4.method_8();
                        str3 = class4.method_11().ToString();
                    }
                }
            }
            if ((builder.Length > 0) || this.method_0().method_28().method_13())
            {
                string str  = builder.ToString();
                int    num2 = str.Length;
                int    num3 = Class203.smethod_4(A_0, num2);
                if (num3 != 0)
                {
                    string str2  = A_0.Substring(0, num2 + num3);
                    float  num12 = this.method_0().method_1() ? this.method_0().method_309(str2, this.sprᝪ_0, null).Width : this.method_0().method_316(str2, this.font_0, null).Width;
                    if (num12 <= width)
                    {
                        str = str2;
                        class4.method_3(class4.method_2() + num3);
                    }
                }
                while (class4.method_11() == ' ')
                {
                    class4.method_3(class4.method_2() + 1);
                }
                this.method_18(class3, list, str, num6, TextLineType.LastParagraphLine | TextLineType.NewLineBreak);
                if (!flag3)
                {
                    class3.string_0 = class4.method_13();
                }
            }
            class4.method_12();
        }
        class3.struct11_0 = list.ToArray();
        list.Clear();
        return(class3);
    }
Ejemplo n.º 8
0
 // Token: 0x0600224A RID: 8778
 // RVA: 0x0001B7FF File Offset: 0x000199FF
 public void method_0(Class312 class312_0)
 {
     class312_0.method_5(this.string_0);
 }
Ejemplo n.º 9
0
 // Token: 0x06002247 RID: 8775
 // RVA: 0x0001B7EA File Offset: 0x000199EA
 public bool method_1(Class312 class312_0)
 {
     return class312_0.EndTime == this.class322_0.EndTime;
 }