コード例 #1
0
        internal CustomPropertyCollection(IReportScopeInstance romInstance, RenderingContext renderingContext, ReportElement reportElementOwner, ICustomPropertiesHolder customPropertiesHolder, ObjectType objectType, string objectName)
        {
            m_reportElementOwner = reportElementOwner;
            Microsoft.ReportingServices.ReportIntermediateFormat.DataValueList customProperties = customPropertiesHolder.CustomProperties;
            if (customProperties == null)
            {
                m_list = new List <CustomProperty>();
                return;
            }
            bool flag  = InstancePathItem.IsValidContext(customPropertiesHolder.InstancePath.InstancePath);
            int  count = customProperties.Count;

            m_list = new List <CustomProperty>(count);
            for (int i = 0; i < count; i++)
            {
                Microsoft.ReportingServices.ReportIntermediateFormat.DataValue dataValue = customProperties[i];
                string   name          = null;
                object   value         = null;
                TypeCode valueTypeCode = TypeCode.Empty;
                if (flag)
                {
                    dataValue.EvaluateNameAndValue(m_reportElementOwner, romInstance, customPropertiesHolder.InstancePath, renderingContext.OdpContext, objectType, objectName, out name, out value, out valueTypeCode);
                }
                CustomProperty customProperty = new CustomProperty(m_reportElementOwner, renderingContext, dataValue.Name, dataValue.Value, name, value, valueTypeCode);
                m_list.Add(customProperty);
                if (flag)
                {
                    AddPropToLookupTable(name, customProperty);
                }
            }
        }
コード例 #2
0
        internal void UpdateCustomProperties(IReportScopeInstance romInstance, ICustomPropertiesHolder customPropertiesHolder, OnDemandProcessingContext context, ObjectType objectType, string objectName)
        {
            Microsoft.ReportingServices.ReportIntermediateFormat.DataValueList customProperties = customPropertiesHolder.CustomProperties;
            int  count = m_list.Count;
            bool flag  = false;

            if (m_lookupTable == null)
            {
                flag = true;
            }
            for (int i = 0; i < count; i++)
            {
                string   name          = null;
                object   value         = null;
                TypeCode valueTypeCode = TypeCode.Empty;
                if (customProperties != null && i < customProperties.Count)
                {
                    customProperties[i].EvaluateNameAndValue(m_reportElementOwner, romInstance, customPropertiesHolder.InstancePath, context, objectType, objectName, out name, out value, out valueTypeCode);
                }
                m_list[i].Update(name, value, valueTypeCode);
                if (flag)
                {
                    AddPropToLookupTable(name, m_list[i]);
                }
            }
        }
コード例 #3
0
        public override void Deserialize(IntermediateFormatReader reader)
        {
            base.Deserialize(reader);
            reader.RegisterDeclaration(m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.DataPointValues:
                    m_dataPointValues = (ChartDataPointValues)reader.ReadRIFObject();
                    break;

                case MemberName.DataLabel:
                    m_dataLabel = (ChartDataLabel)reader.ReadRIFObject();
                    break;

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

                case MemberName.StyleClass:
                    m_styleClass = (Style)reader.ReadRIFObject();
                    break;

                case MemberName.DataElementName:
                    m_dataElementName = reader.ReadString();
                    break;

                case MemberName.DataElementOutput:
                    m_dataElementOutput = (DataElementOutputTypes)reader.ReadEnum();
                    break;

                case MemberName.CustomProperties:
                    m_customProperties = reader.ReadListOfRIFObjects <DataValueList>();
                    break;

                case MemberName.Marker:
                    m_marker = (ChartMarker)reader.ReadRIFObject();
                    break;

                case MemberName.AxisLabel:
                    m_axisLabel = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.ChartItemInLegend:
                    m_itemInLegend = (ChartItemInLegend)reader.ReadRIFObject();
                    break;

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

                default:
                    Global.Tracer.Assert(condition: false);
                    break;
                }
            }
        }
コード例 #4
0
 internal void ConstructCustomPropertyDefinitions(Microsoft.ReportingServices.ReportIntermediateFormat.DataValueList dataValueDefs)
 {
     Global.Tracer.Assert(dataValueDefs != null && m_list.Count == dataValueDefs.Count, "m_list.Count == dataValueDefs.Count");
     for (int i = 0; i < m_list.Count; i++)
     {
         CustomProperty customProperty = m_list[i];
         customProperty.ConstructCustomPropertyDefinition(dataValueDefs[i]);
         if (customProperty.Instance != null && customProperty.Instance.Name != null)
         {
             AddPropToLookupTable(customProperty.Instance.Name, customProperty);
         }
     }
 }
コード例 #5
0
 public override void Deserialize(IntermediateFormatReader reader)
 {
     base.Deserialize(reader);
     reader.RegisterDeclaration(m_Declaration);
     while (reader.NextMember())
     {
         MemberName memberName = reader.CurrentMember.MemberName;
         if (memberName == MemberName.DataValues)
         {
             m_dataValues = reader.ReadListOfRIFObjects <DataValueList>();
         }
         else
         {
             Global.Tracer.Assert(condition: false);
         }
     }
 }
コード例 #6
0
        public override void Deserialize(IntermediateFormatReader reader)
        {
            base.Deserialize(reader);
            reader.RegisterDeclaration(m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.Action:
                    m_action = (Action)reader.ReadRIFObject();
                    break;

                case MemberName.Marker:
                    m_marker = (ChartMarker)reader.ReadRIFObject();
                    break;

                case MemberName.DataLabel:
                    m_dataLabel = (ChartDataLabel)reader.ReadRIFObject();
                    break;

                case MemberName.AxisLabel:
                    m_axisLabel = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.CustomProperties:
                    m_customProperties = reader.ReadListOfRIFObjects <DataValueList>();
                    break;

                case MemberName.ChartSeries:
                    m_chartSeries = reader.ReadReference <ChartSeries>(this);
                    break;

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

                default:
                    Global.Tracer.Assert(condition: false);
                    break;
                }
            }
        }
コード例 #7
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.StyleClass:
                    m_styleClass = (Style)reader.ReadRIFObject();
                    break;

                case MemberName.Top:
                    m_top = reader.ReadString();
                    break;

                case MemberName.TopValue:
                    m_topValue = reader.ReadDouble();
                    break;

                case MemberName.Left:
                    m_left = reader.ReadString();
                    break;

                case MemberName.LeftValue:
                    m_leftValue = reader.ReadDouble();
                    break;

                case MemberName.Height:
                    m_height = reader.ReadString();
                    break;

                case MemberName.HeightValue:
                    m_heightValue = reader.ReadDouble();
                    break;

                case MemberName.Width:
                    m_width = reader.ReadString();
                    break;

                case MemberName.WidthValue:
                    m_widthValue = reader.ReadDouble();
                    break;

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

                case MemberName.Visibility:
                    m_visibility = (Visibility)reader.ReadRIFObject();
                    break;

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

                case MemberName.Label:
                    m_documentMapLabel = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.Bookmark:
                    m_bookmark = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.RepeatedSibling:
                    m_repeatedSibling = reader.ReadBoolean();
                    break;

                case MemberName.IsFullSize:
                    m_isFullSize = reader.ReadBoolean();
                    break;

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

                case MemberName.DataElementName:
                    m_dataElementName = reader.ReadString();
                    break;

                case MemberName.DataElementOutput:
                    m_dataElementOutput = (DataElementOutputTypes)reader.ReadEnum();
                    break;

                case MemberName.CustomProperties:
                    m_customProperties = reader.ReadListOfRIFObjects <DataValueList>();
                    break;

                case MemberName.Computed:
                    m_computed = reader.ReadBoolean();
                    break;

                case MemberName.ContainingDynamicVisibility:
                    m_containingDynamicVisibility = reader.ReadReference <IVisibilityOwner>(this);
                    break;

                case MemberName.ContainingDynamicRowVisibility:
                    m_containingDynamicRowVisibility = reader.ReadReference <IVisibilityOwner>(this);
                    break;

                case MemberName.ContainingDynamicColumnVisibility:
                    m_containingDynamicColumnVisibility = reader.ReadReference <IVisibilityOwner>(this);
                    break;

                case MemberName.RepeatWith:
                    m_repeatWith = reader.ReadString();
                    break;

                default:
                    Global.Tracer.Assert(condition: false);
                    break;
                }
            }
        }
コード例 #8
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.ChartDataPoints:
                    m_dataPoints = reader.ReadListOfRIFObjects <ChartDataPointList>();
                    break;

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

                case MemberName.Chart:
                    m_chart = reader.ReadReference <Chart>(this);
                    break;

                case MemberName.ChartMember:
                    m_parentChartMember = reader.ReadReference <ChartMember>(this);
                    break;

                case MemberName.SourceSeries:
                    m_sourceSeries = reader.ReadReference <ChartSeries>(this);
                    break;

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

                case MemberName.Type:
                    m_type = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.Subtype:
                    m_subtype = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.EmptyPoints:
                    m_emptyPoints = (ChartEmptyPoints)reader.ReadRIFObject();
                    break;

                case MemberName.LegendName:
                    m_legendName = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.LegendText:
                    m_legendText = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.ChartAreaName:
                    m_chartAreaName = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.ValueAxisName:
                    m_valueAxisName = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.CategoryAxisName:
                    m_categoryAxisName = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.StyleClass:
                    m_styleClass = (Style)reader.ReadRIFObject();
                    break;

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

                case MemberName.HideInLegend:
                    m_hideInLegend = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.ChartSmartLabel:
                    m_chartSmartLabel = (ChartSmartLabel)reader.ReadRIFObject();
                    break;

                case MemberName.CustomProperties:
                    m_customProperties = reader.ReadListOfRIFObjects <DataValueList>();
                    break;

                case MemberName.DataLabel:
                    m_dataLabel = (ChartDataLabel)reader.ReadRIFObject();
                    break;

                case MemberName.Marker:
                    m_marker = (ChartMarker)reader.ReadRIFObject();
                    break;

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

                case MemberName.ChartItemInLegend:
                    m_chartItemInLegend = (ChartItemInLegend)reader.ReadRIFObject();
                    break;

                default:
                    Global.Tracer.Assert(condition: false);
                    break;
                }
            }
        }
コード例 #9
0
        public override void Deserialize(IntermediateFormatReader reader)
        {
            base.Deserialize(reader);
            reader.RegisterDeclaration(m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.CategoryMembers:
                    m_categoryMembers = reader.ReadListOfRIFObjects <ChartMemberList>();
                    break;

                case MemberName.SeriesMembers:
                    m_seriesMembers = reader.ReadListOfRIFObjects <ChartMemberList>();
                    break;

                case MemberName.ChartSeriesCollection:
                    m_chartSeriesCollection = reader.ReadListOfRIFObjects <ChartSeriesList>();
                    break;

                case MemberName.ChartDerivedSeriesCollection:
                    m_chartDerivedSeriesCollection = reader.ReadGenericListOfRIFObjects <ChartDerivedSeries>();
                    break;

                case MemberName.Palette:
                    m_palette = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.ChartLegends:
                    m_legends = reader.ReadGenericListOfRIFObjects <ChartLegend>();
                    break;

                case MemberName.ChartAreas:
                    m_chartAreas = reader.ReadGenericListOfRIFObjects <ChartArea>();
                    break;

                case MemberName.Titles:
                    m_titles = reader.ReadGenericListOfRIFObjects <ChartTitle>();
                    break;

                case MemberName.DynamicHeight:
                    m_dynamicHeight = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.DynamicWidth:
                    m_dynamicWidth = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.CodeParameters:
                    m_codeParameters = reader.ReadListOfRIFObjects <DataValueList>();
                    break;

                case MemberName.CustomPaletteColors:
                    m_customPaletteColors = reader.ReadGenericListOfRIFObjects <ChartCustomPaletteColor>();
                    break;

                case MemberName.NoDataMessage:
                    m_noDataMessage = (ChartNoDataMessage)reader.ReadRIFObject();
                    break;

                case MemberName.BorderSkin:
                    m_borderSkin = (ChartBorderSkin)reader.ReadRIFObject();
                    break;

                case MemberName.DataValueSequenceRendering:
                    m_dataValueSequenceRendering = reader.ReadBoolean();
                    break;

                case MemberName.PaletteHatchBehavior:
                    m_paletteHatchBehavior = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.ColumnGroupingIsSwitched:
                    m_columnGroupingIsSwitched = reader.ReadBoolean();
                    break;

                case MemberName.EnableCategoryDrilldown:
                    m_enableCategoryDrilldown = reader.ReadBoolean();
                    break;

                default:
                    Global.Tracer.Assert(condition: false);
                    break;
                }
            }
        }