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 #if QT_VERSION >= 0x040000
00016 
00017 #include "qwt_text_engine.h"
00018 
00039 class QWT_EXPORT QwtMathMLTextEngine: public QwtTextEngine
00040 {
00041 public:
00042     QwtMathMLTextEngine();
00043     virtual ~QwtMathMLTextEngine();
00044 
00045     virtual int heightForWidth(const QFont &font, int flags, 
00046         const QString &text, int width) const;
00047 
00048     virtual QSize textSize(const QFont &font, int flags,
00049         const QString &text) const;
00050 
00051     virtual void draw(QPainter *painter, const QRect &rect,
00052         int flags, const QString &text) const;
00053 
00054     virtual bool mightRender(const QString &) const;
00055 
00056     virtual void textMargins(const QFont &, const QString &,
00057         int &left, int &right, int &top, int &bottom) const;
00058 };
00059 
00060 #endif // QT_VERSION >= 0x040000
00061 
00062 #endif