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_FIELD_H_
8 #define FXJS_XFA_CJX_FIELD_H_
9 
10 #include "fxjs/CJX_Define.h"
11 #include "fxjs/xfa/cjx_container.h"
12 
13 class CXFA_Field;
14 
15 class CJX_Field : public CJX_Container {
16  public:
17   explicit CJX_Field(CXFA_Field* field);
18   ~CJX_Field() override;
19 
20   JS_METHOD(addItem, CJX_Field);
21   JS_METHOD(boundItem, CJX_Field);
22   JS_METHOD(clearItems, CJX_Field);
23   JS_METHOD(deleteItem, CJX_Field);
24   JS_METHOD(execCalculate, CJX_Field);
25   JS_METHOD(execEvent, CJX_Field);
26   JS_METHOD(execInitialize, CJX_Field);
27   JS_METHOD(execValidate, CJX_Field);
28   JS_METHOD(getDisplayItem, CJX_Field);
29   JS_METHOD(getItemState, CJX_Field);
30   JS_METHOD(getSaveItem, CJX_Field);
31   JS_METHOD(setItemState, CJX_Field);
32 
33   JS_PROP(defaultValue); /* {default} */
34   JS_PROP(access);
35   JS_PROP(accessKey);
36   JS_PROP(anchorType);
37   JS_PROP(borderColor);
38   JS_PROP(borderWidth);
39   JS_PROP(colSpan);
40   JS_PROP(editValue);
41   JS_PROP(fillColor);
42   JS_PROP(fontColor);
43   JS_PROP(formatMessage);
44   JS_PROP(formattedValue);
45   JS_PROP(h);
46   JS_PROP(hAlign);
47   JS_PROP(locale);
48   JS_PROP(mandatory);
49   JS_PROP(mandatoryMessage);
50   JS_PROP(maxH);
51   JS_PROP(maxW);
52   JS_PROP(minH);
53   JS_PROP(minW);
54   JS_PROP(parentSubform);
55   JS_PROP(presence);
56   JS_PROP(rawValue);
57   JS_PROP(relevant);
58   JS_PROP(rotate);
59   JS_PROP(selectedIndex);
60   JS_PROP(use);
61   JS_PROP(usehref);
62   JS_PROP(validationMessage);
63   JS_PROP(vAlign);
64   JS_PROP(w);
65   JS_PROP(x);
66   JS_PROP(y);
67 
68  private:
69   static const CJX_MethodSpec MethodSpecs[];
70 };
71 
72 #endif  // FXJS_XFA_CJX_FIELD_H_
73