Esempio n. 1
0
 internal void SetExprHost(GroupExprHost exprHost, ObjectModelImpl reportObjectModel)
 {
     Global.Tracer.Assert(exprHost != null && reportObjectModel != null, "(exprHost != null && reportObjectModel != null)");
     m_exprHost = exprHost;
     m_exprHost.SetReportObjectModel(reportObjectModel);
     if (m_exprHost.FilterHostsRemotable != null)
     {
         Global.Tracer.Assert(m_filters != null, "(m_filters != null)");
         int count = m_filters.Count;
         for (int i = 0; i < count; i++)
         {
             m_filters[i].SetExprHost(m_exprHost.FilterHostsRemotable, reportObjectModel);
         }
     }
     if (m_exprHost.ParentExpressionsHost != null)
     {
         m_exprHost.ParentExpressionsHost.SetReportObjectModel(reportObjectModel);
     }
     if (m_exprHost.VariableValueHosts != null)
     {
         m_exprHost.VariableValueHosts.SetReportObjectModel(reportObjectModel);
     }
     if (m_exprHost.UserSortExpressionsHost != null)
     {
         m_exprHost.UserSortExpressionsHost.SetReportObjectModel(reportObjectModel);
     }
     if (m_pageBreak != null && m_exprHost.PageBreakExprHost != null)
     {
         m_pageBreak.SetExprHost(m_exprHost.PageBreakExprHost, reportObjectModel);
     }
 }
Esempio n. 2
0
 internal override void SetExprHost(ReportExprHost reportExprHost, ObjectModelImpl reportObjectModel)
 {
     if (base.ExprHostID >= 0)
     {
         Global.Tracer.Assert(reportExprHost != null && reportObjectModel != null, "(reportExprHost != null && reportObjectModel != null)");
         m_exprHost = reportExprHost.RectangleHostsRemotable[base.ExprHostID];
         ReportItemSetExprHost(m_exprHost, reportObjectModel);
         if (m_pageBreak != null && m_exprHost.PageBreakExprHost != null)
         {
             m_pageBreak.SetExprHost(m_exprHost.PageBreakExprHost, reportObjectModel);
         }
     }
 }
Esempio n. 3
0
        internal override void SetExprHost(ReportExprHost reportExprHost, ObjectModelImpl reportObjectModel)
        {
            if (base.ExprHostID < 0)
            {
                return;
            }
            Global.Tracer.Assert(reportExprHost != null && reportObjectModel != null);
            m_exprHost = reportExprHost.MapHostsRemotable[base.ExprHostID];
            ReportItemSetExprHost(m_exprHost, reportObjectModel);
            if (m_mapViewport != null && m_exprHost.MapViewportHost != null)
            {
                m_mapViewport.SetExprHost(m_exprHost.MapViewportHost, reportObjectModel);
            }
            IList <MapPolygonLayerExprHost> mapPolygonLayersHostsRemotable = m_exprHost.MapPolygonLayersHostsRemotable;
            IList <MapPointLayerExprHost>   mapPointLayersHostsRemotable   = m_exprHost.MapPointLayersHostsRemotable;
            IList <MapLineLayerExprHost>    mapLineLayersHostsRemotable    = m_exprHost.MapLineLayersHostsRemotable;
            IList <MapTileLayerExprHost>    mapTileLayersHostsRemotable    = m_exprHost.MapTileLayersHostsRemotable;

            if (m_mapLayers != null)
            {
                for (int i = 0; i < m_mapLayers.Count; i++)
                {
                    MapLayer mapLayer = m_mapLayers[i];
                    if (mapLayer == null || mapLayer.ExpressionHostID <= -1)
                    {
                        continue;
                    }
                    if (mapLayer is MapPolygonLayer)
                    {
                        if (mapPolygonLayersHostsRemotable != null)
                        {
                            mapLayer.SetExprHost(mapPolygonLayersHostsRemotable[mapLayer.ExpressionHostID], reportObjectModel);
                        }
                    }
                    else if (mapLayer is MapPointLayer)
                    {
                        if (mapPointLayersHostsRemotable != null)
                        {
                            mapLayer.SetExprHost(mapPointLayersHostsRemotable[mapLayer.ExpressionHostID], reportObjectModel);
                        }
                    }
                    else if (mapLayer is MapLineLayer)
                    {
                        if (mapLineLayersHostsRemotable != null)
                        {
                            mapLayer.SetExprHost(mapLineLayersHostsRemotable[mapLayer.ExpressionHostID], reportObjectModel);
                        }
                    }
                    else if (mapLayer is MapTileLayer && mapTileLayersHostsRemotable != null)
                    {
                        mapLayer.SetExprHost(mapTileLayersHostsRemotable[mapLayer.ExpressionHostID], reportObjectModel);
                    }
                }
            }
            IList <MapLegendExprHost> mapLegendsHostsRemotable = m_exprHost.MapLegendsHostsRemotable;

            if (m_mapLegends != null && mapLegendsHostsRemotable != null)
            {
                for (int j = 0; j < m_mapLegends.Count; j++)
                {
                    MapLegend mapLegend = m_mapLegends[j];
                    if (mapLegend != null && mapLegend.ExpressionHostID > -1)
                    {
                        mapLegend.SetExprHost(mapLegendsHostsRemotable[mapLegend.ExpressionHostID], reportObjectModel);
                    }
                }
            }
            IList <MapTitleExprHost> mapTitlesHostsRemotable = m_exprHost.MapTitlesHostsRemotable;

            if (m_mapTitles != null && mapTitlesHostsRemotable != null)
            {
                for (int k = 0; k < m_mapTitles.Count; k++)
                {
                    MapTitle mapTitle = m_mapTitles[k];
                    if (mapTitle != null && mapTitle.ExpressionHostID > -1)
                    {
                        mapTitle.SetExprHost(mapTitlesHostsRemotable[mapTitle.ExpressionHostID], reportObjectModel);
                    }
                }
            }
            if (m_mapDistanceScale != null && m_exprHost.MapDistanceScaleHost != null)
            {
                m_mapDistanceScale.SetExprHost(m_exprHost.MapDistanceScaleHost, reportObjectModel);
            }
            if (m_mapColorScale != null && m_exprHost.MapColorScaleHost != null)
            {
                m_mapColorScale.SetExprHost(m_exprHost.MapColorScaleHost, reportObjectModel);
            }
            if (m_mapBorderSkin != null && m_exprHost.MapBorderSkinHost != null)
            {
                m_mapBorderSkin.SetExprHost(m_exprHost.MapBorderSkinHost, reportObjectModel);
            }
            if (m_action != null && m_exprHost.ActionInfoHost != null)
            {
                m_action.SetExprHost(m_exprHost.ActionInfoHost, reportObjectModel);
            }
            if (m_pageBreak != null && m_exprHost.PageBreakExprHost != null)
            {
                m_pageBreak.SetExprHost(m_exprHost.PageBreakExprHost, reportObjectModel);
            }
        }