Chromium Code Reviews| 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_INCLUDE_FXFA_FXFA_BASIC_H_ | 7 #ifndef XFA_INCLUDE_FXFA_FXFA_BASIC_H_ |
| 8 #define XFA_INCLUDE_FXFA_FXFA_BASIC_H_ | 8 #define XFA_INCLUDE_FXFA_FXFA_BASIC_H_ |
| 9 | 9 |
| 10 #include "xfa/fxjse/cfxjse_arguments.h" | 10 #include "xfa/fxjse/cfxjse_arguments.h" |
| (...skipping 908 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 919 XFA_ELEMENT_Items, | 919 XFA_ELEMENT_Items, |
| 920 }; | 920 }; |
| 921 #define XFA_ELEMENT_UNKNOWN ((XFA_ELEMENT)-1) | 921 #define XFA_ELEMENT_UNKNOWN ((XFA_ELEMENT)-1) |
| 922 struct XFA_ELEMENTINFO { | 922 struct XFA_ELEMENTINFO { |
| 923 uint32_t uHash; | 923 uint32_t uHash; |
| 924 const FX_WCHAR* pName; | 924 const FX_WCHAR* pName; |
| 925 XFA_ELEMENT eName; | 925 XFA_ELEMENT eName; |
| 926 uint32_t dwPackets; | 926 uint32_t dwPackets; |
| 927 uint32_t eObjectType; | 927 uint32_t eObjectType; |
| 928 }; | 928 }; |
| 929 int32_t XFA_GetElementCount(); | 929 int32_t XFA_GetObjectByCount(); |
| 930 const XFA_ELEMENTINFO* XFA_GetElementByName(const CFX_WideStringC& wsName); | 930 const XFA_ELEMENTINFO* XFA_GetObjectByByName(const CFX_WideStringC& wsName); |
| 931 const XFA_ELEMENTINFO* XFA_GetElementByID(XFA_ELEMENT eName); | 931 const XFA_ELEMENTINFO* XFA_GetObjectByByID(XFA_ELEMENT eName); |
|
dsinclair
2016/03/29 20:45:26
ByById, heh
| |
| 932 enum XFA_ATTRIBUTETYPE { | 932 enum XFA_ATTRIBUTETYPE { |
| 933 XFA_ATTRIBUTETYPE_NOTSURE, | 933 XFA_ATTRIBUTETYPE_NOTSURE, |
| 934 XFA_ATTRIBUTETYPE_Enum, | 934 XFA_ATTRIBUTETYPE_Enum, |
| 935 XFA_ATTRIBUTETYPE_Cdata, | 935 XFA_ATTRIBUTETYPE_Cdata, |
| 936 XFA_ATTRIBUTETYPE_Boolean, | 936 XFA_ATTRIBUTETYPE_Boolean, |
| 937 XFA_ATTRIBUTETYPE_Integer, | 937 XFA_ATTRIBUTETYPE_Integer, |
| 938 XFA_ATTRIBUTETYPE_Measure, | 938 XFA_ATTRIBUTETYPE_Measure, |
| 939 }; | 939 }; |
| 940 struct XFA_ATTRIBUTEINFO { | 940 struct XFA_ATTRIBUTEINFO { |
| 941 uint32_t uHash; | 941 uint32_t uHash; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 975 | 975 |
| 976 struct XFA_SCRIPTHIERARCHY { | 976 struct XFA_SCRIPTHIERARCHY { |
| 977 uint16_t wMethodStart; | 977 uint16_t wMethodStart; |
| 978 uint16_t wMethodCount; | 978 uint16_t wMethodCount; |
| 979 uint16_t wAttributeStart; | 979 uint16_t wAttributeStart; |
| 980 uint16_t wAttributeCount; | 980 uint16_t wAttributeCount; |
| 981 int16_t wParentIndex; | 981 int16_t wParentIndex; |
| 982 }; | 982 }; |
| 983 | 983 |
| 984 typedef XFA_SCRIPTHIERARCHY const* XFA_LPCSCRIPTHIERARCHY; | 984 typedef XFA_SCRIPTHIERARCHY const* XFA_LPCSCRIPTHIERARCHY; |
| 985 const uint16_t* XFA_GetElementChildren(XFA_ELEMENT eElement, int32_t& iCount); | 985 const uint16_t* XFA_GetObjectByChildren(XFA_ELEMENT eElement, int32_t& iCount); |
| 986 const uint8_t* XFA_GetElementAttributes(XFA_ELEMENT eElement, int32_t& iCount); | 986 const uint8_t* XFA_GetObjectByAttributes(XFA_ELEMENT eElement, int32_t& iCount); |
| 987 const XFA_ELEMENTINFO* XFA_GetChildOfElement(XFA_ELEMENT eElement, | 987 const XFA_ELEMENTINFO* XFA_GetChildOfElement(XFA_ELEMENT eElement, |
| 988 XFA_ELEMENT eChild, | 988 XFA_ELEMENT eChild, |
| 989 uint32_t dwPacket); | 989 uint32_t dwPacket); |
| 990 const XFA_ATTRIBUTEINFO* XFA_GetAttributeOfElement(XFA_ELEMENT eElement, | 990 const XFA_ATTRIBUTEINFO* XFA_GetAttributeOfElement(XFA_ELEMENT eElement, |
| 991 XFA_ATTRIBUTE eAttribute, | 991 XFA_ATTRIBUTE eAttribute, |
| 992 uint32_t dwPacket); | 992 uint32_t dwPacket); |
| 993 #define XFA_PROPERTYFLAG_OneOf 0x01 | 993 #define XFA_PROPERTYFLAG_OneOf 0x01 |
| 994 #define XFA_PROPERTYFLAG_DefaultOneOf 0x02 | 994 #define XFA_PROPERTYFLAG_DefaultOneOf 0x02 |
| 995 struct XFA_PROPERTY { | 995 struct XFA_PROPERTY { |
| 996 uint16_t eName; | 996 uint16_t eName; |
| 997 uint8_t uOccur; | 997 uint8_t uOccur; |
| 998 uint8_t uFlags; | 998 uint8_t uFlags; |
| 999 }; | 999 }; |
| 1000 const XFA_PROPERTY* XFA_GetElementProperties(XFA_ELEMENT eElement, | 1000 const XFA_PROPERTY* XFA_GetObjectByProperties(XFA_ELEMENT eElement, |
| 1001 int32_t& iCount); | 1001 int32_t& iCount); |
| 1002 const XFA_PROPERTY* XFA_GetPropertyOfElement(XFA_ELEMENT eElement, | 1002 const XFA_PROPERTY* XFA_GetPropertyOfElement(XFA_ELEMENT eElement, |
| 1003 XFA_ELEMENT eProperty, | 1003 XFA_ELEMENT eProperty, |
| 1004 uint32_t dwPacket); | 1004 uint32_t dwPacket); |
| 1005 struct XFA_ATTRIBUTEENUMINFO { | 1005 struct XFA_ATTRIBUTEENUMINFO { |
| 1006 uint32_t uHash; | 1006 uint32_t uHash; |
| 1007 const FX_WCHAR* pName; | 1007 const FX_WCHAR* pName; |
| 1008 XFA_ATTRIBUTEENUM eName; | 1008 XFA_ATTRIBUTEENUM eName; |
| 1009 }; | 1009 }; |
| 1010 const XFA_ATTRIBUTEENUMINFO* XFA_GetAttributeEnumByName( | 1010 const XFA_ATTRIBUTEENUMINFO* XFA_GetAttributeEnumByName( |
| 1011 const CFX_WideStringC& wsName); | 1011 const CFX_WideStringC& wsName); |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1070 const FX_WCHAR* pName; | 1070 const FX_WCHAR* pName; |
| 1071 XFA_ATTRIBUTE_CALLBACK lpfnCallback; | 1071 XFA_ATTRIBUTE_CALLBACK lpfnCallback; |
| 1072 int32_t eAttribute; | 1072 int32_t eAttribute; |
| 1073 uint16_t eValueType; | 1073 uint16_t eValueType; |
| 1074 }; | 1074 }; |
| 1075 const XFA_SCRIPTATTRIBUTEINFO* XFA_GetScriptAttributeByName( | 1075 const XFA_SCRIPTATTRIBUTEINFO* XFA_GetScriptAttributeByName( |
| 1076 XFA_ELEMENT eElement, | 1076 XFA_ELEMENT eElement, |
| 1077 const CFX_WideStringC& wsAttributeName); | 1077 const CFX_WideStringC& wsAttributeName); |
| 1078 | 1078 |
| 1079 #endif // XFA_INCLUDE_FXFA_FXFA_BASIC_H_ | 1079 #endif // XFA_INCLUDE_FXFA_FXFA_BASIC_H_ |
| OLD | NEW |