00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef QWT_MATHML_TEXT_ENGINE_H
00013 #define QWT_MATHML_TEXT_ENGINE_H 1
00014
00015 #include "qwt_text_engine.h"
00016
00032 class QWT_EXPORT QwtMathMLTextEngine: public QwtTextEngine
00033 {
00034 public:
00035 QwtMathMLTextEngine();
00036 virtual ~QwtMathMLTextEngine();
00037
00038 virtual double heightForWidth(const QFont &font, int flags,
00039 const QString &text, double width) const;
00040
00041 virtual QSizeF textSize(const QFont &font, int flags,
00042 const QString &text) const;
00043
00044 virtual void draw(QPainter *painter, const QRectF &rect,
00045 int flags, const QString &text) const;
00046
00047 virtual bool mightRender(const QString &) const;
00048
00049 virtual void textMargins(const QFont &, const QString &,
00050 double &left, double &right, double &top, double &bottom) const;
00051 };
00052
00053 #endif