summaryrefslogtreecommitdiff
path: root/fxjs/cjx_datawindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fxjs/cjx_datawindow.cpp')
-rw-r--r--fxjs/cjx_datawindow.cpp19
1 files changed, 14 insertions, 5 deletions
diff --git a/fxjs/cjx_datawindow.cpp b/fxjs/cjx_datawindow.cpp
index acefb407c3..0d712bac77 100644
--- a/fxjs/cjx_datawindow.cpp
+++ b/fxjs/cjx_datawindow.cpp
@@ -10,18 +10,27 @@
#include "fxjs/cfxjse_value.h"
#include "xfa/fxfa/parser/cscript_datawindow.h"
+const CJX_MethodSpec CJX_DataWindow::MethodSpecs[] = {
+ {"gotoRecord", gotoRecord_static},
+ {"isRecordGroup", isRecordGroup_static},
+ {"moveCurrentRecord", moveCurrentRecord_static},
+ {"record", record_static},
+ {"", nullptr}};
+
CJX_DataWindow::CJX_DataWindow(CScript_DataWindow* window)
- : CJX_Object(window) {}
+ : CJX_Object(window) {
+ DefineMethods(MethodSpecs);
+}
CJX_DataWindow::~CJX_DataWindow() {}
-void CJX_DataWindow::MoveCurrentRecord(CFXJSE_Arguments* pArguments) {}
+void CJX_DataWindow::moveCurrentRecord(CFXJSE_Arguments* pArguments) {}
-void CJX_DataWindow::Record(CFXJSE_Arguments* pArguments) {}
+void CJX_DataWindow::record(CFXJSE_Arguments* pArguments) {}
-void CJX_DataWindow::GotoRecord(CFXJSE_Arguments* pArguments) {}
+void CJX_DataWindow::gotoRecord(CFXJSE_Arguments* pArguments) {}
-void CJX_DataWindow::IsRecordGroup(CFXJSE_Arguments* pArguments) {}
+void CJX_DataWindow::isRecordGroup(CFXJSE_Arguments* pArguments) {}
void CJX_DataWindow::RecordsBefore(CFXJSE_Value* pValue,
bool bSetting,