Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
xmlwriter.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3
4#ifndef XMLWRITER_H
5#define XMLWRITER_H
6
7#include <QDomDocument>
8#include <QTextBlock>
9
10class QTextDocument;
11
13{
14public:
15 XmlWriter(QTextDocument *document) : textDocument(document) {}
17
18private:
19 void readFragment(const QTextBlock &currentBlock, QDomElement blockElement,
20 QDomDocument *document);
21 void processBlock(const QTextBlock &currentBlock);
22 void processFragment(const QTextFragment &currentFragment);
23
24 QDomDocument *document;
25 QTextDocument *textDocument;
26};
27
28#endif
\reentrant
Definition qdom.h:269
\reentrant
Definition qdom.h:471
\reentrant
\reentrant \inmodule QtGui
\reentrant
QDomDocument * toXml()
Definition xmlwriter.cpp:7
XmlWriter(QTextDocument *document)
Definition xmlwriter.h:15