Home

qtmmlwidget.h

This is the verbatim text of the qtmmlwidget.h include file. It is provided only for illustration; the copyright remains with Trolltech.


#ifndef QTMMLWIDGET_H
#define QTMMLWIDGET_H

#include <qdom.h>
#include <qframe.h>

class MmlDocument;

class QtMmlWidget : public QFrame
{
    public:
	enum MmlFont { NormalFont, FrakturFont, SansSerifFont, ScriptFont,
				    MonospaceFont, DoublestruckFont };

	QtMmlWidget(QWidget *parent = 0, const char *name = 0);
	~QtMmlWidget();

	QString fontName(MmlFont type) const;
	void setFontName(MmlFont type, const QString &name);
	int baseFontPointSize() const;
	void setBaseFontPointSize(int size);

	bool setContent(const QString &text, QString *errorMsg = 0,
			    int *errorLine = 0, int *errorColumn = 0);
	void dump() const;
	virtual QSize sizeHint() const;

	void setDrawFrames(bool b);
	bool drawFrames() const;
	
	void clear();

    protected:
	virtual void drawContents(QPainter *p);

    private:
	MmlDocument *m_doc;
};

#endif

Copyright © 2003-2004 TrolltechTrademarks
Qt Solutions