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

#include <cpdf_interactiveform.h>

+ Collaboration diagram for CPDF_InteractiveForm:

Classes

class  NotifierIface
 

Public Member Functions

 CPDF_InteractiveForm (CPDF_Document *pDocument)
 
 ~CPDF_InteractiveForm ()
 
size_t CountFields (const WideString &csFieldName) const
 
CPDF_FormFieldGetField (size_t index, const WideString &csFieldName) const
 
CPDF_FormFieldGetFieldByDict (const CPDF_Dictionary *pFieldDict) const
 
const CPDF_FormControlGetControlAtPoint (const CPDF_Page *pPage, const CFX_PointF &point, int *z_order) const
 
CPDF_FormControlGetControlByDict (const CPDF_Dictionary *pWidgetDict) const
 
bool NeedConstructAP () const
 
int CountFieldsInCalculationOrder ()
 
CPDF_FormFieldGetFieldInCalculationOrder (int index)
 
int FindFieldInCalculationOrder (const CPDF_FormField *pField)
 
RetainPtr< CPDF_FontGetFormFont (ByteString csNameTag) const
 
RetainPtr< CPDF_FontGetFontForElement (RetainPtr< CPDF_Dictionary > pElement) const
 
CPDF_DefaultAppearance GetDefaultAppearance () const
 
int GetFormAlignment () const
 
bool CheckRequiredFields (const std::vector< CPDF_FormField * > *fields, bool bIncludeOrExclude) const
 
std::unique_ptr< CFDF_DocumentExportToFDF (const WideString &pdf_path) const
 
std::unique_ptr< CFDF_DocumentExportToFDF (const WideString &pdf_path, const std::vector< CPDF_FormField * > &fields, bool bIncludeOrExclude) const
 
void ResetForm ()
 
void ResetForm (pdfium::span< CPDF_FormField * > fields, bool bIncludeOrExclude)
 
void SetNotifierIface (NotifierIface *pNotify)
 
void FixPageFields (CPDF_Page *pPage)
 
bool NotifyBeforeValueChange (CPDF_FormField *pField, const WideString &csValue)
 
void NotifyAfterValueChange (CPDF_FormField *pField)
 
bool NotifyBeforeSelectionChange (CPDF_FormField *pField, const WideString &csValue)
 
void NotifyAfterSelectionChange (CPDF_FormField *pField)
 
void NotifyAfterCheckedStatusChange (CPDF_FormField *pField)
 
const std::vector< UnownedPtr< CPDF_FormControl > > & GetControlsForField (const CPDF_FormField *pField)
 

Static Public Member Functions

static bool IsUpdateAPEnabled ()
 
static void SetUpdateAP (bool bUpdateAP)
 
static RetainPtr< CPDF_FontAddNativeInteractiveFormFont (CPDF_Document *pDocument, ByteString *csNameTag)
 

Detailed Description

Definition at line 35 of file cpdf_interactiveform.h.

Constructor & Destructor Documentation

◆ CPDF_InteractiveForm()

CPDF_InteractiveForm::CPDF_InteractiveForm ( CPDF_Document * pDocument)
explicit

Definition at line 530 of file cpdf_interactiveform.cpp.

References CPDF_InteractiveForm().

Referenced by CPDF_InteractiveForm().

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

◆ ~CPDF_InteractiveForm()

CPDF_InteractiveForm::~CPDF_InteractiveForm ( )
default

Member Function Documentation

◆ AddNativeInteractiveFormFont()

RetainPtr< CPDF_Font > CPDF_InteractiveForm::AddNativeInteractiveFormFont ( CPDF_Document * pDocument,
ByteString * csNameTag )
static

Definition at line 563 of file cpdf_interactiveform.cpp.

◆ CheckRequiredFields()

bool CPDF_InteractiveForm::CheckRequiredFields ( const std::vector< CPDF_FormField * > * fields,
bool bIncludeOrExclude ) const

Definition at line 889 of file cpdf_interactiveform.cpp.

References CPDF_FormField::GetType(), CPDF_FormField::IsNoExport(), CPDF_FormField::IsRequired(), CPDF_FormField::kCheckBox, CPDF_FormField::kListBox, CPDF_FormField::kPushButton, and pdfium::form_fields::kV.

+ Here is the call graph for this function:

◆ CountFields()

size_t CPDF_InteractiveForm::CountFields ( const WideString & csFieldName) const

Definition at line 594 of file cpdf_interactiveform.cpp.

◆ CountFieldsInCalculationOrder()

int CPDF_InteractiveForm::CountFieldsInCalculationOrder ( )

Definition at line 661 of file cpdf_interactiveform.cpp.

◆ ExportToFDF() [1/2]

std::unique_ptr< CFDF_Document > CPDF_InteractiveForm::ExportToFDF ( const WideString & pdf_path) const

Definition at line 922 of file cpdf_interactiveform.cpp.

◆ ExportToFDF() [2/2]

std::unique_ptr< CFDF_Document > CPDF_InteractiveForm::ExportToFDF ( const WideString & pdf_path,
const std::vector< CPDF_FormField * > & fields,
bool bIncludeOrExclude ) const

◆ FindFieldInCalculationOrder()

int CPDF_InteractiveForm::FindFieldInCalculationOrder ( const CPDF_FormField * pField)

Definition at line 682 of file cpdf_interactiveform.cpp.

◆ FixPageFields()

void CPDF_InteractiveForm::FixPageFields ( CPDF_Page * pPage)

Definition at line 791 of file cpdf_interactiveform.cpp.

Referenced by CPDFSDK_PageView::CPDFSDK_PageView().

+ Here is the caller graph for this function:

◆ GetControlAtPoint()

const CPDF_FormControl * CPDF_InteractiveForm::GetControlAtPoint ( const CPDF_Page * pPage,
const CFX_PointF & point,
int * z_order ) const

Definition at line 621 of file cpdf_interactiveform.cpp.

References CFX_FloatRect::Contains(), and CPDF_FormControl::GetRect().

Referenced by FPDFAnnot_GetFormFieldAtPoint(), FPDFPage_FormFieldZOrderAtPoint(), and FPDFPage_HasFormFieldAtPoint().

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

◆ GetControlByDict()

CPDF_FormControl * CPDF_InteractiveForm::GetControlByDict ( const CPDF_Dictionary * pWidgetDict) const

Definition at line 651 of file cpdf_interactiveform.cpp.

Referenced by FPDFAnnot_GetFontSize(), FPDFAnnot_GetFormControlIndex(), and CPDFSDK_Widget::GetFormControl().

+ Here is the caller graph for this function:

◆ GetControlsForField()

const std::vector< UnownedPtr< CPDF_FormControl > > & CPDF_InteractiveForm::GetControlsForField ( const CPDF_FormField * pField)

Definition at line 756 of file cpdf_interactiveform.cpp.

◆ GetDefaultAppearance()

CPDF_DefaultAppearance CPDF_InteractiveForm::GetDefaultAppearance ( ) const

Definition at line 725 of file cpdf_interactiveform.cpp.

References CPDF_DefaultAppearance::CPDF_DefaultAppearance().

+ Here is the call graph for this function:

◆ GetField()

CPDF_FormField * CPDF_InteractiveForm::GetField ( size_t index,
const WideString & csFieldName ) const

Definition at line 602 of file cpdf_interactiveform.cpp.

◆ GetFieldByDict()

CPDF_FormField * CPDF_InteractiveForm::GetFieldByDict ( const CPDF_Dictionary * pFieldDict) const

Definition at line 612 of file cpdf_interactiveform.cpp.

References CPDF_FormField::GetFullNameForDict().

Referenced by FPDFAnnot_GetFormControlIndex(), and GetFieldInCalculationOrder().

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

◆ GetFieldInCalculationOrder()

CPDF_FormField * CPDF_InteractiveForm::GetFieldInCalculationOrder ( int index)

Definition at line 669 of file cpdf_interactiveform.cpp.

References GetFieldByDict().

+ Here is the call graph for this function:

◆ GetFontForElement()

RetainPtr< CPDF_Font > CPDF_InteractiveForm::GetFontForElement ( RetainPtr< CPDF_Dictionary > pElement) const

Definition at line 719 of file cpdf_interactiveform.cpp.

Referenced by GetFormFont().

+ Here is the caller graph for this function:

◆ GetFormAlignment()

int CPDF_InteractiveForm::GetFormAlignment ( ) const

Definition at line 731 of file cpdf_interactiveform.cpp.

◆ GetFormFont()

RetainPtr< CPDF_Font > CPDF_InteractiveForm::GetFormFont ( ByteString csNameTag) const

Definition at line 698 of file cpdf_interactiveform.cpp.

References GetFontForElement().

+ Here is the call graph for this function:

◆ IsUpdateAPEnabled()

bool CPDF_InteractiveForm::IsUpdateAPEnabled ( )
static

Definition at line 553 of file cpdf_interactiveform.cpp.

Referenced by CPDF_AnnotList::CPDF_AnnotList(), and CPDFSDK_PageView::LoadFXAnnots().

+ Here is the caller graph for this function:

◆ NeedConstructAP()

bool CPDF_InteractiveForm::NeedConstructAP ( ) const

Definition at line 657 of file cpdf_interactiveform.cpp.

◆ NotifyAfterCheckedStatusChange()

void CPDF_InteractiveForm::NotifyAfterCheckedStatusChange ( CPDF_FormField * pField)

Definition at line 1027 of file cpdf_interactiveform.cpp.

◆ NotifyAfterSelectionChange()

void CPDF_InteractiveForm::NotifyAfterSelectionChange ( CPDF_FormField * pField)

Definition at line 1022 of file cpdf_interactiveform.cpp.

◆ NotifyAfterValueChange()

void CPDF_InteractiveForm::NotifyAfterValueChange ( CPDF_FormField * pField)

Definition at line 1010 of file cpdf_interactiveform.cpp.

◆ NotifyBeforeSelectionChange()

bool CPDF_InteractiveForm::NotifyBeforeSelectionChange ( CPDF_FormField * pField,
const WideString & csValue )

Definition at line 1015 of file cpdf_interactiveform.cpp.

◆ NotifyBeforeValueChange()

bool CPDF_InteractiveForm::NotifyBeforeValueChange ( CPDF_FormField * pField,
const WideString & csValue )

Definition at line 1005 of file cpdf_interactiveform.cpp.

◆ ResetForm() [1/2]

void CPDF_InteractiveForm::ResetForm ( )

Definition at line 751 of file cpdf_interactiveform.cpp.

◆ ResetForm() [2/2]

void CPDF_InteractiveForm::ResetForm ( pdfium::span< CPDF_FormField * > fields,
bool bIncludeOrExclude )

Definition at line 735 of file cpdf_interactiveform.cpp.

References CPDF_FormField::ResetField().

+ Here is the call graph for this function:

◆ SetNotifierIface()

void CPDF_InteractiveForm::SetNotifierIface ( NotifierIface * pNotify)

Definition at line 1001 of file cpdf_interactiveform.cpp.

◆ SetUpdateAP()

void CPDF_InteractiveForm::SetUpdateAP ( bool bUpdateAP)
static

Definition at line 558 of file cpdf_interactiveform.cpp.

Referenced by CPDFSDK_PageView::LoadFXAnnots().

+ Here is the caller graph for this function:

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