00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef TEXTFORMATTER_H_
00010 #define TEXTFORMATTER_H_
00011
00012 #include <string>
00013
00014 #include <boost/shared_ptr.hpp>
00015
00016 #include <srchilite/formatter.h>
00017
00018 class FormatterParams;
00019 class QSyntaxHighlighter;
00020
00021 namespace srchiliteqt {
00022
00033 class TextFormatter: public srchilite::Formatter {
00034 protected:
00036 std::string elem;
00037
00038 public:
00039 TextFormatter(const std::string &elem_ = "normal");
00040 virtual ~TextFormatter();
00041
00045 const std::string &getElem() const { return elem; }
00046 void setElem(const std::string &e) { elem = e; }
00047
00048 virtual void setQSyntaxHighlighter(QSyntaxHighlighter *qSyntaxHighlighter_) = 0;
00049 };
00050
00052 typedef boost::shared_ptr<TextFormatter> TextFormatterPtr;
00053
00054 }
00055
00056 #endif