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
cxfa_document_builder.h
Go to the documentation of this file.
1
// Copyright 2014 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
XFA_FXFA_PARSER_CXFA_DOCUMENT_BUILDER_H_
8
#
define
XFA_FXFA_PARSER_CXFA_DOCUMENT_BUILDER_H_
9
10
#
include
"core/fxcrt/unowned_ptr.h"
11
#
include
"v8/include/cppgc/macros.h"
12
#
include
"xfa/fxfa/fxfa_basic.h"
13
14
class
CFX_XMLDocument
;
15
class
CFX_XMLNode
;
16
class
CXFA_Document;
17
class
CXFA_Node
;
18
class
CFX_XMLInstruction;
19
20
class
CXFA_DocumentBuilder
{
21
CPPGC_STACK_ALLOCATED();
// Allow Raw/Unowned pointers.
22
23
public
:
24
explicit
CXFA_DocumentBuilder
(CXFA_Document* pNodeFactory);
25
~
CXFA_DocumentBuilder
();
26
27
CFX_XMLNode
*
Build
(
CFX_XMLDocument
* pXML);
28
bool
BuildDocument
(
CFX_XMLDocument
* pXML,
XFA_PacketType
ePacketID);
29
void
ConstructXFANode
(
CXFA_Node
* pXFANode,
CFX_XMLNode
* pXMLNode);
30
CXFA_Node
*
GetRootNode
()
const
;
31
32
private
:
33
CXFA_Node
* ParseAsXDPPacket(
CFX_XMLNode
* pXMLDocumentNode,
34
XFA_PacketType
ePacketID);
35
CXFA_Node
* ParseAsXDPPacket_XDP(
CFX_XMLNode
* pXMLDocumentNode);
36
CXFA_Node
* ParseAsXDPPacket_Config(
CFX_XMLNode
* pXMLDocumentNode);
37
CXFA_Node
* ParseAsXDPPacket_Template(
CFX_XMLNode
* pXMLDocumentNode);
38
CXFA_Node
* ParseAsXDPPacket_Form(
CFX_XMLNode
* pXMLDocumentNode);
39
CXFA_Node
* ParseAsXDPPacket_Data(
CFX_XMLNode
* pXMLDocumentNode);
40
CXFA_Node
* ParseAsXDPPacket_LocaleConnectionSourceSet(
41
CFX_XMLNode
* pXMLDocumentNode,
42
XFA_PacketType
packet_type,
43
XFA_Element
element);
44
CXFA_Node
* ParseAsXDPPacket_Xdc(
CFX_XMLNode
* pXMLDocumentNode);
45
CXFA_Node
* ParseAsXDPPacket_User(
CFX_XMLNode
* pXMLDocumentNode);
46
CXFA_Node
* DataLoader(
CXFA_Node
* pXFANode,
CFX_XMLNode
* pXMLDoc);
47
CXFA_Node
* NormalLoader(
CXFA_Node
* pXFANode,
48
CFX_XMLNode
* pXMLDoc,
49
XFA_PacketType
ePacketID,
50
bool
bUseAttribute);
51
void
ParseContentNode(
CXFA_Node
* pXFANode,
52
CFX_XMLNode
* pXMLNode,
53
XFA_PacketType
ePacketID);
54
void
ParseDataValue(
CXFA_Node
* pXFANode,
55
CFX_XMLNode
* pXMLNode,
56
XFA_PacketType
ePacketID);
57
void
ParseDataGroup(
CXFA_Node
* pXFANode,
58
CFX_XMLNode
* pXMLNode,
59
XFA_PacketType
ePacketID);
60
void
ParseInstruction(
CXFA_Node
* pXFANode,
61
CFX_XMLInstruction* pXMLInstruction,
62
XFA_PacketType
ePacketID);
63
64
UnownedPtr
<CXFA_Document> node_factory_;
// OK, stack-only.
65
UnownedPtr
<
CXFA_Node
> root_node_;
// OK, stack-only.
66
UnownedPtr
<
CFX_XMLDocument
> xml_doc_;
67
size_t execute_recursion_depth_ = 0;
68
};
69
70
#
endif
// XFA_FXFA_PARSER_CXFA_DOCUMENT_BUILDER_H_
ByteString
fxcrt::ByteString ByteString
Definition
bytestring.h:180
PARA
#define PARA(a, b, c, d)
Definition
cjx_node.cpp:53
CFXJSE_Engine::EventParamScope
friend class EventParamScope
Definition
cfxjse_engine.h:127
CFX_XMLDocument
Definition
cfx_xmldocument.h:17
CFX_XMLDocument::AppendNodesFrom
void AppendNodesFrom(CFX_XMLDocument *other)
Definition
cfx_xmldocument.cpp:16
CFX_XMLNode
Definition
cfx_xmlnode.h:16
CFX_XMLNode::Save
virtual void Save(const RetainPtr< IFX_RetainableWriteStream > &pXMLStream)=0
CFX_XMLNode::Clone
virtual CFX_XMLNode * Clone(CFX_XMLDocument *doc)=0
CFX_XMLNode::GetType
virtual Type GetType() const =0
CFX_XMLNode::Type
Type
Definition
cfx_xmlnode.h:18
CFX_XMLNode::Type::kElement
@ kElement
Definition
cfx_xmlnode.h:20
CJS_Result
Definition
cjs_result.h:15
CJS_Result::Success
static CJS_Result Success()
Definition
cjs_result.h:28
CJS_Result::Failure
static CJS_Result Failure(JSMessage id)
Definition
cjs_result.h:35
CJX_Node
Definition
cjx_node.h:17
CJX_Node::~CJX_Node
~CJX_Node() override
CJX_Node::DynamicTypeIs
bool DynamicTypeIs(TypeTag eType) const override
Definition
cjx_node.cpp:112
CJX_Node::CJX_Node
CJX_Node(CXFA_Node *node)
Definition
cjx_node.cpp:106
CJX_Node::execSingleEventByName
XFA_EventError execSingleEventByName(WideStringView wsEventName, XFA_Element eType)
Definition
cjx_node.cpp:468
CJX_Object::GetAttributeByString
WideString GetAttributeByString(WideStringView attr) const
Definition
cjx_object.cpp:263
CJX_Object::GetContent
WideString GetContent(bool bScriptModify) const
Definition
cjx_object.cpp:693
CJX_Object::ThrowInvalidPropertyException
void ThrowInvalidPropertyException(v8::Isolate *pIsolate) const
Definition
cjx_object.cpp:186
CJX_Object::GetDocument
CXFA_Document * GetDocument() const
Definition
cjx_object.cpp:132
CJX_Object::TypeTag
TypeTag
Definition
cjx_object.h:49
CJX_Object::SetAttributeByString
void SetAttributeByString(WideStringView wsAttr, const WideString &wsValue)
Definition
cjx_object.cpp:252
CJX_Object::HasAttribute
bool HasAttribute(XFA_Attribute eAttr) const
Definition
cjx_object.cpp:217
CJX_Object::GetCData
WideString GetCData(XFA_Attribute eAttr) const
Definition
cjx_object.cpp:426
CJX_Object::GetXFANode
CXFA_Node * GetXFANode() const
Definition
cjx_object.cpp:136
CJX_Object::TryNamespace
std::optional< WideString > TryNamespace() const
Definition
cjx_object.cpp:760
CJX_Tree
Definition
cjx_tree.h:17
CJX_Tree::DynamicTypeIs
bool DynamicTypeIs(TypeTag eType) const override
Definition
cjx_tree.cpp:34
CXFA_DocumentBuilder
Definition
cxfa_document_builder.h:20
CXFA_DocumentBuilder::BuildDocument
bool BuildDocument(CFX_XMLDocument *pXML, XFA_PacketType ePacketID)
Definition
cxfa_document_builder.cpp:230
CXFA_DocumentBuilder::ConstructXFANode
void ConstructXFANode(CXFA_Node *pXFANode, CFX_XMLNode *pXMLNode)
Definition
cxfa_document_builder.cpp:253
CXFA_DocumentBuilder::~CXFA_DocumentBuilder
~CXFA_DocumentBuilder()
CXFA_DocumentBuilder::CXFA_DocumentBuilder
CXFA_DocumentBuilder(CXFA_Document *pNodeFactory)
Definition
cxfa_document_builder.cpp:225
CXFA_DocumentBuilder::Build
CFX_XMLNode * Build(CFX_XMLDocument *pXML)
Definition
cxfa_document_builder.cpp:242
CXFA_DocumentBuilder::GetRootNode
CXFA_Node * GetRootNode() const
Definition
cxfa_document_builder.cpp:295
CXFA_FFNotify
Definition
cxfa_ffnotify.h:26
CXFA_FFNotify::ExecEventByDeepFirst
XFA_EventError ExecEventByDeepFirst(CXFA_Node *pFormNode, XFA_EVENTTYPE eEventType, bool bIsFormReady, bool bRecursive)
Definition
cxfa_ffnotify.cpp:229
CXFA_Node
Definition
cxfa_node.h:94
CXFA_Node::GetXMLMappingNode
CFX_XMLNode * GetXMLMappingNode() const
Definition
cxfa_node.h:185
CXFA_Node::RemoveChildAndNotify
void RemoveChildAndNotify(CXFA_Node *pNode, bool bNotify)
Definition
cxfa_node.cpp:1630
CXFA_Node::InsertChildAndNotify
void InsertChildAndNotify(CXFA_Node *pNode, CXFA_Node *pBeforeNode)
Definition
cxfa_node.cpp:1612
CXFA_Node::SetFlag
void SetFlag(XFA_NodeFlag dwFlag)
Definition
cxfa_node.cpp:1821
CXFA_Node::SetXMLMappingNode
void SetXMLMappingNode(CFX_XMLNode *node)
Definition
cxfa_node.h:184
CXFA_Node::SetInitializedFlagAndNotify
void SetInitializedFlagAndNotify()
Definition
cxfa_node.cpp:1812
CXFA_Object::GetElementType
XFA_Element GetElementType() const
Definition
cxfa_object.h:91
fxcrt::UnownedPtr
Definition
unowned_ptr.h:76
fxcrt::WideString::WideString
WideString()=default
fxcrt::WideString::WideString
WideString(const WideString &other)=default
fxcrt::WideString::FromASCII
static WideString FromASCII(ByteStringView str)
Definition
widestring.cpp:704
pdfium::CFDETextOutLargeBitmapTest
Definition
cfde_textout_unittest.cpp:117
XFA_EVENTTYPE
XFA_EVENTTYPE
Definition
cxfa_eventparam.h:15
XFA_EVENT_PostOpen
@ XFA_EVENT_PostOpen
Definition
cxfa_eventparam.h:30
XFA_EVENT_Click
@ XFA_EVENT_Click
Definition
cxfa_eventparam.h:16
XFA_EVENT_MouseDown
@ XFA_EVENT_MouseDown
Definition
cxfa_eventparam.h:25
XFA_EVENT_MouseEnter
@ XFA_EVENT_MouseEnter
Definition
cxfa_eventparam.h:26
XFA_EVENT_Initialize
@ XFA_EVENT_Initialize
Definition
cxfa_eventparam.h:24
XFA_EVENT_PreOpen
@ XFA_EVENT_PreOpen
Definition
cxfa_eventparam.h:36
XFA_EVENT_PreSign
@ XFA_EVENT_PreSign
Definition
cxfa_eventparam.h:39
XFA_EVENT_Exit
@ XFA_EVENT_Exit
Definition
cxfa_eventparam.h:21
XFA_EVENT_Change
@ XFA_EVENT_Change
Definition
cxfa_eventparam.h:17
XFA_EVENT_Calculate
@ XFA_EVENT_Calculate
Definition
cxfa_eventparam.h:44
XFA_EVENT_PostSign
@ XFA_EVENT_PostSign
Definition
cxfa_eventparam.h:33
XFA_EVENT_MouseUp
@ XFA_EVENT_MouseUp
Definition
cxfa_eventparam.h:28
XFA_EVENT_Validate
@ XFA_EVENT_Validate
Definition
cxfa_eventparam.h:45
XFA_EVENT_IndexChange
@ XFA_EVENT_IndexChange
Definition
cxfa_eventparam.h:23
XFA_EVENT_Full
@ XFA_EVENT_Full
Definition
cxfa_eventparam.h:22
XFA_EVENT_MouseExit
@ XFA_EVENT_MouseExit
Definition
cxfa_eventparam.h:27
XFA_EVENT_Enter
@ XFA_EVENT_Enter
Definition
cxfa_eventparam.h:20
XFA_NodeFilter
XFA_NodeFilter
Definition
cxfa_node.h:59
XFA_NodeFilter::kOneOfProperty
@ kOneOfProperty
Definition
cxfa_node.h:62
XFA_NodeFlag
XFA_NodeFlag
Definition
cxfa_node.h:78
XFA_NodeFlag::kHasRemovedChildren
@ kHasRemovedChildren
Definition
cxfa_node.h:81
XFA_EventError
XFA_EventError
Definition
fxfa.h:54
XFA_EventError::kNotExist
@ kNotExist
Definition
fxfa.h:56
XFA_Attribute
XFA_Attribute
Definition
fxfa_basic.h:67
XFA_Element
XFA_Element
Definition
fxfa_basic.h:75
XFA_Element::Unknown
@ Unknown
Definition
fxfa_basic.h:76
XFA_PacketType
XFA_PacketType
Definition
fxfa_basic.h:44
JSMessage
JSMessage
Definition
js_resources.h:12
JSMessage::kParamError
@ kParamError
Definition
js_resources.h:14
JSMessage::kValueError
@ kValueError
Definition
js_resources.h:29
std
[33]
Definition
src_corelib_tools_qhash.cpp:421
v8
Definition
fxv8_unittest.h:15
ByteStringView
fxcrt::ByteStringView ByteStringView
Definition
string_view_template.h:325
WideStringView
fxcrt::WideStringView WideStringView
Definition
string_view_template.h:326
CJX_MethodSpec
Definition
cjx_object.h:40
XFA_ATTRIBUTEINFO
Definition
xfa_basic_data.h:43
WideString
fxcrt::WideString WideString
Definition
widestring.h:207
qtwebengine
src
3rdparty
chromium
third_party
pdfium
xfa
fxfa
parser
cxfa_document_builder.h
Generated on
for Qt by
1.18.0