public TextRunImpl(AspNetCore.ReportingServices.ReportIntermediateFormat.TextBox textBoxDef, AspNetCore.ReportingServices.ReportIntermediateFormat.TextRun textRunDef, AspNetCore.ReportingServices.RdlExpressions.ReportRuntime reportRT, IErrorContext iErrorContext, IScope scope) { this.m_textBoxDef = textBoxDef; this.m_textRunDef = textRunDef; this.m_reportRT = reportRT; this.m_iErrorContext = iErrorContext; this.m_scope = scope; }
public override object PublishClone(AutomaticSubtotalContext context) { Paragraph paragraph = (Paragraph)base.PublishClone(context); if (this.m_textRuns != null) { paragraph.m_textRuns = new List <TextRun>(this.m_textRuns.Count); foreach (TextRun textRun2 in this.m_textRuns) { TextRun textRun = (TextRun)textRun2.PublishClone(context); textRun.Paragraph = paragraph; paragraph.m_textRuns.Add(textRun); } } if (this.m_styleClass != null) { paragraph.m_styleClass = (Style)this.m_styleClass.PublishClone(context); } if (this.m_leftIndent != null) { paragraph.m_leftIndent = (ExpressionInfo)this.m_leftIndent.PublishClone(context); } if (this.m_rightIndent != null) { paragraph.m_rightIndent = (ExpressionInfo)this.m_rightIndent.PublishClone(context); } if (this.m_hangingIndent != null) { paragraph.m_hangingIndent = (ExpressionInfo)this.m_hangingIndent.PublishClone(context); } if (this.m_spaceBefore != null) { paragraph.m_spaceBefore = (ExpressionInfo)this.m_spaceBefore.PublishClone(context); } if (this.m_spaceAfter != null) { paragraph.m_spaceAfter = (ExpressionInfo)this.m_spaceAfter.PublishClone(context); } if (this.m_listStyle != null) { paragraph.m_listStyle = (ExpressionInfo)this.m_listStyle.PublishClone(context); } if (this.m_listLevel != null) { paragraph.m_listLevel = (ExpressionInfo)this.m_listLevel.PublishClone(context); } return(paragraph); }
private TextRun GetOrCreateSingleTextRun(IntermediateFormatReader reader) { if (this.m_paragraphs == null) { this.m_isSimple = true; this.m_paragraphs = new List <Paragraph>(1); Paragraph paragraph = new Paragraph(this, 0, -1); paragraph.GlobalID = -1; this.m_paragraphs.Add(paragraph); List <TextRun> list = new List <TextRun>(1); TextRun textRun = new TextRun(paragraph, 0, -1); textRun.GlobalID = -1; list.Add(textRun); paragraph.TextRuns = list; return(textRun); } return(this.m_paragraphs[0].TextRuns[0]); }
private void EvaluateOriginalValue() { if (!this.m_originalValueEvaluated) { this.m_originalValueEvaluated = true; AspNetCore.ReportingServices.ReportIntermediateFormat.TextRun textRunDef = this.TextRunDef; ExpressionInfo value = textRunDef.Value; if (value != null) { if (value.IsExpression) { this.m_originalValue = textRunDef.EvaluateValue(this.ReportScopeInstance, base.ReportElementDef.RenderingContext.OdpContext); this.m_originalValueNeedsReset = true; } else { this.m_originalValue = default(VariantResult); this.m_originalValue.Value = value.Value; ReportRuntime.SetVariantType(ref this.m_originalValue); } } } }
public override TextRun this[int i] { get { if (i >= 0 && i < this.Count) { TextRun textRun = this.m_textRuns[i]; if (textRun == null) { if (this.m_paragraph.IsOldSnapshot) { textRun = new ShimTextRun(this.m_paragraph, this.m_paragraph.RenderingContext); } else { AspNetCore.ReportingServices.ReportIntermediateFormat.TextRun textRun2 = ((InternalParagraph)this.m_paragraph).ParagraphDef.TextRuns[i]; textRun = new InternalTextRun(this.m_paragraph, i, textRun2, this.m_paragraph.RenderingContext); } this.m_textRuns[i] = textRun; } return(textRun); } throw new RenderingObjectModelException(ProcessingErrorCode.rsInvalidParameterRange, i, 0, this.Count); } }
public InternalTextRun(Paragraph paragraph, int indexIntoParentCollectionDef, AspNetCore.ReportingServices.ReportIntermediateFormat.TextRun textRun, RenderingContext renderingContext) : base(paragraph, indexIntoParentCollectionDef, renderingContext) { this.m_textRunDef = textRun; }
public override TextRun this[int index] { get { if (index >= 0 && index < this.Count) { TextRunImpl textRunImpl = this.m_textRuns[index]; if (textRunImpl == null) { AspNetCore.ReportingServices.ReportIntermediateFormat.TextRun textRunDef = this.m_paragraphDef.TextRuns[index]; textRunImpl = new TextRunImpl(this.m_textBoxDef, textRunDef, this.m_reportRT, this.m_iErrorContext, this.m_scope); this.m_textRuns[index] = textRunImpl; } return(textRunImpl); } throw new ArgumentOutOfRangeException("index"); } }
public override void Deserialize(IntermediateFormatReader reader) { base.Deserialize(reader); reader.RegisterDeclaration(TextBox.m_Declaration); while (reader.NextMember()) { switch (reader.CurrentMember.MemberName) { case MemberName.Paragraphs: this.m_paragraphs = reader.ReadGenericListOfRIFObjects <Paragraph>(); break; case MemberName.Value: { TextRun orCreateSingleTextRun2 = this.GetOrCreateSingleTextRun(reader); ExpressionInfo expressionInfo = (ExpressionInfo)reader.ReadRIFObject(); this.m_hasValue = true; this.m_hasExpressionBasedValue = expressionInfo.IsExpression; orCreateSingleTextRun2.Value = expressionInfo; if (base.m_styleClass != null) { orCreateSingleTextRun2.Paragraph.StyleClass = new ParagraphFilteredStyle(base.m_styleClass); orCreateSingleTextRun2.StyleClass = new TextRunFilteredStyle(base.m_styleClass); base.m_styleClass = new TextBoxFilteredStyle(base.m_styleClass); } break; } case MemberName.CanScrollVertically: this.m_canScrollVertically = reader.ReadBoolean(); break; case MemberName.CanGrow: this.m_canGrow = reader.ReadBoolean(); break; case MemberName.CanShrink: this.m_canShrink = reader.ReadBoolean(); break; case MemberName.HideDuplicates: this.m_hideDuplicates = reader.ReadString(); break; case MemberName.Action: this.m_action = (Action)reader.ReadRIFObject(); break; case MemberName.IsToggle: this.m_isToggle = reader.ReadBoolean(); break; case MemberName.InitialToggleState: this.m_initialToggleState = (ExpressionInfo)reader.ReadRIFObject(); break; case MemberName.ValueReferenced: this.m_valueReferenced = reader.ReadBoolean(); break; case MemberName.TextRunValueReferenced: this.m_textRunValueReferenced = reader.ReadBoolean(); break; case MemberName.RecursiveSender: this.m_recursiveSender = reader.ReadBoolean(); break; case MemberName.DataElementStyleAttribute: this.m_dataElementStyleAttribute = reader.ReadBoolean(); break; case MemberName.ContainingScopes: if (reader.ReadListOfReferencesNoResolution(this) == 0) { this.m_containingScopes = new GroupingList(); } break; case MemberName.UserSort: this.m_userSort = (EndUserSort)reader.ReadRIFObject(); break; case MemberName.IsTablixCellScope: this.m_isTablixCellScope = reader.ReadBoolean(); break; case MemberName.IsSubReportTopLevelScope: this.m_isSubReportTopLevelScope = reader.ReadBoolean(); break; case MemberName.DataType: { TextRun orCreateSingleTextRun = this.GetOrCreateSingleTextRun(reader); orCreateSingleTextRun.DataType = (DataType)reader.ReadEnum(); break; } case MemberName.KeepTogether: this.m_keepTogether = reader.ReadBoolean(); break; case MemberName.SequenceID: this.m_sequenceID = reader.ReadInt32(); break; case MemberName.RecursiveMember: this.m_recursiveMember = reader.ReadReference <TablixMember>(this); break; case MemberName.HasExpressionBasedValue: this.m_hasExpressionBasedValue = reader.ReadBoolean(); break; case MemberName.HasValue: this.m_hasValue = reader.ReadBoolean(); break; case MemberName.IsSimple: this.m_isSimple = reader.ReadBoolean(); break; case MemberName.HasNonRecursiveSender: this.m_hasNonRecursiveSender = reader.ReadBoolean(); break; default: Global.Tracer.Assert(false); break; } } }