Exemplo n.º 1
0
        protected override void CreateLayoutInfo()
        {
            base.interface23_0 = new Class205(ChildrenLayoutDirection.Horizontal);
            base.interface23_0.imethod_39(this.Format.AllowOverlap);
            if (this.Format.TextWrappingStyle != TextWrappingStyle.Inline)
            {
                base.interface23_0.imethod_13(true);
            }
            TextWrappingStyle textWrappingStyle = this.Format.TextWrappingStyle;

            if (textWrappingStyle != TextWrappingStyle.Inline)
            {
                if ((textWrappingStyle != TextWrappingStyle.InFrontOfText) && (textWrappingStyle != TextWrappingStyle.Behind))
                {
                    base.interface23_0.imethod_19(true);
                    base.interface23_0.imethod_17(false);
                }
                else
                {
                    base.interface23_0.imethod_21(true);
                    base.interface23_0.imethod_17(false);
                }
            }
            else
            {
                base.interface23_0.imethod_15(true);
            }
        }
Exemplo n.º 2
0
    internal Class347(ShapeBase A_0)
    {
        this.int_1  = A_0.Id;
        this.bool_0 = false;
        this.bool_1 = false;
        Class265          class2         = Class265.smethod_3(A_0);
        TextWrappingStyle shapeAttribute = (TextWrappingStyle)A_0.GetShapeAttribute(0x1001);

        if (shapeAttribute != TextWrappingStyle.Inline)
        {
            this.horizontalOrigin_0 = A_0.HorizontalOrigin;
            this.verticalOrigin_0   = A_0.VerticalOrigin;
            if (this.horizontalOrigin_0 > HorizontalOrigin.Column)
            {
                this.horizontalOrigin_0 = HorizontalOrigin.Column;
            }
            if (this.verticalOrigin_0 > VerticalOrigin.Paragraph)
            {
                this.verticalOrigin_0 = VerticalOrigin.Paragraph;
            }
            this.textWrappingStyle_0 = (shapeAttribute == TextWrappingStyle.Behind) ? TextWrappingStyle.InFrontOfText : shapeAttribute;
            this.textWrappingType_0  = A_0.TextWrappingType;
            this.bool_2 = A_0.BehindText;
            this.bool_3 = A_0.AnchorLocked;
        }
        else
        {
            class2.double_0          = 0.0;
            class2.double_1          = 0.0;
            this.horizontalOrigin_0  = HorizontalOrigin.Column;
            this.verticalOrigin_0    = VerticalOrigin.Paragraph;
            this.textWrappingStyle_0 = TextWrappingStyle.InFrontOfText;
            this.textWrappingType_0  = TextWrappingType.Both;
            this.bool_2 = false;
            this.bool_3 = true;
        }
        this.int_2 = Class969.smethod_31(class2.double_0);
        this.int_3 = Class969.smethod_31(class2.double_1);
        this.int_4 = Class969.smethod_31(class2.double_0 + class2.double_2);
        this.int_5 = Class969.smethod_31(class2.double_1 + class2.double_3);
        this.int_6 = 0;
    }
Exemplo n.º 3
0
 private void method_18(ShapeBase A_0)
 {
     if (A_0.IsTopLevel)
     {
         this.method_19(A_0);
     }
     if (A_0.IsOle)
     {
         ShapeObject obj2 = (ShapeObject)A_0;
         this.method_6(obj2);
         Paragraph paragraph = new Paragraph(A_0.Document);
         this.class423_0.vmethod_8(paragraph);
         TextWrappingStyle textWrappingStyle = obj2.TextWrappingStyle;
         obj2.TextWrappingStyle = TextWrappingStyle.Inline;
         this.method_15(obj2);
         obj2.TextWrappingStyle = textWrappingStyle;
         this.class423_0.vmethod_9(paragraph);
         this.method_7(obj2);
     }
 }
Exemplo n.º 4
0
        public static TextWrappingStyle String2TextWrappingStyle(string styleStr)
        {
            styleStr = styleStr.ToLower();
            TextWrappingStyle style = TextWrappingStyle.InFrontOfText;

            switch (styleStr)
            {
            case "behind": return(TextWrappingStyle.Behind);

            case "infrontoftext": return(TextWrappingStyle.InFrontOfText);

            case "inline": return(TextWrappingStyle.Inline);

            case "right": return(TextWrappingStyle.Square);

            case "through": return(TextWrappingStyle.Through);

            case "tight": return(TextWrappingStyle.Tight);

            case "topandbottom": return(TextWrappingStyle.TopAndBottom);
            }
            return(style);
        }
Exemplo n.º 5
0
    internal Class347(BinaryReader A_0)
    {
        this.int_1 = A_0.ReadInt32();
        this.int_2 = A_0.ReadInt32();
        this.int_3 = A_0.ReadInt32();
        this.int_4 = A_0.ReadInt32();
        this.int_5 = A_0.ReadInt32();
        int num = A_0.ReadUInt16();

        this.bool_0              = (num & 1) != 0;
        this.horizontalOrigin_0  = (HorizontalOrigin)((num & 6) >> 1);
        this.verticalOrigin_0    = (VerticalOrigin)((num & 0x18) >> 3);
        this.textWrappingStyle_0 = (TextWrappingStyle)((num & 480) >> 5);
        this.textWrappingType_0  = (TextWrappingType)((num & 0x1e00) >> 9);
        this.bool_1              = (num & 0x2000) != 0;
        this.bool_2              = (num & 0x4000) != 0;
        this.bool_3              = (num & 0x8000) != 0;
        if (this.bool_2 && (this.textWrappingStyle_0 == TextWrappingStyle.InFrontOfText))
        {
            this.textWrappingStyle_0 = TextWrappingStyle.Behind;
        }
        this.int_6 = A_0.ReadInt32();
    }
Exemplo n.º 6
0
    internal void method_0(ShapeBase A_0, bool A_1)
    {
        Class265.smethod_1(A_0, (double)this.int_2, (double)this.int_4, (double)this.int_3, (double)this.int_5);
        Class43 shapePr = A_0.ShapePr;

        smethod_0(shapePr, 0x1002, this.textWrappingType_0);
        smethod_0(shapePr, 0x1003, this.bool_3);
        smethod_0(shapePr, 0x3ba, this.bool_2);
        if (!shapePr.method_47() && (this.textWrappingStyle_0 == TextWrappingStyle.Behind))
        {
            this.textWrappingStyle_0 = TextWrappingStyle.InFrontOfText;
        }
        if (shapePr.method_47() && (this.textWrappingStyle_0 == TextWrappingStyle.InFrontOfText))
        {
            this.textWrappingStyle_0 = TextWrappingStyle.Behind;
        }
        smethod_0(shapePr, 0x1001, this.textWrappingStyle_0);
        if (!A_1)
        {
            smethod_0(shapePr, 0x390, this.horizontalOrigin_0);
            smethod_0(shapePr, 0x392, this.verticalOrigin_0);
        }
    }
Exemplo n.º 7
0
        public void AddImageToParagraph(Paragraph paragraph, Bitmap image, float height, float width, TextWrappingStyle textWrappingStyle)
        {
            var picture = CreateImage(paragraph, image);

            picture.Height            = height;
            picture.Width             = width;
            picture.VerticalPosition  = picture.VerticalPosition + 45;
            picture.TextWrappingStyle = textWrappingStyle;
        }
Exemplo n.º 8
0
 public void method_1(TextWrappingStyle A_0)
 {
     this.textWrappingStyle_0 = A_0;
 }
Exemplo n.º 9
0
 internal static string smethod_72(TextWrappingStyle A_0)
 {
     return((string)Class791.smethod_3(hashtable_61, A_0, ""));
 }