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_xmltext.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_xmltext.h"
8
9#include "core/fxcrt/xml/cfx_xmldocument.h"
10
11CFX_XMLText::CFX_XMLText(const WideString& wsText) : text_(wsText) {}
12
13CFX_XMLText::~CFX_XMLText() = default;
14
16 return Type::kText;
17}
18
20 return doc->CreateNode<CFX_XMLText>(text_);
21}
22
24 pXMLStream->WriteString(GetText().EncodeEntities().ToUTF8().AsStringView());
25}
~CFX_XMLText() override
CFX_XMLText(const WideString &wsText)
void Save(const RetainPtr< IFX_RetainableWriteStream > &pXMLStream) override
Type GetType() const override
CFX_XMLNode * Clone(CFX_XMLDocument *doc) override