Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
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
10
QT_BEGIN_NAMESPACE
11
12
class
QTextDocument;
13
14
class
XmlWriter
15
{
16
public
:
17
XmlWriter
(QTextDocument *document) : textDocument(document) {}
18
QDomDocument
*
toXml
();
19
20
private
:
21
void
readFragment(
const
QTextBlock ¤tBlock, QDomElement blockElement,
22
QDomDocument *document);
23
void
processBlock(
const
QTextBlock ¤tBlock);
24
void
processFragment(
const
QTextFragment ¤tFragment);
25
26
QDomDocument *document;
27
QTextDocument *textDocument;
28
};
29
30
QT_END_NAMESPACE
31
32
#
endif
XmlWriter
Definition
xmlwriter.h:15
XmlWriter::toXml
QDomDocument * toXml()
Definition
xmlwriter.cpp:7
XmlWriter::XmlWriter
XmlWriter(QTextDocument *document)
Definition
xmlwriter.h:17
QT_FORWARD_DECLARE_CLASS
QT_FORWARD_DECLARE_CLASS(QDomDocument)
qtbase
src
gui
doc
snippets
textblock-fragments
xmlwriter.h
Generated on
for Qt by
1.18.0