Qwt User's Guide 6.1.5

qwt_mml_document.h
1 #ifndef _QWT_MML_DOCUMENT_H_
2 #define _QWT_MML_DOCUMENT_H_ 1
3
4 #include <qwt_global.h>
5 #include <QString>
6
7 class QPainter;
8 class QPoint;
9
10 class QwtMmlDocument;
11
12 class QWT_EXPORT QwtMathMLDocument
13 {
14 public:
15 enum MmlFont
16 {
17 NormalFont,
18 FrakturFont,
19 SansSerifFont,
20 ScriptFont,
21 MonospaceFont,
22 DoublestruckFont
23 };
24
25 QwtMathMLDocument();
26 ~QwtMathMLDocument();
27
28 void clear();
29
30 bool setContent( QString text, QString *errorMsg = 0,
31 int *errorLine = 0, int *errorColumn = 0 );
32 void paint( QPainter *p, const QPoint &pos ) const;
33 QSize size() const;
34
35 QString fontName( MmlFont type ) const;
36 void setFontName( MmlFont type, const QString &name );
37
38 int baseFontPointSize() const;
39 void setBaseFontPointSize( int size );
40
41 private:
42 QwtMmlDocument *m_doc;
43 };
44
45 #endif