class_qwt_math_m_l_document.html
15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Qwt User's Guide: QwtMathMLDocument Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.7.3 -->
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">Qwt User's Guide <span id="projectnumber">6.0.1</span></div>
</td>
</tr>
</tbody>
</table>
</div>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class List</span></a></li>
<li><a href="classes.html"><span>Class Index</span></a></li>
<li><a href="inherits.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class Members</span></a></li>
</ul>
</div>
</div>
<div class="header">
<div class="summary">
<a href="#pub-types">Public Types</a> |
<a href="#pub-methods">Public Member Functions</a> </div>
<div class="headertitle">
<h1>QwtMathMLDocument Class Reference</h1> </div>
</div>
<div class="contents">
<!-- doxytag: class="QwtMathMLDocument" -->
<p>The <a class="el" href="class_qwt_math_m_l_document.html" title="The QwtMathMLDocument class renders mathematical formulas written in MathML 2.0.">QwtMathMLDocument</a> class renders mathematical formulas written in MathML 2.0.
<a href="#_details">More...</a></p>
<p><a href="class_qwt_math_m_l_document-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><b>MmlFont</b> { <br/>
  <b>NormalFont</b>,
<br/>
  <b>FrakturFont</b>,
<br/>
  <b>SansSerifFont</b>,
<br/>
  <b>ScriptFont</b>,
<br/>
  <b>MonospaceFont</b>,
<br/>
  <b>DoublestruckFont</b>
<br/>
}</td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_math_m_l_document.html#a372e36680e26ee8f349959ce30949feb">baseFontPointSize</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_math_m_l_document.html#a243260ea9ce5468606279739adfbc3a2">clear</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QString </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_math_m_l_document.html#a679627a13a863fda316c7e55c6d15e46">fontName</a> (MmlFont type) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_math_m_l_document.html#a9c156e39133e6fe833771720d9e85a5c">paint</a> (QPainter *p, const QPoint &pos) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_math_m_l_document.html#a144eb567719a791ee7de374d41883a0c">QwtMathMLDocument</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_math_m_l_document.html#aa9c466af2259bebce52b404cfc0fd96c">setBaseFontPointSize</a> (int size)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_math_m_l_document.html#a1f694b8281939dd6dd3c8fd0c5bd35b5">setContent</a> (QString text, QString *errorMsg=0, int *errorLine=0, int *errorColumn=0)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_math_m_l_document.html#a2cc36b5310fec8d912f94e81e8ed3c46">setFontName</a> (MmlFont type, const QString &name)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QSize </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_math_m_l_document.html#ae90842d4e723f3d34b19ede81a71d8f6">size</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_math_m_l_document.html#a4133865bb9ba44b847cf6e31dc762b04">~QwtMathMLDocument</a> ()</td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>The <a class="el" href="class_qwt_math_m_l_document.html" title="The QwtMathMLDocument class renders mathematical formulas written in MathML 2.0.">QwtMathMLDocument</a> class renders mathematical formulas written in MathML 2.0. </p>
</div><hr/><h2>Constructor & Destructor Documentation</h2>
<a class="anchor" id="a144eb567719a791ee7de374d41883a0c"></a><!-- doxytag: member="QwtMathMLDocument::QwtMathMLDocument" ref="a144eb567719a791ee7de374d41883a0c" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">QwtMathMLDocument::QwtMathMLDocument </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Constructs an empty MML document. </p>
</div>
</div>
<a class="anchor" id="a4133865bb9ba44b847cf6e31dc762b04"></a><!-- doxytag: member="QwtMathMLDocument::~QwtMathMLDocument" ref="a4133865bb9ba44b847cf6e31dc762b04" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">QwtMathMLDocument::~QwtMathMLDocument </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Destroys the MML document. </p>
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a372e36680e26ee8f349959ce30949feb"></a><!-- doxytag: member="QwtMathMLDocument::baseFontPointSize" ref="a372e36680e26ee8f349959ce30949feb" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int QwtMathMLDocument::baseFontPointSize </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns the point size of the font used to render expressions whose scriptlevel is 0.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_math_m_l_document.html#aa9c466af2259bebce52b404cfc0fd96c">setBaseFontPointSize()</a> <a class="el" href="class_qwt_math_m_l_document.html#a679627a13a863fda316c7e55c6d15e46">fontName()</a> <a class="el" href="class_qwt_math_m_l_document.html#a2cc36b5310fec8d912f94e81e8ed3c46">setFontName()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="a243260ea9ce5468606279739adfbc3a2"></a><!-- doxytag: member="QwtMathMLDocument::clear" ref="a243260ea9ce5468606279739adfbc3a2" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void QwtMathMLDocument::clear </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Clears the contents of this MML document. </p>
</div>
</div>
<a class="anchor" id="a679627a13a863fda316c7e55c6d15e46"></a><!-- doxytag: member="QwtMathMLDocument::fontName" ref="a679627a13a863fda316c7e55c6d15e46" args="(MmlFont type) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">QString QwtMathMLDocument::fontName </td>
<td>(</td>
<td class="paramtype">QwtMathMLDocument::MmlFont </td>
<td class="paramname"><em>type</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns the name of the font used to render the font <em>type</em>.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_math_m_l_document.html#a2cc36b5310fec8d912f94e81e8ed3c46">setFontName()</a> <a class="el" href="class_qwt_math_m_l_document.html#aa9c466af2259bebce52b404cfc0fd96c">setBaseFontPointSize()</a> <a class="el" href="class_qwt_math_m_l_document.html#a372e36680e26ee8f349959ce30949feb">baseFontPointSize()</a> QwtMathMLDocument::MmlFont </dd></dl>
</div>
</div>
<a class="anchor" id="a9c156e39133e6fe833771720d9e85a5c"></a><!-- doxytag: member="QwtMathMLDocument::paint" ref="a9c156e39133e6fe833771720d9e85a5c" args="(QPainter *p, const QPoint &pos) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void QwtMathMLDocument::paint </td>
<td>(</td>
<td class="paramtype">QPainter * </td>
<td class="paramname"><em>p</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const QPoint & </td>
<td class="paramname"><em>pos</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Renders this MML document with the painter <em>p</em> at position <em>pos</em>. </p>
</div>
</div>
<a class="anchor" id="aa9c466af2259bebce52b404cfc0fd96c"></a><!-- doxytag: member="QwtMathMLDocument::setBaseFontPointSize" ref="aa9c466af2259bebce52b404cfc0fd96c" args="(int size)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void QwtMathMLDocument::setBaseFontPointSize </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"><em>size</em></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Sets the point <em>size</em> of the font used to render expressions whose scriptlevel is 0.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_math_m_l_document.html#a372e36680e26ee8f349959ce30949feb">baseFontPointSize()</a> <a class="el" href="class_qwt_math_m_l_document.html#a679627a13a863fda316c7e55c6d15e46">fontName()</a> <a class="el" href="class_qwt_math_m_l_document.html#a2cc36b5310fec8d912f94e81e8ed3c46">setFontName()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="a1f694b8281939dd6dd3c8fd0c5bd35b5"></a><!-- doxytag: member="QwtMathMLDocument::setContent" ref="a1f694b8281939dd6dd3c8fd0c5bd35b5" args="(QString text, QString *errorMsg=0, int *errorLine=0, int *errorColumn=0)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool QwtMathMLDocument::setContent </td>
<td>(</td>
<td class="paramtype">QString </td>
<td class="paramname"><em>text</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">QString * </td>
<td class="paramname"><em>errorMsg</em> = <code>0</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int * </td>
<td class="paramname"><em>errorLine</em> = <code>0</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int * </td>
<td class="paramname"><em>errorColumn</em> = <code>0</code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Sets the MathML expression to be rendered. The expression is given in the string <em>text</em>. If the expression is successfully parsed, this method returns true; otherwise it returns false. If an error occured <em>errorMsg</em> is set to a diagnostic message, while <em>errorLine</em> and <em>errorColumn</em> contain the location of the error. Any of <em>errorMsg</em>, <em>errorLine</em> and <em>errorColumn</em> may be 0, in which case they are not set.</p>
<p><em>text</em> should contain MathML 2.0 presentation markup elements enclosed in a <math> element. </p>
</div>
</div>
<a class="anchor" id="a2cc36b5310fec8d912f94e81e8ed3c46"></a><!-- doxytag: member="QwtMathMLDocument::setFontName" ref="a2cc36b5310fec8d912f94e81e8ed3c46" args="(MmlFont type, const QString &name)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void QwtMathMLDocument::setFontName </td>
<td>(</td>
<td class="paramtype">QwtMathMLDocument::MmlFont </td>
<td class="paramname"><em>type</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const QString & </td>
<td class="paramname"><em>name</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Sets the name of the font used to render the font <em>type</em> to <em>name</em>.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_math_m_l_document.html#a679627a13a863fda316c7e55c6d15e46">fontName()</a> <a class="el" href="class_qwt_math_m_l_document.html#aa9c466af2259bebce52b404cfc0fd96c">setBaseFontPointSize()</a> <a class="el" href="class_qwt_math_m_l_document.html#a372e36680e26ee8f349959ce30949feb">baseFontPointSize()</a> QwtMathMLDocument::MmlFont </dd></dl>
</div>
</div>
<a class="anchor" id="ae90842d4e723f3d34b19ede81a71d8f6"></a><!-- doxytag: member="QwtMathMLDocument::size" ref="ae90842d4e723f3d34b19ede81a71d8f6" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">QSize QwtMathMLDocument::size </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns the size of this MML document, as rendered, in pixels. </p>
</div>
</div>
</div>
<hr class="footer"/><address class="footer"><small>Generated by 
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address>
</body>
</html>