qwt_mathml_text_engine.h
00001 /* -*- mode: C++ ; c-file-style: "stroustrup" -*- ***************************** 00002 * Qwt Widget Library 00003 * Copyright (C) 1997 Josef Wilgen 00004 * Copyright (C) 2003 Uwe Rathmann 00005 * 00006 * This library is free software; you can redistribute it and/or 00007 * modify it under the terms of the Qwt License, Version 1.0 00008 *****************************************************************************/ 00009 00010 // vim: expandtab 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
Generated on Wed Sep 2 18:37:21 2009 for Qwt User's Guide by 1.6.1