• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_FXFA_BASIC_H_
8 #define XFA_FXFA_FXFA_BASIC_H_
9 
10 #include <stdint.h>
11 
12 enum XFA_HashCode : uint32_t {
13   XFA_HASHCODE_None = 0,
14 
15   XFA_HASHCODE_Config = 0x4e1e39b6,
16   XFA_HASHCODE_ConnectionSet = 0xe14c801c,
17   XFA_HASHCODE_Data = 0xbde9abda,
18   XFA_HASHCODE_DataDescription = 0x2b5df51e,
19   XFA_HASHCODE_Datasets = 0x99b95079,
20   XFA_HASHCODE_DataWindow = 0x83a550d2,
21   XFA_HASHCODE_Event = 0x185e41e2,
22   XFA_HASHCODE_Form = 0xcd309ff4,
23   XFA_HASHCODE_Group = 0xf7f75fcd,
24   XFA_HASHCODE_Host = 0xdb075bde,
25   XFA_HASHCODE_Layout = 0x7e7e845e,
26   XFA_HASHCODE_LocaleSet = 0x5473b6dc,
27   XFA_HASHCODE_Log = 0x0b1b3d22,
28   XFA_HASHCODE_Name = 0x31b19c1,
29   XFA_HASHCODE_Occur = 0xf7eebe1c,
30   XFA_HASHCODE_Pdf = 0xb843dba,
31   XFA_HASHCODE_Record = 0x5779d65f,
32   XFA_HASHCODE_Signature = 0x8b036f32,
33   XFA_HASHCODE_SourceSet = 0x811929d,
34   XFA_HASHCODE_Stylesheet = 0x6038580a,
35   XFA_HASHCODE_Template = 0x803550fc,
36   XFA_HASHCODE_This = 0x2d574d58,
37   XFA_HASHCODE_Xdc = 0xc56afbf,
38   XFA_HASHCODE_XDP = 0xc56afcc,
39   XFA_HASHCODE_Xfa = 0xc56b9ff,
40   XFA_HASHCODE_Xfdf = 0x48d004a8,
41   XFA_HASHCODE_Xmpmeta = 0x132a8fbc
42 };
43 
44 enum class XFA_PacketType : uint8_t {
45 #undef PCKT____
46 #define PCKT____(a, b, c, d, e, f) c,
47 #include "xfa/fxfa/parser/packets.inc"
48 #undef PCKT____
49 };
50 
51 enum class XFA_XDPPACKET {
52   kUNKNOWN = 0,
53 #undef PCKT____
54 #define PCKT____(a, b, c, d, e, f) \
55   k##c = 1 << static_cast<uint8_t>(XFA_PacketType::c),
56 #include "xfa/fxfa/parser/packets.inc"
57 #undef PCKT____
58 };
59 
60 enum class XFA_AttributeValue : uint16_t {
61 #undef VALUE____
62 #define VALUE____(a, b, c) c,
63 #include "xfa/fxfa/parser/attribute_values.inc"
64 #undef VALUE____
65 };
66 
67 enum class XFA_Attribute : int16_t {
68   Unknown = -1,
69 #undef ATTR____
70 #define ATTR____(a, b, c, d) c,
71 #include "xfa/fxfa/parser/attributes.inc"
72 #undef ATTR____
73 };
74 
75 enum class XFA_Element : int16_t {
76   Unknown = -1,
77 #undef ELEM____
78 #define ELEM____(a, b, c, d) c,
79 #include "xfa/fxfa/parser/elements.inc"
80 #undef ELEM____
81 };
82 
83 enum class XFA_AttributeType : uint8_t {
84   Enum,
85   CData,
86   Boolean,
87   Integer,
88   Measure,
89 };
90 
91 enum class XFA_Unit : uint8_t {
92   Percent = 0,
93   Em,
94   Pt,
95   In,
96   Pc,
97   Cm,
98   Mm,
99   Mp,
100 
101   Unknown = 255,
102 };
103 
104 enum class XFA_ScriptType : uint8_t {
105   Basic,
106   Object,
107 };
108 
109 #endif  // XFA_FXFA_FXFA_BASIC_H_
110