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_xmlinstruction.h
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
#
ifndef
CORE_FXCRT_XML_CFX_XMLINSTRUCTION_H_
8
#
define
CORE_FXCRT_XML_CFX_XMLINSTRUCTION_H_
9
10
#
include
<
vector
>
11
12
#
include
"core/fxcrt/widestring.h"
13
#
include
"core/fxcrt/xml/cfx_xmlnode.h"
14
15
class
CFX_XMLDocument
;
16
17
class
CFX_XMLInstruction
final
:
public
CFX_XMLNode
{
18
public
:
19
explicit
CFX_XMLInstruction
(
const
WideString
& wsTarget);
20
~
CFX_XMLInstruction
()
override
;
21
22
// CFX_XMLNode
23
Type
GetType
()
const
override
;
24
CFX_XMLNode
*
Clone
(
CFX_XMLDocument
* doc)
override
;
25
void
Save
(
const
RetainPtr
<
IFX_RetainableWriteStream
>& pXMLStream)
override
;
26
27
bool
IsOriginalXFAVersion
()
const
;
28
bool
IsAcrobat
()
const
;
29
30
const
std
::
vector
<
WideString
>&
GetTargetData
()
const
{
return
target_data_; }
31
void
AppendData
(
const
WideString
& wsData);
32
33
private
:
34
const
WideString
name_;
35
std::vector<WideString> target_data_;
36
};
37
38
inline
CFX_XMLInstruction*
ToXMLInstruction
(
CFX_XMLNode
* pNode) {
39
return
pNode && pNode->GetType() == CFX_XMLNode::Type::kInstruction
40
?
static_cast
<CFX_XMLInstruction*>(pNode)
41
:
nullptr
;
42
}
43
44
#
endif
// CORE_FXCRT_XML_CFX_XMLINSTRUCTION_H_
ToXMLInstruction
CFX_XMLInstruction * ToXMLInstruction(CFX_XMLNode *pNode)
Definition
cfx_xmlinstruction.h:38
CFX_XMLDocument
Definition
cfx_xmldocument.h:17
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_XMLInstruction::AppendData
void AppendData(const WideString &wsData)
Definition
cfx_xmlinstruction.cpp:28
CFX_XMLInstruction::CFX_XMLInstruction
CFX_XMLInstruction(const WideString &wsTarget)
Definition
cfx_xmlinstruction.cpp:13
CFX_XMLInstruction::GetTargetData
const std::vector< WideString > & GetTargetData() const
Definition
cfx_xmlinstruction.h:30
CFX_XMLInstruction::GetType
Type GetType() const override
Definition
cfx_xmlinstruction.cpp:18
CFX_XMLInstruction::IsAcrobat
bool IsAcrobat() const
Definition
cfx_xmlinstruction.cpp:36
CFX_XMLInstruction::IsOriginalXFAVersion
bool IsOriginalXFAVersion() const
Definition
cfx_xmlinstruction.cpp:32
CFX_XMLInstruction::Clone
CFX_XMLNode * Clone(CFX_XMLDocument *doc) override
Definition
cfx_xmlinstruction.cpp:22
CFX_XMLInstruction::~CFX_XMLInstruction
~CFX_XMLInstruction() override
CFX_XMLInstruction::Save
void Save(const RetainPtr< IFX_RetainableWriteStream > &pXMLStream) override
Definition
cfx_xmlinstruction.cpp:40
CFX_XMLNode
Definition
cfx_xmlnode.h:16
CFX_XMLNode::Type
Type
Definition
cfx_xmlnode.h:18
IFX_RetainableWriteStream
Definition
fx_stream.h:43
fxcrt::RetainPtr
Definition
retain_ptr.h:28
WideString
fxcrt::WideString WideString
Definition
widestring.h:207
qtwebengine
src
3rdparty
chromium
third_party
pdfium
core
fxcrt
xml
cfx_xmlinstruction.h
Generated on
for Qt by
1.18.0