blob: e7fdb6e45372ed9dbeccce8905d1427c91d326a9 [file] [log] [blame]
kumarashishg826308d2023-06-23 13:21:22 +00001// Copyright 2017 The PDFium Authors
Philip P. Moltmannd904c1e2018-03-19 09:26:45 -07002// 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_eranames.h"
8
Haibo Huang49cc9302020-04-27 16:14:24 -07009#include "fxjs/xfa/cjx_node.h"
kumarashishg826308d2023-06-23 13:21:22 +000010#include "xfa/fxfa/parser/cxfa_document.h"
Haibo Huang49cc9302020-04-27 16:14:24 -070011
Philip P. Moltmannd904c1e2018-03-19 09:26:45 -070012namespace {
13
Haibo Huang49cc9302020-04-27 16:14:24 -070014const CXFA_Node::PropertyData kEraNamesPropertyData[] = {
kumarashishg826308d2023-06-23 13:21:22 +000015 {XFA_Element::Era, 2, {}},
Haibo Huang49cc9302020-04-27 16:14:24 -070016};
Philip P. Moltmannd904c1e2018-03-19 09:26:45 -070017
18} // namespace
19
20CXFA_EraNames::CXFA_EraNames(CXFA_Document* doc, XFA_PacketType packet)
21 : CXFA_Node(doc,
22 packet,
kumarashishg826308d2023-06-23 13:21:22 +000023 XFA_XDPPACKET::kLocaleSet,
Philip P. Moltmannd904c1e2018-03-19 09:26:45 -070024 XFA_ObjectType::Node,
25 XFA_Element::EraNames,
Haibo Huang49cc9302020-04-27 16:14:24 -070026 kEraNamesPropertyData,
27 {},
kumarashishg826308d2023-06-23 13:21:22 +000028 cppgc::MakeGarbageCollected<CJX_Node>(
29 doc->GetHeap()->GetAllocationHandle(),
30 this)) {}
Philip P. Moltmannd904c1e2018-03-19 09:26:45 -070031
Haibo Huang49cc9302020-04-27 16:14:24 -070032CXFA_EraNames::~CXFA_EraNames() = default;