Back to home page

EIC code displayed by LXR

 
 

    


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 // Copyright (C) 2016 The Qt Company Ltd.
0002 // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
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