internal PageBreak(RenderingContext renderingContext, IReportScope reportScope, IPageBreakOwner pageBreakOwner) { m_renderingContext = renderingContext; m_reportScope = reportScope; m_pageBreakOwner = pageBreakOwner; m_pageBreakDef = m_pageBreakOwner.PageBreak; if (m_pageBreakDef == null) { m_pageBreakDef = new Microsoft.ReportingServices.ReportIntermediateFormat.PageBreak(); } m_isOldSnapshotOrStaticMember = false; }
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.ID: m_ID = reader.ReadInt32(); break; case MemberName.GroupExpressions: m_groupExpressions = reader.ReadGenericListOfRIFObjects <ExpressionInfo>(); break; case MemberName.GroupLabel: m_groupLabel = (ExpressionInfo)reader.ReadRIFObject(); break; case MemberName.SortDirections: m_sortDirections = reader.ReadListOfPrimitives <bool>(); break; case MemberName.PageBreakLocation: m_pageBreak = new PageBreak(); m_pageBreak.BreakLocation = (PageBreakLocation)reader.ReadEnum(); break; case MemberName.Aggregates: m_aggregates = reader.ReadGenericListOfRIFObjects <DataAggregateInfo>(); break; case MemberName.GroupAndSort: m_groupAndSort = reader.ReadBoolean(); break; case MemberName.Filters: m_filters = reader.ReadGenericListOfRIFObjects <Filter>(); break; case MemberName.ReportItemsWithHideDuplicates: m_reportItemsWithHideDuplicates = reader.ReadGenericListOfReferences <ReportItem>(this); break; case MemberName.Parent: m_parent = reader.ReadGenericListOfRIFObjects <ExpressionInfo>(); break; case MemberName.RecursiveAggregates: m_recursiveAggregates = reader.ReadGenericListOfRIFObjects <DataAggregateInfo>(); break; case MemberName.PostSortAggregates: m_postSortAggregates = reader.ReadGenericListOfRIFObjects <DataAggregateInfo>(); break; case MemberName.DataElementName: m_dataElementName = reader.ReadString(); break; case MemberName.DataElementOutput: m_dataElementOutput = (DataElementOutputTypes)reader.ReadEnum(); break; case MemberName.SaveGroupExprValues: m_saveGroupExprValues = reader.ReadBoolean(); break; case MemberName.UserSortExpressions: m_userSortExpressions = reader.ReadGenericListOfRIFObjects <ExpressionInfo>(); break; case MemberName.NonDetailSortFiltersInScope: m_nonDetailSortFiltersInScope = reader.ReadInt32PrimitiveListHashtable <InScopeSortFilterHashtable, int>(); break; case MemberName.DetailSortFiltersInScope: m_detailSortFiltersInScope = reader.ReadInt32PrimitiveListHashtable <InScopeSortFilterHashtable, int>(); break; case MemberName.Variables: m_variables = reader.ReadGenericListOfRIFObjects <Variable>(); break; case MemberName.PageBreak: m_pageBreak = (PageBreak)reader.ReadRIFObject(); break; case MemberName.PageName: m_pageName = (ExpressionInfo)reader.ReadRIFObject(); break; case MemberName.DomainScope: m_domainScope = reader.ReadString(); break; case MemberName.ScopeIDForDomainScope: m_scopeIDForDomainScope = reader.ReadInt32(); break; case MemberName.NaturalGroup: m_naturalGroup = reader.ReadBoolean(); break; default: Global.Tracer.Assert(condition: false); break; } } }
public override void Deserialize(IntermediateFormatReader reader) { base.Deserialize(reader); reader.RegisterDeclaration(m_Declaration); while (reader.NextMember()) { switch (reader.CurrentMember.MemberName) { case MemberName.MapDataRegions: m_mapDataRegions = reader.ReadGenericListOfRIFObjects <MapDataRegion>(); break; case MemberName.MapViewport: m_mapViewport = (MapViewport)reader.ReadRIFObject(); break; case MemberName.MapLayers: m_mapLayers = reader.ReadGenericListOfRIFObjects <MapLayer>(); break; case MemberName.MapLegends: m_mapLegends = reader.ReadGenericListOfRIFObjects <MapLegend>(); break; case MemberName.MapTitles: m_mapTitles = reader.ReadGenericListOfRIFObjects <MapTitle>(); break; case MemberName.MapDistanceScale: m_mapDistanceScale = (MapDistanceScale)reader.ReadRIFObject(); break; case MemberName.MapColorScale: m_mapColorScale = (MapColorScale)reader.ReadRIFObject(); break; case MemberName.MapBorderSkin: m_mapBorderSkin = (MapBorderSkin)reader.ReadRIFObject(); break; case MemberName.PageBreakLocation: m_pageBreak = new PageBreak(); m_pageBreak.BreakLocation = (PageBreakLocation)reader.ReadEnum(); break; case MemberName.AntiAliasing: m_antiAliasing = (ExpressionInfo)reader.ReadRIFObject(); break; case MemberName.TextAntiAliasingQuality: m_textAntiAliasingQuality = (ExpressionInfo)reader.ReadRIFObject(); break; case MemberName.ShadowIntensity: m_shadowIntensity = (ExpressionInfo)reader.ReadRIFObject(); break; case MemberName.MaximumSpatialElementCount: m_maximumSpatialElementCount = reader.ReadInt32(); break; case MemberName.MaximumTotalPointCount: m_maximumTotalPointCount = reader.ReadInt32(); break; case MemberName.Action: m_action = (Action)reader.ReadRIFObject(); break; case MemberName.TileLanguage: m_tileLanguage = (ExpressionInfo)reader.ReadRIFObject(); break; case MemberName.PageBreak: m_pageBreak = (PageBreak)reader.ReadRIFObject(); break; case MemberName.PageName: m_pageName = (ExpressionInfo)reader.ReadRIFObject(); break; default: Global.Tracer.Assert(condition: false); break; } } }