diff options
Diffstat (limited to 'public')
-rw-r--r-- | public/fpdf_formfill.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/public/fpdf_formfill.h b/public/fpdf_formfill.h index caefad78c7..5a15cd9a02 100644 --- a/public/fpdf_formfill.h +++ b/public/fpdf_formfill.h @@ -1355,6 +1355,29 @@ DLLEXPORT FPDF_BOOL STDCALL FORM_OnChar(FPDF_FORMHANDLE hHandle, int modifier); /** + * Function: FORM_GetSelectedText + * You can call this function to obtain selected text within + * a form text field or form combobox text field. + * Parameters: + * hHandle - Handle to the form fill module. Returned by + * FPDFDOC_InitFormFillEnvironment. + * page - Handle to the page. Returned by FPDF_LoadPage + * function. + * buffer - Buffer for holding the selected text, encoded + * in UTF16-LE. If NULL, |buffer| is not modified. + * buflen - Length of |buffer| in bytes. If |buflen| + is less than the length of the selected text + string, |buffer| is not modified. + * Return Value: + * Length in bytes of selected text in form text field or form combobox + * text field. + **/ +DLLEXPORT unsigned long STDCALL FORM_GetSelectedText(FPDF_FORMHANDLE hHandle, + FPDF_PAGE page, + void* buffer, + unsigned long buflen); + +/** * Function: FORM_ForceToKillFocus. * You can call this member function to force to kill the focus of the *form field which got focus. |