Exemple #1
0
        internal object PublishClone(AutomaticSubtotalContext context)
        {
            ChartThreeDProperties chartThreeDProperties = (ChartThreeDProperties)MemberwiseClone();

            chartThreeDProperties.m_chart = (Chart)context.CurrentDataRegionClone;
            if (m_enabled != null)
            {
                chartThreeDProperties.m_enabled = (ExpressionInfo)m_enabled.PublishClone(context);
            }
            if (m_projectionMode != null)
            {
                chartThreeDProperties.m_projectionMode = (ExpressionInfo)m_projectionMode.PublishClone(context);
            }
            if (m_rotation != null)
            {
                chartThreeDProperties.m_rotation = (ExpressionInfo)m_rotation.PublishClone(context);
            }
            if (m_inclination != null)
            {
                chartThreeDProperties.m_inclination = (ExpressionInfo)m_inclination.PublishClone(context);
            }
            if (m_perspective != null)
            {
                chartThreeDProperties.m_perspective = (ExpressionInfo)m_perspective.PublishClone(context);
            }
            if (m_depthRatio != null)
            {
                chartThreeDProperties.m_depthRatio = (ExpressionInfo)m_depthRatio.PublishClone(context);
            }
            if (m_shading != null)
            {
                chartThreeDProperties.m_shading = (ExpressionInfo)m_shading.PublishClone(context);
            }
            if (m_gapDepth != null)
            {
                chartThreeDProperties.m_gapDepth = (ExpressionInfo)m_gapDepth.PublishClone(context);
            }
            if (m_wallThickness != null)
            {
                chartThreeDProperties.m_wallThickness = (ExpressionInfo)m_wallThickness.PublishClone(context);
            }
            if (m_clustered != null)
            {
                chartThreeDProperties.m_clustered = (ExpressionInfo)m_clustered.PublishClone(context);
            }
            return(chartThreeDProperties);
        }
 internal ChartThreeDProperties(Microsoft.ReportingServices.ReportIntermediateFormat.ChartThreeDProperties threeDPropertiesDef, Chart chart)
 {
     m_chart = chart;
     m_chartThreeDPropertiesDef = threeDPropertiesDef;
 }
Exemple #3
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.CategoryAxes:
                    m_categoryAxes = reader.ReadGenericListOfRIFObjects <ChartAxis>();
                    break;

                case MemberName.ValueAxes:
                    m_valueAxes = reader.ReadGenericListOfRIFObjects <ChartAxis>();
                    break;

                case MemberName.ThreeDProperties:
                    m_3dProperties = (ChartThreeDProperties)reader.ReadRIFObject();
                    break;

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

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

                case MemberName.AlignOrientation:
                    m_alignOrientation = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.ChartAlignType:
                    m_chartAlignType = (ChartAlignType)reader.ReadRIFObject();
                    break;

                case MemberName.AlignWithChartArea:
                    m_alignWithChartArea = reader.ReadString();
                    break;

                case MemberName.EquallySizedAxesFont:
                    m_equallySizedAxesFont = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.ChartElementPosition:
                    m_chartElementPosition = (ChartElementPosition)reader.ReadRIFObject();
                    break;

                case MemberName.ChartInnerPlotPosition:
                    m_chartInnerPlotPosition = (ChartElementPosition)reader.ReadRIFObject();
                    break;

                default:
                    Global.Tracer.Assert(condition: false);
                    break;
                }
            }
        }