Warning, file /include/QtGui/qtextdocumentwriter.h was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003 #ifndef QTEXTDOCUMENTWRITER_H
0004 #define QTEXTDOCUMENTWRITER_H
0005
0006 #include <QtGui/qtguiglobal.h>
0007 #include <QtCore/qstring.h>
0008
0009 QT_BEGIN_NAMESPACE
0010
0011
0012 class QTextDocumentWriterPrivate;
0013 class QIODevice;
0014 class QByteArray;
0015 class QTextDocument;
0016 class QTextDocumentFragment;
0017
0018 class Q_GUI_EXPORT QTextDocumentWriter
0019 {
0020 public:
0021 QTextDocumentWriter();
0022 QTextDocumentWriter(QIODevice *device, const QByteArray &format);
0023 explicit QTextDocumentWriter(const QString &fileName, const QByteArray &format = QByteArray());
0024 ~QTextDocumentWriter();
0025
0026 void setFormat (const QByteArray &format);
0027 QByteArray format () const;
0028
0029 void setDevice (QIODevice *device);
0030 QIODevice *device () const;
0031 void setFileName (const QString &fileName);
0032 QString fileName () const;
0033
0034 bool write(const QTextDocument *document);
0035 bool write(const QTextDocumentFragment &fragment);
0036
0037 static QList<QByteArray> supportedDocumentFormats();
0038
0039 private:
0040 Q_DISABLE_COPY(QTextDocumentWriter)
0041 QTextDocumentWriterPrivate *d;
0042 };
0043
0044 QT_END_NAMESPACE
0045
0046 #endif