blob: c20262dae8dfc76b54d2522891ec2fc25377ef37 [file] [log] [blame]
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -07001// 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 Zhanga6d9f0e2015-06-13 00:48:38 -07004
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -07005// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
Tom Sepez19922bb2015-05-28 13:23:12 -07007#ifndef FPDFSDK_INCLUDE_FSDK_COMMON_H_
8#define FPDFSDK_INCLUDE_FSDK_COMMON_H_
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -07009
Nico Weber9d8ec5a2015-08-04 13:00:21 -070010#define BFFT_SIGNATURE "Signature"
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -070011
Nico Weber9d8ec5a2015-08-04 13:00:21 -070012// for all fields
13#define FIELDFLAG_READONLY 1
14#define FIELDFLAG_REQUIRED 2
15#define FIELDFLAG_NOEXPORT 4
16// for text fields
17#define FIELDFLAG_MULTILINE (1 << 12)
18#define FIELDFLAG_PASSWORD (1 << 13)
19#define FIELDFLAG_FILESELECT (1 << 20)
20#define FIELDFLAG_DONOTSPELLCHECK (1 << 22)
21#define FIELDFLAG_DONOTSCROLL (1 << 23)
22#define FIELDFLAG_COMB (1 << 24)
23#define FIELDFLAG_RICHTEXT (1 << 25)
24// for button fileds
25#define FIELDFLAG_NOTOGGLETOOFF (1 << 14)
26#define FIELDFLAG_RADIO (1 << 15)
27#define FIELDFLAG_PUSHBUTTON (1 << 16)
Dan Sinclair3fc97ff2016-03-01 08:56:19 -050028#define FIELDFLAG_RADIOSINUNISON (1 << 27)
Nico Weber9d8ec5a2015-08-04 13:00:21 -070029// for choice fields
30#define FIELDFLAG_COMBO (1 << 17)
31#define FIELDFLAG_EDIT (1 << 18)
32#define FIELDFLAG_SORT (1 << 19)
33#define FIELDFLAG_MULTISELECT (1 << 21)
Nico Weber9d8ec5a2015-08-04 13:00:21 -070034#define FIELDFLAG_COMMITONSELCHANGE (1 << 26)
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -070035
Nico Weber9d8ec5a2015-08-04 13:00:21 -070036#define BBS_SOLID 0
37#define BBS_DASH 1
38#define BBS_BEVELED 2
39#define BBS_INSET 3
40#define BBS_UNDERLINE 4
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -070041
Tom Sepez19922bb2015-05-28 13:23:12 -070042#endif // FPDFSDK_INCLUDE_FSDK_COMMON_H_