6 #ifndef QT3TEXTFORMATTER_H_
7 #define QT3TEXTFORMATTER_H_
11 #include <qsyntaxhighlighter.h>
13 #include <boost/shared_ptr.hpp>
15 #include "TextFormatter.h"
16 #include "Qt3SyntaxHighlighter.h"
20 typedef boost::shared_ptr<QFont> QFontPtr;
21 typedef boost::shared_ptr<QColor> QColorPtr;
53 QFont &getQFont()
const {
57 QColor &getQColor()
const {
61 virtual void setQSyntaxHighlighter(QSyntaxHighlighter *qSyntaxHighlighter_) {
62 qSyntaxHighlighter =
dynamic_cast<Qt3SyntaxHighlighter *
>(qSyntaxHighlighter_);
71 void format(
const std::string &s,
const srchilite::FormatterParams *params);
Definition: ColorDialog.cpp:12
QColorPtr color
The QColor for the formatter.
Definition: Qt3TextFormatter.h:38
Qt3SyntaxHighlighter * qSyntaxHighlighter
The reference to QSyntaxHighlighter object.
Definition: Qt3TextFormatter.h:47
void format(const std::string &s, const srchilite::FormatterParams *params)
Formats the passed string.
Definition: Qt3TextFormatter.cpp:19
An implementation of QSyntaxHighlighter using GNU Source-highlight library (by relying on GNUSyntaxHi...
Definition: Qt3SyntaxHighlighter.h:32
A specialization of srchilite::Formatter in order to format parts of a document, instead of outputtin...
Definition: TextFormatter.h:30
QFontPtr font
The QFont for the formatter.
Definition: Qt3TextFormatter.h:32
The implementation of TextFormatter for Qt3, relying on QTextCharFormat.
Definition: Qt3TextFormatter.h:26