Esempio n. 1
0
 protected void WriteText(AbstractTextElement text, bool avaliableInRenderSatge = false)
 {
     if (avaliableInRenderSatge)
     {
         text.CustomProperty.SetProperty(RENDER_PROCESSOR_PROPERTY, ProcessorAttribute.ProcessorName);
     }
     ctx.WriteTextElement(text);
 }
Esempio n. 2
0
 public override void EvaluateInternal(PonyTextContext textContext)
 {
     foreach (var directive in textDirectives)
     {
         textContext.WriteTextElement(TextElementFactory.CreateTextElement(TextElementType.Paragraph));
         directive.Evaluate(textContext);
     }
 }
Esempio n. 3
0
        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);
        }
Esempio n. 4
0
 public override void EvaluateInternal(PonyTextContext textContext)
 {
     textContext.WriteTextElement(TextElementFactory.CreateTextElement(TextElementType.TextUnit, num.ToString()));
 }