Dan Sinclair | 778f2fe | 2017-11-01 18:46:47 +0000 | [diff] [blame] | 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_CJX_NODELIST_H_ |
| 8 | #define FXJS_CJX_NODELIST_H_ |
| 9 | |
| 10 | #include "fxjs/cjx_object.h" |
| 11 | #include "xfa/fxfa/fxfa_basic.h" |
| 12 | |
| 13 | class CFXJSE_Arguments; |
| 14 | class CFXJSE_Value; |
| 15 | class CXFA_NodeList; |
| 16 | |
| 17 | class CJX_NodeList : public CJX_Object { |
| 18 | public: |
| 19 | explicit CJX_NodeList(CXFA_NodeList* list); |
| 20 | ~CJX_NodeList() override; |
| 21 | |
| 22 | CXFA_NodeList* GetXFANodeList(); |
| 23 | |
| 24 | void Script_ListClass_Append(CFXJSE_Arguments* pArguments); |
| 25 | void Script_ListClass_Insert(CFXJSE_Arguments* pArguments); |
| 26 | void Script_ListClass_Remove(CFXJSE_Arguments* pArguments); |
| 27 | void Script_ListClass_Item(CFXJSE_Arguments* pArguments); |
| 28 | |
| 29 | void Script_TreelistClass_NamedItem(CFXJSE_Arguments* pArguments); |
| 30 | void Script_ListClass_Length(CFXJSE_Value* pValue, |
| 31 | bool bSetting, |
Dan Sinclair | 1d86501 | 2017-11-08 18:01:31 +0000 | [diff] [blame] | 32 | XFA_Attribute eAttribute); |
Dan Sinclair | 778f2fe | 2017-11-01 18:46:47 +0000 | [diff] [blame] | 33 | }; |
| 34 | |
| 35 | #endif // FXJS_CJX_NODELIST_H_ |