internal override object PublishClone(AutomaticSubtotalContext context)
        {
            ChartEmptyPoints chartEmptyPoints = (ChartEmptyPoints)base.PublishClone(context);

            if (m_action != null)
            {
                chartEmptyPoints.m_action = (Action)m_action.PublishClone(context);
            }
            if (m_marker != null)
            {
                chartEmptyPoints.m_marker = (ChartMarker)m_marker.PublishClone(context);
            }
            if (m_dataLabel != null)
            {
                chartEmptyPoints.m_dataLabel = (ChartDataLabel)m_dataLabel.PublishClone(context);
            }
            if (m_axisLabel != null)
            {
                chartEmptyPoints.m_axisLabel = (ExpressionInfo)m_axisLabel.PublishClone(context);
            }
            if (m_customProperties != null)
            {
                chartEmptyPoints.m_customProperties = new DataValueList(m_customProperties.Count);
                foreach (DataValue customProperty in m_customProperties)
                {
                    chartEmptyPoints.m_customProperties.Add((DataValue)customProperty.PublishClone(context));
                }
            }
            if (m_toolTip != null)
            {
                chartEmptyPoints.m_toolTip = (ExpressionInfo)m_toolTip.PublishClone(context);
            }
            return(chartEmptyPoints);
        }
Exemple #2
0
        public override void Deserialize(IntermediateFormatReader reader)
        {
            base.Deserialize(reader);
            reader.RegisterDeclaration(m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.Name:
                    m_name = reader.ReadString();
                    break;

                case MemberName.ChartDataPoints:
                    m_dataPoints = reader.ReadListOfRIFObjects <ChartDataPointList>();
                    break;

                case MemberName.ExprHostID:
                    m_exprHostID = reader.ReadInt32();
                    break;

                case MemberName.Chart:
                    m_chart = reader.ReadReference <Chart>(this);
                    break;

                case MemberName.ChartMember:
                    m_parentChartMember = reader.ReadReference <ChartMember>(this);
                    break;

                case MemberName.SourceSeries:
                    m_sourceSeries = reader.ReadReference <ChartSeries>(this);
                    break;

                case MemberName.Action:
                    m_action = (Action)reader.ReadRIFObject();
                    break;

                case MemberName.Type:
                    m_type = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.Subtype:
                    m_subtype = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.EmptyPoints:
                    m_emptyPoints = (ChartEmptyPoints)reader.ReadRIFObject();
                    break;

                case MemberName.LegendName:
                    m_legendName = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.LegendText:
                    m_legendText = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.ChartAreaName:
                    m_chartAreaName = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.ValueAxisName:
                    m_valueAxisName = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.CategoryAxisName:
                    m_categoryAxisName = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.StyleClass:
                    m_styleClass = (Style)reader.ReadRIFObject();
                    break;

                case MemberName.Hidden:
                    m_hidden = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.HideInLegend:
                    m_hideInLegend = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.ChartSmartLabel:
                    m_chartSmartLabel = (ChartSmartLabel)reader.ReadRIFObject();
                    break;

                case MemberName.CustomProperties:
                    m_customProperties = reader.ReadListOfRIFObjects <DataValueList>();
                    break;

                case MemberName.DataLabel:
                    m_dataLabel = (ChartDataLabel)reader.ReadRIFObject();
                    break;

                case MemberName.Marker:
                    m_marker = (ChartMarker)reader.ReadRIFObject();
                    break;

                case MemberName.ToolTip:
                    m_toolTip = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.ChartItemInLegend:
                    m_chartItemInLegend = (ChartItemInLegend)reader.ReadRIFObject();
                    break;

                default:
                    Global.Tracer.Assert(condition: false);
                    break;
                }
            }
        }
 internal ChartEmptyPoints(InternalChartSeries chartSeries, Microsoft.ReportingServices.ReportIntermediateFormat.ChartEmptyPoints chartEmptyPointsDef, Chart chart)
 {
     m_chartEmptyPointsDef = chartEmptyPointsDef;
     m_chart       = chart;
     m_chartSeries = chartSeries;
 }