Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
cfx_xmlchardata.cpp
Go to the documentation of this file.
1
// Copyright 2017 The PDFium Authors
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7
#
include
"core/fxcrt/xml/cfx_xmlchardata.h"
8
9
#
include
"core/fxcrt/xml/cfx_xmldocument.h"
10
11
CFX_XMLCharData::
CFX_XMLCharData
(
const
WideString& wsCData)
12
:
CFX_XMLText
(
wsCData
)
{}
13
14
CFX_XMLCharData::~
CFX_XMLCharData
() =
default
;
15
16
CFX_XMLNode
::
Type
CFX_XMLCharData::
GetType
()
const
{
17
return
Type
::
kCharData
;
18
}
19
20
CFX_XMLNode
* CFX_XMLCharData::
Clone
(
CFX_XMLDocument
* doc) {
21
return
doc->CreateNode<CFX_XMLCharData>(
GetText
());
22
}
23
24
void
CFX_XMLCharData::
Save
(
25
const
RetainPtr
<
IFX_RetainableWriteStream
>& pXMLStream) {
26
pXMLStream->WriteString(
"<![CDATA["
);
27
pXMLStream->WriteString(GetText().ToUTF8().AsStringView());
28
pXMLStream->WriteString(
"]]>"
);
29
}
CFX_XMLCharData::GetType
Type GetType() const override
Definition
cfx_xmlchardata.cpp:16
CFX_XMLCharData::CFX_XMLCharData
CFX_XMLCharData(const WideString &wsCData)
Definition
cfx_xmlchardata.cpp:11
CFX_XMLCharData::Save
void Save(const RetainPtr< IFX_RetainableWriteStream > &pXMLStream) override
Definition
cfx_xmlchardata.cpp:24
CFX_XMLCharData::~CFX_XMLCharData
~CFX_XMLCharData() override
CFX_XMLCharData::Clone
CFX_XMLNode * Clone(CFX_XMLDocument *doc) override
Definition
cfx_xmlchardata.cpp:20
CFX_XMLDocument
Definition
cfx_xmldocument.h:17
CFX_XMLNode
Definition
cfx_xmlnode.h:16
CFX_XMLNode::Type
Type
Definition
cfx_xmlnode.h:18
CFX_XMLNode::Type::kCharData
@ kCharData
CFX_XMLText
Definition
cfx_xmltext.h:15
CFX_XMLText::GetText
const WideString & GetText() const
Definition
cfx_xmltext.h:25
CFX_XMLText::CFX_XMLText
CFX_XMLText(const WideString &wsText)
Definition
cfx_xmltext.cpp:11
IFX_RetainableWriteStream
Definition
fx_stream.h:43
fxcrt::RetainPtr
Definition
retain_ptr.h:29
qtwebengine
src
3rdparty
chromium
third_party
pdfium
core
fxcrt
xml
cfx_xmlchardata.cpp
Generated on Sat Sep 21 2024 00:55:47 for Qt by
1.12.0