protected override MapLayer CreateMapObject(int index) { Microsoft.ReportingServices.ReportIntermediateFormat.MapLayer mapLayer = m_map.MapDef.MapLayers[index]; if (mapLayer is Microsoft.ReportingServices.ReportIntermediateFormat.MapTileLayer) { return(new MapTileLayer((Microsoft.ReportingServices.ReportIntermediateFormat.MapTileLayer)mapLayer, m_map)); } if (mapLayer is Microsoft.ReportingServices.ReportIntermediateFormat.MapPolygonLayer) { return(new MapPolygonLayer((Microsoft.ReportingServices.ReportIntermediateFormat.MapPolygonLayer)mapLayer, m_map)); } if (mapLayer is Microsoft.ReportingServices.ReportIntermediateFormat.MapPointLayer) { return(new MapPointLayer((Microsoft.ReportingServices.ReportIntermediateFormat.MapPointLayer)mapLayer, m_map)); } if (mapLayer is Microsoft.ReportingServices.ReportIntermediateFormat.MapLineLayer) { return(new MapLineLayer((Microsoft.ReportingServices.ReportIntermediateFormat.MapLineLayer)mapLayer, m_map)); } return(null); }
internal virtual object PublishClone(AutomaticSubtotalContext context) { MapLayer mapLayer = (MapLayer)MemberwiseClone(); mapLayer.m_map = context.CurrentMapClone; if (m_visibilityMode != null) { mapLayer.m_visibilityMode = (ExpressionInfo)m_visibilityMode.PublishClone(context); } if (m_minimumZoom != null) { mapLayer.m_minimumZoom = (ExpressionInfo)m_minimumZoom.PublishClone(context); } if (m_maximumZoom != null) { mapLayer.m_maximumZoom = (ExpressionInfo)m_maximumZoom.PublishClone(context); } if (m_transparency != null) { mapLayer.m_transparency = (ExpressionInfo)m_transparency.PublishClone(context); } return(mapLayer); }
internal MapLayer(Microsoft.ReportingServices.ReportIntermediateFormat.MapLayer defObject, Map map) { m_defObject = defObject; m_map = map; }
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); } }