Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
CPWLEditEmbedderTest Class Reference
+ Inheritance diagram for CPWLEditEmbedderTest:
+ Collaboration diagram for CPWLEditEmbedderTest:

Protected Member Functions

void SetUp () override
 
void TearDown () override
 
void CreateAndInitializeFormPDF ()
 
void FormFillerAndWindowSetup (CPDFSDK_Widget *pAnnotTextField)
 
void TypeTextIntoTextField (int num_chars)
 
FPDF_PAGE GetPage ()
 
CPWL_EditGetCPWLEdit ()
 
CFFL_FormFieldGetCFFLFormFiller ()
 
CPDFSDK_WidgetGetCPDFSDKAnnot ()
 
CPDFSDK_WidgetGetCPDFSDKAnnotCharLimit ()
 
void SetUp () override
 
void TearDown () override
 
void CreateAndInitializeFormPDF ()
 
void FormFillerAndWindowSetup (CPDFSDK_Widget *pAnnotTextField)
 
void TypeTextIntoTextField (int num_chars)
 
FPDF_PAGE GetPage ()
 
CPWL_EditGetCPWLEdit ()
 
CFFL_FormFieldGetCFFLFormFiller ()
 
CPDFSDK_WidgetGetCPDFSDKAnnot ()
 
CPDFSDK_WidgetGetCPDFSDKAnnotCharLimit ()
 
- Protected Member Functions inherited from EmbedderTest
bool OpenDocumentHelper (const char *password, LinearizeOption linearize_option, JavaScriptOption javascript_option, FakeFileAccess *network_simulator, ScopedFPDFDocument *document, ScopedFPDFAvail *avail, ScopedFPDFFormHandle *form_handle)
 
FPDF_FORMHANDLE SetupFormFillEnvironment (FPDF_DOCUMENT doc, JavaScriptOption javascript_option)
 
void ClearString ()
 
const std::string & GetString () const
 
FPDF_DOCUMENT OpenSavedDocument ()
 
FPDF_DOCUMENT OpenSavedDocumentWithPassword (const char *password)
 
void CloseSavedDocument ()
 
FPDF_PAGE LoadSavedPage (int page_number)
 
void CloseSavedPage (FPDF_PAGE page)
 
void VerifySavedRendering (FPDF_PAGE page, int width, int height, const char *md5)
 
void VerifySavedDocument (int width, int height, const char *md5)
 
void SetWholeFileAvailable ()
 
void OpenPDFFileForWrite (const std::string &filename)
 
void ClosePDFFileForWrite ()
 

Additional Inherited Members

- Public Types inherited from EmbedderTest
enum class  LinearizeOption { kDefaultLinearize , kMustLinearize }
 
enum class  JavaScriptOption { kDisableJavaScript , kEnableJavaScript }
 
- Public Member Functions inherited from EmbedderTest
 EmbedderTest ()
 
virtual ~EmbedderTest ()
 
void SetUp () override
 
void TearDown () override
 
DelegateGetDelegate ()
 
void SetDelegate (Delegate *delegate)
 
void SetFormFillInfoVersion (int form_fill_info_version)
 
void SetDocumentFromAvail ()
 
FPDF_DOCUMENT document () const
 
FPDF_DOCUMENT saved_document () const
 
FPDF_FORMHANDLE form_handle () const
 
FPDF_FORMHANDLE saved_form_handle () const
 
void CreateAvail (FX_FILEAVAIL *file_avail, FPDF_FILEACCESS *file)
 
FPDF_AVAIL avail ()
 
void CreateEmptyDocument ()
 
void CreateEmptyDocumentWithoutFormFillEnvironment ()
 
virtual bool OpenDocumentWithOptions (const std::string &filename, const char *password, LinearizeOption linearize_option, JavaScriptOption javascript_option)
 
bool OpenDocument (const std::string &filename)
 
bool OpenDocumentLinearized (const std::string &filename)
 
bool OpenDocumentWithPassword (const std::string &filename, const char *password)
 
bool OpenDocumentWithoutJavaScript (const std::string &filename)
 
void CloseDocument ()
 
void DoOpenActions ()
 
int GetFirstPageNum ()
 
int GetPageCount ()
 
FPDF_PAGE LoadPage (int page_number)
 
FPDF_PAGE LoadPageNoEvents (int page_number)
 
void UnloadPage (FPDF_PAGE page)
 
void UnloadPageNoEvents (FPDF_PAGE page)
 
void SetInitialFormFieldHighlight (FPDF_FORMHANDLE form)
 
ScopedFPDFBitmap RenderLoadedPage (FPDF_PAGE page)
 
ScopedFPDFBitmap RenderLoadedPageWithFlags (FPDF_PAGE page, int flags)
 
ScopedFPDFBitmap RenderSavedPage (FPDF_PAGE page)
 
ScopedFPDFBitmap RenderSavedPageWithFlags (FPDF_PAGE page, int flags)
 
- Static Public Member Functions inherited from EmbedderTest
static ScopedFPDFBitmap RenderPageWithFlags (FPDF_PAGE page, FPDF_FORMHANDLE handle, int flags)
 
static ScopedFPDFBitmap RenderPage (FPDF_PAGE page)
 
static int BytesPerPixelForFormat (int format)
 
- Public Attributes inherited from _UNSUPPORT_INFO
int version
 
void(* FSDK_UnSupport_Handler )(struct _UNSUPPORT_INFO *pThis, int nType)
 
- Public Attributes inherited from _IPDF_JsPlatform
int version
 
int(* app_alert )(struct _IPDF_JsPlatform *pThis, FPDF_WIDESTRING Msg, FPDF_WIDESTRING Title, int Type, int Icon)
 
void(* app_beep )(struct _IPDF_JsPlatform *pThis, int nType)
 
int(* app_response )(struct _IPDF_JsPlatform *pThis, FPDF_WIDESTRING Question, FPDF_WIDESTRING Title, FPDF_WIDESTRING Default, FPDF_WIDESTRING cLabel, FPDF_BOOL bPassword, void *response, int length)
 
int(* Doc_getFilePath )(struct _IPDF_JsPlatform *pThis, void *filePath, int length)
 
void(* Doc_mail )(struct _IPDF_JsPlatform *pThis, void *mailData, int length, FPDF_BOOL bUI, FPDF_WIDESTRING To, FPDF_WIDESTRING Subject, FPDF_WIDESTRING CC, FPDF_WIDESTRING BCC, FPDF_WIDESTRING Msg)
 
void(* Doc_print )(struct _IPDF_JsPlatform *pThis, FPDF_BOOL bUI, int nStart, int nEnd, FPDF_BOOL bSilent, FPDF_BOOL bShrinkToFit, FPDF_BOOL bPrintAsImage, FPDF_BOOL bReverse, FPDF_BOOL bAnnotations)
 
void(* Doc_submitForm )(struct _IPDF_JsPlatform *pThis, void *formData, int length, FPDF_WIDESTRING URL)
 
void(* Doc_gotoPage )(struct _IPDF_JsPlatform *pThis, int nPageNum)
 
int(* Field_browse )(struct _IPDF_JsPlatform *pThis, void *filePath, int length)
 
voidm_pFormfillinfo
 
voidm_isolate
 
unsigned int m_v8EmbedderSlot
 
- Public Attributes inherited from _FPDF_FORMFILLINFO
int version
 
void(* Release )(struct _FPDF_FORMFILLINFO *pThis)
 
void(* FFI_Invalidate )(struct _FPDF_FORMFILLINFO *pThis, FPDF_PAGE page, double left, double top, double right, double bottom)
 
void(* FFI_OutputSelectedRect )(struct _FPDF_FORMFILLINFO *pThis, FPDF_PAGE page, double left, double top, double right, double bottom)
 
void(* FFI_SetCursor )(struct _FPDF_FORMFILLINFO *pThis, int nCursorType)
 
int(* FFI_SetTimer )(struct _FPDF_FORMFILLINFO *pThis, int uElapse, TimerCallback lpTimerFunc)
 
void(* FFI_KillTimer )(struct _FPDF_FORMFILLINFO *pThis, int nTimerID)
 
FPDF_SYSTEMTIME(* FFI_GetLocalTime )(struct _FPDF_FORMFILLINFO *pThis)
 
void(* FFI_OnChange )(struct _FPDF_FORMFILLINFO *pThis)
 
FPDF_PAGE(* FFI_GetPage )(struct _FPDF_FORMFILLINFO *pThis, FPDF_DOCUMENT document, int nPageIndex)
 
FPDF_PAGE(* FFI_GetCurrentPage )(struct _FPDF_FORMFILLINFO *pThis, FPDF_DOCUMENT document)
 
int(* FFI_GetRotation )(struct _FPDF_FORMFILLINFO *pThis, FPDF_PAGE page)
 
void(* FFI_ExecuteNamedAction )(struct _FPDF_FORMFILLINFO *pThis, FPDF_BYTESTRING namedAction)
 
void(* FFI_SetTextFieldFocus )(struct _FPDF_FORMFILLINFO *pThis, FPDF_WIDESTRING value, FPDF_DWORD valueLen, FPDF_BOOL is_focus)
 
void(* FFI_DoURIAction )(struct _FPDF_FORMFILLINFO *pThis, FPDF_BYTESTRING bsURI)
 
void(* FFI_DoGoToAction )(struct _FPDF_FORMFILLINFO *pThis, int nPageIndex, int zoomMode, float *fPosArray, int sizeofArray)
 
IPDF_JSPLATFORMm_pJsPlatform
 
FPDF_BOOL xfa_disabled
 
void(* FFI_DisplayCaret )(struct _FPDF_FORMFILLINFO *pThis, FPDF_PAGE page, FPDF_BOOL bVisible, double left, double top, double right, double bottom)
 
int(* FFI_GetCurrentPageIndex )(struct _FPDF_FORMFILLINFO *pThis, FPDF_DOCUMENT document)
 
void(* FFI_SetCurrentPage )(struct _FPDF_FORMFILLINFO *pThis, FPDF_DOCUMENT document, int iCurPage)
 
void(* FFI_GotoURL )(struct _FPDF_FORMFILLINFO *pThis, FPDF_DOCUMENT document, FPDF_WIDESTRING wsURL)
 
void(* FFI_GetPageViewRect )(struct _FPDF_FORMFILLINFO *pThis, FPDF_PAGE page, double *left, double *top, double *right, double *bottom)
 
void(* FFI_PageEvent )(struct _FPDF_FORMFILLINFO *pThis, int page_count, FPDF_DWORD event_type)
 
FPDF_BOOL(* FFI_PopupMenu )(struct _FPDF_FORMFILLINFO *pThis, FPDF_PAGE page, FPDF_WIDGET hWidget, int menuFlag, float x, float y)
 
FPDF_FILEHANDLER *(* FFI_OpenFile )(struct _FPDF_FORMFILLINFO *pThis, int fileFlag, FPDF_WIDESTRING wsURL, const char *mode)
 
void(* FFI_EmailTo )(struct _FPDF_FORMFILLINFO *pThis, FPDF_FILEHANDLER *fileHandler, FPDF_WIDESTRING pTo, FPDF_WIDESTRING pSubject, FPDF_WIDESTRING pCC, FPDF_WIDESTRING pBcc, FPDF_WIDESTRING pMsg)
 
void(* FFI_UploadTo )(struct _FPDF_FORMFILLINFO *pThis, FPDF_FILEHANDLER *fileHandler, int fileFlag, FPDF_WIDESTRING uploadTo)
 
int(* FFI_GetPlatform )(struct _FPDF_FORMFILLINFO *pThis, void *platform, int length)
 
int(* FFI_GetLanguage )(struct _FPDF_FORMFILLINFO *pThis, void *language, int length)
 
FPDF_FILEHANDLER *(* FFI_DownloadFromURL )(struct _FPDF_FORMFILLINFO *pThis, FPDF_WIDESTRING URL)
 
FPDF_BOOL(* FFI_PostRequestURL )(struct _FPDF_FORMFILLINFO *pThis, FPDF_WIDESTRING wsURL, FPDF_WIDESTRING wsData, FPDF_WIDESTRING wsContentType, FPDF_WIDESTRING wsEncode, FPDF_WIDESTRING wsHeader, FPDF_BSTR *response)
 
FPDF_BOOL(* FFI_PutRequestURL )(struct _FPDF_FORMFILLINFO *pThis, FPDF_WIDESTRING wsURL, FPDF_WIDESTRING wsData, FPDF_WIDESTRING wsEncode)
 
void(* FFI_OnFocusChange )(struct _FPDF_FORMFILLINFO *param, FPDF_ANNOTATION annot, int page_index)
 
void(* FFI_DoURIActionWithKeyboardModifier )(struct _FPDF_FORMFILLINFO *param, FPDF_BYTESTRING uri, int modifiers)
 
- Public Attributes inherited from FPDF_FILEWRITE_
int version
 
int(* WriteBlock )(struct FPDF_FILEWRITE_ *pThis, const void *pData, unsigned long size)
 
- Protected Types inherited from EmbedderTest
using PageNumberToHandleMap = std::map<int, FPDF_PAGE>
 
- Static Protected Member Functions inherited from EmbedderTest
static std::string HashBitmap (FPDF_BITMAP bitmap)
 
static void WriteBitmapToPng (FPDF_BITMAP bitmap, const std::string &filename)
 
static void CompareBitmap (FPDF_BITMAP bitmap, int expected_width, int expected_height, const char *expected_md5sum)
 
static int GetBlockFromString (void *param, unsigned long pos, unsigned char *buf, unsigned long size)
 

Detailed Description

Definition at line 19 of file cpwl_edit_embeddertest.cpp.

Member Function Documentation

◆ CreateAndInitializeFormPDF() [1/2]

void CPWLEditEmbedderTest::CreateAndInitializeFormPDF ( )
inlineprotected

Definition at line 31 of file cpwl_edit_embeddertest.cpp.

References EmbedderTest::form_handle(), CPDFSDK_Annot::GetAnnotSubtype(), CPDFSDK_AnnotIterator::GetFirstAnnot(), CPDFSDK_AnnotIterator::GetLastAnnot(), CPDFSDK_AnnotIterator::GetNextAnnot(), CPDFSDK_FormFillEnvironment::GetPageViewAtIndex(), EmbedderTest::LoadPage(), ToCPDFSDKWidget(), and CPDF_Annot::WIDGET.

Referenced by SetUp().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CreateAndInitializeFormPDF() [2/2]

void CPWLEditEmbedderTest::CreateAndInitializeFormPDF ( )
inlineprotected

Definition at line 31 of file cpwl_edit_embeddertest.cpp.

◆ FormFillerAndWindowSetup() [1/2]

void CPWLEditEmbedderTest::FormFillerAndWindowSetup ( CPDFSDK_Widget * pAnnotTextField)
inlineprotected

Definition at line 60 of file cpwl_edit_embeddertest.cpp.

References CFFL_InteractiveFormFiller::GetFormFieldForTesting(), CPDFSDK_FormFillEnvironment::GetInteractiveFormFiller(), CPDFSDK_FormFillEnvironment::GetPageViewAtIndex(), CFFL_FormField::GetPWLWindow(), and CFFL_InteractiveFormFiller::OnSetFocus().

+ Here is the call graph for this function:

◆ FormFillerAndWindowSetup() [2/2]

void CPWLEditEmbedderTest::FormFillerAndWindowSetup ( CPDFSDK_Widget * pAnnotTextField)
inlineprotected

Definition at line 60 of file cpwl_edit_embeddertest.cpp.

◆ GetCFFLFormFiller() [1/2]

CFFL_FormField * CPWLEditEmbedderTest::GetCFFLFormFiller ( )
inlineprotected

Definition at line 87 of file cpwl_edit_embeddertest.cpp.

Referenced by TypeTextIntoTextField().

+ Here is the caller graph for this function:

◆ GetCFFLFormFiller() [2/2]

CFFL_FormField * CPWLEditEmbedderTest::GetCFFLFormFiller ( )
inlineprotected

Definition at line 87 of file cpwl_edit_embeddertest.cpp.

◆ GetCPDFSDKAnnot() [1/2]

CPDFSDK_Widget * CPWLEditEmbedderTest::GetCPDFSDKAnnot ( )
inlineprotected

Definition at line 88 of file cpwl_edit_embeddertest.cpp.

Referenced by TypeTextIntoTextField().

+ Here is the caller graph for this function:

◆ GetCPDFSDKAnnot() [2/2]

CPDFSDK_Widget * CPWLEditEmbedderTest::GetCPDFSDKAnnot ( )
inlineprotected

Definition at line 88 of file cpwl_edit_embeddertest.cpp.

◆ GetCPDFSDKAnnotCharLimit() [1/2]

CPDFSDK_Widget * CPWLEditEmbedderTest::GetCPDFSDKAnnotCharLimit ( )
inlineprotected

Definition at line 89 of file cpwl_edit_embeddertest.cpp.

◆ GetCPDFSDKAnnotCharLimit() [2/2]

CPDFSDK_Widget * CPWLEditEmbedderTest::GetCPDFSDKAnnotCharLimit ( )
inlineprotected

Definition at line 89 of file cpwl_edit_embeddertest.cpp.

◆ GetCPWLEdit() [1/2]

CPWL_Edit * CPWLEditEmbedderTest::GetCPWLEdit ( )
inlineprotected

Definition at line 86 of file cpwl_edit_embeddertest.cpp.

◆ GetCPWLEdit() [2/2]

CPWL_Edit * CPWLEditEmbedderTest::GetCPWLEdit ( )
inlineprotected

Definition at line 86 of file cpwl_edit_embeddertest.cpp.

◆ GetPage() [1/2]

FPDF_PAGE CPWLEditEmbedderTest::GetPage ( )
inlineprotected

Definition at line 85 of file cpwl_edit_embeddertest.cpp.

Referenced by TearDown().

+ Here is the caller graph for this function:

◆ GetPage() [2/2]

FPDF_PAGE CPWLEditEmbedderTest::GetPage ( )
inlineprotected

Definition at line 85 of file cpwl_edit_embeddertest.cpp.

◆ SetUp() [1/2]

void CPWLEditEmbedderTest::SetUp ( )
inlineoverrideprotected

Definition at line 21 of file cpwl_edit_embeddertest.cpp.

References CreateAndInitializeFormPDF(), and EmbedderTest::SetUp().

+ Here is the call graph for this function:

◆ SetUp() [2/2]

void CPWLEditEmbedderTest::SetUp ( )
inlineoverrideprotected

Definition at line 21 of file cpwl_edit_embeddertest.cpp.

◆ TearDown() [1/2]

void CPWLEditEmbedderTest::TearDown ( )
inlineoverrideprotected

Definition at line 26 of file cpwl_edit_embeddertest.cpp.

References GetPage(), EmbedderTest::TearDown(), and EmbedderTest::UnloadPage().

+ Here is the call graph for this function:

◆ TearDown() [2/2]

void CPWLEditEmbedderTest::TearDown ( )
inlineoverrideprotected

Definition at line 26 of file cpwl_edit_embeddertest.cpp.

◆ TypeTextIntoTextField() [1/2]

void CPWLEditEmbedderTest::TypeTextIntoTextField ( int num_chars)
inlineprotected

Definition at line 78 of file cpwl_edit_embeddertest.cpp.

References GetCFFLFormFiller(), GetCPDFSDKAnnot(), and CFFL_FormField::OnChar().

+ Here is the call graph for this function:

◆ TypeTextIntoTextField() [2/2]

void CPWLEditEmbedderTest::TypeTextIntoTextField ( int num_chars)
inlineprotected

Definition at line 78 of file cpwl_edit_embeddertest.cpp.


The documentation for this class was generated from the following file: