summaryrefslogtreecommitdiff
path: root/fxjs/xfa/cjx_field.h
diff options
context:
space:
mode:
Diffstat (limited to 'fxjs/xfa/cjx_field.h')
-rw-r--r--fxjs/xfa/cjx_field.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/fxjs/xfa/cjx_field.h b/fxjs/xfa/cjx_field.h
new file mode 100644
index 0000000000..524a6afdaa
--- /dev/null
+++ b/fxjs/xfa/cjx_field.h
@@ -0,0 +1,37 @@
+// Copyright 2017 PDFium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
+
+#ifndef FXJS_XFA_CJX_FIELD_H_
+#define FXJS_XFA_CJX_FIELD_H_
+
+#include "fxjs/CJX_Define.h"
+#include "fxjs/xfa/cjx_container.h"
+
+class CXFA_Field;
+
+class CJX_Field : public CJX_Container {
+ public:
+ explicit CJX_Field(CXFA_Field* field);
+ ~CJX_Field() override;
+
+ JS_METHOD(addItem, CJX_Field);
+ JS_METHOD(boundItem, CJX_Field);
+ JS_METHOD(clearItems, CJX_Field);
+ JS_METHOD(deleteItem, CJX_Field);
+ JS_METHOD(execCalculate, CJX_Field);
+ JS_METHOD(execEvent, CJX_Field);
+ JS_METHOD(execInitialize, CJX_Field);
+ JS_METHOD(execValidate, CJX_Field);
+ JS_METHOD(getDisplayItem, CJX_Field);
+ JS_METHOD(getItemState, CJX_Field);
+ JS_METHOD(getSaveItem, CJX_Field);
+ JS_METHOD(setItemState, CJX_Field);
+
+ private:
+ static const CJX_MethodSpec MethodSpecs[];
+};
+
+#endif // FXJS_XFA_CJX_FIELD_H_