Qwt User's Guide  6.1.3
qwt_mathml_text_engine.h
1 /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
2  * Qwt Widget Library
3  * Copyright (C) 1997 Josef Wilgen
4  * Copyright (C) 2003 Uwe Rathmann
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the Qwt License, Version 1.0
8  *****************************************************************************/
9 
10 // vim: expandtab
11 
12 #ifndef QWT_MATHML_TEXT_ENGINE_H
13 #define QWT_MATHML_TEXT_ENGINE_H 1
14 
15 #include "qwt_text_engine.h"
16 
32 class QWT_EXPORT QwtMathMLTextEngine: public QwtTextEngine
33 {
34 public:
36  virtual ~QwtMathMLTextEngine();
37 
38  virtual double heightForWidth( const QFont &font, int flags,
39  const QString &text, double width ) const;
40 
41  virtual QSizeF textSize( const QFont &font, int flags,
42  const QString &text ) const;
43 
44  virtual void draw( QPainter *painter, const QRectF &rect,
45  int flags, const QString &text ) const;
46 
47  virtual bool mightRender( const QString & ) const;
48 
49  virtual void textMargins( const QFont &, const QString &,
50  double &left, double &right, double &top, double &bottom ) const;
51 };
52 
53 #endif
virtual bool mightRender(const QString &text) const =0
virtual void draw(QPainter *painter, const QRectF &rect, int flags, const QString &text) const =0
Text Engine for the MathML renderer of the Qt solutions package.
Definition: qwt_mathml_text_engine.h:32
virtual void textMargins(const QFont &font, const QString &text, double &left, double &right, double &top, double &bottom) const =0
Abstract base class for rendering text strings.
Definition: qwt_text_engine.h:35
virtual double heightForWidth(const QFont &font, int flags, const QString &text, double width) const =0
virtual QSizeF textSize(const QFont &font, int flags, const QString &text) const =0