Пример #1
0
        internal object PublishClone(AutomaticSubtotalContext context)
        {
            MapLimits mapLimits = (MapLimits)MemberwiseClone();

            mapLimits.m_map = context.CurrentMapClone;
            if (m_minimumX != null)
            {
                mapLimits.m_minimumX = (ExpressionInfo)m_minimumX.PublishClone(context);
            }
            if (m_minimumY != null)
            {
                mapLimits.m_minimumY = (ExpressionInfo)m_minimumY.PublishClone(context);
            }
            if (m_maximumX != null)
            {
                mapLimits.m_maximumX = (ExpressionInfo)m_maximumX.PublishClone(context);
            }
            if (m_maximumY != null)
            {
                mapLimits.m_maximumY = (ExpressionInfo)m_maximumY.PublishClone(context);
            }
            if (m_limitToData != null)
            {
                mapLimits.m_limitToData = (ExpressionInfo)m_limitToData.PublishClone(context);
            }
            return(mapLimits);
        }
Пример #2
0
        public override void Deserialize(IntermediateFormatReader reader)
        {
            base.Deserialize(reader);
            reader.RegisterDeclaration(m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.MapCoordinateSystem:
                    m_mapCoordinateSystem = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.MapProjection:
                    m_mapProjection = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.ProjectionCenterX:
                    m_projectionCenterX = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.ProjectionCenterY:
                    m_projectionCenterY = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.MapLimits:
                    m_mapLimits = (MapLimits)reader.ReadRIFObject();
                    break;

                case MemberName.MapView:
                    m_mapView = (MapView)reader.ReadRIFObject();
                    break;

                case MemberName.MaximumZoom:
                    m_maximumZoom = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.MinimumZoom:
                    m_minimumZoom = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.ContentMargin:
                    m_contentMargin = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.MapMeridians:
                    m_mapMeridians = (MapGridLines)reader.ReadRIFObject();
                    break;

                case MemberName.MapParallels:
                    m_mapParallels = (MapGridLines)reader.ReadRIFObject();
                    break;

                case MemberName.GridUnderContent:
                    m_gridUnderContent = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.SimplificationResolution:
                    m_simplificationResolution = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                default:
                    Global.Tracer.Assert(condition: false);
                    break;
                }
            }
        }
Пример #3
0
 internal MapLimits(Microsoft.ReportingServices.ReportIntermediateFormat.MapLimits defObject, Map map)
 {
     m_defObject = defObject;
     m_map       = map;
 }