public override void SetExprHost(IMemberNode memberExprHost, ObjectModelImpl reportObjectModel) { if (base.ExprHostID >= 0) { Global.Tracer.Assert(memberExprHost != null && reportObjectModel != null); this.m_exprHost = (ChartMemberExprHost)memberExprHost; this.m_exprHost.SetReportObjectModel(reportObjectModel); base.MemberNodeSetExprHost(this.m_exprHost, reportObjectModel); } if (this.m_exprHost != null && this.m_exprHost.ChartSeriesHost != null) { ChartSeries chartSeries = this.GetChartSeries(); if (chartSeries != null) { chartSeries.SetExprHost(this.m_exprHost.ChartSeriesHost, reportObjectModel); } } }
public override void DataRegionContentsSetExprHost(ObjectModelImpl reportObjectModel, bool traverseDataRegions) { if (this.m_chartExprHost != null) { IList <ChartAreaExprHost> chartAreasHostsRemotable = this.m_chartExprHost.ChartAreasHostsRemotable; if (this.m_chartAreas != null && chartAreasHostsRemotable != null) { for (int i = 0; i < this.m_chartAreas.Count; i++) { ChartArea chartArea = this.m_chartAreas[i]; if (chartArea != null && chartArea.ExpressionHostID > -1) { chartArea.SetExprHost(chartAreasHostsRemotable[chartArea.ExpressionHostID], reportObjectModel); } } } IList <ChartTitleExprHost> titlesHostsRemotable = this.m_chartExprHost.TitlesHostsRemotable; if (this.m_titles != null && titlesHostsRemotable != null) { for (int j = 0; j < this.m_titles.Count; j++) { ChartTitle chartTitle = this.m_titles[j]; if (chartTitle != null && chartTitle.ExpressionHostID > -1) { chartTitle.SetExprHost(titlesHostsRemotable[chartTitle.ExpressionHostID], reportObjectModel); } } } IList <ChartLegendExprHost> legendsHostsRemotable = this.m_chartExprHost.LegendsHostsRemotable; if (this.m_legends != null && legendsHostsRemotable != null) { for (int k = 0; k < this.m_legends.Count; k++) { ChartLegend chartLegend = this.m_legends[k]; if (chartLegend != null && chartLegend.ExpressionHostID > -1) { chartLegend.SetExprHost(legendsHostsRemotable[chartLegend.ExpressionHostID], reportObjectModel); } } } IList <ChartCustomPaletteColorExprHost> customPaletteColorHostsRemotable = this.m_chartExprHost.CustomPaletteColorHostsRemotable; if (this.m_customPaletteColors != null && customPaletteColorHostsRemotable != null) { for (int l = 0; l < this.m_customPaletteColors.Count; l++) { ChartCustomPaletteColor chartCustomPaletteColor = this.m_customPaletteColors[l]; if (chartCustomPaletteColor != null && chartCustomPaletteColor.ExpressionHostID > -1) { chartCustomPaletteColor.SetExprHost(customPaletteColorHostsRemotable[chartCustomPaletteColor.ExpressionHostID], reportObjectModel); } } } if (this.m_codeParameters != null && this.m_chartExprHost.CodeParametersHostsRemotable != null) { this.m_codeParameters.SetExprHost(this.m_chartExprHost.CodeParametersHostsRemotable, reportObjectModel); } if (this.m_borderSkin != null && this.m_chartExprHost.BorderSkinHost != null) { this.m_borderSkin.SetExprHost(this.m_chartExprHost.BorderSkinHost, reportObjectModel); } if (this.m_noDataMessage != null && this.m_chartExprHost.NoDataMessageHost != null) { this.m_noDataMessage.SetExprHost(this.m_chartExprHost.NoDataMessageHost, reportObjectModel); } IList <ChartSeriesExprHost> seriesCollectionHostsRemotable = this.m_chartExprHost.SeriesCollectionHostsRemotable; IList <ChartDataPointExprHost> cellHostsRemotable = this.m_chartExprHost.CellHostsRemotable; Global.Tracer.Assert(this.m_chartSeriesCollection != null, "(m_chartSeriesCollection != null)"); for (int m = 0; m < this.m_chartSeriesCollection.Count; m++) { ChartSeries chartSeries = this.m_chartSeriesCollection[m]; Global.Tracer.Assert(null != chartSeries, "(null != series)"); if (seriesCollectionHostsRemotable != null && chartSeries.ExpressionHostID > -1) { chartSeries.SetExprHost(seriesCollectionHostsRemotable[chartSeries.ExpressionHostID], reportObjectModel); } if (cellHostsRemotable != null) { Global.Tracer.Assert(null != chartSeries.DataPoints, "(null != series.DataPoints)"); for (int n = 0; n < chartSeries.DataPoints.Count; n++) { ChartDataPoint chartDataPoint = chartSeries.DataPoints[n]; Global.Tracer.Assert(null != chartDataPoint, "(null != dataPoint)"); if (chartDataPoint.ExpressionHostID > -1) { chartDataPoint.SetExprHost(cellHostsRemotable[chartDataPoint.ExpressionHostID], reportObjectModel); } } } } } }