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