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 "xfa/fxjse/cfxjse_arguments.h" | 10 #include "xfa/fxjse/cfxjse_arguments.h" |
(...skipping 1045 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1056 | 1056 |
1057 typedef void (CXFA_Object::*XFA_METHOD_CALLBACK)(CFXJSE_Arguments* pArguments); | 1057 typedef void (CXFA_Object::*XFA_METHOD_CALLBACK)(CFXJSE_Arguments* pArguments); |
1058 struct XFA_METHODINFO { | 1058 struct XFA_METHODINFO { |
1059 uint32_t uHash; | 1059 uint32_t uHash; |
1060 const FX_WCHAR* pName; | 1060 const FX_WCHAR* pName; |
1061 XFA_METHOD_CALLBACK lpfnCallback; | 1061 XFA_METHOD_CALLBACK lpfnCallback; |
1062 }; | 1062 }; |
1063 | 1063 |
1064 const XFA_METHODINFO* XFA_GetMethodByName(XFA_ELEMENT eElement, | 1064 const XFA_METHODINFO* XFA_GetMethodByName(XFA_ELEMENT eElement, |
1065 const CFX_WideStringC& wsMethodName); | 1065 const CFX_WideStringC& wsMethodName); |
1066 typedef void (CXFA_Object::*XFA_ATTRIBUTE_CALLBACK)(FXJSE_HVALUE hValue, | 1066 typedef void (CXFA_Object::*XFA_ATTRIBUTE_CALLBACK)(CFXJSE_Value* pValue, |
1067 FX_BOOL bSetting, | 1067 FX_BOOL bSetting, |
1068 XFA_ATTRIBUTE eAttribute); | 1068 XFA_ATTRIBUTE eAttribute); |
1069 enum XFA_SCRIPT_TYPE { | 1069 enum XFA_SCRIPT_TYPE { |
1070 XFA_SCRIPT_Basic, | 1070 XFA_SCRIPT_Basic, |
1071 XFA_SCRIPT_Object, | 1071 XFA_SCRIPT_Object, |
1072 }; | 1072 }; |
1073 struct XFA_SCRIPTATTRIBUTEINFO { | 1073 struct XFA_SCRIPTATTRIBUTEINFO { |
1074 uint32_t uHash; | 1074 uint32_t uHash; |
1075 const FX_WCHAR* pName; | 1075 const FX_WCHAR* pName; |
1076 XFA_ATTRIBUTE_CALLBACK lpfnCallback; | 1076 XFA_ATTRIBUTE_CALLBACK lpfnCallback; |
1077 int32_t eAttribute; | 1077 int32_t eAttribute; |
1078 uint16_t eValueType; | 1078 uint16_t eValueType; |
1079 }; | 1079 }; |
1080 const XFA_SCRIPTATTRIBUTEINFO* XFA_GetScriptAttributeByName( | 1080 const XFA_SCRIPTATTRIBUTEINFO* XFA_GetScriptAttributeByName( |
1081 XFA_ELEMENT eElement, | 1081 XFA_ELEMENT eElement, |
1082 const CFX_WideStringC& wsAttributeName); | 1082 const CFX_WideStringC& wsAttributeName); |
1083 | 1083 |
1084 #endif // XFA_FXFA_INCLUDE_FXFA_BASIC_H_ | 1084 #endif // XFA_FXFA_INCLUDE_FXFA_BASIC_H_ |
OLD | NEW |