diff options
Diffstat (limited to 'fpdfsdk/fpdf_formfill.cpp')
-rw-r--r-- | fpdfsdk/fpdf_formfill.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/fpdfsdk/fpdf_formfill.cpp b/fpdfsdk/fpdf_formfill.cpp index 4b23ce41b0..966ed097e9 100644 --- a/fpdfsdk/fpdf_formfill.cpp +++ b/fpdfsdk/fpdf_formfill.cpp @@ -141,6 +141,22 @@ static_assert(static_cast<int>(FormFieldType::kXFA_TextField) == static_assert(kFormFieldTypeCount == FPDF_FORMFIELD_COUNT, "Number of form field types must match"); +static_assert(static_cast<int>(CPDF_AAction::CloseDocument) == + FPDFDOC_AACTION_WC, + "CloseDocument action must match"); +static_assert(static_cast<int>(CPDF_AAction::SaveDocument) == + FPDFDOC_AACTION_WS, + "SaveDocument action must match"); +static_assert(static_cast<int>(CPDF_AAction::DocumentSaved) == + FPDFDOC_AACTION_DS, + "DocumentSaved action must match"); +static_assert(static_cast<int>(CPDF_AAction::PrintDocument) == + FPDFDOC_AACTION_WP, + "PrintDocument action must match"); +static_assert(static_cast<int>(CPDF_AAction::DocumentPrinted) == + FPDFDOC_AACTION_DP, + "DocumentPrinted action must match"); + namespace { CPDFSDK_InteractiveForm* FormHandleToInteractiveForm(FPDF_FORMHANDLE hHandle) { |