Exemple #1
0
        internal object PublishClone(AutomaticSubtotalContext context)
        {
            ChartElementPosition chartElementPosition = (ChartElementPosition)MemberwiseClone();

            chartElementPosition.m_chart = (Chart)context.CurrentDataRegionClone;
            if (m_top != null)
            {
                chartElementPosition.m_top = (ExpressionInfo)m_top.PublishClone(context);
            }
            if (m_left != null)
            {
                chartElementPosition.m_left = (ExpressionInfo)m_left.PublishClone(context);
            }
            if (m_height != null)
            {
                chartElementPosition.m_height = (ExpressionInfo)m_height.PublishClone(context);
            }
            if (m_width != null)
            {
                chartElementPosition.m_width = (ExpressionInfo)m_width.PublishClone(context);
            }
            return(chartElementPosition);
        }
        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.Position:
                    m_position = (ExpressionInfo)reader.ReadRIFObject();
                    break;

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

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

                case MemberName.Docking:
                    m_docking = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.DockToChartArea:
                    m_dockToChartArea = reader.ReadString();
                    break;

                case MemberName.DockOutsideChartArea:
                    m_dockOutsideChartArea = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.DockOffset:
                    m_dockOffset = (ExpressionInfo)reader.ReadRIFObject();
                    break;

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

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

                case MemberName.TextOrientation:
                    m_textOrientation = (ExpressionInfo)reader.ReadRIFObject();
                    break;

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

                default:
                    Global.Tracer.Assert(condition: false);
                    break;
                }
            }
        }
 internal ChartElementPosition(Microsoft.ReportingServices.ReportIntermediateFormat.ChartElementPosition defObject, Chart chart)
 {
     m_defObject = defObject;
     m_chart     = chart;
 }
Exemple #4
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.Hidden:
                    m_hidden = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.Position:
                    m_position = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.Layout:
                    m_layout = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.DockToChartArea:
                    m_dockToChartArea = reader.ReadString();
                    break;

                case MemberName.DockOutsideChartArea:
                    m_dockOutsideChartArea = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.ChartLegendTitle:
                    m_chartLegendTitle = (ChartLegendTitle)reader.ReadRIFObject();
                    break;

                case MemberName.AutoFitTextDisabled:
                    m_autoFitTextDisabled = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.MinFontSize:
                    m_minFontSize = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.HeaderSeparator:
                    m_headerSeparator = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.HeaderSeparatorColor:
                    m_headerSeparatorColor = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.ColumnSeparator:
                    m_columnSeparator = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.ColumnSeparatorColor:
                    m_columnSeparatorColor = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.ColumnSpacing:
                    m_columnSpacing = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.InterlacedRows:
                    m_interlacedRows = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.InterlacedRowsColor:
                    m_interlacedRowsColor = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.EquallySpacedItems:
                    m_equallySpacedItems = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.Reversed:
                    m_reversed = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.MaxAutoSize:
                    m_maxAutoSize = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.TextWrapThreshold:
                    m_textWrapThreshold = (ExpressionInfo)reader.ReadRIFObject();
                    break;

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

                case MemberName.ChartLegendCustomItems:
                    m_chartLegendCustomItems = reader.ReadGenericListOfRIFObjects <ChartLegendCustomItem>();
                    break;

                case MemberName.ChartLegendColumns:
                    m_chartLegendColumns = reader.ReadGenericListOfRIFObjects <ChartLegendColumn>();
                    break;

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

                default:
                    Global.Tracer.Assert(condition: false);
                    break;
                }
            }
        }
Exemple #5
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;
                }
            }
        }