1 // Copyright 2017 PDFium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 6 7 #ifndef FXJS_XFA_CJX_DATAWINDOW_H_ 8 #define FXJS_XFA_CJX_DATAWINDOW_H_ 9 10 #include "fxjs/CJX_Define.h" 11 #include "fxjs/xfa/cjx_object.h" 12 #include "xfa/fxfa/fxfa_basic.h" 13 14 class CFXJSE_Value; 15 class CScript_DataWindow; 16 17 class CJX_DataWindow : public CJX_Object { 18 public: 19 explicit CJX_DataWindow(CScript_DataWindow* window); 20 ~CJX_DataWindow() override; 21 22 JS_METHOD(gotoRecord, CJX_DataWindow); 23 JS_METHOD(isRecordGroup, CJX_DataWindow); 24 JS_METHOD(moveCurrentRecord, CJX_DataWindow); 25 JS_METHOD(record, CJX_DataWindow); 26 27 JS_PROP(currentRecordNumber); 28 JS_PROP(isDefined); 29 JS_PROP(recordsAfter); 30 JS_PROP(recordsBefore); 31 32 private: 33 static const CJX_MethodSpec MethodSpecs[]; 34 }; 35 36 #endif // FXJS_XFA_CJX_DATAWINDOW_H_ 37