| Dan Sinclair | f473672 | 2017-11-27 18:10:47 +0000 | [diff] [blame] | 1 | // Copyright 2017 PDFium Authors. All rights reserved. |
| 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 "xfa/fxfa/parser/cxfa_documentassembly.h" |
| 8 | |
| Tom Sepez | ca63f7b | 2020-05-18 22:28:41 +0000 | [diff] [blame] | 9 | #include <memory> |
| 10 | |
| Tom Sepez | 148c144 | 2019-01-25 18:56:26 +0000 | [diff] [blame] | 11 | #include "fxjs/xfa/cjx_node.h" |
| Tom Sepez | 148c144 | 2019-01-25 18:56:26 +0000 | [diff] [blame] | 12 | |
| Dan Sinclair | f473672 | 2017-11-27 18:10:47 +0000 | [diff] [blame] | 13 | namespace { |
| 14 | |
| Lei Zhang | ec7d8e2 | 2018-02-07 19:57:25 +0000 | [diff] [blame] | 15 | const CXFA_Node::AttributeData kDocumentAssemblyAttributeData[] = { |
| Dan Sinclair | 21b0827 | 2017-11-30 20:22:20 +0000 | [diff] [blame] | 16 | {XFA_Attribute::Desc, XFA_AttributeType::CData, nullptr}, |
| 17 | {XFA_Attribute::Lock, XFA_AttributeType::Integer, (void*)0}, |
| Tom Sepez | a8c86c2 | 2019-01-25 22:06:03 +0000 | [diff] [blame] | 18 | }; |
| Dan Sinclair | f473672 | 2017-11-27 18:10:47 +0000 | [diff] [blame] | 19 | |
| Dan Sinclair | f473672 | 2017-11-27 18:10:47 +0000 | [diff] [blame] | 20 | } // namespace |
| 21 | |
| 22 | CXFA_DocumentAssembly::CXFA_DocumentAssembly(CXFA_Document* doc, |
| Dan Sinclair | c40c5aa | 2017-11-30 21:29:11 +0000 | [diff] [blame] | 23 | XFA_PacketType packet) |
| Dan Sinclair | f473672 | 2017-11-27 18:10:47 +0000 | [diff] [blame] | 24 | : CXFA_Node(doc, |
| 25 | packet, |
| 26 | XFA_XDPPACKET_Config, |
| 27 | XFA_ObjectType::ContentNode, |
| 28 | XFA_Element::DocumentAssembly, |
| Tom Sepez | c0fa5f6 | 2019-01-25 20:07:27 +0000 | [diff] [blame] | 29 | {}, |
| Tom Sepez | 148c144 | 2019-01-25 18:56:26 +0000 | [diff] [blame] | 30 | kDocumentAssemblyAttributeData, |
| Tom Sepez | ca63f7b | 2020-05-18 22:28:41 +0000 | [diff] [blame] | 31 | std::make_unique<CJX_Node>(this)) {} |
| Dan Sinclair | f473672 | 2017-11-27 18:10:47 +0000 | [diff] [blame] | 32 | |
| Tom Sepez | 7fc43dd | 2018-12-13 17:54:26 +0000 | [diff] [blame] | 33 | CXFA_DocumentAssembly::~CXFA_DocumentAssembly() = default; |