예제 #1
0
        internal void SetExprHost(ChartLegendExprHost exprHost, ObjectModelImpl reportObjectModel)
        {
            Global.Tracer.Assert(exprHost != null && reportObjectModel != null, "(exprHost != null && reportObjectModel != null)");
            base.SetExprHost(exprHost, reportObjectModel);
            m_exprHost = exprHost;
            if (m_chartLegendTitle != null && exprHost.TitleExprHost != null)
            {
                m_chartLegendTitle.SetExprHost(exprHost.TitleExprHost, reportObjectModel);
            }
            IList <ChartLegendCustomItemExprHost> chartLegendCustomItemsHostsRemotable = m_exprHost.ChartLegendCustomItemsHostsRemotable;

            if (m_chartLegendCustomItems != null && chartLegendCustomItemsHostsRemotable != null)
            {
                for (int i = 0; i < m_chartLegendCustomItems.Count; i++)
                {
                    ChartLegendCustomItem chartLegendCustomItem = m_chartLegendCustomItems[i];
                    if (chartLegendCustomItem != null && chartLegendCustomItem.ExpressionHostID > -1)
                    {
                        chartLegendCustomItem.SetExprHost(chartLegendCustomItemsHostsRemotable[chartLegendCustomItem.ExpressionHostID], reportObjectModel);
                    }
                }
            }
            IList <ChartLegendColumnExprHost> chartLegendColumnsHostsRemotable = m_exprHost.ChartLegendColumnsHostsRemotable;

            if (m_chartLegendColumns != null && chartLegendColumnsHostsRemotable != null)
            {
                for (int j = 0; j < m_chartLegendColumns.Count; j++)
                {
                    ChartLegendColumn chartLegendColumn = m_chartLegendColumns[j];
                    if (chartLegendColumn != null && chartLegendColumn.ExpressionHostID > -1)
                    {
                        chartLegendColumn.SetExprHost(chartLegendColumnsHostsRemotable[chartLegendColumn.ExpressionHostID], reportObjectModel);
                    }
                }
            }
            if (m_chartElementPosition != null && m_exprHost.ChartElementPositionHost != null)
            {
                m_chartElementPosition.SetExprHost(m_exprHost.ChartElementPositionHost, reportObjectModel);
            }
        }
        internal override object PublishClone(AutomaticSubtotalContext context)
        {
            ChartLegendCustomItem chartLegendCustomItem = (ChartLegendCustomItem)base.PublishClone(context);

            if (m_action != null)
            {
                chartLegendCustomItem.m_action = (Action)m_action.PublishClone(context);
            }
            if (m_marker != null)
            {
                chartLegendCustomItem.m_marker = (ChartMarker)m_marker.PublishClone(context);
            }
            if (m_separator != null)
            {
                chartLegendCustomItem.m_separator = (ExpressionInfo)m_separator.PublishClone(context);
            }
            if (m_separatorColor != null)
            {
                chartLegendCustomItem.m_separatorColor = (ExpressionInfo)m_separatorColor.PublishClone(context);
            }
            if (m_toolTip != null)
            {
                chartLegendCustomItem.m_toolTip = (ExpressionInfo)m_toolTip.PublishClone(context);
            }
            if (m_chartLegendCustomItemCells != null)
            {
                chartLegendCustomItem.m_chartLegendCustomItemCells = new List <ChartLegendCustomItemCell>(m_chartLegendCustomItemCells.Count);
                {
                    foreach (ChartLegendCustomItemCell chartLegendCustomItemCell in m_chartLegendCustomItemCells)
                    {
                        chartLegendCustomItem.m_chartLegendCustomItemCells.Add((ChartLegendCustomItemCell)chartLegendCustomItemCell.PublishClone(context));
                    }
                    return(chartLegendCustomItem);
                }
            }
            return(chartLegendCustomItem);
        }
예제 #3
0
 internal ChartLegendCustomItem(Microsoft.ReportingServices.ReportIntermediateFormat.ChartLegendCustomItem chartLegendCustomItemDef, Chart chart)
 {
     m_chartLegendCustomItemDef = chartLegendCustomItemDef;
     m_chart = chart;
 }