8#ifndef _TEXTSTYLEFORMATTER_H_
9#define _TEXTSTYLEFORMATTER_H_
52 CTagsFormatter *getCTagsFormatter()
const {
56 void setBufferedOutput(BufferedOutput *o) {
60 void setPreFormatter(PreFormatter *p) {
64 void setCTagsFormatter(CTagsFormatter *f) {
82 void doFormat(
const std::string &s,
bool preformat =
true);
The main class for writing into the output.
Definition: bufferedoutput.h:28
An implementation of Formatter, based on source-highlight TextStyle.
Definition: textstyleformatter.h:23
PreFormatter * preFormatter
the possible pre formatter for text
Definition: textstyleformatter.h:32
TextStyle textstyle
the TextStyle for formatting
Definition: textstyleformatter.h:26
BufferedOutput * output
where to output the formatting
Definition: textstyleformatter.h:29
CTagsFormatter * ctagsFormatter
the possible formatter for ctags (references and anchors)
Definition: textstyleformatter.h:35
bool formatReferences(const std::string &s, const FormatterParams *params)
Performs reference formatting (by relying on the CTagsFormatter)
Definition: textstyleformatter.cpp:48
const std::string & toString() const
Definition: textstyleformatter.h:71
void doFormat(const std::string &s, bool preformat=true)
Actually performs formatting (no reference formatting); this is used internally.
Definition: textstyleformatter.cpp:37
virtual void format(const std::string &s, const FormatterParams *params=0)
Formats the passed string.
Definition: textstyleformatter.cpp:31
Represents a formatting template where there can be some variables (starting with $,...
Definition: textstyle.h:36
const std::string & toString() const
Definition: textstyle.h:93
C++ class: doctemplate.h.
Definition: bufferedoutput.cpp:13