| OLD | NEW |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| 6 | 6 |
| 7 #ifndef XFA_FXFA_INCLUDE_FXFA_BASIC_H_ | 7 #ifndef XFA_FXFA_INCLUDE_FXFA_BASIC_H_ |
| 8 #define XFA_FXFA_INCLUDE_FXFA_BASIC_H_ | 8 #define XFA_FXFA_INCLUDE_FXFA_BASIC_H_ |
| 9 | 9 |
| 10 #include "fxjse/include/cfxjse_arguments.h" | 10 #include "fxjse/include/cfxjse_arguments.h" |
| 11 #include "fxjse/include/fxjse.h" | 11 #include "fxjse/include/fxjse.h" |
| 12 | 12 |
| 13 class CXFA_Measurement; | 13 class CXFA_Measurement; |
| 14 enum class XFA_ObjectType; |
| 14 | 15 |
| 15 enum XFA_HashCode : uint32_t { | 16 enum XFA_HashCode : uint32_t { |
| 16 XFA_HASHCODE_None = 0, | 17 XFA_HASHCODE_None = 0, |
| 17 | 18 |
| 18 XFA_HASHCODE_Config = 0x4e1e39b6, | 19 XFA_HASHCODE_Config = 0x4e1e39b6, |
| 19 XFA_HASHCODE_ConnectionSet = 0xe14c801c, | 20 XFA_HASHCODE_ConnectionSet = 0xe14c801c, |
| 20 XFA_HASHCODE_Data = 0xbde9abda, | 21 XFA_HASHCODE_Data = 0xbde9abda, |
| 21 XFA_HASHCODE_DataDescription = 0x2b5df51e, | 22 XFA_HASHCODE_DataDescription = 0x2b5df51e, |
| 22 XFA_HASHCODE_Datasets = 0x99b95079, | 23 XFA_HASHCODE_Datasets = 0x99b95079, |
| 23 XFA_HASHCODE_DataWindow = 0x83a550d2, | 24 XFA_HASHCODE_DataWindow = 0x83a550d2, |
| (...skipping 901 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 925 XFA_ELEMENT_NumberSymbol, | 926 XFA_ELEMENT_NumberSymbol, |
| 926 XFA_ELEMENT_Tagged, | 927 XFA_ELEMENT_Tagged, |
| 927 XFA_ELEMENT_Items, | 928 XFA_ELEMENT_Items, |
| 928 }; | 929 }; |
| 929 #define XFA_ELEMENT_UNKNOWN ((XFA_ELEMENT)-1) | 930 #define XFA_ELEMENT_UNKNOWN ((XFA_ELEMENT)-1) |
| 930 struct XFA_ELEMENTINFO { | 931 struct XFA_ELEMENTINFO { |
| 931 uint32_t uHash; | 932 uint32_t uHash; |
| 932 const FX_WCHAR* pName; | 933 const FX_WCHAR* pName; |
| 933 XFA_ELEMENT eName; | 934 XFA_ELEMENT eName; |
| 934 uint32_t dwPackets; | 935 uint32_t dwPackets; |
| 935 uint32_t eObjectType; | 936 XFA_ObjectType eObjectType; |
| 936 }; | 937 }; |
| 937 | 938 |
| 938 const XFA_ELEMENTINFO* XFA_GetElementByName(const CFX_WideStringC& wsName); | 939 const XFA_ELEMENTINFO* XFA_GetElementByName(const CFX_WideStringC& wsName); |
| 939 const XFA_ELEMENTINFO* XFA_GetElementByID(XFA_ELEMENT eName); | 940 const XFA_ELEMENTINFO* XFA_GetElementByID(XFA_ELEMENT eName); |
| 940 | 941 |
| 941 enum XFA_ATTRIBUTETYPE { | 942 enum XFA_ATTRIBUTETYPE { |
| 942 XFA_ATTRIBUTETYPE_NOTSURE, | 943 XFA_ATTRIBUTETYPE_NOTSURE, |
| 943 XFA_ATTRIBUTETYPE_Enum, | 944 XFA_ATTRIBUTETYPE_Enum, |
| 944 XFA_ATTRIBUTETYPE_Cdata, | 945 XFA_ATTRIBUTETYPE_Cdata, |
| 945 XFA_ATTRIBUTETYPE_Boolean, | 946 XFA_ATTRIBUTETYPE_Boolean, |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1074 const FX_WCHAR* pName; | 1075 const FX_WCHAR* pName; |
| 1075 XFA_ATTRIBUTE_CALLBACK lpfnCallback; | 1076 XFA_ATTRIBUTE_CALLBACK lpfnCallback; |
| 1076 int32_t eAttribute; | 1077 int32_t eAttribute; |
| 1077 uint16_t eValueType; | 1078 uint16_t eValueType; |
| 1078 }; | 1079 }; |
| 1079 const XFA_SCRIPTATTRIBUTEINFO* XFA_GetScriptAttributeByName( | 1080 const XFA_SCRIPTATTRIBUTEINFO* XFA_GetScriptAttributeByName( |
| 1080 XFA_ELEMENT eElement, | 1081 XFA_ELEMENT eElement, |
| 1081 const CFX_WideStringC& wsAttributeName); | 1082 const CFX_WideStringC& wsAttributeName); |
| 1082 | 1083 |
| 1083 #endif // XFA_FXFA_INCLUDE_FXFA_BASIC_H_ | 1084 #endif // XFA_FXFA_INCLUDE_FXFA_BASIC_H_ |
| OLD | NEW |