summaryrefslogtreecommitdiff
path: root/fpdfsdk/cpdfsdk_common.h
diff options
context:
space:
mode:
Diffstat (limited to 'fpdfsdk/cpdfsdk_common.h')
-rw-r--r--fpdfsdk/cpdfsdk_common.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/fpdfsdk/cpdfsdk_common.h b/fpdfsdk/cpdfsdk_common.h
new file mode 100644
index 0000000000..a5fb58f72d
--- /dev/null
+++ b/fpdfsdk/cpdfsdk_common.h
@@ -0,0 +1,28 @@
+// Copyright 2014 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 FPDFSDK_CPDFSDK_COMMON_H_
+#define FPDFSDK_CPDFSDK_COMMON_H_
+
+// for all fields
+#define FIELDFLAG_READONLY 1
+#define FIELDFLAG_REQUIRED 2
+// for text fields
+#define FIELDFLAG_MULTILINE (1 << 12)
+#define FIELDFLAG_PASSWORD (1 << 13)
+#define FIELDFLAG_FILESELECT (1 << 20)
+#define FIELDFLAG_DONOTSPELLCHECK (1 << 22)
+#define FIELDFLAG_DONOTSCROLL (1 << 23)
+#define FIELDFLAG_COMB (1 << 24)
+#define FIELDFLAG_RICHTEXT (1 << 25)
+// for button fileds
+#define FIELDFLAG_RADIOSINUNISON (1 << 27)
+// for choice fields
+#define FIELDFLAG_EDIT (1 << 18)
+#define FIELDFLAG_MULTISELECT (1 << 21)
+#define FIELDFLAG_COMMITONSELCHANGE (1 << 26)
+
+#endif // FPDFSDK_CPDFSDK_COMMON_H_