~ubuntu-branches/ubuntu/oneiric/qwt/oneiric-proposed

« back to all changes in this revision

Viewing changes to doc/man/man3/QwtMathMLTextEngine.3

  • Committer: Bazaar Package Importer
  • Author(s): Fathi Boudra
  • Date: 2011-06-10 11:22:47 UTC
  • mfrom: (1.1.6 upstream) (2.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20110610112247-0i1019vvmzaq6p86
Tags: 6.0.0-1
* New upstream release (Closes: #624107):
  - drop Qt3 support. (Closes: #604379, #626868)
* Register documentation with doc-base. (Closes: #626567)
* Drop patches:
  - 01_makefiles.diff
  - 02_add_missing_warnings.diff
  - 03_qwt_branch_pull_r544.diff
* Add qwt_install_paths.patch to fix the hardcoded installation paths.
* Update debian/control:
  - drop libqt3-mt-dev build dependency.
  - bump Standards-Version to 3.9.2 (no changes).
  - drop Qt3 related packages.
  - due to bump soname (and as we dropper Qt3 support):
    - libqwt5-qt4-dev -> libqwt-dev
    - libqwt5-qt4 -> libqwt6
    - libqwt5-doc -> libqwt-doc
* Update debian/copyright file.
* Update debian/rules: drop Qt3 packages support.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
.TH "QwtMathMLTextEngine" 3 "Fri Apr 15 2011" "Version 6.0.0" "Qwt User's Guide" \" -*- nroff -*-
 
2
.ad l
 
3
.nh
 
4
.SH NAME
 
5
QwtMathMLTextEngine \- 
 
6
.PP
 
7
Text Engine for the MathML renderer of the Qt solutions package.  
 
8
 
 
9
.SH SYNOPSIS
 
10
.br
 
11
.PP
 
12
.PP
 
13
\fC#include <qwt_mathml_text_engine.h>\fP
 
14
.PP
 
15
Inherits \fBQwtTextEngine\fP.
 
16
.SS "Public Member Functions"
 
17
 
 
18
.in +1c
 
19
.ti -1c
 
20
.RI "\fBQwtMathMLTextEngine\fP ()"
 
21
.br
 
22
.ti -1c
 
23
.RI "virtual \fB~QwtMathMLTextEngine\fP ()"
 
24
.br
 
25
.ti -1c
 
26
.RI "virtual double \fBheightForWidth\fP (const QFont &font, int flags, const QString &text, double width) const "
 
27
.br
 
28
.ti -1c
 
29
.RI "virtual QSizeF \fBtextSize\fP (const QFont &font, int flags, const QString &text) const "
 
30
.br
 
31
.ti -1c
 
32
.RI "virtual void \fBdraw\fP (QPainter *painter, const QRectF &rect, int flags, const QString &text) const "
 
33
.br
 
34
.ti -1c
 
35
.RI "virtual bool \fBmightRender\fP (const QString &) const "
 
36
.br
 
37
.ti -1c
 
38
.RI "virtual void \fBtextMargins\fP (const QFont &, const QString &, double &left, double &right, double &top, double &bottom) const "
 
39
.br
 
40
.in -1c
 
41
.SH "Detailed Description"
 
42
.PP 
 
43
Text Engine for the MathML renderer of the Qt solutions package. 
 
44
 
 
45
To enable MathML support the following code needs to be added to the application: 
 
46
.PP
 
47
.nf
 
48
 
 
49
#include <qwt_mathml_text_engine.h>
 
50
 
 
51
QwtText::setTextEngine(QwtText::MathMLText, new QwtMathMLTextEngine());
 
52
  
 
53
.fi
 
54
.PP
 
55
.PP
 
56
\fBSee also:\fP
 
57
.RS 4
 
58
\fBQwtTextEngine\fP, \fBQwtText::setTextEngine\fP 
 
59
.RE
 
60
.PP
 
61
\fBWarning:\fP
 
62
.RS 4
 
63
Unfortunately the MathML renderer doesn't support rotating of texts. 
 
64
.RE
 
65
.PP
 
66
 
 
67
.SH "Constructor & Destructor Documentation"
 
68
.PP 
 
69
.SS "QwtMathMLTextEngine::QwtMathMLTextEngine ()"
 
70
.PP
 
71
Constructor. 
 
72
.SS "QwtMathMLTextEngine::~QwtMathMLTextEngine ()\fC [virtual]\fP"
 
73
.PP
 
74
Destructor. 
 
75
.SH "Member Function Documentation"
 
76
.PP 
 
77
.SS "void QwtMathMLTextEngine::draw (QPainter *painter, const QRectF &rect, intflags, const QString &text) const\fC [virtual]\fP"Draw the text in a clipping rectangle
 
78
.PP
 
79
\fBParameters:\fP
 
80
.RS 4
 
81
\fIpainter\fP Painter 
 
82
.br
 
83
\fIrect\fP Clipping rectangle 
 
84
.br
 
85
\fIflags\fP Bitwise OR of the flags like in for QPainter::drawText 
 
86
.br
 
87
\fItext\fP Text to be rendered 
 
88
.RE
 
89
.PP
 
90
 
 
91
.PP
 
92
Implements \fBQwtTextEngine\fP.
 
93
.SS "double QwtMathMLTextEngine::heightForWidth (const QFont &font, intflags, const QString &text, doublewidth) const\fC [virtual]\fP"Find the height for a given width
 
94
.PP
 
95
\fBParameters:\fP
 
96
.RS 4
 
97
\fIfont\fP Font of the text 
 
98
.br
 
99
\fIflags\fP Bitwise OR of the flags used like in QPainter::drawText 
 
100
.br
 
101
\fItext\fP Text to be rendered 
 
102
.br
 
103
\fIwidth\fP Width
 
104
.RE
 
105
.PP
 
106
\fBReturns:\fP
 
107
.RS 4
 
108
Calculated height 
 
109
.RE
 
110
.PP
 
111
 
 
112
.PP
 
113
Implements \fBQwtTextEngine\fP.
 
114
.SS "bool QwtMathMLTextEngine::mightRender (const QString &text) const\fC [virtual]\fP"Test if a string can be rendered by \fBQwtMathMLTextEngine\fP
 
115
.PP
 
116
\fBParameters:\fP
 
117
.RS 4
 
118
\fItext\fP Text to be tested 
 
119
.RE
 
120
.PP
 
121
\fBReturns:\fP
 
122
.RS 4
 
123
true, if text begins with '<math>'. 
 
124
.RE
 
125
.PP
 
126
 
 
127
.PP
 
128
Implements \fBQwtTextEngine\fP.
 
129
.SS "void QwtMathMLTextEngine::textMargins (const QFont &, const QString &, double &left, double &right, double &top, double &bottom) const\fC [virtual]\fP"Return margins around the texts
 
130
.PP
 
131
\fBParameters:\fP
 
132
.RS 4
 
133
\fIleft\fP Return 0 
 
134
.br
 
135
\fIright\fP Return 0 
 
136
.br
 
137
\fItop\fP Return 0 
 
138
.br
 
139
\fIbottom\fP Return 0 
 
140
.RE
 
141
.PP
 
142
 
 
143
.PP
 
144
Implements \fBQwtTextEngine\fP.
 
145
.SS "QSizeF QwtMathMLTextEngine::textSize (const QFont &font, intflags, const QString &text) const\fC [virtual]\fP"Returns the size, that is needed to render text
 
146
.PP
 
147
\fBParameters:\fP
 
148
.RS 4
 
149
\fIfont\fP Font of the text 
 
150
.br
 
151
\fIflags\fP Bitwise OR of the flags used like in QPainter::drawText 
 
152
.br
 
153
\fItext\fP Text to be rendered
 
154
.RE
 
155
.PP
 
156
\fBReturns:\fP
 
157
.RS 4
 
158
Caluclated size 
 
159
.RE
 
160
.PP
 
161
 
 
162
.PP
 
163
Implements \fBQwtTextEngine\fP.
 
164
 
 
165
.SH "Author"
 
166
.PP 
 
167
Generated automatically by Doxygen for Qwt User's Guide from the source code.