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 #include "fxjs/xfa/cjx_recordset.h"
8
9 #include <algorithm>
10
11 #include "xfa/fxfa/parser/cxfa_recordset.h"
12
CJX_RecordSet(CXFA_RecordSet * node)13 CJX_RecordSet::CJX_RecordSet(CXFA_RecordSet* node) : CJX_Node(node) {}
14
15 CJX_RecordSet::~CJX_RecordSet() = default;
16
max(CFXJSE_Value * pValue,bool bSetting,XFA_Attribute eAttribute)17 void CJX_RecordSet::max(CFXJSE_Value* pValue,
18 bool bSetting,
19 XFA_Attribute eAttribute) {
20 Script_Attribute_String(pValue, bSetting, eAttribute);
21 }
22
use(CFXJSE_Value * pValue,bool bSetting,XFA_Attribute eAttribute)23 void CJX_RecordSet::use(CFXJSE_Value* pValue,
24 bool bSetting,
25 XFA_Attribute eAttribute) {
26 Script_Attribute_String(pValue, bSetting, eAttribute);
27 }
28
eofAction(CFXJSE_Value * pValue,bool bSetting,XFA_Attribute eAttribute)29 void CJX_RecordSet::eofAction(CFXJSE_Value* pValue,
30 bool bSetting,
31 XFA_Attribute eAttribute) {
32 Script_Attribute_String(pValue, bSetting, eAttribute);
33 }
34
cursorType(CFXJSE_Value * pValue,bool bSetting,XFA_Attribute eAttribute)35 void CJX_RecordSet::cursorType(CFXJSE_Value* pValue,
36 bool bSetting,
37 XFA_Attribute eAttribute) {
38 Script_Attribute_String(pValue, bSetting, eAttribute);
39 }
40
lockType(CFXJSE_Value * pValue,bool bSetting,XFA_Attribute eAttribute)41 void CJX_RecordSet::lockType(CFXJSE_Value* pValue,
42 bool bSetting,
43 XFA_Attribute eAttribute) {
44 Script_Attribute_String(pValue, bSetting, eAttribute);
45 }
46
bofAction(CFXJSE_Value * pValue,bool bSetting,XFA_Attribute eAttribute)47 void CJX_RecordSet::bofAction(CFXJSE_Value* pValue,
48 bool bSetting,
49 XFA_Attribute eAttribute) {
50 Script_Attribute_String(pValue, bSetting, eAttribute);
51 }
52
usehref(CFXJSE_Value * pValue,bool bSetting,XFA_Attribute eAttribute)53 void CJX_RecordSet::usehref(CFXJSE_Value* pValue,
54 bool bSetting,
55 XFA_Attribute eAttribute) {
56 Script_Attribute_String(pValue, bSetting, eAttribute);
57 }
58
cursorLocation(CFXJSE_Value * pValue,bool bSetting,XFA_Attribute eAttribute)59 void CJX_RecordSet::cursorLocation(CFXJSE_Value* pValue,
60 bool bSetting,
61 XFA_Attribute eAttribute) {
62 Script_Attribute_String(pValue, bSetting, eAttribute);
63 }
64