private void InitIndex(int index) { int num = 1 + index; int shapeId = 1024 + num; EscherSpRecord shape = this.m_shape; shape.ShapeId = shapeId; EscherOptRecord options = this.m_options; EscherSimpleProperty escherSimpleProperty = (EscherSimpleProperty)options.getEscherPropertyByID(16644); escherSimpleProperty.PropertyValue = num; }
private void CreateDefaultEscherRecords(byte[] hash, int imgIndex) { this.m_recordList = new ArrayList(2); EscherContainerRecord escherContainerRecord = new EscherContainerRecord(); escherContainerRecord.SetRecordId(61444); escherContainerRecord.setOptions(15); this.m_shape = new EscherSpRecord(); this.m_shape.ShapeId = 1025; this.m_shape.Flags = 2560; this.m_shape.setOptions(1202); this.m_shape.SetRecordId(61450); escherContainerRecord.addChildRecord(this.m_shape); this.m_options = new EscherOptRecord(); this.m_options.setOptions(67); this.m_options.SetRecordId(61451); this.m_options.addEscherProperty(new EscherSimpleProperty(16644, 1)); try { EscherComplexProperty prop = new EscherComplexProperty(49413, Encoding.GetEncoding("utf-16").GetBytes("..\\bl.jpg\0")); this.m_options.addEscherProperty(prop); } catch (IOException innerException) { throw new ReportRenderingException(innerException); } this.m_options.addEscherProperty(new EscherSimpleProperty(262, 2)); this.m_options.addEscherProperty(new EscherBoolProperty(511, 524288)); escherContainerRecord.addChildRecord(this.m_options); this.m_anchorRecord = new EscherClientAnchorRecord(); this.m_anchorRecord.RemainingData = new byte[4] { 0, 0, 0, 8 }; this.m_anchorRecord.ShortRecord = true; this.m_anchorRecord.setOptions(0); this.m_anchorRecord.SetRecordId(61456); escherContainerRecord.addChildRecord(this.m_anchorRecord); this.m_recordList.Add(escherContainerRecord); this.m_bse = new EscherBSERecord(); this.m_bse.Unused2 = 9; this.m_bse.Unused3 = 1; this.m_bse.Tag = 255; this.m_bse.Ref = 1; this.m_bse.SetRecordId(61447); this.m_bse.SubRecord = new EscherBSESubRecord(); this.InitImage(hash, imgIndex); this.m_recordList.Add(this.m_bse); }
private void InitBlock(EscherOptRecord enclosingInstance) { this.enclosingInstance = enclosingInstance; }
public AnonymousClassComparator(EscherOptRecord enclosingInstance) { this.InitBlock(enclosingInstance); }