Ejemplo n.º 1
0
        public override void Deserialize(IntermediateFormatReader reader)
        {
            base.Deserialize(reader);
            reader.RegisterDeclaration(m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.MapLocation:
                    m_mapLocation = (MapLocation)reader.ReadRIFObject();
                    break;

                case MemberName.MapSize:
                    m_mapSize = (MapSize)reader.ReadRIFObject();
                    break;

                case MemberName.LeftMargin:
                    m_leftMargin = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.RightMargin:
                    m_rightMargin = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.TopMargin:
                    m_topMargin = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.BottomMargin:
                    m_bottomMargin = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.ZIndex:
                    m_zIndex = (ExpressionInfo)reader.ReadRIFObject();
                    break;

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

                default:
                    Global.Tracer.Assert(condition: false);
                    break;
                }
            }
        }
Ejemplo n.º 2
0
        internal object PublishClone(AutomaticSubtotalContext context)
        {
            MapSize mapSize = (MapSize)MemberwiseClone();

            mapSize.m_map = context.CurrentMapClone;
            if (m_width != null)
            {
                mapSize.m_width = (ExpressionInfo)m_width.PublishClone(context);
            }
            if (m_height != null)
            {
                mapSize.m_height = (ExpressionInfo)m_height.PublishClone(context);
            }
            if (m_unit != null)
            {
                mapSize.m_unit = (ExpressionInfo)m_unit.PublishClone(context);
            }
            return(mapSize);
        }
Ejemplo n.º 3
0
 internal MapSize(Microsoft.ReportingServices.ReportIntermediateFormat.MapSize defObject, Map map)
 {
     m_defObject = defObject;
     m_map       = map;
 }