1
.TH "QwtMathMLTextEngine" 3 "22 Mar 2009" "Version 5.1.2" "Qwt User's Guide" \" -*- nroff -*-
9
Inherits \fBQwtTextEngine\fP.
11
.SH "Detailed Description"
13
Text Engine for the MathML renderer of the Qt solutions package.
15
The Qt Solution package includes a renderer for MathML http://www.trolltech.com/products/qt/addon/solutions/catalog/4/Widgets/qtmmlwidget that is available for owners of a commercial Qt license. You need a version >= 2.1, that is only available for Qt4.
17
To enable MathML support the following code needs to be added to the application:
21
#include <qwt_mathml_text_engine.h>
23
QwtText::setTextEngine(QwtText::MathMLText, new QwtMathMLTextEngine());
30
\fBQwtTextEngine\fP, \fBQwtText::setTextEngine\fP
35
Unfortunately the MathML renderer doesn't support rotating of texts.
40
Definition at line 39 of file qwt_mathml_text_engine.h.
41
.SS "Public Member Functions"
45
.RI "\fBQwtMathMLTextEngine\fP ()"
48
.RI "virtual \fB~QwtMathMLTextEngine\fP ()"
51
.RI "virtual int \fBheightForWidth\fP (const QFont &font, int flags, const QString &text, int width) const"
54
.RI "virtual QSize \fBtextSize\fP (const QFont &font, int flags, const QString &text) const"
57
.RI "virtual void \fBdraw\fP (QPainter *painter, const QRect &rect, int flags, const QString &text) const"
60
.RI "virtual bool \fBmightRender\fP (const QString &) const"
63
.RI "virtual void \fBtextMargins\fP (const QFont &, const QString &, int &left, int &right, int &top, int &bottom) const"
66
.SH "Constructor & Destructor Documentation"
68
.SS "QwtMathMLTextEngine::QwtMathMLTextEngine ()"
72
Definition at line 22 of file qwt_mathml_text_engine.cpp.
73
.SS "QwtMathMLTextEngine::~QwtMathMLTextEngine ()\fC [virtual]\fP"
77
Definition at line 27 of file qwt_mathml_text_engine.cpp.
78
.SH "Member Function Documentation"
80
.SS "int QwtMathMLTextEngine::heightForWidth (const QFont & font, int flags, const QString & text, int width) const\fC [virtual]\fP"
82
Find the height for a given width
86
\fIfont\fP Font of the text
88
\fIflags\fP Bitwise OR of the flags used like in QPainter::drawText
90
\fItext\fP Text to be rendered
102
Implements \fBQwtTextEngine\fP.
104
Definition at line 41 of file qwt_mathml_text_engine.cpp.
106
References textSize().
107
.SS "QSize QwtMathMLTextEngine::textSize (const QFont & font, int flags, const QString & text) const\fC [virtual]\fP"
109
Returns the size, that is needed to render text
113
\fIfont\fP Font of the text
115
\fIflags\fP Bitwise OR of the flags used like in QPainter::drawText
117
\fItext\fP Text to be rendered
127
Implements \fBQwtTextEngine\fP.
129
Definition at line 56 of file qwt_mathml_text_engine.cpp.
131
Referenced by heightForWidth().
132
.SS "void QwtMathMLTextEngine::draw (QPainter * painter, const QRect & rect, int flags, const QString & text) const\fC [virtual]\fP"
134
Draw the text in a clipping rectangle
138
\fIpainter\fP Painter
140
\fIrect\fP Clipping rectangle
142
\fIflags\fP Bitwise OR of the flags like in for QPainter::drawText
144
\fItext\fP Text to be rendered
149
Implements \fBQwtTextEngine\fP.
151
Definition at line 97 of file qwt_mathml_text_engine.cpp.
152
.SS "bool QwtMathMLTextEngine::mightRender (const QString & text) const\fC [virtual]\fP"
154
Test if a string can be rendered by \fBQwtMathMLTextEngine\fP
158
\fItext\fP Text to be tested
163
true, if text begins with '<math>'.
168
Implements \fBQwtTextEngine\fP.
170
Definition at line 131 of file qwt_mathml_text_engine.cpp.
171
.SS "void QwtMathMLTextEngine::textMargins (const QFont &, const QString &, int & left, int & right, int & top, int & bottom) const\fC [virtual]\fP"
173
Return margins around the texts
183
\fIbottom\fP Return 0
188
Implements \fBQwtTextEngine\fP.
190
Definition at line 83 of file qwt_mathml_text_engine.cpp.
194
Generated automatically by Doxygen for Qwt User's Guide from the source code.