# 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 #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