Exemplo n.º 1
0
        public override void Deserialize(IntermediateFormatReader reader)
        {
            base.Deserialize(reader);
            reader.RegisterDeclaration(MapLegend.m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.Name:
                    this.m_name = reader.ReadString();
                    break;

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

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

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

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

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

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

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

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

                default:
                    Global.Tracer.Assert(false);
                    break;
                }
            }
        }
Exemplo n.º 2
0
        public override object PublishClone(AutomaticSubtotalContext context)
        {
            MapLegendTitle mapLegendTitle = (MapLegendTitle)base.PublishClone(context);

            if (this.m_caption != null)
            {
                mapLegendTitle.m_caption = (ExpressionInfo)this.m_caption.PublishClone(context);
            }
            if (this.m_titleSeparator != null)
            {
                mapLegendTitle.m_titleSeparator = (ExpressionInfo)this.m_titleSeparator.PublishClone(context);
            }
            if (this.m_titleSeparatorColor != null)
            {
                mapLegendTitle.m_titleSeparatorColor = (ExpressionInfo)this.m_titleSeparatorColor.PublishClone(context);
            }
            return(mapLegendTitle);
        }
Exemplo n.º 3
0
 public MapLegendTitle(AspNetCore.ReportingServices.ReportIntermediateFormat.MapLegendTitle defObject, Map map)
 {
     this.m_defObject = defObject;
     this.m_map       = map;
 }