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
CPWLComboBoxEmbedderTest Class Reference

#include <cpwl_combo_box_embeddertest.h>

+ Inheritance diagram for CPWLComboBoxEmbedderTest:
+ Collaboration diagram for CPWLComboBoxEmbedderTest:

Protected Member Functions

void SetUp () override
 
void TearDown () override
 
void CreateAndInitializeFormComboboxPDF ()
 
void FormFillerAndWindowSetup (CPDFSDK_Widget *pAnnotCombobox)
 
void TypeTextIntoTextField (int num_chars)
 
FPDF_PAGE GetPage () const
 
CPWL_ComboBoxGetCPWLComboBox () const
 
CFFL_FormFieldGetCFFLFormField () const
 
CPDFSDK_WidgetGetCPDFSDKAnnotNormal () const
 
CPDFSDK_WidgetGetCPDFSDKAnnotUserEditable () const
 
CPDFSDK_FormFillEnvironmentGetCPDFSDKFormFillEnv () const
 
CPDFSDK_PageViewGetPageView () const
 
- 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 18 of file cpwl_combo_box_embeddertest.h.

Member Function Documentation

◆ CreateAndInitializeFormComboboxPDF()

void CPWLComboBoxEmbedderTest::CreateAndInitializeFormComboboxPDF ( )
protected

Definition at line 28 of file cpwl_combo_box_embeddertest.cpp.

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

Referenced by SetUp().

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

◆ FormFillerAndWindowSetup()

void CPWLComboBoxEmbedderTest::FormFillerAndWindowSetup ( CPDFSDK_Widget * pAnnotCombobox)
protected

Definition at line 51 of file cpwl_combo_box_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:

◆ GetCFFLFormField()

CFFL_FormField * CPWLComboBoxEmbedderTest::GetCFFLFormField ( ) const
inlineprotected

Definition at line 28 of file cpwl_combo_box_embeddertest.h.

Referenced by TypeTextIntoTextField().

+ Here is the caller graph for this function:

◆ GetCPDFSDKAnnotNormal()

CPDFSDK_Widget * CPWLComboBoxEmbedderTest::GetCPDFSDKAnnotNormal ( ) const
inlineprotected

Definition at line 29 of file cpwl_combo_box_embeddertest.h.

◆ GetCPDFSDKAnnotUserEditable()

CPDFSDK_Widget * CPWLComboBoxEmbedderTest::GetCPDFSDKAnnotUserEditable ( ) const
inlineprotected

Definition at line 30 of file cpwl_combo_box_embeddertest.h.

Referenced by TypeTextIntoTextField().

+ Here is the caller graph for this function:

◆ GetCPDFSDKFormFillEnv()

CPDFSDK_FormFillEnvironment * CPWLComboBoxEmbedderTest::GetCPDFSDKFormFillEnv ( ) const
inlineprotected

Definition at line 33 of file cpwl_combo_box_embeddertest.h.

◆ GetCPWLComboBox()

CPWL_ComboBox * CPWLComboBoxEmbedderTest::GetCPWLComboBox ( ) const
inlineprotected

Definition at line 27 of file cpwl_combo_box_embeddertest.h.

◆ GetPage()

FPDF_PAGE CPWLComboBoxEmbedderTest::GetPage ( ) const
inlineprotected

Definition at line 26 of file cpwl_combo_box_embeddertest.h.

Referenced by TearDown().

+ Here is the caller graph for this function:

◆ GetPageView()

CPDFSDK_PageView * CPWLComboBoxEmbedderTest::GetPageView ( ) const
inlineprotected

Definition at line 36 of file cpwl_combo_box_embeddertest.h.

◆ SetUp()

void CPWLComboBoxEmbedderTest::SetUp ( )
overrideprotected

Definition at line 18 of file cpwl_combo_box_embeddertest.cpp.

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

+ Here is the call graph for this function:

◆ TearDown()

void CPWLComboBoxEmbedderTest::TearDown ( )
overrideprotected

Definition at line 23 of file cpwl_combo_box_embeddertest.cpp.

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

+ Here is the call graph for this function:

◆ TypeTextIntoTextField()

void CPWLComboBoxEmbedderTest::TypeTextIntoTextField ( int num_chars)
protected

Definition at line 69 of file cpwl_combo_box_embeddertest.cpp.

References GetCFFLFormField(), GetCPDFSDKAnnotUserEditable(), and CFFL_FormField::OnChar().

+ Here is the call graph for this function:

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