public void Deserialize(IntermediateFormatReader reader)
        {
            reader.RegisterDeclaration(m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.DataSetName:
                    m_dataSetName = reader.ReadString();
                    break;

                case MemberName.Key:
                {
                    string item = reader.ReadString();
                    m_keyFields = new List <string>(1);
                    m_keyFields.Add(item);
                    break;
                }

                case MemberName.Label:
                    m_label = reader.ReadString();
                    break;

                case MemberName.KeyFields:
                    m_keyFields = reader.ReadListOfPrimitives <string>();
                    break;

                default:
                    Global.Tracer.Assert(condition: false);
                    break;
                }
            }
        }
Exemple #2
0
        public override void Deserialize(IntermediateFormatReader reader)
        {
            base.Deserialize(reader);
            reader.RegisterDeclaration(HeaderFooterReferences.GetDeclaration());
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.Header:
                    this.Header = reader.ReadString();
                    break;

                case MemberName.Footer:
                    this.Footer = reader.ReadString();
                    break;

                case MemberName.FirstPageHeader:
                    this.FirstPageHeader = reader.ReadString();
                    break;

                case MemberName.FirstPageFooter:
                    this.FirstPageFooter = reader.ReadString();
                    break;

                default:
                    WordOpenXmlUtils.FailSerializable();
                    break;
                }
            }
        }
Exemple #3
0
        public void Deserialize(IntermediateFormatReader reader)
        {
            reader.RegisterDeclaration(ImageInfo.m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.StreamName:
                    this.m_streamName = reader.ReadString();
                    break;

                case MemberName.MIMEType:
                    this.m_mimeType = reader.ReadString();
                    break;

                case MemberName.ErrorOccurred:
                    this.m_errorOccurred = reader.ReadBoolean();
                    break;

                default:
                    Global.Tracer.Assert(false);
                    break;
                }
            }
        }
        public void Deserialize(IntermediateFormatReader reader)
        {
            reader.RegisterDeclaration(MapField.m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.Map:
                    this.m_map = reader.ReadReference <Map>(this);
                    break;

                case MemberName.Name:
                    this.m_name = reader.ReadString();
                    break;

                case MemberName.Value:
                    this.m_value = reader.ReadString();
                    break;

                default:
                    Global.Tracer.Assert(false);
                    break;
                }
            }
        }
Exemple #5
0
        public void Deserialize(IntermediateFormatReader reader)
        {
            reader.RegisterDeclaration(m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.Map:
                    m_map = reader.ReadReference <Map>(this);
                    break;

                case MemberName.Name:
                    m_name = reader.ReadString();
                    break;

                case MemberName.TileData:
                    m_tileData = reader.ReadString();
                    break;

                case MemberName.MIMEType:
                    m_mIMEType = reader.ReadString();
                    break;

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

                default:
                    Global.Tracer.Assert(condition: false);
                    break;
                }
            }
        }
Exemple #6
0
        public void Deserialize(IntermediateFormatReader reader)
        {
            reader.RegisterDeclaration(LookupInfo.m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.ResultExpr:
                    this.m_resultExpr = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.DataSetName:
                    this.m_dataSetName = reader.ReadString();
                    break;

                case MemberName.SourceExpr:
                    this.m_sourceExpr = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.IsMultiValue:
                    if (reader.ReadBoolean())
                    {
                        this.m_lookupType = LookupType.LookupSet;
                    }
                    else
                    {
                        this.m_lookupType = LookupType.Lookup;
                    }
                    break;

                case MemberName.DestinationIndexInCollection:
                    this.m_destinationIndexInCollection = reader.ReadInt32();
                    break;

                case MemberName.Name:
                    this.m_name = reader.ReadString();
                    break;

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

                case MemberName.DataSetIndexInCollection:
                    this.m_dataSetIndexInCollection = reader.ReadInt32();
                    break;

                case MemberName.LookupType:
                    this.m_lookupType = (LookupType)reader.ReadEnum();
                    break;

                default:
                    Global.Tracer.Assert(false);
                    break;
                }
            }
        }
Exemple #7
0
        public void Deserialize(IntermediateFormatReader reader)
        {
            reader.RegisterDeclaration(TextRun.m_declaration);
            IScalabilityCache scalabilityCache = reader.PersistenceHelper as IScalabilityCache;

            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.Text:
                    this.m_text = reader.ReadString();
                    break;

                case MemberName.Style:
                    this.m_styles = reader.ReadByteVariantHashtable <Dictionary <byte, object> >();
                    break;

                case MemberName.ToolTip:
                    this.m_toolTip = reader.ReadString();
                    break;

                case MemberName.MarkupType:
                    this.m_markup = (byte?)(object)(reader.ReadVariant() as byte?);
                    break;

                case MemberName.Actions:
                    this.m_hyperlinks = reader.ReadListOfPrimitives <string>();
                    break;

                case MemberName.UniqueName:
                    this.m_uniqueName = reader.ReadString();
                    break;

                case MemberName.Source:
                    this.m_source = (AspNetCore.ReportingServices.OnDemandReportRendering.TextRun)scalabilityCache.FetchStaticReference(reader.ReadInt32());
                    break;

                case MemberName.Indexes:
                    this.m_splitIndices = reader.ReadListOfPrimitives <int>();
                    break;

                case MemberName.Offset:
                    this.m_startCharacterOffset = reader.ReadInt32();
                    break;

                case MemberName.Key:
                    this.m_fontKey = reader.ReadString();
                    break;

                default:
                    RSTrace.RenderingTracer.Assert(false, string.Empty);
                    break;
                }
            }
        }
Exemple #8
0
        void IPersistable.Deserialize(IntermediateFormatReader reader)
        {
            reader.RegisterDeclaration(m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.Shape:
                    m_shape = (ImageMapArea.ImageMapAreaShape)reader.ReadEnum();
                    break;

                case MemberName.Coordinates:
                    m_coordinates = reader.ReadSingleArray();
                    break;

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

                default:
                    Global.Tracer.Assert(condition: false);
                    break;
                }
            }
        }
        public void Deserialize(IntermediateFormatReader reader)
        {
            reader.RegisterDeclaration(m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.Hidden:
                    m_hidden = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.Toggle:
                    m_toggle = reader.ReadString();
                    break;

                case MemberName.RecursiveReceiver:
                    m_recursiveReceiver = reader.ReadBoolean();
                    break;

                case MemberName.ToggleSender:
                    m_toggleSender = reader.ReadReference <TextBox>(this);
                    break;

                case MemberName.RecursiveMember:
                    m_recursiveMember = reader.ReadReference <TablixMember>(this);
                    break;

                default:
                    Global.Tracer.Assert(condition: false);
                    break;
                }
            }
        }
Exemple #10
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.Text:
                    m_text = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.Angle:
                    m_angle = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.TextShadowOffset:
                    m_textShadowOffset = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                default:
                    Global.Tracer.Assert(condition: false);
                    break;
                }
            }
        }
Exemple #11
0
        public void Deserialize(IntermediateFormatReader reader)
        {
            reader.RegisterDeclaration(m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.Value:
                    m_odpParameter.SetValues(reader.ReadVariantArray());
                    break;

                case MemberName.Label:
                    m_odpParameter.SetLabels(reader.ReadStringArray());
                    break;

                case MemberName.IsMultiValue:
                    m_odpParameter.SetIsMultiValue(reader.ReadBoolean());
                    break;

                case MemberName.Prompt:
                    m_odpParameter.SetPrompt(reader.ReadString());
                    break;

                case MemberName.IsUserSupplied:
                    m_odpParameter.SetIsUserSupplied(reader.ReadBoolean());
                    break;

                default:
                    Global.Tracer.Assert(condition: false);
                    break;
                }
            }
        }
Exemple #12
0
        public void Deserialize(IntermediateFormatReader reader)
        {
            reader.RegisterDeclaration(Variable.m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.Name:
                    this.m_name = reader.ReadString();
                    break;

                case MemberName.Value:
                    this.m_value = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.DataType:
                    this.m_constantDataType = (DataType)reader.ReadEnum();
                    break;

                case MemberName.SequenceID:
                    this.m_sequenceID = reader.ReadInt32();
                    break;

                case MemberName.Writable:
                    this.m_writable = reader.ReadBoolean();
                    break;

                default:
                    Global.Tracer.Assert(false);
                    break;
                }
            }
        }
Exemple #13
0
        public void Deserialize(IntermediateFormatReader reader)
        {
            reader.RegisterDeclaration(m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.ParameterCellColumnIndex:
                    ColumnIndex = reader.ReadInt32();
                    break;

                case MemberName.ParameterCellRowIndex:
                    RowIndex = reader.ReadInt32();
                    break;

                case MemberName.ParameterName:
                    ParameterName = reader.ReadString();
                    break;

                default:
                    Global.Tracer.Assert(condition: false, "Unexpected RIF Member for ParametersGridCellDefinition");
                    break;
                }
            }
        }
Exemple #14
0
        public virtual void Deserialize(IntermediateFormatReader reader)
        {
            reader.RegisterDeclaration(MapSpatialElement.m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.Map:
                    this.m_map = reader.ReadReference <Map>(this);
                    break;

                case MemberName.MapVectorLayer:
                    this.m_mapVectorLayer = reader.ReadReference <MapVectorLayer>(this);
                    break;

                case MemberName.VectorData:
                    this.m_vectorData = reader.ReadString();
                    break;

                case MemberName.MapFields:
                    this.m_mapFields = reader.ReadGenericListOfRIFObjects <MapField>();
                    break;

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

                default:
                    Global.Tracer.Assert(false);
                    break;
                }
            }
        }
        public void Deserialize(IntermediateFormatReader reader)
        {
            reader.RegisterDeclaration(m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.Map:
                    m_map = reader.ReadReference <Map>(this);
                    break;

                case MemberName.Name:
                    m_name = reader.ReadString();
                    break;

                case MemberName.DataType:
                    m_dataType = (MapDataType)reader.ReadEnum();
                    break;

                default:
                    Global.Tracer.Assert(condition: false);
                    break;
                }
            }
        }
        public void Deserialize(IntermediateFormatReader reader)
        {
            reader.RegisterDeclaration(OpenXmlBorderPropertiesModel.GetDeclaration());
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.Color:
                    this.Color = reader.ReadString();
                    break;

                case MemberName.Width:
                    this._widthInEighthPoints = reader.ReadInt32();
                    break;

                case MemberName.Style:
                    this.Style = (BorderStyle)reader.ReadByte();
                    break;

                default:
                    WordOpenXmlUtils.FailSerializable();
                    break;
                }
            }
        }
        public override void Deserialize(IntermediateFormatReader reader)
        {
            base.Deserialize(reader);
            reader.RegisterDeclaration(m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.Size:
                    m_size = reader.ReadString();
                    break;

                case MemberName.SizeValue:
                    m_sizeValue = reader.ReadDouble();
                    break;

                case MemberName.CellContents:
                    m_cellContents = (ReportItem)reader.ReadRIFObject();
                    break;

                case MemberName.AltCellContents:
                    m_altCellContents = (ReportItem)reader.ReadRIFObject();
                    break;

                default:
                    Global.Tracer.Assert(condition: false);
                    break;
                }
            }
        }
Exemple #18
0
        public override void Deserialize(IntermediateFormatReader reader)
        {
            base.Deserialize(reader);
            reader.RegisterDeclaration(m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.ChartMembers:
                    m_chartMembers = reader.ReadListOfRIFObjects <ChartMemberList>();
                    break;

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

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

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

                default:
                    Global.Tracer.Assert(condition: false);
                    break;
                }
            }
        }
        public override void Deserialize(IntermediateFormatReader reader)
        {
            base.Deserialize(reader);
            reader.RegisterDeclaration(TablixRow.m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.Height:
                    this.m_height = reader.ReadString();
                    break;

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

                case MemberName.TablixCells:
                    this.m_cells = reader.ReadListOfRIFObjects <TablixCellList>();
                    break;

                default:
                    Global.Tracer.Assert(false);
                    break;
                }
            }
        }
Exemple #20
0
        public override void Deserialize(IntermediateFormatReader reader)
        {
            base.Deserialize(reader);
            reader.RegisterDeclaration(ReportInstance.m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.NoRows:
                    this.m_noRows = reader.ReadBoolean();
                    break;

                case MemberName.Language:
                    this.m_language = reader.ReadString();
                    break;

                case MemberName.Variables:
                    this.m_variables = reader.ReadVariantArray();
                    break;

                case MemberName.SerializableVariables:
                    this.m_variables = reader.ReadSerializableArray();
                    break;

                default:
                    Global.Tracer.Assert(false);
                    break;
                }
            }
        }
        public override void Deserialize(IntermediateFormatReader reader)
        {
            base.Deserialize(reader);
            reader.RegisterDeclaration(RunningValueInfo.m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.Scope:
                    this.m_scope = reader.ReadString();
                    break;

                case MemberName.TotalGroupingExpressionCount:
                    this.m_totalGroupingExpressionCount = reader.ReadInt32();
                    break;

                case MemberName.IsScopedInEvaluationScope:
                    this.m_isScopedInEvaluationScope = reader.ReadBoolean();
                    break;

                default:
                    Global.Tracer.Assert(false);
                    break;
                }
            }
        }
Exemple #22
0
        public override void Deserialize(IntermediateFormatReader reader)
        {
            base.Deserialize(reader);
            reader.RegisterDeclaration(MapVectorLayer.m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.MapDataRegionName:
                    this.m_mapDataRegionName = reader.ReadString();
                    break;

                case MemberName.MapBindingFieldPairs:
                    this.m_mapBindingFieldPairs = reader.ReadGenericListOfRIFObjects <MapBindingFieldPair>();
                    break;

                case MemberName.MapFieldDefinitions:
                    this.m_mapFieldDefinitions = reader.ReadGenericListOfRIFObjects <MapFieldDefinition>();
                    break;

                case MemberName.MapSpatialData:
                    this.m_mapSpatialData = (MapSpatialData)reader.ReadRIFObject();
                    break;

                case MemberName.ExprHostMapMemberID:
                    this.m_exprHostMapMemberID = reader.ReadInt32();
                    break;

                case MemberName.ID:
                    this.m_ID = reader.ReadInt32();
                    break;

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

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

                default:
                    Global.Tracer.Assert(false);
                    break;
                }
            }
        }
        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.ID:
                    m_id = reader.ReadInt32();
                    break;

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

                case MemberName.OffsetX:
                    m_offsetX = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.OffsetY:
                    m_offsetY = (ExpressionInfo)reader.ReadRIFObject();
                    break;

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

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

                case MemberName.MapVectorLayer:
                    m_mapVectorLayer = reader.ReadReference <MapVectorLayer>(this);
                    break;

                case MemberName.DataElementLabel:
                    m_dataElementLabel = (ExpressionInfo)reader.ReadRIFObject();
                    break;

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

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

                default:
                    Global.Tracer.Assert(condition: false);
                    break;
                }
            }
        }
Exemple #24
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;
                }
            }
        }
        public override void Deserialize(IntermediateFormatReader reader)
        {
            base.Deserialize(reader);
            reader.RegisterDeclaration(OpenXmlTableRowPropertiesModel.GetDeclaration());
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.RowHeight:
                    this._height = reader.ReadSingle();
                    break;

                case MemberName.LeftIndent:
                    this._rowIndent = reader.ReadSingle();
                    break;

                case MemberName.ExactRowHeight:
                    this._exactRowHeight = reader.ReadBoolean();
                    break;

                case MemberName.IgnoreRowHeight:
                    this._ignoreRowHeight = reader.ReadBoolean();
                    break;

                case MemberName.TopPadding:
                    this._maxPaddingTop = reader.ReadSingle();
                    break;

                case MemberName.BottomPadding:
                    this._maxPaddingBottom = reader.ReadSingle();
                    break;

                case MemberName.TopBorder:
                    this._borderTop = (OpenXmlBorderPropertiesModel)reader.ReadRIFObject();
                    break;

                case MemberName.BottomBorder:
                    this._borderBottom = (OpenXmlBorderPropertiesModel)reader.ReadRIFObject();
                    break;

                case MemberName.LeftBorder:
                    this._borderLeft = (OpenXmlBorderPropertiesModel)reader.ReadRIFObject();
                    break;

                case MemberName.RightBorder:
                    this._borderRight = (OpenXmlBorderPropertiesModel)reader.ReadRIFObject();
                    break;

                case MemberName.Color:
                    this._bgColor = reader.ReadString();
                    break;

                default:
                    WordOpenXmlUtils.FailSerializable();
                    break;
                }
            }
        }
Exemple #26
0
        public override void Deserialize(IntermediateFormatReader reader)
        {
            base.Deserialize(reader);
            reader.RegisterDeclaration(TextRun.m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.Value:
                    this.m_value = (ExpressionInfo)reader.ReadRIFObject();
                    break;

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

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

                case MemberName.Label:
                    this.m_label = reader.ReadString();
                    break;

                case MemberName.MarkupType:
                    this.m_markupType = (ExpressionInfo)reader.ReadRIFObject();
                    break;

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

                case MemberName.DataType:
                    this.m_constantDataType = (DataType)reader.ReadEnum();
                    break;

                case MemberName.IndexInCollection:
                    this.m_indexInCollection = reader.ReadInt32();
                    break;

                case MemberName.Paragraph:
                    this.m_paragraph = reader.ReadReference <Paragraph>(this);
                    break;

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

                case MemberName.ValueReferenced:
                    this.m_valueReferenced = reader.ReadBoolean();
                    break;

                default:
                    Global.Tracer.Assert(false);
                    break;
                }
            }
        }
Exemple #27
0
        public void Deserialize(IntermediateFormatReader reader)
        {
            reader.RegisterDeclaration(RecordSetInfo.m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.ReaderExtensionsSupported:
                    this.m_readerExtensionsSupported = reader.ReadBoolean();
                    break;

                case MemberName.FieldPropertyNames:
                    this.m_fieldPropertyNames = reader.ReadListOfRIFObjects <RecordSetPropertyNamesList>();
                    break;

                case MemberName.CompareOptions:
                    this.m_compareOptions = (CompareOptions)reader.ReadEnum();
                    break;

                case MemberName.FieldNames:
                    this.m_fieldNames = reader.ReadStringArray();
                    break;

                case MemberName.CommandText:
                    this.m_commandText = reader.ReadString();
                    break;

                case MemberName.RewrittenCommandText:
                    this.m_rewrittenCommandText = reader.ReadString();
                    break;

                case MemberName.CultureName:
                    this.m_cultureName = reader.ReadString();
                    break;

                case MemberName.ExecutionTime:
                    this.m_executionTime = reader.ReadDateTime();
                    break;

                default:
                    Global.Tracer.Assert(false);
                    break;
                }
            }
        }
        public void Deserialize(IntermediateFormatReader reader)
        {
            reader.RegisterDeclaration(m_declaration);
            IScalabilityCache scalabilityCache = reader.PersistenceHelper as IScalabilityCache;

            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.ReportObjectModel:
                {
                    int id2 = reader.ReadInt32();
                    m_reportOM = (ObjectModelImpl)scalabilityCache.FetchStaticReference(id2);
                    break;
                }

                case MemberName.Value:
                    m_value = reader.ReadVariant();
                    break;

                case MemberName.IsAggregateField:
                    m_isAggregationField = reader.ReadBoolean();
                    break;

                case MemberName.AggregationFieldChecked:
                    m_aggregationFieldChecked = reader.ReadBoolean();
                    break;

                case MemberName.FieldStatus:
                    m_fieldStatus = (DataFieldStatus)reader.ReadEnum();
                    break;

                case MemberName.Message:
                    m_exceptionMessage = reader.ReadString();
                    break;

                case MemberName.Properties:
                    m_properties = reader.ReadStringObjectHashtable <Hashtable>();
                    break;

                case MemberName.FieldDef:
                {
                    int id = reader.ReadInt32();
                    m_fieldDef = (Microsoft.ReportingServices.ReportIntermediateFormat.Field)scalabilityCache.FetchStaticReference(id);
                    break;
                }

                case MemberName.UsedInExpression:
                    m_usedInExpression = reader.ReadBoolean();
                    break;

                default:
                    Global.Tracer.Assert(condition: false);
                    break;
                }
            }
        }
Exemple #29
0
        public static ReportSize ReadReportSize(IntermediateFormatReader reader)
        {
            string text = reader.ReadString();

            if (text != null)
            {
                return(new ReportSize(text));
            }
            return(null);
        }
        public void Deserialize(IntermediateFormatReader reader)
        {
            reader.RegisterDeclaration(m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.DefinitionUniqueName:
                    m_definitionUniqueName = reader.ReadString();
                    break;

                case MemberName.ReportPath:
                    m_reportPath = reader.ReadString();
                    break;

                case MemberName.ParametersFromCatalog:
                    m_parametersFromCatalog = reader.ReadListOfRIFObjects <ParameterInfoCollection>();
                    break;

                case MemberName.RetrievalFailed:
                    m_retrievalFailed = reader.ReadBoolean();
                    break;

                case MemberName.Description:
                    m_description = reader.ReadString();
                    break;

                case MemberName.OriginalCatalogPath:
                    m_originalCatalogPath = reader.ReadString();
                    break;

                default:
                    Global.Tracer.Assert(condition: false);
                    break;
                }
            }
            if (m_originalCatalogPath == null)
            {
                m_originalCatalogPath = m_reportPath;
            }
        }