protected void WriteText(AbstractTextElement text, bool avaliableInRenderSatge = false) { if (avaliableInRenderSatge) { text.CustomProperty.SetProperty(RENDER_PROCESSOR_PROPERTY, ProcessorAttribute.ProcessorName); } ctx.WriteTextElement(text); }
public override void EvaluateInternal(PonyTextContext textContext) { foreach (var directive in textDirectives) { textContext.WriteTextElement(TextElementFactory.CreateTextElement(TextElementType.Paragraph)); directive.Evaluate(textContext); } }
public override void EvaluateInternal(PonyTextContext textContext) { var textElement = TextElementFactory.CreateTextElement(TextElementType.Paragraph); PonyTextContext ctx = new DerivedTextContext(textContext, textElement); foreach (var item in structureBases) { item.Evaluate(ctx); } textContext.WriteTextElement(textElement); }
public override void EvaluateInternal(PonyTextContext textContext) { textContext.WriteTextElement(TextElementFactory.CreateTextElement(TextElementType.TextUnit, num.ToString())); }