Esempio 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.Page:
                    m_page = (Page)reader.ReadRIFObject();
                    break;

                case MemberName.ReportItems:
                    m_reportItems = (ReportItemCollection)reader.ReadRIFObject();
                    break;

                case MemberName.TextboxesInScope:
                    m_textboxesInScope = reader.ReadByteArray();
                    break;

                case MemberName.VariablesInScope:
                    m_variablesInScope = reader.ReadByteArray();
                    break;

                case MemberName.NeedsTotalPages:
                case MemberName.NeedsOverallTotalPages:
                    m_needsOverallTotalPages = reader.ReadBoolean();
                    break;

                case MemberName.NeedsPageBreakTotalPages:
                    m_needsPageBreakTotalPages = reader.ReadBoolean();
                    break;

                case MemberName.NeedsReportItemsOnPage:
                    m_needsReportItemsOnPage = reader.ReadBoolean();
                    break;

                case MemberName.InScopeTextBoxes:
                    m_inScopeTextBoxes = reader.ReadGenericListOfReferences <TextBox>(this);
                    break;

                case MemberName.LayoutDirection:
                    m_layoutDirection = reader.ReadBoolean();
                    break;

                default:
                    Global.Tracer.Assert(condition: false);
                    break;
                }
            }
        }
        public override void Deserialize(IntermediateFormatReader reader)
        {
            base.Deserialize(reader);
            reader.RegisterDeclaration(CriImageInstance.m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.ImageData:
                    this.m_imageData = reader.ReadByteArray();
                    break;

                case MemberName.MIMEType:
                {
                    string text = reader.ReadString();
                    if (base.ImageDef.MIMEType != null && base.ImageDef.MIMEType.IsExpression)
                    {
                        this.m_mimeTypeEvaluated = true;
                        this.m_mimeType          = text;
                    }
                    else
                    {
                        Global.Tracer.Assert(text == null, "(mimeType == null)");
                    }
                    break;
                }

                case MemberName.Actions:
                    ((ROMInstanceObjectCreator)reader.PersistenceHelper).StartActionInfoInstancesDeserialization(base.ImageDef.ActionInfo);
                    reader.ReadArrayOfRIFObjects <ActionInstance>();
                    ((ROMInstanceObjectCreator)reader.PersistenceHelper).CompleteActionInfoInstancesDeserialization();
                    break;

                case MemberName.ImageMapAreas:
                    this.m_actionInfoImageMapAreas = new ActionInfoWithDynamicImageMapCollection();
                    reader.ReadListOfRIFObjects(this.m_actionInfoImageMapAreas.InternalList);
                    break;

                default:
                    Global.Tracer.Assert(false);
                    break;
                }
            }
        }
Esempio n. 3
0
        public override void Deserialize(IntermediateFormatReader reader)
        {
            base.Deserialize(reader);
            reader.RegisterDeclaration(Cell.m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.ExprHostID:
                    this.m_exprHostID = reader.ReadInt32();
                    break;

                case MemberName.ParentRowID:
                    base.m_parentIDOwner = reader.ReadReference <IDOwner>(this);
                    if (base.m_parentIDOwner != null)
                    {
                        this.m_parentRowID = base.m_parentIDOwner.ID;
                    }
                    break;

                case MemberName.ParentColumnID:
                    this.m_parentColumnIDOwner = reader.ReadReference <IDOwner>(this);
                    if (this.m_parentColumnIDOwner != null)
                    {
                        this.m_parentColumnID = this.m_parentColumnIDOwner.ID;
                    }
                    break;

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

                case MemberName.HasInnerGroupTreeHierarchy:
                    this.m_hasInnerGroupTreeHierarchy = reader.ReadBoolean();
                    break;

                case MemberName.DataRegionDef:
                    this.m_dataRegionDef = reader.ReadReference <DataRegion>(this);
                    break;

                case MemberName.AggregateIndexes:
                    this.m_aggregateIndexes = reader.ReadListOfPrimitives <int>();
                    break;

                case MemberName.PostSortAggregateIndexes:
                    this.m_postSortAggregateIndexes = reader.ReadListOfPrimitives <int>();
                    break;

                case MemberName.RunningValueIndexes:
                    this.m_runningValueIndexes = reader.ReadListOfPrimitives <int>();
                    break;

                case MemberName.NeedToCacheDataRows:
                    this.m_needToCacheDataRows = reader.ReadBoolean();
                    break;

                case MemberName.InScopeEventSources:
                    this.m_inScopeEventSources = reader.ReadGenericListOfReferences <IInScopeEventSource>(this);
                    break;

                case MemberName.InDynamicRowAndColumnContext:
                    this.m_inDynamicRowAndColumnContext = reader.ReadBoolean();
                    break;

                case MemberName.TextboxesInScope:
                    this.m_textboxesInScope = reader.ReadByteArray();
                    break;

                case MemberName.VariablesInScope:
                    this.m_variablesInScope = reader.ReadByteArray();
                    break;

                case MemberName.DataScopeInfo:
                    this.m_dataScopeInfo = reader.ReadRIFObject <DataScopeInfo>();
                    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.Name:
                    m_name = reader.ReadString();
                    break;

                case MemberName.Fields:
                    m_fields = reader.ReadGenericListOfRIFObjects <Field>();
                    break;

                case MemberName.Query:
                    m_query = (ReportQuery)reader.ReadRIFObject();
                    break;

                case MemberName.SharedDataSetQuery:
                    m_sharedDataSetQuery = (SharedDataSetQuery)reader.ReadRIFObject();
                    break;

                case MemberName.Collation:
                    m_collation = reader.ReadString();
                    break;

                case MemberName.CollationCulture:
                    m_collationCulture = reader.ReadString();
                    break;

                case MemberName.LCID:
                    m_lcid = reader.ReadUInt32();
                    break;

                case MemberName.CaseSensitivity:
                    m_caseSensitivity = (DataSet.TriState)reader.ReadEnum();
                    break;

                case MemberName.AccentSensitivity:
                    m_accentSensitivity = (DataSet.TriState)reader.ReadEnum();
                    break;

                case MemberName.KanatypeSensitivity:
                    m_kanatypeSensitivity = (DataSet.TriState)reader.ReadEnum();
                    break;

                case MemberName.WidthSensitivity:
                    m_widthSensitivity = (DataSet.TriState)reader.ReadEnum();
                    break;

                case MemberName.Filters:
                    m_filters = reader.ReadGenericListOfRIFObjects <Filter>();
                    break;

                case MemberName.InterpretSubtotalsAsDetails:
                    m_interpretSubtotalsAsDetails = (DataSet.TriState)reader.ReadEnum();
                    break;

                case MemberName.CatalogID:
                    m_catalogID = reader.ReadGuid();
                    break;

                case MemberName.NonCalculatedFieldCount:
                    m_nonCalculatedFieldCount = reader.ReadInt32();
                    break;

                case MemberName.CompiledCode:
                    m_compiledCode = reader.ReadByteArray();
                    break;

                case MemberName.CompiledCodeGeneratedWithRefusedPermissions:
                    m_compiledCodeGeneratedWithRefusedPermissions = reader.ReadBoolean();
                    break;

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

                case MemberName.ExprHostAssemblyID:
                    m_exprHostAssemblyId = reader.ReadGuid();
                    break;

                case MemberName.NullsAsBlanks:
                    m_nullsAsBlanks = reader.ReadBoolean();
                    break;

                default:
                    Global.Tracer.Assert(condition: false, string.Empty);
                    break;
                }
            }
        }
Esempio n. 5
0
        public override void Deserialize(IntermediateFormatReader reader)
        {
            base.Deserialize(reader);
            reader.RegisterDeclaration(Page.m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.PageHeader:
                    this.m_pageHeader = (PageSection)reader.ReadRIFObject();
                    break;

                case MemberName.PageFooter:
                    this.m_pageFooter = (PageSection)reader.ReadRIFObject();
                    break;

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

                case MemberName.PageHeightValue:
                    this.m_pageHeightValue = reader.ReadDouble();
                    break;

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

                case MemberName.PageWidthValue:
                    this.m_pageWidthValue = reader.ReadDouble();
                    break;

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

                case MemberName.LeftMarginValue:
                    this.m_leftMarginValue = reader.ReadDouble();
                    break;

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

                case MemberName.RightMarginValue:
                    this.m_rightMarginValue = reader.ReadDouble();
                    break;

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

                case MemberName.TopMarginValue:
                    this.m_topMarginValue = reader.ReadDouble();
                    break;

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

                case MemberName.BottomMarginValue:
                    this.m_bottomMarginValue = reader.ReadDouble();
                    break;

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

                case MemberName.InteractiveHeightValue:
                    this.m_interactiveHeightValue = reader.ReadDouble();
                    break;

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

                case MemberName.InteractiveWidthValue:
                    this.m_interactiveWidthValue = reader.ReadDouble();
                    break;

                case MemberName.Columns:
                    this.m_columns = reader.ReadInt32();
                    break;

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

                case MemberName.ColumnSpacingValue:
                    this.m_columnSpacingValue = reader.ReadDouble();
                    break;

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

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

                case MemberName.TextboxesInScope:
                    this.m_textboxesInScope = reader.ReadByteArray();
                    break;

                case MemberName.VariablesInScope:
                    this.m_variablesInScope = reader.ReadByteArray();
                    break;

                case MemberName.InScopeTextBoxes:
                    this.m_inScopeTextBoxes = reader.ReadGenericListOfReferences <TextBox>(this);
                    break;

                case MemberName.PageAggregates:
                    this.m_pageAggregates = reader.ReadGenericListOfRIFObjects <DataAggregateInfo>();
                    break;

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