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())); }
private void method_12(Class724 A_0, Class673 A_1, Class69 A_2, bool A_3) { spr➓ r➓ = A_2.method_1(); ShapeObject obj2 = (ShapeObject)A_0.method_3(); if (this.class672_0.method_10() != null) { Class1024 class2 = new Class1024(); int num = this.class672_0.method_10().(); if (obj2.HorizontalRule.method_0()) { spr➓ r➓2 = new spr➓(); r➓.ᜁ(r➓2); r➓ = r➓2; smethod_2(obj2.HorizontalRule.method_6(), A_0.method_4().Width, A_0.method_1(), r➓2); } PointF[] tfArray = this.method_13(obj2); Class1021 class3 = (tfArray == null) ? ((A_3 || A_0.method_14()) ? new Class1021(base.sprℭ_0) : null) : null; this.method_14(r➓, num, class2, class3); this.method_15(r➓, obj2, A_1, class3); this.method_16(r➓, num, class2, class3); A_2.method_3((tfArray != null) ? new Class722(tfArray, true) : ((class3 != null) ? class3.method_4() : null)); } this.class315_0.method_1(this.class672_0, r➓); if (((obj2.ParentObject != null) && (obj2.ParentObject.DocumentObjectType == DocumentObjectType.ShapeGroup)) && sprḆ.(obj2.HRef)) { r➓.ᜀ(new spr⠱(obj2.BoundsInPoints, obj2.HRef)); } }
private SizeF method_0(ShapeObject A_0) { Class673 class2 = this.method_1(A_0); Class672 class3 = new Class672(new Class724(A_0), class2, null); float num = Class315.smethod_2(A_0); return(Class315.smethod_0(class3, num).Size); }
internal static spr➂ smethod_8(ShapeBase A_0, Class673 A_1) { float num7; float num8; int coordOriginX = A_0.CoordOriginX; int coordOriginY = A_0.CoordOriginY; float width = (float)A_0.Width; float height = (float)A_0.Height; float num5 = width * 0.5f; float num6 = height * 0.5f; spr➂ r➂ = new spr➂(); r➂.ᜀ((float)-coordOriginX, (float)-coordOriginY, MatrixOrder.Append); r➂.ᜀ(-num5, -num6, MatrixOrder.Append); switch (A_0.FlipOrientation) { case FlipOrientation.Horizontal: r➂.ᜁ(-1f, 1f, MatrixOrder.Append); break; case FlipOrientation.Vertical: r➂.ᜁ(1f, -1f, MatrixOrder.Append); break; case FlipOrientation.Both: r➂.ᜁ(-1f, -1f, MatrixOrder.Append); break; } float num9 = ((float)A_0.Rotation) + A_1.method_3(); r➂.ᜁ(A_1.method_1(), A_1.method_2(), MatrixOrder.Append); r➂.ᜀ(num9, MatrixOrder.Append); if (((Math.Abs((float)(num9 % 180f)) == 90f) && !A_0.IsInline) && !(A_0.ParentObject is ShapeGroup)) { num7 = num6; num8 = num5; } else { num7 = num5; num8 = num6; } r➂.ᜀ(num7 * A_1.method_1(), num8 * A_1.method_2(), MatrixOrder.Append); return(r➂); }
internal Class316(ShapeObject A_0, SizeF A_1, Class673 A_2, bool A_3) { this.sizeF_0 = SizeF.Empty; this.shapeObject_0 = A_0; this.sizeF_0 = A_1.IsEmpty ? this.shapeObject_0.Size : A_1; this.spr➂_0 = A_2.method_0(); SizeF ef = smethod_0(A_0, A_2.method_1(), A_2.method_2()); this.float_0 = ef.Width; this.float_1 = ef.Height; this.float_2 = A_2.method_3(); this.limoStretchType_0 = LimoStretchType.None; this.float_3 = 0f; this.spr➂_1 = null; this.int_0 = A_0.LimoX; this.int_1 = A_0.LimoY; this.method_7(A_3); }
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ἣ.ᜂ()); } } }
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); }