public bool MoveNext() { if (this.m_rifReader.EOS) { return(false); } this.m_currentNode = null; IPersistable persistable = this.m_rifReader.ReadRIFObject(); switch (persistable.GetObjectType()) { case AspNetCore.ReportingServices.ReportIntermediateFormat.Persistence.ObjectType.DocumentMapBeginContainer: { bool result = this.MoveNext(); this.m_level++; return(result); } case AspNetCore.ReportingServices.ReportIntermediateFormat.Persistence.ObjectType.DocumentMapEndContainer: this.m_level--; return(this.MoveNext()); case AspNetCore.ReportingServices.ReportIntermediateFormat.Persistence.ObjectType.DocumentMapNode: { DocumentMapNode documentMapNode = (DocumentMapNode)persistable; this.m_currentNode = new AspNetCore.ReportingServices.OnDemandReportRendering.DocumentMapNode(documentMapNode.Label, documentMapNode.Id, this.m_level); return(true); } default: Global.Tracer.Assert(false); return(false); } }
private static List <Declaration> GetDocumentMapDeclarations() { List <Declaration> list = new List <Declaration>(3); list.Add(DocumentMapNode.GetDeclaration()); list.Add(DocumentMapBeginContainer.GetDeclaration()); list.Add(DocumentMapEndContainer.GetDeclaration()); return(list); }
public void WriteNode(string aLabel, string aId) { Global.Tracer.Assert(!this.m_isClosed, "(!m_isClosed)"); if (this.m_node == null) { this.m_node = new DocumentMapNode(); } this.m_node.Label = aLabel; this.m_node.Id = aId; this.m_writer.Write(this.m_node); }