From 28df406817f501b4c133d56ef09cb0d6d90181ca Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Fri, 5 Oct 2018 21:18:16 +0000 Subject: Add booleans for form flags in CPDF_FormField. Add constants/form_flags.h as well. Change-Id: If15deff6bafdf394ed975b767128d65b5d2eb0e9 Reviewed-on: https://pdfium-review.googlesource.com/c/43533 Commit-Queue: Lei Zhang Reviewed-by: Tom Sepez --- constants/form_flags.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 constants/form_flags.h (limited to 'constants') diff --git a/constants/form_flags.h b/constants/form_flags.h new file mode 100644 index 0000000000..a2220bd95c --- /dev/null +++ b/constants/form_flags.h @@ -0,0 +1,20 @@ +// Copyright 2018 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. + +#ifndef CONSTANTS_FORM_FLAGS_H_ +#define CONSTANTS_FORM_FLAGS_H_ + +namespace pdfium { +namespace form_flags { + +// PDF 1.7 spec, table 8.70. +// Field flags common to all field types. +constexpr uint32_t kReadOnly = 1 << 0; +constexpr uint32_t kRequired = 1 << 1; +constexpr uint32_t kNoExport = 1 << 2; + +} // namespace form_flags +} // namespace pdfium + +#endif // CONSTANTS_FORM_FLAGS_H_ -- cgit v1.2.3