• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_common.h"
8 
9 namespace {
10 
11 const CXFA_Node::PropertyData kPropertyData[] = {
12     {XFA_Element::SuppressBanner, 1, 0},
13     {XFA_Element::VersionControl, 1, 0},
14     {XFA_Element::LocaleSet, 1, 0},
15     {XFA_Element::Template, 1, 0},
16     {XFA_Element::ValidationMessaging, 1, 0},
17     {XFA_Element::Locale, 1, 0},
18     {XFA_Element::Data, 1, 0},
19     {XFA_Element::Messaging, 1, 0},
20     {XFA_Element::Unknown, 0, 0}};
21 const CXFA_Node::AttributeData kAttributeData[] = {
22     {XFA_Attribute::Desc, XFA_AttributeType::CData, nullptr},
23     {XFA_Attribute::Lock, XFA_AttributeType::Integer, (void*)0},
24     {XFA_Attribute::Unknown, XFA_AttributeType::Integer, nullptr}};
25 
26 constexpr wchar_t kName[] = L"common";
27 
28 }  // namespace
29 
CXFA_Common(CXFA_Document * doc,XFA_PacketType packet)30 CXFA_Common::CXFA_Common(CXFA_Document* doc, XFA_PacketType packet)
31     : CXFA_Node(doc,
32                 packet,
33                 XFA_XDPPACKET_Config,
34                 XFA_ObjectType::Node,
35                 XFA_Element::Common,
36                 kPropertyData,
37                 kAttributeData,
38                 kName) {}
39 
~CXFA_Common()40 CXFA_Common::~CXFA_Common() {}
41