// Derived from PDFium's constants/form_fields.h
// Original: Copyright 2019 The PDFium Authors
// Licensed under BSD-3-Clause / Apache-2.0
// See pdfium-upstream/LICENSE for the original license.

//! Entries common to all AcroForm field dictionaries.
//!
//! Corresponds to `pdfium::form_fields` namespace.
//! ISO 32000-1:2008 tables 220 and 222.

// -----------------------------------------------------------------------
// Table 220 — entries common to all field dictionaries
// -----------------------------------------------------------------------

/// `/FT` — field type.
pub const K_FT: &[u8] = b"FT";

/// `/Parent` — parent field.
pub const K_PARENT: &[u8] = b"Parent";

/// `/Kids` — array of child fields or widget annotations.
pub const K_KIDS: &[u8] = b"Kids";

/// `/T` — partial field name.
pub const K_T: &[u8] = b"T";

/// `/TU` — alternate field name (user-visible).
pub const K_TU: &[u8] = b"TU";

/// `/TM` — mapping name for export.
pub const K_TM: &[u8] = b"TM";

/// `/Ff` — field flags.
pub const K_FF: &[u8] = b"Ff";

/// `/V` — field value.
pub const K_V: &[u8] = b"V";

/// `/DV` — default field value.
pub const K_DV: &[u8] = b"DV";

/// `/AA` — additional actions.
pub const K_AA: &[u8] = b"AA";

// -----------------------------------------------------------------------
// Values for the /FT (field type) key
// -----------------------------------------------------------------------

/// Button field type.
pub const K_BTN: &[u8] = b"Btn";

/// Text field type.
pub const K_TX: &[u8] = b"Tx";

/// Choice field type.
pub const K_CH: &[u8] = b"Ch";

/// Signature field type.
pub const K_SIG: &[u8] = b"Sig";

// -----------------------------------------------------------------------
// Table 222 — entries for fields containing variable text
// -----------------------------------------------------------------------

/// `/DA` — default appearance string.
pub const K_DA: &[u8] = b"DA";

/// `/Q` — quadding (justification): 0=left, 1=center, 2=right.
pub const K_Q: &[u8] = b"Q";

/// `/DS` — default style string.
pub const K_DS: &[u8] = b"DS";

/// `/RV` — rich text value.
pub const K_RV: &[u8] = b"RV";
