Exemple #1
0
 internal void SetExprHost(AxisExprHost exprHost, ObjectModelImpl reportObjectModel)
 {
     Global.Tracer.Assert(exprHost != null && reportObjectModel != null);
     m_exprHost = exprHost;
     m_exprHost.SetReportObjectModel(reportObjectModel);
     if (m_title != null && m_exprHost.TitleHost != null)
     {
         m_title.SetExprHost(m_exprHost.TitleHost, reportObjectModel);
     }
     if (m_styleClass != null)
     {
         m_styleClass.SetStyleExprHost(m_exprHost);
     }
     if (m_majorGridLines != null && m_majorGridLines.StyleClass != null && m_exprHost.MajorGridLinesHost != null)
     {
         m_majorGridLines.SetExprHost(m_exprHost.MajorGridLinesHost, reportObjectModel);
     }
     if (m_minorGridLines != null && m_minorGridLines.StyleClass != null && m_exprHost.MinorGridLinesHost != null)
     {
         m_minorGridLines.SetExprHost(m_exprHost.MinorGridLinesHost, reportObjectModel);
     }
     if (m_exprHost.CustomPropertyHostsRemotable != null)
     {
         Global.Tracer.Assert(m_customProperties != null);
         m_customProperties.SetExprHost(m_exprHost.CustomPropertyHostsRemotable, reportObjectModel);
     }
 }
Exemple #2
0
        internal override void SetExprHost(ReportExprHost reportExprHost, ObjectModelImpl reportObjectModel)
        {
            if (base.ExprHostID < 0)
            {
                return;
            }
            Global.Tracer.Assert(reportExprHost != null && reportObjectModel != null);
            m_exprHost = reportExprHost.ChartHostsRemotable[base.ExprHostID];
            DataRegionSetExprHost(m_exprHost, reportObjectModel);
            if (m_multiChart != null && m_exprHost.MultiChartHost != null)
            {
                m_multiChart.SetExprHost(m_exprHost.MultiChartHost, reportObjectModel);
            }
            IList <ChartDataPointExprHost> chartDataPointHostsRemotable = m_exprHost.ChartDataPointHostsRemotable;

            for (int i = 0; i < m_cellDataPoints.Count; i++)
            {
                ChartDataPoint chartDataPoint = m_cellDataPoints[i];
                if (chartDataPoint != null && chartDataPoint.ExprHostID != -1)
                {
                    chartDataPoint.SetExprHost(chartDataPointHostsRemotable[chartDataPoint.ExprHostID], reportObjectModel);
                }
            }
            if (m_categoryAxis != null && m_exprHost.CategoryAxisHost != null)
            {
                m_categoryAxis.SetExprHost(m_exprHost.CategoryAxisHost, reportObjectModel);
            }
            if (m_valueAxis != null && m_exprHost.ValueAxisHost != null)
            {
                m_valueAxis.SetExprHost(m_exprHost.ValueAxisHost, reportObjectModel);
            }
            if (m_title != null && m_exprHost.TitleHost != null)
            {
                m_title.SetExprHost(m_exprHost.TitleHost, reportObjectModel);
            }
            if (m_exprHost.StaticColumnLabelsHost != null)
            {
                m_exprHost.StaticColumnLabelsHost.SetReportObjectModel(reportObjectModel);
            }
            if (m_exprHost.StaticRowLabelsHost != null)
            {
                m_exprHost.StaticRowLabelsHost.SetReportObjectModel(reportObjectModel);
            }
            if (m_legend != null && m_exprHost.LegendHost != null)
            {
                m_legend.SetExprHost(m_exprHost.LegendHost, reportObjectModel);
            }
            if (m_plotArea != null && m_exprHost.PlotAreaHost != null)
            {
                m_plotArea.SetExprHost(m_exprHost.PlotAreaHost, reportObjectModel);
            }
        }