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 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
371 */ | 371 */ |
372 /*@{*/ | 372 /*@{*/ |
373 #define FXFA_SAVEAS_XML 1 | 373 #define FXFA_SAVEAS_XML 1 |
374 #define FXFA_SAVEAS_XDP 2 | 374 #define FXFA_SAVEAS_XDP 2 |
375 /*@}*/ | 375 /*@}*/ |
376 #endif // PDF_ENABLE_XFA | 376 #endif // PDF_ENABLE_XFA |
377 | 377 |
378 typedef struct _FPDF_FORMFILLINFO { | 378 typedef struct _FPDF_FORMFILLINFO { |
379 /** | 379 /** |
380 * Version number of the interface. Currently must be 1 (when PDFium is built | 380 * Version number of the interface. Currently must be 1 (when PDFium is built |
381 * without the XFA module) or must be 2 (when built with the XFA module). | 381 * without the XFA module) or must be 2 (when built with the XFA module). |
Tom Sepez
2016/01/28 17:30:25
Do we need to change the version number here to ac
jun_fang
2016/01/29 00:19:18
Yes. I forgot to check the description. I will cha
jun_fang
2016/01/29 12:58:44
The comments here are used to remind applications
| |
382 **/ | 382 **/ |
383 int version; | 383 int version; |
384 | 384 |
385 /* Version 1. */ | 385 /* Version 1. */ |
386 /** | 386 /** |
387 *Method: Release | 387 *Method: Release |
388 * Give implementation a chance to release any data after the | 388 * Give implementation a chance to release any data after the |
389 * interface is no longer used | 389 * interface is no longer used |
390 *Interface Version: | 390 *Interface Version: |
391 * 1 | 391 * 1 |
(...skipping 612 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1004 * Parameters: | 1004 * Parameters: |
1005 * pThis - Pointer to the interface structure itself. | 1005 * pThis - Pointer to the interface structure itself. |
1006 * wsURL - The string value of the server URL, in UTF-16LE | 1006 * wsURL - The string value of the server URL, in UTF-16LE |
1007 *format. | 1007 *format. |
1008 * wsData - The put data, in UTF-16LE format. | 1008 * wsData - The put data, in UTF-16LE format. |
1009 * wsEncode - The encode type, in UTR-16LE format. | 1009 * wsEncode - The encode type, in UTR-16LE format. |
1010 * Return value: | 1010 * Return value: |
1011 * TRUE indicates success, otherwise FALSE. | 1011 * TRUE indicates success, otherwise FALSE. |
1012 **/ | 1012 **/ |
1013 FPDF_BOOL (*FFI_PutRequestURL)(struct _FPDF_FORMFILLINFO* pThis, FPDF_WIDEST RING wsURL, FPDF_WIDESTRING wsData, FPDF_WIDESTRING wsEncode); | 1013 FPDF_BOOL (*FFI_PutRequestURL)(struct _FPDF_FORMFILLINFO* pThis, FPDF_WIDEST RING wsURL, FPDF_WIDESTRING wsData, FPDF_WIDESTRING wsEncode); |
1014 | |
1015 /** | |
1016 * Method: FFI_PageEvent | |
1017 * This method will notify applications when a page is deleted or | |
1018 *removed. | |
1019 * Interface Version: | |
1020 * 1 | |
1021 * Implementation Required: | |
1022 * yes | |
1023 * Parameters: | |
1024 * pThis - Pointer to the interface structure itself. | |
1025 * iPageIndex - The index of which page is modified. | |
1026 * iEventType - Type of events. It can be one of | |
1027 *the following marcos: | |
1028 * 1. FXFA_PAGEVIEWEVENT_POSTADDED | |
1029 * 2. FXFA_PAGEVIEWEVENT_POSTREMOVED | |
1030 * Return value: | |
1031 * None. | |
1032 **/ | |
1033 void (*FFI_PageEvent)(struct _FPDF_FORMFILLINFO* pThis, | |
1034 int iPageIndex, | |
1035 int iEventType); | |
1036 | |
1014 #endif // PDF_ENABLE_XFA | 1037 #endif // PDF_ENABLE_XFA |
1015 | 1038 |
1016 } FPDF_FORMFILLINFO; | 1039 } FPDF_FORMFILLINFO; |
1017 | 1040 |
1018 /** | 1041 /** |
1019 * Function: FPDFDOC_InitFormFillEnvironment | 1042 * Function: FPDFDOC_InitFormFillEnvironment |
1020 * Init form fill environment. | 1043 * Init form fill environment. |
1021 * Comments: | 1044 * Comments: |
1022 * This function should be called before any form fill operation. | 1045 * This function should be called before any form fill operation. |
1023 * Parameters: | 1046 * Parameters: |
(...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1686 FPDF_StringHandleAddString(FPDF_STRINGHANDLE stringHandle, | 1709 FPDF_StringHandleAddString(FPDF_STRINGHANDLE stringHandle, |
1687 FPDF_BYTESTRING bsText, | 1710 FPDF_BYTESTRING bsText, |
1688 FPDF_DWORD size); | 1711 FPDF_DWORD size); |
1689 #endif // PDF_ENABLE_XFA | 1712 #endif // PDF_ENABLE_XFA |
1690 | 1713 |
1691 #ifdef __cplusplus | 1714 #ifdef __cplusplus |
1692 } | 1715 } |
1693 #endif | 1716 #endif |
1694 | 1717 |
1695 #endif // PUBLIC_FPDF_FORMFILL_H_ | 1718 #endif // PUBLIC_FPDF_FORMFILL_H_ |
OLD | NEW |