コード例 #1
0
        internal override object PublishClone(AutomaticSubtotalContext context)
        {
            ChartTitle chartTitle = (ChartTitle)base.PublishClone(context);

            if (m_position != null)
            {
                chartTitle.m_position = (ExpressionInfo)m_position.PublishClone(context);
            }
            if (m_hidden != null)
            {
                chartTitle.m_hidden = (ExpressionInfo)m_hidden.PublishClone(context);
            }
            if (m_docking != null)
            {
                chartTitle.m_docking = (ExpressionInfo)m_docking.PublishClone(context);
            }
            if (m_dockToChartArea != null)
            {
                chartTitle.m_dockToChartArea = (string)m_dockToChartArea.Clone();
            }
            if (m_dockOutsideChartArea != null)
            {
                chartTitle.m_dockOutsideChartArea = (ExpressionInfo)m_dockOutsideChartArea.PublishClone(context);
            }
            if (m_dockOffset != null)
            {
                chartTitle.m_dockOffset = (ExpressionInfo)m_dockOffset.PublishClone(context);
            }
            if (m_toolTip != null)
            {
                chartTitle.m_toolTip = (ExpressionInfo)m_toolTip.PublishClone(context);
            }
            if (m_action != null)
            {
                chartTitle.m_action = (Action)m_action.PublishClone(context);
            }
            if (m_textOrientation != null)
            {
                chartTitle.m_textOrientation = (ExpressionInfo)m_textOrientation.PublishClone(context);
            }
            if (m_chartElementPosition != null)
            {
                chartTitle.m_chartElementPosition = (ChartElementPosition)m_chartElementPosition.PublishClone(context);
            }
            return(chartTitle);
        }
コード例 #2
0
 internal ChartTitle(Microsoft.ReportingServices.ReportIntermediateFormat.ChartTitle chartTitleDef, Chart chart)
 {
     m_chart         = chart;
     m_chartTitleDef = chartTitleDef;
 }
コード例 #3
0
        internal override void DataRegionContentsSetExprHost(ObjectModelImpl reportObjectModel, bool traverseDataRegions)
        {
            if (m_chartExprHost == null)
            {
                return;
            }
            IList <ChartAreaExprHost> chartAreasHostsRemotable = m_chartExprHost.ChartAreasHostsRemotable;

            if (m_chartAreas != null && chartAreasHostsRemotable != null)
            {
                for (int i = 0; i < m_chartAreas.Count; i++)
                {
                    ChartArea chartArea = m_chartAreas[i];
                    if (chartArea != null && chartArea.ExpressionHostID > -1)
                    {
                        chartArea.SetExprHost(chartAreasHostsRemotable[chartArea.ExpressionHostID], reportObjectModel);
                    }
                }
            }
            IList <ChartTitleExprHost> titlesHostsRemotable = m_chartExprHost.TitlesHostsRemotable;

            if (m_titles != null && titlesHostsRemotable != null)
            {
                for (int j = 0; j < m_titles.Count; j++)
                {
                    ChartTitle chartTitle = m_titles[j];
                    if (chartTitle != null && chartTitle.ExpressionHostID > -1)
                    {
                        chartTitle.SetExprHost(titlesHostsRemotable[chartTitle.ExpressionHostID], reportObjectModel);
                    }
                }
            }
            IList <ChartLegendExprHost> legendsHostsRemotable = m_chartExprHost.LegendsHostsRemotable;

            if (m_legends != null && legendsHostsRemotable != null)
            {
                for (int k = 0; k < m_legends.Count; k++)
                {
                    ChartLegend chartLegend = m_legends[k];
                    if (chartLegend != null && chartLegend.ExpressionHostID > -1)
                    {
                        chartLegend.SetExprHost(legendsHostsRemotable[chartLegend.ExpressionHostID], reportObjectModel);
                    }
                }
            }
            IList <ChartCustomPaletteColorExprHost> customPaletteColorHostsRemotable = m_chartExprHost.CustomPaletteColorHostsRemotable;

            if (m_customPaletteColors != null && customPaletteColorHostsRemotable != null)
            {
                for (int l = 0; l < m_customPaletteColors.Count; l++)
                {
                    ChartCustomPaletteColor chartCustomPaletteColor = m_customPaletteColors[l];
                    if (chartCustomPaletteColor != null && chartCustomPaletteColor.ExpressionHostID > -1)
                    {
                        chartCustomPaletteColor.SetExprHost(customPaletteColorHostsRemotable[chartCustomPaletteColor.ExpressionHostID], reportObjectModel);
                    }
                }
            }
            if (m_codeParameters != null && m_chartExprHost.CodeParametersHostsRemotable != null)
            {
                m_codeParameters.SetExprHost(m_chartExprHost.CodeParametersHostsRemotable, reportObjectModel);
            }
            if (m_borderSkin != null && m_chartExprHost.BorderSkinHost != null)
            {
                m_borderSkin.SetExprHost(m_chartExprHost.BorderSkinHost, reportObjectModel);
            }
            if (m_noDataMessage != null && m_chartExprHost.NoDataMessageHost != null)
            {
                m_noDataMessage.SetExprHost(m_chartExprHost.NoDataMessageHost, reportObjectModel);
            }
            IList <ChartSeriesExprHost>    seriesCollectionHostsRemotable = m_chartExprHost.SeriesCollectionHostsRemotable;
            IList <ChartDataPointExprHost> cellHostsRemotable             = m_chartExprHost.CellHostsRemotable;

            Global.Tracer.Assert(m_chartSeriesCollection != null, "(m_chartSeriesCollection != null)");
            for (int m = 0; m < m_chartSeriesCollection.Count; m++)
            {
                ChartSeries chartSeries = m_chartSeriesCollection[m];
                Global.Tracer.Assert(chartSeries != null, "(null != series)");
                if (seriesCollectionHostsRemotable != null && chartSeries.ExpressionHostID > -1)
                {
                    chartSeries.SetExprHost(seriesCollectionHostsRemotable[chartSeries.ExpressionHostID], reportObjectModel);
                }
                if (cellHostsRemotable == null)
                {
                    continue;
                }
                Global.Tracer.Assert(chartSeries.DataPoints != null, "(null != series.DataPoints)");
                for (int n = 0; n < chartSeries.DataPoints.Count; n++)
                {
                    ChartDataPoint chartDataPoint = chartSeries.DataPoints[n];
                    Global.Tracer.Assert(chartDataPoint != null, "(null != dataPoint)");
                    if (chartDataPoint.ExpressionHostID > -1)
                    {
                        chartDataPoint.SetExprHost(cellHostsRemotable[chartDataPoint.ExpressionHostID], reportObjectModel);
                    }
                }
            }
        }