Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
form_flags.h
Go to the documentation of this file.
1// Copyright 2018 The PDFium Authors
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef CONSTANTS_FORM_FLAGS_H_
6#define CONSTANTS_FORM_FLAGS_H_
7
8namespace pdfium {
9namespace form_flags {
10
11// PDF 1.7 spec, table 8.70.
12// Field flags common to all field types.
13constexpr uint32_t kReadOnly = 1 << 0;
14constexpr uint32_t kRequired = 1 << 1;
15constexpr uint32_t kNoExport = 1 << 2;
16
17// PDF 1.7 spec, table 8.75.
18// Field flags specific to button fields.
19constexpr uint32_t kButtonNoToggleToOff = 1 << 14;
20constexpr uint32_t kButtonRadio = 1 << 15;
21constexpr uint32_t kButtonPushbutton = 1 << 16;
22constexpr uint32_t kButtonRadiosInUnison = 1 << 25;
23
24// PDF 1.7 spec, table 8.77.
25// Field flags specific to text fields.
26constexpr uint32_t kTextMultiline = 1 << 12;
27constexpr uint32_t kTextPassword = 1 << 13;
28constexpr uint32_t kTextFileSelect = 1 << 20;
29constexpr uint32_t kTextDoNotSpellCheck = 1 << 22;
30constexpr uint32_t kTextDoNotScroll = 1 << 23;
31constexpr uint32_t kTextComb = 1 << 24;
32constexpr uint32_t kTextRichText = 1 << 25;
33
34// PDF 1.7 spec, table 8.79.
35// Field flags specific to choice fields.
36constexpr uint32_t kChoiceCombo = 1 << 17;
37constexpr uint32_t kChoiceEdit = 1 << 18;
38constexpr uint32_t kChoiceSort = 1 << 19;
39constexpr uint32_t kChoiceMultiSelect = 1 << 21;
40constexpr uint32_t kChoiceDoNotSpellCheck = 1 << 22;
41constexpr uint32_t kChoiceCommitOnSelChange = 1 << 26;
42
43} // namespace form_flags
44} // namespace pdfium
45
46#endif // CONSTANTS_FORM_FLAGS_H_
constexpr CFX_FloatRect(float l, float b, float r, float t)
float Width() const
float Height() const
void Translate(float e, float f)
CPDF_Annot * GetAt(size_t index) const
size_t Count() const
bool Contains(const CPDF_Annot *pAnnot) const
void DisplayAnnots(CPDF_Page *pPage, CFX_RenderDevice *pDevice, CPDF_RenderContext *pContext, bool bPrinting, const CFX_Matrix &mtUser2Device, bool bShowWidget)
~CPDF_AnnotList() override
CPDF_AnnotList(CPDF_Page *pPage)
Subtype GetSubtype() const
const CPDF_Dictionary * GetAnnotDict() const
Definition cpdf_annot.h:83
void SetPopupAnnot(CPDF_Annot *pAnnot)
Definition cpdf_annot.h:103
bool KeyExist(const ByteString &key) const
ByteString GetByteStringFor(const ByteString &key) const
CFX_FloatRect GetRectFor(const ByteString &key) const
static void GenerateFormAP(CPDF_Document *pDoc, CPDF_Dictionary *pAnnotDict, FormType type)
float GetPageWidth() const override
Definition cpdf_page.cpp:55
bool operator==(const char *ptr) const
bool operator!=(const char *ptr) const
Definition bytestring.h:130
constexpr uint32_t kChoiceDoNotSpellCheck
Definition form_flags.h:40
constexpr uint32_t kReadOnly
Definition form_flags.h:13
constexpr uint32_t kChoiceEdit
Definition form_flags.h:37
constexpr uint32_t kButtonPushbutton
Definition form_flags.h:21
constexpr uint32_t kTextFileSelect
Definition form_flags.h:28
constexpr uint32_t kButtonRadiosInUnison
Definition form_flags.h:22
constexpr uint32_t kChoiceSort
Definition form_flags.h:38
constexpr uint32_t kChoiceCombo
Definition form_flags.h:36
constexpr uint32_t kTextPassword
Definition form_flags.h:27
constexpr uint32_t kTextDoNotSpellCheck
Definition form_flags.h:29
constexpr uint32_t kRequired
Definition form_flags.h:14
constexpr uint32_t kButtonNoToggleToOff
Definition form_flags.h:19
constexpr uint32_t kChoiceCommitOnSelChange
Definition form_flags.h:41
constexpr uint32_t kButtonRadio
Definition form_flags.h:20
constexpr uint32_t kChoiceMultiSelect
Definition form_flags.h:39
constexpr uint32_t kNoExport
Definition form_flags.h:15
constexpr uint32_t kTextDoNotScroll
Definition form_flags.h:30
constexpr uint32_t kTextRichText
Definition form_flags.h:32
constexpr uint32_t kTextComb
Definition form_flags.h:31
constexpr uint32_t kTextMultiline
Definition form_flags.h:26