Example #1
0
        private void OnCreate(HSSFShape shape)
        {
            EscherContainerRecord spgrContainer =
                _boundAggregate.GetEscherContainer().ChildContainers[0];

            EscherContainerRecord spContainer = shape.GetEscherContainer();
            int shapeId = NewShapeId();

            shape.ShapeId = shapeId;

            spgrContainer.AddChildRecord(spContainer);
            shape.AfterInsert(this);
            SetFlipFlags(shape);
        }
Example #2
0
 private void OnCreate(HSSFShape shape)
 {
     if (this.Patriarch != null)
     {
         EscherContainerRecord spContainer = shape.GetEscherContainer();
         int shapeId = this.Patriarch.NewShapeId();
         shape.ShapeId = (shapeId);
         GetEscherContainer().AddChildRecord(spContainer);
         shape.AfterInsert(Patriarch);
         EscherSpRecord sp;
         if (shape is HSSFShapeGroup)
         {
             sp = (EscherSpRecord)shape.GetEscherContainer().ChildContainers[0].GetChildById(EscherSpRecord.RECORD_ID);
         }
         else
         {
             sp = (EscherSpRecord)shape.GetEscherContainer().GetChildById(EscherSpRecord.RECORD_ID);
         }
         sp.Flags = sp.Flags | EscherSpRecord.FLAG_CHILD;
     }
 }
Example #3
0
        private void OnCreate(HSSFShape shape)
        {
            EscherContainerRecord spgrContainer =
                    _boundAggregate.GetEscherContainer().ChildContainers[0];

            EscherContainerRecord spContainer = shape.GetEscherContainer();
            int shapeId = NewShapeId();
            shape.ShapeId = shapeId;

            spgrContainer.AddChildRecord(spContainer);
            shape.AfterInsert(this);
            SetFlipFlags(shape);
        }
Example #4
0
 private void OnCreate(HSSFShape shape)
 {
     if (this.Patriarch != null)
     {
         EscherContainerRecord spContainer = shape.GetEscherContainer();
         int shapeId = this.Patriarch.NewShapeId();
         shape.ShapeId = (shapeId);
         GetEscherContainer().AddChildRecord(spContainer);
         shape.AfterInsert(Patriarch);
         EscherSpRecord sp;
         if (shape is HSSFShapeGroup)
         {
             sp = (EscherSpRecord)shape.GetEscherContainer().ChildContainers[0].GetChildById(EscherSpRecord.RECORD_ID);
         }
         else
         {
             sp = (EscherSpRecord)shape.GetEscherContainer().GetChildById(EscherSpRecord.RECORD_ID);
         }
         sp.Flags = sp.Flags | EscherSpRecord.FLAG_CHILD;
     }
 }