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 802 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
813 **/ | 813 **/ |
814 void (*FFI_GetPageViewRect)(struct _FPDF_FORMFILLINFO* pThis, | 814 void (*FFI_GetPageViewRect)(struct _FPDF_FORMFILLINFO* pThis, |
815 FPDF_PAGE page, | 815 FPDF_PAGE page, |
816 double* left, | 816 double* left, |
817 double* top, | 817 double* top, |
818 double* right, | 818 double* right, |
819 double* bottom); | 819 double* bottom); |
820 | 820 |
821 /** | 821 /** |
822 * Method: FFI_PageEvent | 822 * Method: FFI_PageEvent |
823 * This method fires when pages have been added or deleted. | 823 * This method fires when pages have been added to or deleted from the XFA |
| 824 * document. |
824 * Interface Version: | 825 * Interface Version: |
825 * 2 | 826 * 2 |
826 * Implementation Required: | 827 * Implementation Required: |
827 * yes | 828 * yes |
828 * Parameters: | 829 * Parameters: |
829 * pThis - Pointer to the interface structure itself. | 830 * pThis - Pointer to the interface structure itself. |
830 * page_index - 0-based page number. | 831 * page_count - The number of pages to be added to or deleted from the |
| 832 * document. |
831 * event_type - See FXFA_PAGEVIEWEVENT_* above. | 833 * event_type - See FXFA_PAGEVIEWEVENT_* above. |
832 * Return value: | 834 * Return value: |
833 * None. | 835 * None. |
| 836 * Comments: |
| 837 * The pages to be added or deleted always start from the last page |
| 838 * of document. This means that if parameter page_count is 2 and |
| 839 * event type is FXFA_PAGEVIEWEVENT_POSTADDED, 2 new pages have been |
| 840 * appended to the tail of document; If page_count is 2 and |
| 841 * event type is FXFA_PAGEVIEWEVENT_POSTREMOVED, the last 2 pages |
| 842 * have been deleted. |
834 **/ | 843 **/ |
835 void (*FFI_PageEvent)(struct _FPDF_FORMFILLINFO* pThis, | 844 void (*FFI_PageEvent)(struct _FPDF_FORMFILLINFO* pThis, |
836 int page_index, | 845 int page_count, |
837 FPDF_DWORD event_type); | 846 FPDF_DWORD event_type); |
838 | 847 |
839 /** | 848 /** |
840 * Method: FFI_PopupMenu | 849 * Method: FFI_PopupMenu |
841 * This method will track the right context menu for XFA fields. | 850 * This method will track the right context menu for XFA fields. |
842 * Interface Version: | 851 * Interface Version: |
843 * 2 | 852 * 2 |
844 * Implementation Required: | 853 * Implementation Required: |
845 * yes | 854 * yes |
846 * Parameters: | 855 * Parameters: |
(...skipping 856 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1703 FPDF_StringHandleAddString(FPDF_STRINGHANDLE stringHandle, | 1712 FPDF_StringHandleAddString(FPDF_STRINGHANDLE stringHandle, |
1704 FPDF_BYTESTRING bsText, | 1713 FPDF_BYTESTRING bsText, |
1705 FPDF_DWORD size); | 1714 FPDF_DWORD size); |
1706 #endif // PDF_ENABLE_XFA | 1715 #endif // PDF_ENABLE_XFA |
1707 | 1716 |
1708 #ifdef __cplusplus | 1717 #ifdef __cplusplus |
1709 } | 1718 } |
1710 #endif | 1719 #endif |
1711 | 1720 |
1712 #endif // PUBLIC_FPDF_FORMFILL_H_ | 1721 #endif // PUBLIC_FPDF_FORMFILL_H_ |
OLD | NEW |