Пример #1
0
 void Interface1.Draw(Class196 dc, Class375 ltWidget)
 {
     if (base.ImageData != null)
     {
         dc.method_213(base.ImageData, ltWidget, true);
     }
 }
Пример #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());
     }
 }
Пример #3
0
 private void imethod_1(Class196 A_0, Class375 A_1)
 {
     if (this.method_32() != null)
     {
         this.method_32().DrawImpl(A_0, A_1);
     }
 }
Пример #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));
                 }
             }
         }
     }
 }
Пример #5
0
 private void method_31(Class196 A_0, Class375 A_1, BookmarkLevel A_2)
 {
     for (int i = 0; i < A_0.method_145().Count; i++)
     {
         string text = string.Empty;
         if (base.Owner is Paragraph)
         {
             text = (base.Owner as Paragraph).Text;
         }
         if (A_2 != null)
         {
             A_2.Text = text;
         }
         foreach (KeyValuePair <string, Class310> pair in A_0.method_145()[i])
         {
             if (pair.Key == this.Name)
             {
                 pair.Value.method_3(A_1.method_69());
                 pair.Value.method_5(A_0.method_16());
                 A_0.method_400(base.OwnerParagraph, pair.Value);
                 pair.Value.method_11(text);
                 if (A_2 != null)
                 {
                     A_2.SourcePageNumber = pair.Value.method_6();
                     A_2.SourceBounds     = pair.Value.method_0();
                 }
             }
         }
     }
 }
Пример #6
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);
                }
            }
        }
    }
Пример #7
0
    protected void method_21(PointF A_0, bool A_1)
    {
        if ((this.class375_0 == null) || ((this.class375_0 != null) && (this.class375_0.method_74().Count == 0)))
        {
            this.class375_0 = new Class375(this.interface1_1);
        }
        RectangleF ef = this.class375_0.method_69();

        A_0.X += (float)this.method_2().imethod_1().method_0();
        if (A_1)
        {
            if (this.method_2().imethod_42() != double.MinValue)
            {
                this.method_2().imethod_1().method_5(this.method_2().imethod_42());
            }
            A_0.Y += (float)this.method_2().imethod_1().method_4();
        }
        else
        {
            this.method_2().imethod_43(this.method_2().imethod_1().method_4());
            this.method_2().imethod_1().method_5(0.0);
        }
        ef.Location = A_0;
        this.class375_0.method_70(ef);
    }
Пример #8
0
 private void imethod_6(Class375 A_0)
 {
     if (this.delegate3_0 != null)
     {
         this.delegate3_0(this, A_0);
     }
 }
Пример #9
0
 void Interface1.Draw(Class196 dc, Class375 ltWidget)
 {
     if (this.method_248() == 0)
     {
         dc.method_199(this.TextRange, ltWidget, this.TextRange.Text);
     }
 }
Пример #10
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);
 }
Пример #11
0
 void Interface1.Draw(Class196 dc, Class375 ltWidget)
 {
     if ((!this.Name.StartsWith(BookmarkStart.b("礥", 0)) && (dc.method_149() != null)) && dc.method_149().Name.Equals(this.Name))
     {
         dc.method_149().IsDrawComplete = true;
         dc.method_150(dc.method_149().Owner);
     }
 }
Пример #12
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);
     }
 }
Пример #13
0
    protected void method_22(PointF A_0)
    {
        this.class375_0 = new Class375(this.interface1_1);
        RectangleF ef = this.class375_0.method_69();

        A_0.X      += (float)this.method_2().imethod_1().method_0();
        A_0.Y      += (float)this.method_2().imethod_1().method_4();
        ef.Location = A_0;
        this.class375_0.method_70(ef);
    }
Пример #14
0
 void IDisposable.Dispose()
 {
     if (this.docPicture_0 != null)
     {
         this.docPicture_0 = null;
     }
     if (this.class375_0 != null)
     {
         this.class375_0 = null;
     }
 }
        void Interface1.Draw(Class196 dc, Class375 ltWidget)
        {
            string dropDownValue = string.Empty;

            if (this.dropDownCollection_0.Count > 0)
            {
                dropDownValue = this.DropDownValue;
            }
            Class198 class2 = new Class198 {
                drawingTextDirection_0 = DrawingTextDirection.Horizontal
            };

            dc.method_233(dropDownValue, this.CharacterFormat, null, ltWidget.method_69(), ltWidget.method_69().Width, class2);
        }
Пример #16
0
        void Interface1.Draw(Class196 dc, Class375 ltWidget)
        {
            int num = 8;

            if (!this.Name.StartsWith(b("焭", 8)))
            {
                BookmarkLevel item = new BookmarkLevel {
                    Name             = this.Name,
                    IsPair           = false,
                    TargetBounds     = ltWidget.method_69(),
                    TargetPageNumber = dc.method_16()
                };
                if (dc.method_149() != null)
                {
                    if (!dc.method_149().IsDrawComplete&& !dc.method_149().ChildObjects.Contains(item))
                    {
                        dc.method_149().method_0(item);
                        dc.method_150(item);
                        BookmarkLevelEventArgs args2 = new BookmarkLevelEventArgs {
                            BookmarkLevel = item,
                            BookmarkStart = this
                        };
                        base.Document.method_21(args2);
                    }
                }
                else if (!dc.method_147().Contains(item))
                {
                    dc.method_147().Add(item);
                    dc.method_150(item);
                    BookmarkLevelEventArgs args = new BookmarkLevelEventArgs {
                        BookmarkLevel = item,
                        BookmarkStart = this
                    };
                    base.Document.method_21(args);
                }
                this.method_31(dc, ltWidget, item);
            }
            else if (this.Name.ToLower().StartsWith(b("焭䐯崱圳", num)))
            {
                this.method_31(dc, ltWidget, null);
            }
        }
Пример #17
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);
    }
Пример #18
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;
                }
            }
        }
    }
Пример #19
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();
        }
    }
Пример #20
0
 public void method_3(Class375 A_0)
 {
     this.class375_0 = A_0;
 }
Пример #21
0
 void Interface21.Draw(Class196 dc, Class375 ltWidget, string text)
 {
     dc.method_199(this, ltWidget, text);
     this.DrawImpl(dc, ltWidget);
 }
Пример #22
0
 public void imethod_2(Class196 A_0, Class375 A_1)
 {
 }
Пример #23
0
 void Interface1.Draw(Class196 dc, Class375 ltWidget)
 {
     dc.method_201(this, ltWidget, (base.interface23_0 as Class209).method_15());
 }
Пример #24
0
 void Interface1.Draw(Class196 dc, Class375 ltWidget)
 {
     dc.vmethod_2(this, ltWidget);
 }
 public abstract void Visit(Class375 c);
 public override void Visit(Class375 c) { }
Пример #27
0
 void Interface1.Draw(Class196 dc, Class375 ltWidget)
 {
     this.DrawImpl(dc, ltWidget);
 }
Пример #28
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);
            }
        }
    }
Пример #29
0
 public void imethod_2(Class196 A_0, Class375 A_1)
 {
     throw new NotImplementedException();
 }
Пример #30
0
 private void imethod_2(Class196 A_0, Class375 A_1)
 {
 }
Пример #31
0
 void Interface1.DrawAfter(Class196 dc, Class375 layoutedWidget)
 {
 }
Пример #32
0
 internal virtual void DrawImpl(Class196 dc, Class375 ltWidget)
 {
 }