A specialization of srchilite::Formatter in order to format parts of a document, instead of outputting the formatted text. More...
#include <TextFormatter.h>
Inherited by srchiliteqt::Qt3TextFormatter, and srchiliteqt::Qt4TextFormatter.
Public Member Functions | |
TextFormatter (const std::string &elem_="normal") | |
const std::string & | getElem () const |
void | setElem (const std::string &e) |
virtual void | setQSyntaxHighlighter (QSyntaxHighlighter *qSyntaxHighlighter_)=0 |
Protected Attributes | |
std::string | elem |
the language element represented by this formatter |
A specialization of srchilite::Formatter in order to format parts of a document, instead of outputting the formatted text.
Note that the abstract method setQSyntaxHighlighter(QSyntaxHighlighter *). Since this header file does not include the header file for QSyntaxHighlighter, then this same class can be re-used both for Qt3 and for Qt4 (the subclasses of this class will include the correct header file for QSyntaxHighlighter).
const std::string& srchiliteqt::TextFormatter::getElem | ( | ) | const [inline] |