1 // Copyright 2017 The PDFium Authors 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/xfa/cjx_object.h" 11 #include "fxjs/xfa/jse_define.h" 12 #include "xfa/fxfa/fxfa_basic.h" 13 14 class CScript_DataWindow; 15 16 class CJX_DataWindow final : public CJX_Object { 17 public: 18 CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED; 19 ~CJX_DataWindow() override; 20 21 // CJX_Object: 22 bool DynamicTypeIs(TypeTag eType) const override; 23 24 JSE_METHOD(gotoRecord); 25 JSE_METHOD(isRecordGroup); 26 JSE_METHOD(moveCurrentRecord); 27 JSE_METHOD(record); 28 29 JSE_PROP(currentRecordNumber); 30 JSE_PROP(isDefined); 31 JSE_PROP(recordsAfter); 32 JSE_PROP(recordsBefore); 33 34 private: 35 explicit CJX_DataWindow(CScript_DataWindow* window); 36 37 using Type__ = CJX_DataWindow; 38 using ParentType__ = CJX_Object; 39 40 static const TypeTag static_type__ = TypeTag::DataWindow; 41 static const CJX_MethodSpec MethodSpecs[]; 42 }; 43 44 #endif // FXJS_XFA_CJX_DATAWINDOW_H_ 45