summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorjinming_wang <jinming_wang@foxitsoftware.com>2016-03-18 16:35:40 +0800
committerjinming_wang <jinming_wang@foxitsoftware.com>2016-03-18 16:35:40 +0800
commita1cef70c08a16e2b9d7ec14987a8b20660d83534 (patch)
treebaf5d5e71a2d33fca8793288e97e77a28a00f6ac /public
parent900323a8857ce0d9f6a57e535cd864b0f649bb9c (diff)
downloadpdfium-a1cef70c08a16e2b9d7ec14987a8b20660d83534.tar.xz
Trigger page view event when re-layout is finished
BUG=pdfium:401 R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1758553003 .
Diffstat (limited to 'public')
-rw-r--r--public/fpdf_formfill.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/public/fpdf_formfill.h b/public/fpdf_formfill.h
index 81d6b691f0..90d6663137 100644
--- a/public/fpdf_formfill.h
+++ b/public/fpdf_formfill.h
@@ -823,20 +823,29 @@ typedef struct _FPDF_FORMFILLINFO {
/**
* Method: FFI_PageEvent
- * This method fires when pages have been added or deleted.
+ * This method fires when pages have been added to or deleted from the XFA
+ * document.
* Interface Version:
* 2
* Implementation Required:
* yes
* Parameters:
* pThis - Pointer to the interface structure itself.
- * page_index - 0-based page number.
+ * page_count - The number of pages to be added to or deleted from the
+ * document.
* event_type - See FXFA_PAGEVIEWEVENT_* above.
* Return value:
* None.
+ * Comments:
+ * The pages to be added or deleted always start from the last page
+ * of document. This means that if parameter page_count is 2 and
+ * event type is FXFA_PAGEVIEWEVENT_POSTADDED, 2 new pages have been
+ * appended to the tail of document; If page_count is 2 and
+ * event type is FXFA_PAGEVIEWEVENT_POSTREMOVED, the last 2 pages
+ * have been deleted.
**/
void (*FFI_PageEvent)(struct _FPDF_FORMFILLINFO* pThis,
- int page_index,
+ int page_count,
FPDF_DWORD event_type);
/**