public bool RemoveShape(HSSFShape shape) { bool isRemoved = GetEscherContainer().RemoveChildRecord(shape.GetEscherContainer()); if (isRemoved) { shape.AfterRemove(this.Patriarch); shapes.Remove(shape); } return(isRemoved); }
/** * @param shape to be removed * @return true of shape is removed */ public bool RemoveShape(HSSFShape shape) { bool isRemoved = _mainSpgrContainer.RemoveChildRecord(shape.GetEscherContainer()); if (isRemoved) { shape.AfterRemove(this); _shapes.Remove(shape); } return(isRemoved); }
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; } }
private void SetFlipFlags(HSSFShape shape) { EscherSpRecord sp = (EscherSpRecord)shape.GetEscherContainer().GetChildById(EscherSpRecord.RECORD_ID); if (shape.Anchor.IsHorizontallyFlipped) { sp.Flags = (sp.Flags | EscherSpRecord.FLAG_FLIPHORIZ); } if (shape.Anchor.IsVerticallyFlipped) { sp.Flags = (sp.Flags | EscherSpRecord.FLAG_FLIPVERT); } }
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); }
public static EscherContainerRecord GetEscherContainer(HSSFShape shape) { return shape.GetEscherContainer(); }
/** * @param shape to be removed * @return true of shape is removed */ public bool RemoveShape(HSSFShape shape) { bool isRemoved = _mainSpgrContainer.RemoveChildRecord(shape.GetEscherContainer()); if (isRemoved) { shape.AfterRemove(this); _shapes.Remove(shape); } return isRemoved; }
public bool RemoveShape(HSSFShape shape) { bool isRemoved = GetEscherContainer().RemoveChildRecord(shape.GetEscherContainer()); if (isRemoved) { shape.AfterRemove(this.Patriarch); shapes.Remove(shape); } return isRemoved; }