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
cfx_xmldocument.h
Go to the documentation of this file.
1
// Copyright 2018 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
#
ifndef
CORE_FXCRT_XML_CFX_XMLDOCUMENT_H_
6
#
define
CORE_FXCRT_XML_CFX_XMLDOCUMENT_H_
7
8
#
include
<
memory
>
9
#
include
<
utility
>
10
#
include
<
vector
>
11
12
#
include
"core/fxcrt/unowned_ptr.h"
13
14
class
CFX_XMLElement;
15
class
CFX_XMLNode
;
16
17
class
CFX_XMLDocument
{
18
public
:
19
CFX_XMLDocument
();
20
~
CFX_XMLDocument
();
21
22
CFX_XMLElement*
GetRoot
()
const
{
return
root_; }
23
24
template
<
typename
T,
typename
... Args>
25
T*
CreateNode
(Args&&... args) {
26
nodes_.push_back(std::make_unique<T>(std::forward<Args>(args)...));
27
return
static_cast
<T*>(nodes_.back().get());
28
}
29
30
// Transfers ownership of entries in |nodes_| from |other| to |this|.
31
// This is used in CJX_Node::loadXML to transfer ownership of the newly
32
// created nodes to the top-level XML doc for the PDF, after parsing an XML
33
// blob.
34
void
AppendNodesFrom
(
CFX_XMLDocument
* other);
35
36
private
:
37
std::vector<std::unique_ptr<CFX_XMLNode>> nodes_;
38
UnownedPtr
<CFX_XMLElement> root_;
39
};
40
41
#
endif
// CORE_FXCRT_XML_CFX_XMLDOCUMENT_H_
DCHECK
#define DCHECK
Definition
check.h:33
CFX_XMLDocument
Definition
cfx_xmldocument.h:17
CFX_XMLDocument::GetRoot
CFX_XMLElement * GetRoot() const
Definition
cfx_xmldocument.h:22
CFX_XMLDocument::CreateNode
T * CreateNode(Args &&... args)
Definition
cfx_xmldocument.h:25
CFX_XMLDocument::CFX_XMLDocument
CFX_XMLDocument()
Definition
cfx_xmldocument.cpp:11
CFX_XMLDocument::AppendNodesFrom
void AppendNodesFrom(CFX_XMLDocument *other)
Definition
cfx_xmldocument.cpp:16
CFX_XMLDocument::~CFX_XMLDocument
~CFX_XMLDocument()
CFX_XMLElement::GetAttribute
WideString GetAttribute(const WideString &name) const
Definition
cfx_xmlelement.cpp:132
CFX_XMLNode
Definition
cfx_xmlnode.h:16
CFX_XMLNode::Type
Type
Definition
cfx_xmlnode.h:18
CFX_XMLNode::Type::kElement
@ kElement
Definition
cfx_xmlnode.h:20
CPDF_Metadata
Definition
cpdf_metadata.h:35
CPDF_Metadata::~CPDF_Metadata
~CPDF_Metadata()
CPDF_Metadata::CheckForSharedForm
std::vector< UnsupportedFeature > CheckForSharedForm() const
Definition
cpdf_metadata.cpp:82
CPDF_Metadata::CPDF_Metadata
CPDF_Metadata(RetainPtr< const CPDF_Stream > pStream)
Definition
cpdf_metadata.cpp:75
fxcrt::RetainPtr
Definition
retain_ptr.h:28
fxcrt::UnownedPtr
Definition
unowned_ptr.h:76
fxcrt::WideString::FromASCII
static WideString FromASCII(ByteStringView str)
Definition
widestring.cpp:704
fxcrt::WideString::EqualsASCII
bool EqualsASCII(ByteStringView that) const
Definition
widestring.h:111
pdfium::CFDETextOutLargeBitmapTest
Definition
cfde_textout_unittest.cpp:117
UnsupportedFeature
UnsupportedFeature
Definition
cpdf_metadata.h:16
UnsupportedFeature::kAnnotationSignature
@ kAnnotationSignature
Definition
cpdf_metadata.h:32
UnsupportedFeature::kDocumentAttachment
@ kDocumentAttachment
Definition
cpdf_metadata.h:19
UnsupportedFeature::kDocumentSharedFormFilesystem
@ kDocumentSharedFormFilesystem
Definition
cpdf_metadata.h:23
UnsupportedFeature::kAnnotationScreenMedia
@ kAnnotationScreenMedia
Definition
cpdf_metadata.h:29
UnsupportedFeature::kAnnotationSound
@ kAnnotationSound
Definition
cpdf_metadata.h:28
UnsupportedFeature::kDocumentXFAForm
@ kDocumentXFAForm
Definition
cpdf_metadata.h:17
UnsupportedFeature::kDocumentSharedFormAcrobat
@ kDocumentSharedFormAcrobat
Definition
cpdf_metadata.h:22
UnsupportedFeature::kDocumentSecurity
@ kDocumentSecurity
Definition
cpdf_metadata.h:20
UnsupportedFeature::kAnnotationAttachment
@ kAnnotationAttachment
Definition
cpdf_metadata.h:31
UnsupportedFeature::kAnnotation3d
@ kAnnotation3d
Definition
cpdf_metadata.h:26
UnsupportedFeature::kDocumentSharedReview
@ kDocumentSharedReview
Definition
cpdf_metadata.h:21
UnsupportedFeature::kDocumentPortableCollection
@ kDocumentPortableCollection
Definition
cpdf_metadata.h:18
UnsupportedFeature::kDocumentSharedFormEmail
@ kDocumentSharedFormEmail
Definition
cpdf_metadata.h:24
UnsupportedFeature::kAnnotationScreenRichMedia
@ kAnnotationScreenRichMedia
Definition
cpdf_metadata.h:30
UnsupportedFeature::kAnnotationMovie
@ kAnnotationMovie
Definition
cpdf_metadata.h:27
WideString
fxcrt::WideString WideString
Definition
widestring.h:207
qtwebengine
src
3rdparty
chromium
third_party
pdfium
core
fxcrt
xml
cfx_xmldocument.h
Generated on
for Qt by
1.18.0