Пример #1
0
 void Interface28.imethod_20(ShapeObject A_0)
 {
     if (((A_0.ShapeType == ShapeType.OleObject) && (A_0.Owner == null)) && ((this.shapeObject_0 != null) && (this.documentObject_0.DocumentObjectType != DocumentObjectType.Shape)))
     {
         this.shapeObject_0 = null;
     }
     else
     {
         this.method_0(DocumentObjectType.Shape);
         this.documentObject_0 = this.documentObject_1;
         this.documentObject_1 = null;
         if ((A_0.ShapeType == ShapeType.TextBox) && A_0.HasInternalTextbox)
         {
             TextBox        internerTextbox = A_0.InternerTextbox;
             DocumentObject owner           = A_0.Owner;
             if (owner != null)
             {
                 int index = owner.ChildObjects.IndexOf(A_0);
                 A_0.RemoveSelf();
                 owner.ChildObjects.Insert(index, internerTextbox);
             }
         }
         if (this.shapeObject_0 != null)
         {
             for (int i = 0; i < this.shapeObject_0.ChildObjects.Count; i++)
             {
                 this.shapeObject_0.ChildObjects[i].method_19();
             }
             if (this.shapeObject_0.IsOle && !Class567.smethod_16(this.shapeObject_0.OleFormat.Interface49.get_ObjectType()))
             {
                 this.shapeObject_0.SetShapeType(ShapeType.Image);
             }
             this.shapeObject_0 = null;
         }
     }
 }