summaryrefslogtreecommitdiff
path: root/fpdfsdk/fsdk_common.h
blob: d8030261c71ffc3332f0a58ad210344521dcb4a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// 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_FSDK_COMMON_H_
#define FPDFSDK_FSDK_COMMON_H_

// for all fields
#define FIELDFLAG_READONLY 1
#define FIELDFLAG_REQUIRED 2
#define FIELDFLAG_NOEXPORT 4
// 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_NOTOGGLETOOFF (1 << 14)
#define FIELDFLAG_RADIO (1 << 15)
#define FIELDFLAG_PUSHBUTTON (1 << 16)
#define FIELDFLAG_RADIOSINUNISON (1 << 27)
// for choice fields
#define FIELDFLAG_COMBO (1 << 17)
#define FIELDFLAG_EDIT (1 << 18)
#define FIELDFLAG_SORT (1 << 19)
#define FIELDFLAG_MULTISELECT (1 << 21)
#define FIELDFLAG_COMMITONSELCHANGE (1 << 26)

#endif  // FPDFSDK_FSDK_COMMON_H_