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_versioncontrol.h"
8 
9 namespace {
10 
11 const CXFA_Node::AttributeData kAttributeData[] = {
12     {XFA_Attribute::SourceBelow, XFA_AttributeType::Enum,
13      (void*)XFA_AttributeEnum::Update},
14     {XFA_Attribute::OutputBelow, XFA_AttributeType::Enum,
15      (void*)XFA_AttributeEnum::Warn},
16     {XFA_Attribute::SourceAbove, XFA_AttributeType::Enum,
17      (void*)XFA_AttributeEnum::Warn},
18     {XFA_Attribute::Lock, XFA_AttributeType::Integer, (void*)0},
19     {XFA_Attribute::Unknown, XFA_AttributeType::Integer, nullptr}};
20 
21 constexpr wchar_t kName[] = L"versionControl";
22 
23 }  // namespace
24 
25 CXFA_VersionControl::CXFA_VersionControl(CXFA_Document* doc,
26                                          XFA_PacketType packet)
27     : CXFA_Node(doc,
28                 packet,
29                 XFA_XDPPACKET_Config,
30                 XFA_ObjectType::Node,
31                 XFA_Element::VersionControl,
32                 nullptr,
33                 kAttributeData,
34                 kName) {}
35 
36 CXFA_VersionControl::~CXFA_VersionControl() {}
37