Ejemplo n.º 1
0
 internal void SetExprHost(ChartDataPointExprHost exprHost, ObjectModelImpl reportObjectModel)
 {
     Global.Tracer.Assert(exprHost != null && reportObjectModel != null);
     m_exprHost = exprHost;
     m_exprHost.SetReportObjectModel(reportObjectModel);
     if (m_action != null && m_exprHost.ActionInfoHost != null)
     {
         m_action.SetExprHost(m_exprHost.ActionInfoHost, reportObjectModel);
     }
     if (m_styleClass != null && m_exprHost.StyleHost != null)
     {
         m_exprHost.StyleHost.SetReportObjectModel(reportObjectModel);
         m_styleClass.SetStyleExprHost(m_exprHost.StyleHost);
     }
     if (m_marker != null && m_exprHost.ChartMarkerHost != null)
     {
         m_marker.SetExprHost(m_exprHost.ChartMarkerHost, reportObjectModel);
     }
     if (m_dataLabel != null && m_exprHost.DataLabelHost != null)
     {
         m_dataLabel.SetExprHost(m_exprHost.DataLabelHost, reportObjectModel);
     }
     if (m_itemInLegend != null && m_exprHost.DataPointInLegendHost != null)
     {
         m_itemInLegend.SetExprHost(m_exprHost.DataPointInLegendHost, reportObjectModel);
     }
     if (m_customProperties != null && m_exprHost.CustomPropertyHostsRemotable != null)
     {
         m_customProperties.SetExprHost(m_exprHost.CustomPropertyHostsRemotable, reportObjectModel);
     }
     BaseSetExprHost(exprHost, reportObjectModel);
 }
        internal void SetExprHost(ChartLegendCustomItemExprHost exprHost, ObjectModelImpl reportObjectModel)
        {
            Global.Tracer.Assert(exprHost != null && reportObjectModel != null, "(exprHost != null && reportObjectModel != null)");
            base.SetExprHost(exprHost, reportObjectModel);
            m_exprHost = exprHost;
            if (m_marker != null && m_exprHost.ChartMarkerHost != null)
            {
                m_marker.SetExprHost(m_exprHost.ChartMarkerHost, reportObjectModel);
            }
            if (m_action != null && m_exprHost.ActionInfoHost != null)
            {
                m_action.SetExprHost(m_exprHost.ActionInfoHost, reportObjectModel);
            }
            IList <ChartLegendCustomItemCellExprHost> chartLegendCustomItemCellsHostsRemotable = m_exprHost.ChartLegendCustomItemCellsHostsRemotable;

            if (m_chartLegendCustomItemCells == null || chartLegendCustomItemCellsHostsRemotable == null)
            {
                return;
            }
            for (int i = 0; i < m_chartLegendCustomItemCells.Count; i++)
            {
                ChartLegendCustomItemCell chartLegendCustomItemCell = m_chartLegendCustomItemCells[i];
                if (chartLegendCustomItemCell != null && chartLegendCustomItemCell.ExpressionHostID > -1)
                {
                    chartLegendCustomItemCell.SetExprHost(chartLegendCustomItemCellsHostsRemotable[chartLegendCustomItemCell.ExpressionHostID], reportObjectModel);
                }
            }
        }
Ejemplo n.º 3
0
        internal void SetExprHost(ChartSeriesExprHost exprHost, ObjectModelImpl reportObjectModel)
        {
            Global.Tracer.Assert(exprHost != null && reportObjectModel != null, "(exprHost != null && reportObjectModel != null)");
            m_exprHost = exprHost;
            m_exprHost.SetReportObjectModel(reportObjectModel);
            if (m_customProperties != null && m_exprHost.CustomPropertyHostsRemotable != null)
            {
                m_customProperties.SetExprHost(m_exprHost.CustomPropertyHostsRemotable, reportObjectModel);
            }
            if (m_action != null && m_exprHost.ActionInfoHost != null)
            {
                m_action.SetExprHost(m_exprHost.ActionInfoHost, reportObjectModel);
            }
            if (m_styleClass != null)
            {
                m_styleClass.SetStyleExprHost(m_exprHost);
            }
            if (m_chartSmartLabel != null && m_exprHost.SmartLabelHost != null)
            {
                m_chartSmartLabel.SetExprHost(m_exprHost.SmartLabelHost, reportObjectModel);
            }
            if (m_emptyPoints != null && m_exprHost.EmptyPointsHost != null)
            {
                m_emptyPoints.SetExprHost(m_exprHost.EmptyPointsHost, reportObjectModel);
            }
            if (m_action != null && m_exprHost.ActionInfoHost != null)
            {
                m_action.SetExprHost(m_exprHost.ActionInfoHost, reportObjectModel);
            }
            if (m_dataLabel != null && m_exprHost.DataLabelHost != null)
            {
                m_dataLabel.SetExprHost(m_exprHost.DataLabelHost, reportObjectModel);
            }
            if (m_marker != null && m_exprHost.ChartMarkerHost != null)
            {
                m_marker.SetExprHost(m_exprHost.ChartMarkerHost, reportObjectModel);
            }
            List <ChartDerivedSeries>          childrenDerivedSeries = ChildrenDerivedSeries;
            IList <ChartDerivedSeriesExprHost> chartDerivedSeriesCollectionHostsRemotable = m_exprHost.ChartDerivedSeriesCollectionHostsRemotable;

            if (childrenDerivedSeries != null && chartDerivedSeriesCollectionHostsRemotable != null)
            {
                for (int i = 0; i < childrenDerivedSeries.Count; i++)
                {
                    ChartDerivedSeries chartDerivedSeries = childrenDerivedSeries[i];
                    if (chartDerivedSeries != null && chartDerivedSeries.ExpressionHostID > -1)
                    {
                        chartDerivedSeries.SetExprHost(chartDerivedSeriesCollectionHostsRemotable[chartDerivedSeries.ExpressionHostID], reportObjectModel);
                    }
                }
            }
            if (m_chartItemInLegend != null && m_exprHost.DataPointInLegendHost != null)
            {
                m_chartItemInLegend.SetExprHost(m_exprHost.DataPointInLegendHost, reportObjectModel);
            }
        }
 internal void SetExprHost(ChartEmptyPointsExprHost exprHost, ObjectModelImpl reportObjectModel)
 {
     Global.Tracer.Assert(exprHost != null && reportObjectModel != null, "(exprHost != null && reportObjectModel != null)");
     base.SetExprHost(exprHost, reportObjectModel);
     m_exprHost = exprHost;
     if (m_marker != null && m_exprHost.ChartMarkerHost != null)
     {
         m_marker.SetExprHost(m_exprHost.ChartMarkerHost, reportObjectModel);
     }
     if (m_dataLabel != null && m_exprHost.DataLabelHost != null)
     {
         m_dataLabel.SetExprHost(m_exprHost.DataLabelHost, reportObjectModel);
     }
     if (m_action != null && m_exprHost.ActionInfoHost != null)
     {
         m_action.SetExprHost(m_exprHost.ActionInfoHost, reportObjectModel);
     }
     if (m_customProperties != null && m_exprHost.CustomPropertyHostsRemotable != null)
     {
         m_customProperties.SetExprHost(m_exprHost.CustomPropertyHostsRemotable, reportObjectModel);
     }
 }