public override object PublishClone(AutomaticSubtotalContext context) { MapTitle mapTitle = (MapTitle)base.PublishClone(context); if (this.m_text != null) { mapTitle.m_text = (ExpressionInfo)this.m_text.PublishClone(context); } if (this.m_angle != null) { mapTitle.m_angle = (ExpressionInfo)this.m_angle.PublishClone(context); } if (this.m_textShadowOffset != null) { mapTitle.m_textShadowOffset = (ExpressionInfo)this.m_textShadowOffset.PublishClone(context); } return(mapTitle); }
public MapTitle(AspNetCore.ReportingServices.ReportIntermediateFormat.MapTitle defObject, Map map) : base(defObject, map) { }
public override void SetExprHost(ReportExprHost reportExprHost, ObjectModelImpl reportObjectModel) { if (base.ExprHostID >= 0) { Global.Tracer.Assert(reportExprHost != null && reportObjectModel != null); this.m_exprHost = reportExprHost.MapHostsRemotable[base.ExprHostID]; base.ReportItemSetExprHost(this.m_exprHost, reportObjectModel); if (this.m_mapViewport != null && this.m_exprHost.MapViewportHost != null) { this.m_mapViewport.SetExprHost(this.m_exprHost.MapViewportHost, reportObjectModel); } IList <MapPolygonLayerExprHost> mapPolygonLayersHostsRemotable = this.m_exprHost.MapPolygonLayersHostsRemotable; IList <MapPointLayerExprHost> mapPointLayersHostsRemotable = this.m_exprHost.MapPointLayersHostsRemotable; IList <MapLineLayerExprHost> mapLineLayersHostsRemotable = this.m_exprHost.MapLineLayersHostsRemotable; IList <MapTileLayerExprHost> mapTileLayersHostsRemotable = this.m_exprHost.MapTileLayersHostsRemotable; if (this.m_mapLayers != null) { for (int i = 0; i < this.m_mapLayers.Count; i++) { MapLayer mapLayer = this.m_mapLayers[i]; if (mapLayer != null && mapLayer.ExpressionHostID > -1) { 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 = this.m_exprHost.MapLegendsHostsRemotable; if (this.m_mapLegends != null && mapLegendsHostsRemotable != null) { for (int j = 0; j < this.m_mapLegends.Count; j++) { MapLegend mapLegend = this.m_mapLegends[j]; if (mapLegend != null && mapLegend.ExpressionHostID > -1) { mapLegend.SetExprHost(mapLegendsHostsRemotable[mapLegend.ExpressionHostID], reportObjectModel); } } } IList <MapTitleExprHost> mapTitlesHostsRemotable = this.m_exprHost.MapTitlesHostsRemotable; if (this.m_mapTitles != null && mapTitlesHostsRemotable != null) { for (int k = 0; k < this.m_mapTitles.Count; k++) { MapTitle mapTitle = this.m_mapTitles[k]; if (mapTitle != null && mapTitle.ExpressionHostID > -1) { mapTitle.SetExprHost(mapTitlesHostsRemotable[mapTitle.ExpressionHostID], reportObjectModel); } } } if (this.m_mapDistanceScale != null && this.m_exprHost.MapDistanceScaleHost != null) { this.m_mapDistanceScale.SetExprHost(this.m_exprHost.MapDistanceScaleHost, reportObjectModel); } if (this.m_mapColorScale != null && this.m_exprHost.MapColorScaleHost != null) { this.m_mapColorScale.SetExprHost(this.m_exprHost.MapColorScaleHost, reportObjectModel); } if (this.m_mapBorderSkin != null && this.m_exprHost.MapBorderSkinHost != null) { this.m_mapBorderSkin.SetExprHost(this.m_exprHost.MapBorderSkinHost, reportObjectModel); } if (this.m_action != null && this.m_exprHost.ActionInfoHost != null) { this.m_action.SetExprHost(this.m_exprHost.ActionInfoHost, reportObjectModel); } if (this.m_pageBreak != null && this.m_exprHost.PageBreakExprHost != null) { this.m_pageBreak.SetExprHost(this.m_exprHost.PageBreakExprHost, reportObjectModel); } } }