John Abd-El-Malek | 3f3b45c | 2014-05-23 17:28:10 -0700 | [diff] [blame] | 1 | // Copyright 2014 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. |
Lei Zhang | a6d9f0e | 2015-06-13 00:48:38 -0700 | [diff] [blame] | 4 | |
John Abd-El-Malek | 3f3b45c | 2014-05-23 17:28:10 -0700 | [diff] [blame] | 5 | // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| 6 | |
dsinclair | 114e46a | 2016-09-29 17:18:21 -0700 | [diff] [blame] | 7 | #ifndef FPDFSDK_FSDK_COMMON_H_ |
| 8 | #define FPDFSDK_FSDK_COMMON_H_ |
John Abd-El-Malek | 3f3b45c | 2014-05-23 17:28:10 -0700 | [diff] [blame] | 9 | |
Nico Weber | 9d8ec5a | 2015-08-04 13:00:21 -0700 | [diff] [blame] | 10 | // for all fields |
| 11 | #define FIELDFLAG_READONLY 1 |
| 12 | #define FIELDFLAG_REQUIRED 2 |
Nico Weber | 9d8ec5a | 2015-08-04 13:00:21 -0700 | [diff] [blame] | 13 | // for text fields |
| 14 | #define FIELDFLAG_MULTILINE (1 << 12) |
| 15 | #define FIELDFLAG_PASSWORD (1 << 13) |
| 16 | #define FIELDFLAG_FILESELECT (1 << 20) |
| 17 | #define FIELDFLAG_DONOTSPELLCHECK (1 << 22) |
| 18 | #define FIELDFLAG_DONOTSCROLL (1 << 23) |
| 19 | #define FIELDFLAG_COMB (1 << 24) |
| 20 | #define FIELDFLAG_RICHTEXT (1 << 25) |
| 21 | // for button fileds |
Dan Sinclair | 3fc97ff | 2016-03-01 08:56:19 -0500 | [diff] [blame] | 22 | #define FIELDFLAG_RADIOSINUNISON (1 << 27) |
Nico Weber | 9d8ec5a | 2015-08-04 13:00:21 -0700 | [diff] [blame] | 23 | // for choice fields |
Nico Weber | 9d8ec5a | 2015-08-04 13:00:21 -0700 | [diff] [blame] | 24 | #define FIELDFLAG_EDIT (1 << 18) |
Nico Weber | 9d8ec5a | 2015-08-04 13:00:21 -0700 | [diff] [blame] | 25 | #define FIELDFLAG_MULTISELECT (1 << 21) |
Nico Weber | 9d8ec5a | 2015-08-04 13:00:21 -0700 | [diff] [blame] | 26 | #define FIELDFLAG_COMMITONSELCHANGE (1 << 26) |
John Abd-El-Malek | 3f3b45c | 2014-05-23 17:28:10 -0700 | [diff] [blame] | 27 | |
dsinclair | 114e46a | 2016-09-29 17:18:21 -0700 | [diff] [blame] | 28 | #endif // FPDFSDK_FSDK_COMMON_H_ |