From e118ce99c52a21a1093badc9d180539a9a6e973f Mon Sep 17 00:00:00 2001 From: Jun Fang Date: Tue, 17 Feb 2015 06:50:08 -0800 Subject: Keep the declaration of FPDF_HasXFAField consistent with other XFA APIs It's an enhancement requested in issue 452794. BUG=N/A R=tsepez@chromium.org Review URL: https://codereview.chromium.org/939483003 --- fpdfsdk/include/fpdfformfill.h | 14 ++++++++++++++ fpdfsdk/include/fpdfxfa/fpdfxfa_util.h | 6 ------ 2 files changed, 14 insertions(+), 6 deletions(-) (limited to 'fpdfsdk/include') diff --git a/fpdfsdk/include/fpdfformfill.h b/fpdfsdk/include/fpdfformfill.h index 442b93fb0f..5191fd75a8 100644 --- a/fpdfsdk/include/fpdfformfill.h +++ b/fpdfsdk/include/fpdfformfill.h @@ -11,6 +11,10 @@ typedef void* FPDF_FORMHANDLE; +#define DOCTYPE_PDF 0 //Normal pdf Document +#define DOCTYPE_DYNIMIC_XFA 1 //Dynimic xfa Document Type +#define DOCTYPE_STATIC_XFA 2 //Static xfa Document Type + // Exported Functions #ifdef __cplusplus extern "C" { @@ -1094,6 +1098,16 @@ DLLEXPORT void STDCALL FPDF_RemoveFormFieldHighlight(FPDF_FORMHANDLE hHandle); **/ DLLEXPORT void STDCALL FPDF_FFLDraw(FPDF_FORMHANDLE hHandle,FPDF_BITMAP bitmap, FPDF_PAGE page, int start_x, int start_y, int size_x, int size_y, int rotate, int flags); +/** + * Function: FPDF_HasXFAField + * This method is designed to check whether a pdf document has XFA fields. + * Parameters: + * document - Handle to document. Returned by FPDF_LoadDocument function. + * docType - Document type defined as DOCTYPE_xxx. + * Return Value: + * TRUE indicates that the input document has XFA fields, otherwise FALSE. + **/ +DLLEXPORT FPDF_BOOL STDCALL FPDF_HasXFAField(FPDF_DOCUMENT document, int& docType); /** * Function: FPDF_LoadXFA diff --git a/fpdfsdk/include/fpdfxfa/fpdfxfa_util.h b/fpdfsdk/include/fpdfxfa/fpdfxfa_util.h index 07ea65f2b1..28904e2ca6 100644 --- a/fpdfsdk/include/fpdfxfa/fpdfxfa_util.h +++ b/fpdfsdk/include/fpdfxfa/fpdfxfa_util.h @@ -7,17 +7,11 @@ #ifndef _FPDFXFA_UTIL_H_ #define _FPDFXFA_UTIL_H_ -#define DOCTYPE_PDF 0 -#define DOCTYPE_DYNIMIC_XFA 1 //Dynimic xfa Document Type -#define DOCTYPE_STATIC_XFA 2 //Static xfa Document Type - #define JS_STR_VIEWERTYPE_STANDARD L"Exchange" #define JS_STR_LANGUANGE L"ENU" #define JS_STR_VIEWERVARIATION L"Full" #define JS_STR_VIEWERVERSION_XFA L"11" -FX_BOOL FPDF_HasXFAField(CPDF_Document* pPDFDoc, int& docType); - class CXFA_FWLAdapterTimerMgr : public IFWL_AdapterTimerMgr, public CFX_Object { public: -- cgit v1.2.3