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