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_SOURCE_H_ 8 #define FXJS_XFA_CJX_SOURCE_H_ 9 10 #include "fxjs/CJX_Define.h" 11 #include "fxjs/xfa/cjx_node.h" 12 13 class CXFA_Source; 14 15 class CJX_Source : public CJX_Node { 16 public: 17 explicit CJX_Source(CXFA_Source* src); 18 ~CJX_Source() override; 19 20 JS_METHOD(addNew, CJX_Source); 21 JS_METHOD(cancel, CJX_Source); 22 JS_METHOD(cancelBatch, CJX_Source); 23 JS_METHOD(close, CJX_Source); 24 JS_METHOD(deleteItem /*delete*/, CJX_Source); 25 JS_METHOD(first, CJX_Source); 26 JS_METHOD(hasDataChanged, CJX_Source); 27 JS_METHOD(isBOF, CJX_Source); 28 JS_METHOD(isEOF, CJX_Source); 29 JS_METHOD(last, CJX_Source); 30 JS_METHOD(next, CJX_Source); 31 JS_METHOD(open, CJX_Source); 32 JS_METHOD(previous, CJX_Source); 33 JS_METHOD(requery, CJX_Source); 34 JS_METHOD(resync, CJX_Source); 35 JS_METHOD(update, CJX_Source); 36 JS_METHOD(updateBatch, CJX_Source); 37 38 JS_PROP(db); 39 JS_PROP(use); 40 JS_PROP(usehref); 41 42 private: 43 static const CJX_MethodSpec MethodSpecs[]; 44 }; 45 46 #endif // FXJS_XFA_CJX_SOURCE_H_ 47