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