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