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 1293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1304 #define FPDF_FORMFIELD_UNKNOWN 0 // Unknown. | 1304 #define FPDF_FORMFIELD_UNKNOWN 0 // Unknown. |
1305 #define FPDF_FORMFIELD_PUSHBUTTON 1 // push button type. | 1305 #define FPDF_FORMFIELD_PUSHBUTTON 1 // push button type. |
1306 #define FPDF_FORMFIELD_CHECKBOX 2 // check box type. | 1306 #define FPDF_FORMFIELD_CHECKBOX 2 // check box type. |
1307 #define FPDF_FORMFIELD_RADIOBUTTON 3 // radio button type. | 1307 #define FPDF_FORMFIELD_RADIOBUTTON 3 // radio button type. |
1308 #define FPDF_FORMFIELD_COMBOBOX 4 // combo box type. | 1308 #define FPDF_FORMFIELD_COMBOBOX 4 // combo box type. |
1309 #define FPDF_FORMFIELD_LISTBOX 5 // list box type. | 1309 #define FPDF_FORMFIELD_LISTBOX 5 // list box type. |
1310 #define FPDF_FORMFIELD_TEXTFIELD 6 // text field type. | 1310 #define FPDF_FORMFIELD_TEXTFIELD 6 // text field type. |
1311 #define FPDF_FORMFIELD_XFA 7 // text field type. | 1311 #define FPDF_FORMFIELD_XFA 7 // text field type. |
1312 | 1312 |
1313 /** | 1313 /** |
| 1314 * Function: FPDFPage_HasFormFieldAtPoint |
| 1315 * Get the form field type by point. |
| 1316 * Parameters: |
| 1317 * hHandle - Handle to the form fill module. Returned by |
| 1318 * FPDFDOC_InitFormFillEnvironment(). |
| 1319 * page - Handle to the page. Returned by FPDF_LoadPage(). |
| 1320 * page_x - X position in PDF "user space". |
| 1321 * page_y - Y position in PDF "user space". |
| 1322 * Return Value: |
| 1323 * Return the type of the form field; -1 indicates no field. |
| 1324 * See field types above. |
| 1325 **/ |
| 1326 DLLEXPORT int STDCALL FPDFPage_HasFormFieldAtPoint(FPDF_FORMHANDLE hHandle, |
| 1327 FPDF_PAGE page, |
| 1328 double page_x, |
| 1329 double page_y); |
| 1330 |
| 1331 /** |
1314 * Function: FPDPage_HasFormFieldAtPoint | 1332 * Function: FPDPage_HasFormFieldAtPoint |
1315 * Check the form filed position by point. | 1333 * DEPRECATED. Please use FPDFPage_HasFormFieldAtPoint. |
1316 * Parameters: | |
1317 * hHandle - Handle to the form fill module. Returned by | |
1318 *FPDFDOC_InitFormFillEnvironment. | |
1319 * page - Handle to the page. Returned by FPDF_LoadPage | |
1320 *function. | |
1321 * page_x - X position in PDF "user space". | |
1322 * page_y - Y position in PDF "user space". | |
1323 * Return Value: | |
1324 * Return the type of the formfiled; -1 indicates no fields. | |
1325 **/ | 1334 **/ |
1326 DLLEXPORT int STDCALL FPDPage_HasFormFieldAtPoint(FPDF_FORMHANDLE hHandle, | 1335 DLLEXPORT int STDCALL FPDPage_HasFormFieldAtPoint(FPDF_FORMHANDLE hHandle, |
1327 FPDF_PAGE page, | 1336 FPDF_PAGE page, |
1328 double page_x, | 1337 double page_x, |
1329 double page_y); | 1338 double page_y); |
1330 | 1339 |
1331 /** | 1340 /** |
| 1341 * Function: FPDFPage_FormFieldZOrderAtPoint |
| 1342 * Get the form field z-order by point. |
| 1343 * Parameters: |
| 1344 * hHandle - Handle to the form fill module. Returned by |
| 1345 * FPDFDOC_InitFormFillEnvironment(). |
| 1346 * page - Handle to the page. Returned by FPDF_LoadPage(). |
| 1347 * page_x - X position in PDF "user space". |
| 1348 * page_y - Y position in PDF "user space". |
| 1349 * Return Value: |
| 1350 * Return the z-order of the form field; -1 indicates no field. |
| 1351 * Higher numbers are closer to the front. |
| 1352 **/ |
| 1353 DLLEXPORT int STDCALL FPDFPage_FormFieldZOrderAtPoint(FPDF_FORMHANDLE hHandle, |
| 1354 FPDF_PAGE page, |
| 1355 double page_x, |
| 1356 double page_y); |
| 1357 |
| 1358 /** |
1332 * Function: FPDF_SetFormFieldHighlightColor | 1359 * Function: FPDF_SetFormFieldHighlightColor |
1333 * Set the highlight color of specified or all the form fields in the | 1360 * Set the highlight color of specified or all the form fields in the |
1334 *document. | 1361 *document. |
1335 * Parameters: | 1362 * Parameters: |
1336 * hHandle - Handle to the form fill module. Returned by | 1363 * hHandle - Handle to the form fill module. Returned by |
1337 *FPDFDOC_InitFormFillEnvironment. | 1364 *FPDFDOC_InitFormFillEnvironment. |
1338 * doc - Handle to the document. Returned by | 1365 * doc - Handle to the document. Returned by |
1339 *FPDF_LoadDocument function. | 1366 *FPDF_LoadDocument function. |
1340 * fieldType - A 32-bit integer indicating the type of a form | 1367 * fieldType - A 32-bit integer indicating the type of a form |
1341 *field(defined above). | 1368 *field(defined above). |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1640 DLLEXPORT FPDF_BOOL STDCALL | 1667 DLLEXPORT FPDF_BOOL STDCALL |
1641 FPDF_StringHandleAddString(FPDF_STRINGHANDLE stringHandle, | 1668 FPDF_StringHandleAddString(FPDF_STRINGHANDLE stringHandle, |
1642 FPDF_BYTESTRING bsText, | 1669 FPDF_BYTESTRING bsText, |
1643 FPDF_DWORD size); | 1670 FPDF_DWORD size); |
1644 | 1671 |
1645 #ifdef __cplusplus | 1672 #ifdef __cplusplus |
1646 } | 1673 } |
1647 #endif | 1674 #endif |
1648 | 1675 |
1649 #endif // PUBLIC_FPDF_FORMFILL_H_ | 1676 #endif // PUBLIC_FPDF_FORMFILL_H_ |
OLD | NEW |