blob: df879980bb5d0fe64266a6d09e7ca25d6349279c [file] [log] [blame]
Dan Sinclair778f2fe2017-11-01 18:46:47 +00001// 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
13class CFXJSE_Arguments;
14class CFXJSE_Value;
15class CXFA_NodeList;
16
17class 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 Sinclair1d865012017-11-08 18:01:31 +000032 XFA_Attribute eAttribute);
Dan Sinclair778f2fe2017-11-01 18:46:47 +000033};
34
35#endif // FXJS_CJX_NODELIST_H_