internal void ProcessNavigationAction(ReportProcessing.NavigationInfo navigationInfo, NonComputedUniqueNames nonCompNames, int startPage)
        {
            if (nonCompNames == null)
            {
                return;
            }
            if (m_bookmark != null && m_bookmark.Value != null)
            {
                navigationInfo.ProcessBookmark(m_bookmark.Value, startPage, nonCompNames.UniqueName);
            }
            Rectangle rectangle = this as Rectangle;

            if (m_label != null && m_label.Value != null)
            {
                int num = -1;
                if (rectangle != null)
                {
                    navigationInfo.EnterDocumentMapChildren();
                    num = rectangle.ProcessNavigationChildren(navigationInfo, nonCompNames, startPage);
                }
                if (num < 0)
                {
                    num = nonCompNames.UniqueName;
                }
                navigationInfo.AddToDocumentMap(num, rectangle != null, startPage, m_label.Value);
            }
            else
            {
                rectangle?.ProcessNavigationChildren(navigationInfo, nonCompNames, startPage);
            }
        }
 public void CreateNavigationActions(ReportProcessing.NavigationInfo navigationInfo)
 {
     if (this.m_reportInstance != null)
     {
         if (navigationInfo.DocumentMapChildren != null && 0 < navigationInfo.DocumentMapChildren.Count && navigationInfo.DocumentMapChildren[0] != null)
         {
             this.m_documentMap    = new DocumentMapNode(this.m_reportInstance.UniqueName.ToString(CultureInfo.InvariantCulture), this.m_reportName, 0, navigationInfo.DocumentMapChildren[0]);
             this.m_hasDocumentMap = true;
         }
         if (navigationInfo.BookmarksInfo != null)
         {
             this.m_bookmarksInfo = navigationInfo.BookmarksInfo;
             this.m_hasBookmarks  = true;
         }
     }
 }
Beispiel #3
0
        internal int ProcessNavigationChildren(ReportProcessing.NavigationInfo navigationInfo, NonComputedUniqueNames nonCompNames, int startPage)
        {
            if (nonCompNames.ChildrenUniqueNames == null)
            {
                return(-1);
            }
            NonComputedUniqueNames nonComputedUniqueNames = null;
            int count  = m_reportItems.Count;
            int result = -1;

            for (int i = 0; i < count; i++)
            {
                nonComputedUniqueNames = nonCompNames.ChildrenUniqueNames[i];
                if (i == m_linkToChild)
                {
                    result = nonComputedUniqueNames.UniqueName;
                }
                m_reportItems[i].ProcessNavigationAction(navigationInfo, nonComputedUniqueNames, startPage);
            }
            return(result);
        }