OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #ifndef FPDFSDK_INCLUDE_FSDK_COMMON_H_ | 7 #ifndef FPDFSDK_FSDK_COMMON_H_ |
8 #define FPDFSDK_INCLUDE_FSDK_COMMON_H_ | 8 #define FPDFSDK_FSDK_COMMON_H_ |
9 | 9 |
10 // for all fields | 10 // for all fields |
11 #define FIELDFLAG_READONLY 1 | 11 #define FIELDFLAG_READONLY 1 |
12 #define FIELDFLAG_REQUIRED 2 | 12 #define FIELDFLAG_REQUIRED 2 |
13 #define FIELDFLAG_NOEXPORT 4 | 13 #define FIELDFLAG_NOEXPORT 4 |
14 // for text fields | 14 // for text fields |
15 #define FIELDFLAG_MULTILINE (1 << 12) | 15 #define FIELDFLAG_MULTILINE (1 << 12) |
16 #define FIELDFLAG_PASSWORD (1 << 13) | 16 #define FIELDFLAG_PASSWORD (1 << 13) |
17 #define FIELDFLAG_FILESELECT (1 << 20) | 17 #define FIELDFLAG_FILESELECT (1 << 20) |
18 #define FIELDFLAG_DONOTSPELLCHECK (1 << 22) | 18 #define FIELDFLAG_DONOTSPELLCHECK (1 << 22) |
19 #define FIELDFLAG_DONOTSCROLL (1 << 23) | 19 #define FIELDFLAG_DONOTSCROLL (1 << 23) |
20 #define FIELDFLAG_COMB (1 << 24) | 20 #define FIELDFLAG_COMB (1 << 24) |
21 #define FIELDFLAG_RICHTEXT (1 << 25) | 21 #define FIELDFLAG_RICHTEXT (1 << 25) |
22 // for button fileds | 22 // for button fileds |
23 #define FIELDFLAG_NOTOGGLETOOFF (1 << 14) | 23 #define FIELDFLAG_NOTOGGLETOOFF (1 << 14) |
24 #define FIELDFLAG_RADIO (1 << 15) | 24 #define FIELDFLAG_RADIO (1 << 15) |
25 #define FIELDFLAG_PUSHBUTTON (1 << 16) | 25 #define FIELDFLAG_PUSHBUTTON (1 << 16) |
26 #define FIELDFLAG_RADIOSINUNISON (1 << 27) | 26 #define FIELDFLAG_RADIOSINUNISON (1 << 27) |
27 // for choice fields | 27 // for choice fields |
28 #define FIELDFLAG_COMBO (1 << 17) | 28 #define FIELDFLAG_COMBO (1 << 17) |
29 #define FIELDFLAG_EDIT (1 << 18) | 29 #define FIELDFLAG_EDIT (1 << 18) |
30 #define FIELDFLAG_SORT (1 << 19) | 30 #define FIELDFLAG_SORT (1 << 19) |
31 #define FIELDFLAG_MULTISELECT (1 << 21) | 31 #define FIELDFLAG_MULTISELECT (1 << 21) |
32 #define FIELDFLAG_COMMITONSELCHANGE (1 << 26) | 32 #define FIELDFLAG_COMMITONSELCHANGE (1 << 26) |
33 | 33 |
34 #endif // FPDFSDK_INCLUDE_FSDK_COMMON_H_ | 34 #endif // FPDFSDK_FSDK_COMMON_H_ |
OLD | NEW |