Пример #1
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.Layout:
                    m_layout = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.MapLegendTitle:
                    m_mapLegendTitle = (MapLegendTitle)reader.ReadRIFObject();
                    break;

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

                case MemberName.MinFontSize:
                    m_minFontSize = (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.TextWrapThreshold:
                    m_textWrapThreshold = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                default:
                    Global.Tracer.Assert(condition: false);
                    break;
                }
            }
        }
Пример #2
0
        internal override object PublishClone(AutomaticSubtotalContext context)
        {
            MapLegendTitle mapLegendTitle = (MapLegendTitle)base.PublishClone(context);

            if (m_caption != null)
            {
                mapLegendTitle.m_caption = (ExpressionInfo)m_caption.PublishClone(context);
            }
            if (m_titleSeparator != null)
            {
                mapLegendTitle.m_titleSeparator = (ExpressionInfo)m_titleSeparator.PublishClone(context);
            }
            if (m_titleSeparatorColor != null)
            {
                mapLegendTitle.m_titleSeparatorColor = (ExpressionInfo)m_titleSeparatorColor.PublishClone(context);
            }
            return(mapLegendTitle);
        }
Пример #3
0
 internal MapLegendTitle(Microsoft.ReportingServices.ReportIntermediateFormat.MapLegendTitle defObject, Map map)
 {
     m_defObject = defObject;
     m_map       = map;
 }