Example #1
0
 public override bool MoveNext()
 {
     m_current = null;
     if (m_nodeInfoStack == null)
     {
         m_nodeInfoStack = new Stack <IEnumerator <Microsoft.ReportingServices.ReportProcessing.DocumentMapNode> >();
         m_current       = new DocumentMapNode(m_oldDocMap.Label, m_oldDocMap.Id, m_nodeInfoStack.Count + 1);
         m_nodeInfoStack.Push(((IEnumerable <Microsoft.ReportingServices.ReportProcessing.DocumentMapNode>)m_oldDocMap.Children).GetEnumerator());
         return(true);
     }
     if (m_nodeInfoStack.Count == 0)
     {
         return(false);
     }
     while (m_nodeInfoStack.Count > 0 && !m_nodeInfoStack.Peek().MoveNext())
     {
         m_nodeInfoStack.Pop();
     }
     if (m_nodeInfoStack.Count == 0)
     {
         return(false);
     }
     Microsoft.ReportingServices.ReportProcessing.DocumentMapNode current = m_nodeInfoStack.Peek().Current;
     m_current = new DocumentMapNode(current.Label, current.Id, m_nodeInfoStack.Count + 1);
     if (current.Children != null && current.Children.Length != 0)
     {
         m_nodeInfoStack.Push(((IEnumerable <Microsoft.ReportingServices.ReportProcessing.DocumentMapNode>)current.Children).GetEnumerator());
     }
     return(true);
 }
 internal DocumentMapNodeInfo(DocumentMapNode docMapNode, DocumentMapNodeInfo[] children)
 {
     m_id       = docMapNode.Id;
     m_label    = docMapNode.Label;
     m_children = children;
 }
Example #3
0
 internal ShimDocumentMap(Microsoft.ReportingServices.ReportProcessing.DocumentMapNode aOldDocMap)
 {
     m_oldDocMap = aOldDocMap;
     Reset();
 }
Example #4
0
 public override void Close()
 {
     m_oldDocMap = null;
     m_isClosed  = true;
 }
Example #5
0
 internal DocumentMapNode(Microsoft.ReportingServices.ReportProcessing.DocumentMapNode underlyingNode)
 {
     Global.Tracer.Assert(underlyingNode != null, "The document map node being wrapped cannot be null.");
     m_underlyingNode = underlyingNode;
 }