internal void WriteSpanCheck(IntermediateSpanTranslationClasses spanClass) { if (this.CurrentSpanClass != spanClass) { ChangeSpanClasses(spanClass); } }
public void BeginSpan(IntermediateSpanTranslationClasses spanClass) { Color color; if (formattingColors.TryGetValue(spanClass, out color)) { this.HandleWriteInternal(string.Format("<span style=\"color:#{0};\">", GetColorCssRgb(color))); } this.spanStack.Push(spanClass); }
private void ChangeSpanClasses(IntermediateSpanTranslationClasses spanClass) { if (this.Formatter != null) { if (CurrentSpanClass != IntermediateSpanTranslationClasses.None) { this.Formatter.EndSpan(); } this.Formatter.BeginSpan(spanClass); } else { this.CurrentSpanClass = spanClass; } }
public void BeginSpan(IntermediateSpanTranslationClasses spanClass) { }
public virtual void Write(IntermediateSpanTranslationClasses spanClass, string text) { WriteSpanCheck(spanClass); this.Write(text); }