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; } } }
public void Deserialize(IntermediateFormatReader reader) { reader.RegisterDeclaration(Paragraph.m_declaration); IScalabilityCache scalabilityCache = reader.PersistenceHelper as IScalabilityCache; while (reader.NextMember()) { switch (reader.CurrentMember.MemberName) { case MemberName.TextRuns: this.m_textRuns = reader.ReadGenericListOfRIFObjects <TextRun>(); break; case MemberName.Style: this.m_styles = reader.ReadByteVariantHashtable <Dictionary <byte, object> >(); break; case MemberName.ListStyle: this.m_listStyle = (RPLFormat.ListStyles?)reader.ReadNullable <byte>(); break; case MemberName.ListLevel: this.m_listLevel = reader.ReadNullable <int>(); break; case MemberName.ParagraphNumber: this.m_paragraphNumber = reader.ReadInt32(); break; case MemberName.SpaceBefore: this.m_spaceBefore = Utility.ReadReportSize(reader); break; case MemberName.SpaceAfter: this.m_spaceAfter = Utility.ReadReportSize(reader); break; case MemberName.LeftIndent: this.m_leftIndent = Utility.ReadReportSize(reader); break; case MemberName.RightIndent: this.m_rightIndent = Utility.ReadReportSize(reader); break; case MemberName.HangingIndent: this.m_hangingIndent = Utility.ReadReportSize(reader); break; case MemberName.FirstLine: this.m_firstLine = reader.ReadBoolean(); break; case MemberName.UniqueName: this.m_uniqueName = reader.ReadString(); break; case MemberName.Source: this.m_source = (AspNetCore.ReportingServices.OnDemandReportRendering.Paragraph)scalabilityCache.FetchStaticReference(reader.ReadInt32()); break; default: RSTrace.RenderingTracer.Assert(false, string.Empty); break; } } }