| OLD | NEW | 
|     1 // Copyright 2014 PDFium Authors. All rights reserved. |     1 // Copyright 2014 PDFium Authors. All rights reserved. | 
|     2 // Use of this source code is governed by a BSD-style license that can be |     2 // Use of this source code is governed by a BSD-style license that can be | 
|     3 // found in the LICENSE file. |     3 // found in the LICENSE file. | 
|     4  |     4  | 
|     5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |     5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 
|     6  |     6  | 
|     7 #ifndef PUBLIC_FPDF_FORMFILL_H_ |     7 #ifndef PUBLIC_FPDF_FORMFILL_H_ | 
|     8 #define PUBLIC_FPDF_FORMFILL_H_ |     8 #define PUBLIC_FPDF_FORMFILL_H_ | 
|     9  |     9  | 
|    10 #include "fpdfview.h" |    10 #include "fpdfview.h" | 
| (...skipping 945 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   956 #define FPDF_FORMFIELD_UNKNOWN 0      // Unknown. |   956 #define FPDF_FORMFIELD_UNKNOWN 0      // Unknown. | 
|   957 #define FPDF_FORMFIELD_PUSHBUTTON 1   // push button type. |   957 #define FPDF_FORMFIELD_PUSHBUTTON 1   // push button type. | 
|   958 #define FPDF_FORMFIELD_CHECKBOX 2     // check box type. |   958 #define FPDF_FORMFIELD_CHECKBOX 2     // check box type. | 
|   959 #define FPDF_FORMFIELD_RADIOBUTTON 3  // radio button type. |   959 #define FPDF_FORMFIELD_RADIOBUTTON 3  // radio button type. | 
|   960 #define FPDF_FORMFIELD_COMBOBOX 4     // combo box type. |   960 #define FPDF_FORMFIELD_COMBOBOX 4     // combo box type. | 
|   961 #define FPDF_FORMFIELD_LISTBOX 5      // list box type. |   961 #define FPDF_FORMFIELD_LISTBOX 5      // list box type. | 
|   962 #define FPDF_FORMFIELD_TEXTFIELD 6    // text field type. |   962 #define FPDF_FORMFIELD_TEXTFIELD 6    // text field type. | 
|   963  |   963  | 
|   964 /** |   964 /** | 
|   965  * Function: FPDPage_HasFormFieldAtPoint |   965  * Function: FPDPage_HasFormFieldAtPoint | 
|   966  *          Check the form filed position by point. |   966  *     Get the form field type by point. | 
|   967  * Parameters: |   967  * Parameters: | 
|   968  *          hHandle     -   Handle to the form fill module. Returned by |   968  *     hHandle     -   Handle to the form fill module. Returned by | 
|   969  *FPDFDOC_InitFormFillEnvironment. |   969  *                     FPDFDOC_InitFormFillEnvironment(). | 
|   970  *          page        -   Handle to the page. Returned by FPDF_LoadPage |   970  *     page        -   Handle to the page. Returned by FPDF_LoadPage(). | 
|   971  *function. |   971  *     page_x      -   X position in PDF "user space". | 
|   972  *          page_x      -   X position in PDF "user space". |   972  *     page_y      -   Y position in PDF "user space". | 
|   973  *          page_y      -   Y position in PDF "user space". |  | 
|   974  * Return Value: |   973  * Return Value: | 
|   975  *          Return the type of the formfiled; -1 indicates no fields. |   974  *     Return the type of the form field; -1 indicates no field. | 
 |   975  *     See field types above. | 
|   976  **/ |   976  **/ | 
|   977 DLLEXPORT int STDCALL FPDPage_HasFormFieldAtPoint(FPDF_FORMHANDLE hHandle, |   977 DLLEXPORT int STDCALL FPDPage_HasFormFieldAtPoint(FPDF_FORMHANDLE hHandle, | 
|   978                                                   FPDF_PAGE page, |   978                                                   FPDF_PAGE page, | 
|   979                                                   double page_x, |   979                                                   double page_x, | 
|   980                                                   double page_y); |   980                                                   double page_y); | 
|   981  |   981  | 
|   982 /** |   982 /** | 
 |   983  * Function: FPDPage_FormFieldZOrderAtPoint | 
 |   984  *     Get the form field z-order by point. | 
 |   985  * Parameters: | 
 |   986  *     hHandle     -   Handle to the form fill module. Returned by | 
 |   987  *                     FPDFDOC_InitFormFillEnvironment(). | 
 |   988  *     page        -   Handle to the page. Returned by FPDF_LoadPage(). | 
 |   989  *     page_x      -   X position in PDF "user space". | 
 |   990  *     page_y      -   Y position in PDF "user space". | 
 |   991  * Return Value: | 
 |   992  *     Return the z-order of the form field; -1 indicates no field. | 
 |   993  **/ | 
 |   994 DLLEXPORT int STDCALL FPDPage_FormFieldZOrderAtPoint(FPDF_FORMHANDLE hHandle, | 
 |   995                                                      FPDF_PAGE page, | 
 |   996                                                      double page_x, | 
 |   997                                                      double page_y); | 
 |   998  | 
 |   999 /** | 
|   983  * Function: FPDF_SetFormFieldHighlightColor |  1000  * Function: FPDF_SetFormFieldHighlightColor | 
|   984  *          Set the highlight color of specified or all the form fields in the |  1001  *          Set the highlight color of specified or all the form fields in the | 
|   985  *document. |  1002  *document. | 
|   986  * Parameters: |  1003  * Parameters: | 
|   987  *          hHandle     -   Handle to the form fill module. Returned by |  1004  *          hHandle     -   Handle to the form fill module. Returned by | 
|   988  *FPDFDOC_InitFormFillEnvironment. |  1005  *FPDFDOC_InitFormFillEnvironment. | 
|   989  *          doc         -   Handle to the document. Returned by |  1006  *          doc         -   Handle to the document. Returned by | 
|   990  *FPDF_LoadDocument function. |  1007  *FPDF_LoadDocument function. | 
|   991  *          fieldType   -   A 32-bit integer indicating the type of a form |  1008  *          fieldType   -   A 32-bit integer indicating the type of a form | 
|   992  *field(defined above). |  1009  *field(defined above). | 
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1079                                     int size_x, |  1096                                     int size_x, | 
|  1080                                     int size_y, |  1097                                     int size_y, | 
|  1081                                     int rotate, |  1098                                     int rotate, | 
|  1082                                     int flags); |  1099                                     int flags); | 
|  1083  |  1100  | 
|  1084 #ifdef __cplusplus |  1101 #ifdef __cplusplus | 
|  1085 } |  1102 } | 
|  1086 #endif |  1103 #endif | 
|  1087  |  1104  | 
|  1088 #endif  // PUBLIC_FPDF_FORMFILL_H_ |  1105 #endif  // PUBLIC_FPDF_FORMFILL_H_ | 
| OLD | NEW |