Initial commit.
[pdfium.git] / fpdfsdk / include / fsdk_common.h
1 // Copyright 2014 PDFium Authors. All rights reserved.\r
2 // Use of this source code is governed by a BSD-style license that can be\r
3 // found in the LICENSE file.\r
4  \r
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com\r
6 \r
7 #ifndef _FSDK_COMMON_H_\r
8 #define _FSDK_COMMON_H_\r
9 \r
10 #define BFFT_SIGNATURE                          "Signature"\r
11 \r
12 //for all fields\r
13 #define FIELDFLAG_READONLY                                      1\r
14 #define FIELDFLAG_REQUIRED                                      2\r
15 #define FIELDFLAG_NOEXPORT                                      4\r
16 //for text fields\r
17 #define FIELDFLAG_MULTILINE                                     (1<<12)\r
18 #define FIELDFLAG_PASSWORD                                      (1<<13)\r
19 #define FIELDFLAG_FILESELECT                            (1<<20)\r
20 #define FIELDFLAG_DONOTSPELLCHECK                       (1<<22)\r
21 #define FIELDFLAG_DONOTSCROLL                           (1<<23)\r
22 #define FIELDFLAG_COMB                                          (1<<24)\r
23 #define FIELDFLAG_RICHTEXT                                      (1<<25)\r
24 //for button fileds\r
25 #define FIELDFLAG_NOTOGGLETOOFF                         (1<<14)\r
26 #define FIELDFLAG_RADIO                                         (1<<15)\r
27 #define FIELDFLAG_PUSHBUTTON                            (1<<16)\r
28 #define FIELDFLAG_RADIOSINUNISON                        (1<<25)\r
29 //for choice fields\r
30 #define FIELDFLAG_COMBO                                         (1<<17)\r
31 #define FIELDFLAG_EDIT                                          (1<<18)\r
32 #define FIELDFLAG_SORT                                          (1<<19)\r
33 #define FIELDFLAG_MULTISELECT                           (1<<21)\r
34 #ifndef FIELDFLAG_DONOTSPELLCHECK\r
35 #define FIELDFLAG_DONOTSPELLCHECK               (1<<22)\r
36 #endif\r
37 #define FIELDFLAG_COMMITONSELCHANGE                     (1<<26)\r
38 \r
39 #define BBS_SOLID                                       0\r
40 #define BBS_DASH                                        1\r
41 #define BBS_BEVELED                                     2\r
42 #define BBS_INSET                                       3\r
43 #define BBS_UNDERLINE                           4\r
44 \r
45 \r
46 #endif\r