blob: 333a61dc263e921d993cc98c536f4a9f428fca0f [file] [log] [blame]
// Copyright 2014 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#ifndef XFA_FXFA_FXFA_BASIC_H_
#define XFA_FXFA_FXFA_BASIC_H_
#include <stdint.h>
class CXFA_Measurement;
enum class XFA_ObjectType;
struct XFA_SCRIPTATTRIBUTEINFO;
enum XFA_HashCode : uint32_t {
XFA_HASHCODE_None = 0,
XFA_HASHCODE_Config = 0x4e1e39b6,
XFA_HASHCODE_ConnectionSet = 0xe14c801c,
XFA_HASHCODE_Data = 0xbde9abda,
XFA_HASHCODE_DataDescription = 0x2b5df51e,
XFA_HASHCODE_Datasets = 0x99b95079,
XFA_HASHCODE_DataWindow = 0x83a550d2,
XFA_HASHCODE_Event = 0x185e41e2,
XFA_HASHCODE_Form = 0xcd309ff4,
XFA_HASHCODE_Group = 0xf7f75fcd,
XFA_HASHCODE_Host = 0xdb075bde,
XFA_HASHCODE_Layout = 0x7e7e845e,
XFA_HASHCODE_LocaleSet = 0x5473b6dc,
XFA_HASHCODE_Log = 0x0b1b3d22,
XFA_HASHCODE_Name = 0x31b19c1,
XFA_HASHCODE_Occur = 0xf7eebe1c,
XFA_HASHCODE_Pdf = 0xb843dba,
XFA_HASHCODE_Record = 0x5779d65f,
XFA_HASHCODE_Signature = 0x8b036f32,
XFA_HASHCODE_SourceSet = 0x811929d,
XFA_HASHCODE_Stylesheet = 0x6038580a,
XFA_HASHCODE_Template = 0x803550fc,
XFA_HASHCODE_This = 0x2d574d58,
XFA_HASHCODE_Xdc = 0xc56afbf,
XFA_HASHCODE_XDP = 0xc56afcc,
XFA_HASHCODE_Xfa = 0xc56b9ff,
XFA_HASHCODE_Xfdf = 0x48d004a8,
XFA_HASHCODE_Xmpmeta = 0x132a8fbc
};
enum class XFA_PacketType : uint8_t {
#undef PCKT____
#define PCKT____(a, b, c, d, e, f) c,
#include "xfa/fxfa/parser/packets.inc"
#undef PCKT____
};
enum XFA_XDPPACKET {
XFA_XDPPACKET_UNKNOWN = 0,
XFA_XDPPACKET_Config = 1 << static_cast<uint8_t>(XFA_PacketType::Config),
XFA_XDPPACKET_Template = 1 << static_cast<uint8_t>(XFA_PacketType::Template),
XFA_XDPPACKET_Datasets = 1 << static_cast<uint8_t>(XFA_PacketType::Datasets),
XFA_XDPPACKET_Form = 1 << static_cast<uint8_t>(XFA_PacketType::Form),
XFA_XDPPACKET_LocaleSet = 1
<< static_cast<uint8_t>(XFA_PacketType::LocaleSet),
XFA_XDPPACKET_ConnectionSet =
1 << static_cast<uint8_t>(XFA_PacketType::ConnectionSet),
XFA_XDPPACKET_SourceSet = 1
<< static_cast<uint8_t>(XFA_PacketType::SourceSet),
XFA_XDPPACKET_Xdc = 1 << static_cast<uint8_t>(XFA_PacketType::Xdc),
XFA_XDPPACKET_Pdf = 1 << static_cast<uint8_t>(XFA_PacketType::Pdf),
XFA_XDPPACKET_Xfdf = 1 << static_cast<uint8_t>(XFA_PacketType::Xfdf),
XFA_XDPPACKET_Xmpmeta = 1 << static_cast<uint8_t>(XFA_PacketType::Xmpmeta),
XFA_XDPPACKET_Signature = 1
<< static_cast<uint8_t>(XFA_PacketType::Signature),
XFA_XDPPACKET_Stylesheet =
1 << static_cast<uint8_t>(XFA_PacketType::Stylesheet),
XFA_XDPPACKET_USER = 1 << static_cast<uint8_t>(XFA_PacketType::User),
XFA_XDPPACKET_XDP = 1 << static_cast<uint8_t>(XFA_PacketType::Xdp)
};
enum XFA_XDPPACKET_FLAGS {
XFA_XDPPACKET_FLAGS_COMPLETEMATCH = 1,
XFA_XDPPACKET_FLAGS_PREFIXMATCH = 2,
XFA_XDPPACKET_FLAGS_NOMATCH = 4,
XFA_XDPPACKET_FLAGS_SUPPORTONE = 8,
XFA_XDPPACKET_FLAGS_SUPPORTMANY = 16,
};
enum class XFA_AttributeValue : uint16_t {
#undef VALUE____
#define VALUE____(a, b, c) c,
#include "xfa/fxfa/parser/attribute_values.inc"
#undef VALUE____
};
enum class XFA_Attribute : int16_t {
Unknown = -1,
#undef ATTR____
#define ATTR____(a, b, c, d) c,
#include "xfa/fxfa/parser/attributes.inc"
#undef ATTR____
};
enum class XFA_Element : int16_t {
Unknown = -1,
#undef ELEM____
#define ELEM____(a, b, c, d) c,
#include "xfa/fxfa/parser/elements.inc"
#undef ELEM____
};
enum class XFA_AttributeType : uint8_t {
Enum,
CData,
Boolean,
Integer,
Measure,
};
#define XFA_PROPERTYFLAG_OneOf 0x01
#define XFA_PROPERTYFLAG_DefaultOneOf 0x02
enum class XFA_Unit : uint8_t {
Percent = 0,
Em,
Pt,
In,
Pc,
Cm,
Mm,
Mp,
Unknown = 255,
};
enum class XFA_ScriptType : uint8_t {
Basic,
Object,
};
#endif // XFA_FXFA_FXFA_BASIC_H_