Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include "public/fpdf_formfill.h"
#include <memory>
#include <utility>
#include "constants/form_fields.h"
#include "core/fpdfapi/page/cpdf_annotcontext.h"
#include "core/fpdfapi/page/cpdf_occontext.h"
#include "core/fpdfapi/page/cpdf_page.h"
#include "core/fpdfapi/parser/cpdf_dictionary.h"
#include "core/fpdfapi/parser/cpdf_document.h"
#include "core/fpdfapi/parser/cpdf_stream.h"
#include "core/fpdfapi/render/cpdf_renderoptions.h"
#include "core/fpdfdoc/cpdf_formcontrol.h"
#include "core/fpdfdoc/cpdf_formfield.h"
#include "core/fpdfdoc/cpdf_interactiveform.h"
#include "core/fxge/cfx_defaultrenderdevice.h"
#include "core/fxge/dib/cfx_dibitmap.h"
#include "fpdfsdk/cpdfsdk_annot.h"
#include "fpdfsdk/cpdfsdk_formfillenvironment.h"
#include "fpdfsdk/cpdfsdk_helpers.h"
#include "fpdfsdk/cpdfsdk_interactiveform.h"
#include "fpdfsdk/cpdfsdk_pageview.h"
#include "public/fpdfview.h"
Go to the source code of this file.
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FORM_CanRedo | ( | FPDF_FORMHANDLE | hHandle, |
FPDF_PAGE | page ) |
Definition at line 577 of file fpdf_formfill.cpp.
References CPDFSDK_PageView::CanRedo().
Referenced by CheckPDFiumCApi().
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FORM_CanUndo | ( | FPDF_FORMHANDLE | hHandle, |
FPDF_PAGE | page ) |
Definition at line 569 of file fpdf_formfill.cpp.
References CPDFSDK_PageView::CanUndo().
Referenced by CheckPDFiumCApi().
FPDF_EXPORT void FPDF_CALLCONV FORM_DoDocumentAAction | ( | FPDF_FORMHANDLE | hHandle, |
int | aaType ) |
Definition at line 781 of file fpdf_formfill.cpp.
References CPDF_AAction::ActionExist(), CPDFSDKFormFillEnvironmentFromFPDFFormHandle(), CPDFSDK_FormFillEnvironment::DoActionDocument(), CPDF_AAction::GetAction(), CPDF_Dictionary::GetDictFor(), CPDFSDK_FormFillEnvironment::GetPDFDocument(), CPDF_Document::GetRoot(), and pdfium::form_fields::kAA.
Referenced by CheckPDFiumCApi(), EmbedderTest::CloseDocument(), and main().
FPDF_EXPORT void FPDF_CALLCONV FORM_DoDocumentJSAction | ( | FPDF_FORMHANDLE | hHandle | ) |
Definition at line 766 of file fpdf_formfill.cpp.
References CPDFSDKFormFillEnvironmentFromFPDFFormHandle(), CPDFSDK_FormFillEnvironment::IsJSPlatformPresent(), and CPDFSDK_FormFillEnvironment::ProcJavascriptAction().
Referenced by CheckPDFiumCApi(), and EmbedderTest::DoOpenActions().
FPDF_EXPORT void FPDF_CALLCONV FORM_DoDocumentOpenAction | ( | FPDF_FORMHANDLE | hHandle | ) |
Definition at line 774 of file fpdf_formfill.cpp.
References CPDFSDKFormFillEnvironmentFromFPDFFormHandle(), and CPDFSDK_FormFillEnvironment::ProcOpenAction().
Referenced by CheckPDFiumCApi(), and EmbedderTest::DoOpenActions().
FPDF_EXPORT void FPDF_CALLCONV FORM_DoPageAAction | ( | FPDF_PAGE | page, |
FPDF_FORMHANDLE | hHandle, | ||
int | aaType ) |
Definition at line 799 of file fpdf_formfill.cpp.
References CPDF_AAction::ActionExist(), CPDFPageFromFPDFPage(), CPDFSDKFormFillEnvironmentFromFPDFFormHandle(), CPDFSDK_FormFillEnvironment::DoActionPage(), CPDF_AAction::GetAction(), CPDFSDK_FormFillEnvironment::GetPageView(), IPDFPageFromFPDFPage(), pdfium::form_fields::kAA, CPDF_AAction::kClosePage, and CPDF_AAction::kOpenPage.
Referenced by CheckPDFiumCApi(), EmbedderTest::CloseSavedPage(), EmbedderTest::LoadSavedPage(), and main().
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FORM_ForceToKillFocus | ( | FPDF_FORMHANDLE | hHandle | ) |
Definition at line 602 of file fpdf_formfill.cpp.
References CPDFSDKFormFillEnvironmentFromFPDFFormHandle(), and CPDFSDK_FormFillEnvironment::KillFocusAnnot().
Referenced by CheckPDFiumCApi().
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FORM_GetFocusedAnnot | ( | FPDF_FORMHANDLE | handle, |
int * | page_index, | ||
FPDF_ANNOTATION * | annot ) |
Definition at line 611 of file fpdf_formfill.cpp.
References CPDFSDK_Annot::AsXFAWidget(), CPDFSDKFormFillEnvironmentFromFPDFFormHandle(), CPDFSDK_FormFillEnvironment::GetFocusAnnot(), CPDFSDK_Annot::GetPage(), CPDFSDK_PageView::GetPageIndex(), CPDFSDK_Annot::GetPageView(), and CPDFSDK_PageView::IsValid().
Referenced by CheckPDFiumCApi(), and TEST_F().
FPDF_EXPORT unsigned long FPDF_CALLCONV FORM_GetFocusedText | ( | FPDF_FORMHANDLE | hHandle, |
FPDF_PAGE | page, | ||
void * | buffer, | ||
unsigned long | buflen ) |
Definition at line 517 of file fpdf_formfill.cpp.
References CPDFSDK_PageView::GetFocusedFormText(), and Utf16EncodeMaybeCopyAndReturnLength().
Referenced by CheckPDFiumCApi().
FPDF_EXPORT unsigned long FPDF_CALLCONV FORM_GetSelectedText | ( | FPDF_FORMHANDLE | hHandle, |
FPDF_PAGE | page, | ||
void * | buffer, | ||
unsigned long | buflen ) |
Definition at line 530 of file fpdf_formfill.cpp.
References CPDFSDK_PageView::GetSelectedText(), and Utf16EncodeMaybeCopyAndReturnLength().
Referenced by CheckPDFiumCApi().
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FORM_IsIndexSelected | ( | FPDF_FORMHANDLE | hHandle, |
FPDF_PAGE | page, | ||
int | index ) |
Definition at line 833 of file fpdf_formfill.cpp.
References CPDFSDK_PageView::IsIndexSelected().
Referenced by CheckPDFiumCApi(), and TEST_F().
FPDF_EXPORT void FPDF_CALLCONV FORM_OnAfterLoadPage | ( | FPDF_PAGE | page, |
FPDF_FORMHANDLE | hHandle ) |
Definition at line 740 of file fpdf_formfill.cpp.
References CPDFSDK_PageView::SetValid().
Referenced by CheckPDFiumCApi(), EmbedderTest::LoadSavedPage(), and main().
FPDF_EXPORT void FPDF_CALLCONV FORM_OnBeforeClosePage | ( | FPDF_PAGE | page, |
FPDF_FORMHANDLE | hHandle ) |
Definition at line 746 of file fpdf_formfill.cpp.
References CPDFSDKFormFillEnvironmentFromFPDFFormHandle(), CPDFSDK_FormFillEnvironment::GetPageView(), IPDFPageFromFPDFPage(), CPDFSDK_FormFillEnvironment::RemovePageView(), and CPDFSDK_PageView::SetValid().
Referenced by CheckPDFiumCApi(), EmbedderTest::CloseSavedPage(), and main().
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FORM_OnChar | ( | FPDF_FORMHANDLE | hHandle, |
FPDF_PAGE | page, | ||
int | nChar, | ||
int | modifier ) |
Definition at line 506 of file fpdf_formfill.cpp.
Referenced by CheckPDFiumCApi().
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FORM_OnFocus | ( | FPDF_FORMHANDLE | hHandle, |
FPDF_PAGE | page, | ||
int | modifier, | ||
double | page_x, | ||
double | page_y ) |
Definition at line 395 of file fpdf_formfill.cpp.
Referenced by CheckPDFiumCApi().
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FORM_OnKeyDown | ( | FPDF_FORMHANDLE | hHandle, |
FPDF_PAGE | page, | ||
int | nKeyCode, | ||
int | modifier ) |
Definition at line 488 of file fpdf_formfill.cpp.
Referenced by CheckPDFiumCApi().
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FORM_OnKeyUp | ( | FPDF_FORMHANDLE | hHandle, |
FPDF_PAGE | page, | ||
int | nKeyCode, | ||
int | modifier ) |
Definition at line 499 of file fpdf_formfill.cpp.
Referenced by CheckPDFiumCApi().
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FORM_OnLButtonDoubleClick | ( | FPDF_FORMHANDLE | hHandle, |
FPDF_PAGE | page, | ||
int | modifier, | ||
double | page_x, | ||
double | page_y ) |
Definition at line 440 of file fpdf_formfill.cpp.
Referenced by CheckPDFiumCApi().
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FORM_OnLButtonDown | ( | FPDF_FORMHANDLE | hHandle, |
FPDF_PAGE | page, | ||
int | modifier, | ||
double | page_x, | ||
double | page_y ) |
Definition at line 407 of file fpdf_formfill.cpp.
Referenced by CheckPDFiumCApi().
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FORM_OnLButtonUp | ( | FPDF_FORMHANDLE | hHandle, |
FPDF_PAGE | page, | ||
int | modifier, | ||
double | page_x, | ||
double | page_y ) |
Definition at line 423 of file fpdf_formfill.cpp.
Referenced by CheckPDFiumCApi().
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FORM_OnMouseMove | ( | FPDF_FORMHANDLE | hHandle, |
FPDF_PAGE | page, | ||
int | modifier, | ||
double | page_x, | ||
double | page_y ) |
Definition at line 366 of file fpdf_formfill.cpp.
Referenced by CheckPDFiumCApi(), and TEST_F().
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FORM_OnMouseWheel | ( | FPDF_FORMHANDLE | hHandle, |
FPDF_PAGE | page, | ||
int | modifier, | ||
const FS_POINTF * | page_coord, | ||
int | delta_x, | ||
int | delta_y ) |
Definition at line 379 of file fpdf_formfill.cpp.
Referenced by CheckPDFiumCApi().
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FORM_OnRButtonDown | ( | FPDF_FORMHANDLE | hHandle, |
FPDF_PAGE | page, | ||
int | modifier, | ||
double | page_x, | ||
double | page_y ) |
Definition at line 456 of file fpdf_formfill.cpp.
Referenced by CheckPDFiumCApi().
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FORM_OnRButtonUp | ( | FPDF_FORMHANDLE | hHandle, |
FPDF_PAGE | page, | ||
int | modifier, | ||
double | page_x, | ||
double | page_y ) |
Definition at line 472 of file fpdf_formfill.cpp.
Referenced by CheckPDFiumCApi().
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FORM_Redo | ( | FPDF_FORMHANDLE | hHandle, |
FPDF_PAGE | page ) |
Definition at line 593 of file fpdf_formfill.cpp.
References CPDFSDK_PageView::Redo().
Referenced by CheckPDFiumCApi().
FPDF_EXPORT void FPDF_CALLCONV FORM_ReplaceAndKeepSelection | ( | FPDF_FORMHANDLE | hHandle, |
FPDF_PAGE | page, | ||
FPDF_WIDESTRING | wsText ) |
Definition at line 543 of file fpdf_formfill.cpp.
References CPDFSDK_PageView::ReplaceAndKeepSelection(), and WideStringFromFPDFWideString().
Referenced by CheckPDFiumCApi().
FPDF_EXPORT void FPDF_CALLCONV FORM_ReplaceSelection | ( | FPDF_FORMHANDLE | hHandle, |
FPDF_PAGE | page, | ||
FPDF_WIDESTRING | wsText ) |
Definition at line 553 of file fpdf_formfill.cpp.
References CPDFSDK_PageView::ReplaceSelection(), and WideStringFromFPDFWideString().
Referenced by CheckPDFiumCApi().
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FORM_SelectAllText | ( | FPDF_FORMHANDLE | hHandle, |
FPDF_PAGE | page ) |
Definition at line 563 of file fpdf_formfill.cpp.
References CPDFSDK_PageView::SelectAllText().
Referenced by CheckPDFiumCApi(), and TEST_F().
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FORM_SetFocusedAnnot | ( | FPDF_FORMHANDLE | handle, |
FPDF_ANNOTATION | annot ) |
Definition at line 655 of file fpdf_formfill.cpp.
References CPDFAnnotContextFromFPDFAnnotation(), CPDFSDKFormFillEnvironmentFromFPDFFormHandle(), CPDFSDK_FormFillEnvironment::GetOrCreatePageView(), CPDF_AnnotContext::GetPage(), CPDFSDK_PageView::IsValid(), and CPDFSDK_FormFillEnvironment::SetFocusAnnot().
Referenced by CheckPDFiumCApi(), and TEST_F().
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FORM_SetIndexSelected | ( | FPDF_FORMHANDLE | hHandle, |
FPDF_PAGE | page, | ||
int | index, | ||
FPDF_BOOL | selected ) |
Definition at line 824 of file fpdf_formfill.cpp.
References CPDFSDK_PageView::SetIndexSelected().
Referenced by CheckPDFiumCApi(), and TEST_F().
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FORM_Undo | ( | FPDF_FORMHANDLE | hHandle, |
FPDF_PAGE | page ) |
Definition at line 585 of file fpdf_formfill.cpp.
References CPDFSDK_PageView::Undo().
Referenced by CheckPDFiumCApi().
FPDF_EXPORT void FPDF_CALLCONV FPDF_FFLDraw | ( | FPDF_FORMHANDLE | hHandle, |
FPDF_BITMAP | bitmap, | ||
FPDF_PAGE | page, | ||
int | start_x, | ||
int | start_y, | ||
int | size_x, | ||
int | size_y, | ||
int | rotate, | ||
int | flags ) |
Definition at line 679 of file fpdf_formfill.cpp.
Referenced by CheckPDFiumCApi().
FPDF_EXPORT void FPDF_CALLCONV FPDF_RemoveFormFieldHighlight | ( | FPDF_FORMHANDLE | hHandle | ) |
Definition at line 735 of file fpdf_formfill.cpp.
References FormHandleToInteractiveForm(), and CPDFSDK_InteractiveForm::RemoveAllHighLights().
Referenced by CheckPDFiumCApi().
FPDF_EXPORT void FPDF_CALLCONV FPDF_SetFormFieldHighlightAlpha | ( | FPDF_FORMHANDLE | hHandle, |
unsigned char | alpha ) |
Definition at line 729 of file fpdf_formfill.cpp.
References FormHandleToInteractiveForm(), and CPDFSDK_InteractiveForm::SetHighlightAlpha().
Referenced by CheckPDFiumCApi(), and EmbedderTest::SetInitialFormFieldHighlight().
FPDF_EXPORT void FPDF_CALLCONV FPDF_SetFormFieldHighlightColor | ( | FPDF_FORMHANDLE | hHandle, |
int | fieldType, | ||
unsigned long | color ) |
Definition at line 708 of file fpdf_formfill.cpp.
References FormHandleToInteractiveForm(), and CPDFSDK_InteractiveForm::SetAllHighlightColors().
Referenced by CheckPDFiumCApi(), and EmbedderTest::SetInitialFormFieldHighlight().
FPDF_EXPORT void FPDF_CALLCONV FPDFDOC_ExitFormFillEnvironment | ( | FPDF_FORMHANDLE | hHandle | ) |
Definition at line 344 of file fpdf_formfill.cpp.
Referenced by CheckPDFiumCApi(), main(), and FPDFFormHandleDeleter::operator()().
FPDF_EXPORT FPDF_FORMHANDLE FPDF_CALLCONV FPDFDOC_InitFormFillEnvironment | ( | FPDF_DOCUMENT | document, |
FPDF_FORMFILLINFO * | formInfo ) |
Definition at line 302 of file fpdf_formfill.cpp.
References CPDFDocumentFromFPDFDocument(), and ReportUnsupportedXFA().
Referenced by CheckPDFiumCApi(), main(), and EmbedderTest::SetupFormFillEnvironment().
FPDF_EXPORT int FPDF_CALLCONV FPDFPage_FormFieldZOrderAtPoint | ( | FPDF_FORMHANDLE | hHandle, |
FPDF_PAGE | page, | ||
double | page_x, | ||
double | page_y ) |
Definition at line 281 of file fpdf_formfill.cpp.
References CPDFPageFromFPDFPage(), FormHandleToInteractiveForm(), CPDF_InteractiveForm::GetControlAtPoint(), and CPDFSDK_InteractiveForm::GetInteractiveForm().
Referenced by CheckPDFiumCApi().
FPDF_EXPORT int FPDF_CALLCONV FPDFPage_HasFormFieldAtPoint | ( | FPDF_FORMHANDLE | hHandle, |
FPDF_PAGE | page, | ||
double | page_x, | ||
double | page_y ) |
Definition at line 248 of file fpdf_formfill.cpp.
References CPDFPageFromFPDFPage(), FormHandleToInteractiveForm(), CPDF_InteractiveForm::GetControlAtPoint(), CPDF_FormControl::GetField(), CPDF_FormField::GetFieldType(), and CPDFSDK_InteractiveForm::GetInteractiveForm().
Referenced by CheckPDFiumCApi().