Index: fpdfsdk/include/javascript/IJavaScript.h |
diff --git a/fpdfsdk/include/javascript/IJavaScript.h b/fpdfsdk/include/javascript/IJavaScript.h |
index 79247c868ab0e9b3353108350fc56bd45fa249ae..7eab25fe88a4caec9fac1616b36955923a2b9ce8 100644 |
--- a/fpdfsdk/include/javascript/IJavaScript.h |
+++ b/fpdfsdk/include/javascript/IJavaScript.h |
@@ -7,6 +7,9 @@ |
#ifndef FPDFSDK_INCLUDE_JAVASCRIPT_IJAVASCRIPT_H_ |
#define FPDFSDK_INCLUDE_JAVASCRIPT_IJAVASCRIPT_H_ |
+#ifdef PDF_ENABLE_XFA |
+#include "../../../xfa/include/fxjse/fxjse.h" |
+#endif |
#include "core/include/fxcrt/fx_string.h" |
#include "core/include/fxcrt/fx_system.h" |
@@ -148,6 +151,13 @@ class IJS_Runtime { |
const wchar_t* script, |
CFX_WideString* info) = 0; |
+#ifdef PDF_ENABLE_XFA |
+ virtual FX_BOOL GetHValueByName(const CFX_ByteStringC& utf8Name, |
+ FXJSE_HVALUE hValue) = 0; |
+ virtual FX_BOOL SetHValueByName(const CFX_ByteStringC& utf8Name, |
+ FXJSE_HVALUE hValue) = 0; |
+ |
+#endif |
protected: |
IJS_Runtime() {} |
}; |