Qwt User's Guide: qwt_mml_document.h Source File

Qwt User's Guide 6.0.1

- Main Page
- Related Pages
- Classes
- Files

- File List

# qwt_mml_document.h

    00001 #ifndef _QWT_MML_DOCUMENT_H_
    00002 #define _QWT_MML_DOCUMENT_H_ 1
    00003
    00004 #include <qwt_global.h>
    00005 #include <QString>
    00006
    00007 class QPainter;
    00008 class QPoint;
    00009
    00010 class QwtMmlDocument;
    00011
    00012 class QWT_EXPORT QwtMathMLDocument
    00013 {
    00014 public:
    00015     enum MmlFont
    00016     {
    00017         NormalFont,
    00018         FrakturFont,
    00019         SansSerifFont,
    00020         ScriptFont,
    00021         MonospaceFont,
    00022         DoublestruckFont
    00023     };
    00024
    00025     QwtMathMLDocument();
    00026     ~QwtMathMLDocument();
    00027
    00028     void clear();
    00029
    00030     bool setContent( QString text, QString *errorMsg = 0,
    00031                      int *errorLine = 0, int *errorColumn = 0 );
    00032     void paint( QPainter *p, const QPoint &pos ) const;
    00033     QSize size() const;
    00034
    00035     QString fontName( MmlFont type ) const;
    00036     void setFontName( MmlFont type, const QString &name );
    00037
    00038     int baseFontPointSize() const;
    00039     void setBaseFontPointSize( int size );
    00040
    00041 private:
    00042     QwtMmlDocument *m_doc;
    00043 };
    00044
    00045 #endif