protected override string ProcessBlockPatternMatch(Definition definition, BlockPattern pattern, Match match) { if (!UseCss) { var patternStyle = HtmlEngineHelper.CreatePatternStyle(pattern.Style); return String.Format(StyleSpanFormat, patternStyle, match.Value); } var cssClassName = HtmlEngineHelper.CreateCssClassName(definition.Name, pattern.Name); return String.Format(ClassSpanFormat, cssClassName, match.Value); }
protected abstract string ProcessBlockPatternMatch(Definition definition, BlockPattern pattern, Match match);
protected override string ProcessBlockPatternMatch(Definition definition, BlockPattern pattern, Match match) { var style = CreateRtfPatternStyle(pattern.Style.Colors.ForeColor, pattern.Style.Colors.BackColor, pattern.Style.Font); return ("{" + String.Format(RtfFormat, style, match.Value) + "}"); }
protected override string ProcessBlockPatternMatch(Definition definition, BlockPattern pattern, Match match) { return ProcessPatternMatch(pattern, match); }