Example #1
0
    private Class673 method_1(DocumentObject A_0)
    {
        if (A_0.DocumentObjectType == DocumentObjectType.Shape)
        {
            return(this.method_1(A_0.ParentObject));
        }
        ShapeGroup group = (A_0.DocumentObjectType == DocumentObjectType.ShapeGroup) ? ((ShapeGroup)A_0) : null;

        if (group == null)
        {
            return(Class673.smethod_0());
        }
        DocumentObject parentObject = group.ParentObject;
        Class673       class2       = Class673.smethod_0();

        if ((parentObject != null) && (parentObject.DocumentObjectType == DocumentObjectType.ShapeGroup))
        {
            class2 = this.method_1(parentObject);
        }
        SizeF size = group.Size;
        spr➂  r➂   = Class316.smethod_9(group, size, false);

        r➂.ᜀ(class2.method_0(), MatrixOrder.Append);
        Class316.smethod_9(group, size, true).ᜀ(class2.method_0(), MatrixOrder.Append);
        SizeF ef2    = Class316.smethod_0(group, class2.method_1(), class2.method_2());
        float width  = ef2.Width;
        float height = ef2.Height;
        float num3   = (size.Width / ((float)group.CoordSizeWidth)) * width;
        float num4   = (size.Height / ((float)group.CoordSizeHeight)) * height;

        return(new Class673(r➂, num3, num4, ((float)group.Rotation) + class2.method_3()));
    }
Example #2
0
    internal static RectangleF smethod_0(Class672 A_0, float A_1)
    {
        RectangleF  ef           = A_0.method_30();
        Class316    class2       = A_0.method_8();
        ShapeObject obj2         = A_0.method_28();
        float       strokeWeight = (float)obj2.StrokeWeight;

        if ((strokeWeight <= 1f) || !obj2.Stroked)
        {
            strokeWeight = 0f;
        }
        float num2            = strokeWeight * 0.5f;
        float x               = ef.X;
        float y               = ef.Y;
        float width           = ef.Width;
        float height          = ef.Height;
        float num7            = x + width;
        float num8            = y + height;
        float num9            = A_0.method_33().Width;
        float num10           = A_0.method_33().Height;
        float num11           = ((float)obj2.TextBox.method_0()) + num2;
        float num12           = ((float)obj2.TextBox.method_4()) + num2;
        float num13           = ((float)obj2.TextBox.method_2()) + num2;
        float num14           = ((float)obj2.TextBox.method_6()) + num2;
        float coordSizeWidth  = obj2.CoordSizeWidth;
        float coordSizeHeight = obj2.CoordSizeHeight;
        float num17           = (num9 - num11) - num13;
        float num18           = (num10 - num12) - num14;
        float num19           = x / coordSizeWidth;
        float num20           = num7 / coordSizeWidth;
        float num21           = y / coordSizeHeight;
        float num22           = num8 / coordSizeHeight;
        float num23           = (num17 * num19) + num11;
        float num24           = (num17 * num20) + num11;
        float num25           = (num18 * num21) + num12;
        float num26           = (num18 * num22) + num12;
        float num28           = (num9 == 0f) ? 1f : (coordSizeWidth / num9);
        float num27           = (num10 == 0f) ? 1f : (coordSizeHeight / num10);

        x    = (num23 * num28) + num2;
        num7 = (num24 * num28) + num2;
        y    = (num25 * num27) - num2;
        num8 = (num26 * num27) - num2;
        PointF[] tfArray2 = new PointF[] { new PointF(x, y), new PointF(num7, num8) };
        class2.method_1(tfArray2, true);
        width  = tfArray2[1].X - tfArray2[0].X;
        height = tfArray2[1].Y - tfArray2[0].Y;
        SizeF  size     = smethod_3(obj2, width, height, A_1);
        PointF location = tfArray2[0];

        if (Class316.smethod_1(obj2))
        {
            float num29 = (height - width) * 0.5f;
            location = new PointF(location.X - num29, location.Y + num29);
        }
        return(new RectangleF(location, size));
    }
Example #3
0
        // Token: 0x0600299B RID: 10651 RVA: 0x0009F9A0 File Offset: 0x0009DBA0
        public static void smethod_2(MouseButtons button)
        {
            Class316 @class = new Class316();

            if (!Class365.smethod_0(@class.method_7(button)))
            {
                Enum129 dwFlags = button.smethod_0(false);
                Class265.mouse_event(dwFlags, 0U, 0U, 0U, IntPtr.Zero);
            }
        }
Example #4
0
    private static SizeF smethod_3(ShapeObject A_0, float A_1, float A_2, float A_3)
    {
        float width  = A_1;
        float height = A_2;

        if (!(A_3 == 0f) ^ Class316.smethod_1(A_0))
        {
            width  = A_2;
            height = A_1;
        }
        return(new SizeF(width, height));
    }
Example #5
0
 // Token: 0x0600299C RID: 10652 RVA: 0x0009F9D8 File Offset: 0x0009DBD8
 public static void smethod_3(Point p)
 {
     Cursor.Position = p;
     if (!Class265.SetCursorPos(p.X, p.Y))
     {
         new Win32Exception().smethod_0();
         Class316 @class = new Class316();
         Point    p2     = Class410.smethod_13(p);
         if (!Class365.smethod_0(@class.method_5(p2)))
         {
             Class265.mouse_event(Enum129.flag_0 | Enum129.flag_11, (uint)p2.X, (uint)p2.Y, 0U, IntPtr.Zero);
         }
     }
 }
Example #6
0
 internal Class672(Class672 A_0, Class679[] A_1)
 {
     this.rectangleF_0  = RectangleF.Empty;
     this.pointF_1      = PointF.Empty;
     this.sizeF_0       = SizeF.Empty;
     this.sizeF_1       = SizeF.Empty;
     this.class724_0    = A_0.class724_0;
     this.sprℭ_0        = A_0.sprℭ_0;
     this.shapeObject_0 = A_0.method_28();
     this.class316_0    = A_0.class316_0;
     this.sizeF_0       = A_0.sizeF_0;
     this.sizeF_1       = A_0.sizeF_1;
     this.spr➓_0        = new spr➓();
     Class889.smethod_0(this);
     this.class679_0 = A_1;
 }
Example #7
0
 private void method_15(spr➓ A_0, ShapeObject A_1, Class673 A_2, Class1021 A_3)
 {
     if (A_1.HasImage)
     {
         spr➓ r➓ = new spr➓();
         r➓.ᜀ(Class316.smethod_8(A_1, A_2));
         DocPicture imageData = A_1.ImageData;
         byte[]     buffer    = smethod_3(A_1) ? smethod_4(A_1) : Class1022.smethod_5(imageData);
         sprἣ       sprἣ      = new sprἣ(PointF.Empty, this.class672_0.method_32(), buffer, new sprᤘ((double)imageData.CropFromLeft, (double)imageData.CropFromRight, (double)imageData.CropFromTop, (double)imageData.CropFromBottom), smethod_6(imageData));
         smethod_5(A_1, sprἣ);
         r➓.ᜁ(sprἣ);
         A_0.ᜁ(r➓);
         if (A_3 != null)
         {
             A_3.method_1(buffer, sprἣ.ᜂ());
         }
     }
 }
Example #8
0
    internal static spr᧢ smethod_15(VMLFill A_0, byte[] A_1, Class316 A_2)
    {
        spr⍂ r⍂;
        spr❯ r❯;

        if (A_1 == null)
        {
            A_1 = A_0.ImageBytes;
        }
        if (A_1 == null)
        {
            return(smethod_1(sprⓚ.ᜀ(A_0.ColorInternal), A_0.Opacity));
        }
        if (!A_0.Tiled)
        {
            r⍂ = new spr⍂(A_1);
        }
        else
        {
            switch (A_0.Tile.flipOrientation_0)
            {
            case FlipOrientation.Horizontal:
                r⍂ = new spr⍂(A_1, WrapMode.TileFlipX);
                goto Label_007E;

            case FlipOrientation.Vertical:
                r⍂ = new spr⍂(A_1, WrapMode.TileFlipY);
                goto Label_007E;

            case FlipOrientation.Both:
                r⍂ = new spr⍂(A_1, WrapMode.TileFlipXY);
                goto Label_007E;
            }
            r⍂ = new spr⍂(A_1, WrapMode.Tile);
        }
Label_007E:
        r❯ = spr≨.᜚(A_1);
        r⍂.ᜀ(A_2.method_3(r❯, A_0.LockAspectRatio, A_0));
        return(r⍂);
    }
Example #9
0
 internal Class672(Class724 A_0, Class673 A_1, sprℭ A_2)
 {
     this.rectangleF_0  = RectangleF.Empty;
     this.pointF_1      = PointF.Empty;
     this.sizeF_0       = SizeF.Empty;
     this.sizeF_1       = SizeF.Empty;
     this.class724_0    = A_0;
     this.sprℭ_0        = A_2;
     this.shapeObject_0 = (ShapeObject)A_0.method_3();
     this.class316_0    = new Class316(this.shapeObject_0, A_0.method_4(), A_1);
     this.class316_1    = new Class316(this.shapeObject_0, A_0.method_4(), A_1, this.shapeObject_0.Owner is ShapeGroup);
     if (A_0.method_4().IsEmpty)
     {
         this.sizeF_0 = A_0.method_3().Size;
         this.sizeF_1 = A_0.method_3().SizeInPoints;
     }
     else
     {
         this.sizeF_0 = A_0.method_4();
         this.sizeF_1 = A_0.method_4();
     }
     this.spr➓_0 = new spr➓();
     Class889.smethod_0(this);
 }
Example #10
0
 // Token: 0x06002995 RID: 10645
 // RVA: 0x0001FF15 File Offset: 0x0001E115
 public bool method_0(Class316 class316_1)
 {
     return Vector2.DistanceSquared(class316_1.vector2_1, this.class316_0.vector2_1) < 100f;
 }
Example #11
0
 // Token: 0x060023D0 RID: 9168 RVA: 0x0000F65D File Offset: 0x0000D85D
 public static bool smethod_0(Class316 builder)
 {
     return(Class365.smethod_1(builder.method_0()));
 }
 public abstract void Visit(Class316 c);
 public override void Visit(Class316 c) { }