summaryrefslogtreecommitdiff
path: root/fpdfsdk/include/javascript/IJavaScript.h
diff options
context:
space:
mode:
Diffstat (limited to 'fpdfsdk/include/javascript/IJavaScript.h')
-rw-r--r--fpdfsdk/include/javascript/IJavaScript.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/fpdfsdk/include/javascript/IJavaScript.h b/fpdfsdk/include/javascript/IJavaScript.h
index 79247c868a..6b154676da 100644
--- a/fpdfsdk/include/javascript/IJavaScript.h
+++ b/fpdfsdk/include/javascript/IJavaScript.h
@@ -10,6 +10,10 @@
#include "core/include/fxcrt/fx_string.h"
#include "core/include/fxcrt/fx_system.h"
+#ifdef PDF_ENABLE_XFA
+#include "xfa/include/fxjse/fxjse.h"
+#endif // PDF_ENABLE_XFA
+
class CPDFDoc_Environment;
class CPDFSDK_Annot;
class CPDFSDK_Document;
@@ -148,6 +152,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 // PDF_ENABLE_XFA
+
protected:
IJS_Runtime() {}
};