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);
                }
            }
        }
Beispiel #2
0
        internal override object PublishClone(AutomaticSubtotalContext context)
        {
            ChartLegendCustomItemCell chartLegendCustomItemCell = (ChartLegendCustomItemCell)base.PublishClone(context);

            if (m_action != null)
            {
                chartLegendCustomItemCell.m_action = (Action)m_action.PublishClone(context);
            }
            if (m_cellType != null)
            {
                chartLegendCustomItemCell.m_cellType = (ExpressionInfo)m_cellType.PublishClone(context);
            }
            if (m_text != null)
            {
                chartLegendCustomItemCell.m_text = (ExpressionInfo)m_text.PublishClone(context);
            }
            if (m_cellSpan != null)
            {
                chartLegendCustomItemCell.m_cellSpan = (ExpressionInfo)m_cellSpan.PublishClone(context);
            }
            if (m_toolTip != null)
            {
                chartLegendCustomItemCell.m_toolTip = (ExpressionInfo)m_toolTip.PublishClone(context);
            }
            if (m_imageWidth != null)
            {
                chartLegendCustomItemCell.m_imageWidth = (ExpressionInfo)m_imageWidth.PublishClone(context);
            }
            if (m_imageHeight != null)
            {
                chartLegendCustomItemCell.m_imageHeight = (ExpressionInfo)m_imageHeight.PublishClone(context);
            }
            if (m_symbolHeight != null)
            {
                chartLegendCustomItemCell.m_symbolHeight = (ExpressionInfo)m_symbolHeight.PublishClone(context);
            }
            if (m_symbolWidth != null)
            {
                chartLegendCustomItemCell.m_symbolWidth = (ExpressionInfo)m_symbolWidth.PublishClone(context);
            }
            if (m_alignment != null)
            {
                chartLegendCustomItemCell.m_alignment = (ExpressionInfo)m_alignment.PublishClone(context);
            }
            if (m_topMargin != null)
            {
                chartLegendCustomItemCell.m_topMargin = (ExpressionInfo)m_topMargin.PublishClone(context);
            }
            if (m_bottomMargin != null)
            {
                chartLegendCustomItemCell.m_bottomMargin = (ExpressionInfo)m_bottomMargin.PublishClone(context);
            }
            if (m_leftMargin != null)
            {
                chartLegendCustomItemCell.m_leftMargin = (ExpressionInfo)m_leftMargin.PublishClone(context);
            }
            if (m_rightMargin != null)
            {
                chartLegendCustomItemCell.m_rightMargin = (ExpressionInfo)m_rightMargin.PublishClone(context);
            }
            return(chartLegendCustomItemCell);
        }
Beispiel #3
0
 internal ChartLegendCustomItemCell(Microsoft.ReportingServices.ReportIntermediateFormat.ChartLegendCustomItemCell chartLegendCustomItemCellDef, Chart chart)
 {
     m_chartLegendCustomItemCellDef = chartLegendCustomItemCellDef;
     m_chart = chart;
 }