Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <cpdfsdk_interactiveform.h>
Private Member Functions | |
bool | BeforeValueChange (CPDF_FormField *pField, const WideString &csValue) override |
void | AfterValueChange (CPDF_FormField *pField) override |
bool | BeforeSelectionChange (CPDF_FormField *pField, const WideString &csValue) override |
void | AfterSelectionChange (CPDF_FormField *pField) override |
void | AfterCheckedStatusChange (CPDF_FormField *pField) override |
void | AfterFormReset (CPDF_InteractiveForm *pForm) override |
Definition at line 28 of file cpdfsdk_interactiveform.h.
|
explicit |
Definition at line 109 of file cpdfsdk_interactiveform.cpp.
References CPDFSDK_InteractiveForm(), and RemoveAllHighLights().
Referenced by CPDFSDK_InteractiveForm().
|
overridedefault |
void CPDFSDK_InteractiveForm::AddMap | ( | CPDF_FormControl * | pControl, |
CPDFSDK_Widget * | pWidget ) |
Definition at line 198 of file cpdfsdk_interactiveform.cpp.
|
overrideprivatevirtual |
Implements CPDF_InteractiveForm::NotifierIface.
Definition at line 561 of file cpdfsdk_interactiveform.cpp.
References CPDF_FormField::GetFieldType(), kCheckBox, kRadioButton, OnCalculate(), and UpdateField().
|
overrideprivatevirtual |
Implements CPDF_InteractiveForm::NotifierIface.
Definition at line 571 of file cpdfsdk_interactiveform.cpp.
References OnCalculate().
|
overrideprivatevirtual |
Implements CPDF_InteractiveForm::NotifierIface.
Definition at line 552 of file cpdfsdk_interactiveform.cpp.
References CPDF_FormField::GetFieldType(), kListBox, OnCalculate(), and UpdateField().
|
overrideprivatevirtual |
Implements CPDF_InteractiveForm::NotifierIface.
Definition at line 529 of file cpdfsdk_interactiveform.cpp.
References CPDF_FormField::GetFieldType(), OnCalculate(), and UpdateField().
|
overrideprivatevirtual |
Implements CPDF_InteractiveForm::NotifierIface.
Definition at line 543 of file cpdfsdk_interactiveform.cpp.
References CPDF_FormField::GetFieldType(), kListBox, OnKeyStrokeCommit(), and OnValidate().
|
overrideprivatevirtual |
Implements CPDF_InteractiveForm::NotifierIface.
Definition at line 519 of file cpdfsdk_interactiveform.cpp.
References CPDF_FormField::GetFieldType(), OnKeyStrokeCommit(), and OnValidate().
bool CPDFSDK_InteractiveForm::DoAction_Hide | ( | const CPDF_Action & | action | ) |
Definition at line 387 of file cpdfsdk_interactiveform.cpp.
References CPDF_Action::GetHideStatus().
Referenced by CPDFSDK_FormFillEnvironment::DoActionHide().
void CPDFSDK_InteractiveForm::DoAction_ResetForm | ( | const CPDF_Action & | action | ) |
Definition at line 492 of file cpdfsdk_interactiveform.cpp.
References CPDF_Action::GetFlags(), and CPDF_Action::HasFields().
Referenced by CPDFSDK_FormFillEnvironment::DoActionResetForm().
bool CPDFSDK_InteractiveForm::DoAction_SubmitForm | ( | const CPDF_Action & | action | ) |
Definition at line 417 of file cpdfsdk_interactiveform.cpp.
References CPDF_Action::GetFilePath(), CPDF_Action::GetFlags(), CPDF_Action::HasFields(), fxcrt::WideString::IsEmpty(), and SubmitForm().
Referenced by CPDFSDK_FormFillEnvironment::DoActionSubmitForm().
void CPDFSDK_InteractiveForm::EnableCalculate | ( | bool | bEnabled | ) |
Definition at line 209 of file cpdfsdk_interactiveform.cpp.
ByteString CPDFSDK_InteractiveForm::ExportFieldsToFDFTextBuf | ( | const std::vector< CPDF_FormField * > & | fields, |
bool | bIncludeOrExclude ) |
Definition at line 459 of file cpdfsdk_interactiveform.cpp.
References fxcrt::ByteString::ByteString().
ByteString CPDFSDK_InteractiveForm::ExportFormToFDFTextBuf | ( | ) |
Definition at line 485 of file cpdfsdk_interactiveform.cpp.
References fxcrt::ByteString::ByteString().
std::vector< CPDF_FormField * > CPDFSDK_InteractiveForm::GetFieldFromObjects | ( | const std::vector< RetainPtr< const CPDF_Object > > & | objects | ) | const |
Definition at line 504 of file cpdfsdk_interactiveform.cpp.
|
inline |
Definition at line 86 of file cpdfsdk_interactiveform.h.
FX_COLORREF CPDFSDK_InteractiveForm::GetHighlightColor | ( | FormFieldType | fieldType | ) |
Definition at line 612 of file cpdfsdk_interactiveform.cpp.
References kUnknown.
|
inline |
Definition at line 34 of file cpdfsdk_interactiveform.h.
Referenced by CPDFSDK_PageView::CPDFSDK_PageView(), CJS_PublicMethods::AFSimple_Calculate(), CJS_Field::AttachField(), FPDFAnnot_GetFontSize(), FPDFAnnot_GetFormControlIndex(), FPDFAnnot_GetFormFieldAtPoint(), FPDFPage_FormFieldZOrderAtPoint(), and FPDFPage_HasFormFieldAtPoint().
CPDFSDK_Widget * CPDFSDK_InteractiveForm::GetWidget | ( | CPDF_FormControl * | pControl | ) | const |
Definition at line 120 of file cpdfsdk_interactiveform.cpp.
References CPDFSDK_PageView::GetAnnotByDict(), and CPDF_Document::GetPageIndex().
Referenced by FPDFAnnot_GetFontSize(), GetWidgets(), ResetFieldAppearance(), and UpdateField().
void CPDFSDK_InteractiveForm::GetWidgets | ( | const WideString & | sFieldName, |
std::vector< ObservedPtr< CPDFSDK_Widget > > * | widgets ) const |
Definition at line 151 of file cpdfsdk_interactiveform.cpp.
void CPDFSDK_InteractiveForm::GetWidgets | ( | CPDF_FormField * | pField, |
std::vector< ObservedPtr< CPDFSDK_Widget > > * | widgets ) const |
Definition at line 162 of file cpdfsdk_interactiveform.cpp.
References CPDF_FormField::CountControls(), CPDF_FormField::GetControl(), and GetWidget().
bool CPDFSDK_InteractiveForm::IsCalculateEnabled | ( | ) | const |
Definition at line 213 of file cpdfsdk_interactiveform.cpp.
Referenced by OnCalculate().
bool CPDFSDK_InteractiveForm::IsNeedHighLight | ( | FormFieldType | fieldType | ) | const |
Definition at line 575 of file cpdfsdk_interactiveform.cpp.
References kUnknown.
void CPDFSDK_InteractiveForm::OnCalculate | ( | CPDF_FormField * | pFormField | ) |
Definition at line 242 of file cpdfsdk_interactiveform.cpp.
References IJS_Runtime::ScopedEventContext::ScopedEventContext(), CPDF_AAction::ActionExist(), CPDF_AAction::GetAction(), CPDF_FormField::GetAdditionalAction(), CPDF_FormField::GetFieldType(), CPDF_Action::GetJavaScript(), CPDF_FormField::GetValue(), CPDF_Action::HasDict(), IsCalculateEnabled(), fxcrt::WideString::IsEmpty(), CPDF_AAction::kCalculate, kNotify, IJS_EventContext::OnField_Calculate(), IJS_Runtime::ScopedEventContext::operator->(), and CPDF_FormField::SetValue().
Referenced by AfterCheckedStatusChange(), AfterFormReset(), AfterSelectionChange(), and AfterValueChange().
absl::optional< WideString > CPDFSDK_InteractiveForm::OnFormat | ( | CPDF_FormField * | pFormField | ) |
Definition at line 290 of file cpdfsdk_interactiveform.cpp.
References IJS_Runtime::ScopedEventContext::ScopedEventContext(), CPDF_AAction::ActionExist(), CPDF_FormField::CountSelectedItems(), CPDF_AAction::GetAction(), CPDF_FormField::GetAdditionalAction(), CPDF_FormField::GetFieldType(), CPDF_Action::GetJavaScript(), CPDF_FormField::GetOptionLabel(), CPDF_FormField::GetSelectedIndex(), CPDF_FormField::GetValue(), CPDF_Action::HasDict(), fxcrt::WideString::IsEmpty(), kComboBox, CPDF_AAction::kFormat, IJS_EventContext::OnField_Format(), IJS_Runtime::ScopedEventContext::operator->(), and fxcrt::WideString::operator=().
bool CPDFSDK_InteractiveForm::OnKeyStrokeCommit | ( | CPDF_FormField * | pFormField, |
const WideString & | csValue ) |
Definition at line 349 of file cpdfsdk_interactiveform.cpp.
References CPDF_AAction::ActionExist(), CFFL_FieldAction::bModifier, CFFL_FieldAction::bRC, CFFL_FieldAction::bShift, CPDF_AAction::GetAction(), CPDF_FormField::GetAdditionalAction(), CPDF_Action::HasDict(), and CPDF_AAction::kKeyStroke.
Referenced by BeforeSelectionChange(), and BeforeValueChange().
bool CPDFSDK_InteractiveForm::OnValidate | ( | CPDF_FormField * | pFormField, |
const WideString & | csValue ) |
Definition at line 368 of file cpdfsdk_interactiveform.cpp.
References CPDF_AAction::ActionExist(), CFFL_FieldAction::bModifier, CFFL_FieldAction::bRC, CFFL_FieldAction::bShift, CPDF_AAction::GetAction(), CPDF_FormField::GetAdditionalAction(), CPDF_Action::HasDict(), and CPDF_AAction::kValidate.
Referenced by BeforeSelectionChange(), and BeforeValueChange().
void CPDFSDK_InteractiveForm::RemoveAllHighLights | ( | ) |
Definition at line 590 of file cpdfsdk_interactiveform.cpp.
Referenced by CPDFSDK_InteractiveForm(), and FPDF_RemoveFormFieldHighlight().
void CPDFSDK_InteractiveForm::RemoveMap | ( | CPDF_FormControl * | pControl | ) |
Definition at line 203 of file cpdfsdk_interactiveform.cpp.
void CPDFSDK_InteractiveForm::ResetFieldAppearance | ( | CPDF_FormField * | pFormField, |
absl::optional< WideString > | sValue ) |
Definition at line 321 of file cpdfsdk_interactiveform.cpp.
References CPDF_FormField::CountControls(), CPDF_FormField::GetControl(), GetWidget(), and CPDFSDK_Widget::kValueChanged.
void CPDFSDK_InteractiveForm::SetAllHighlightColors | ( | FX_COLORREF | clr | ) |
Definition at line 605 of file cpdfsdk_interactiveform.cpp.
Referenced by FPDF_SetFormFieldHighlightColor().
|
inline |
Definition at line 85 of file cpdfsdk_interactiveform.h.
Referenced by FPDF_SetFormFieldHighlightAlpha().
void CPDFSDK_InteractiveForm::SetHighlightColor | ( | FX_COLORREF | clr, |
FormFieldType | fieldType ) |
Definition at line 596 of file cpdfsdk_interactiveform.cpp.
References kUnknown.
bool CPDFSDK_InteractiveForm::SubmitFields | ( | const WideString & | csDestination, |
const std::vector< CPDF_FormField * > & | fields, | ||
bool | bIncludeOrExclude, | ||
bool | bUrlEncoded ) |
Definition at line 440 of file cpdfsdk_interactiveform.cpp.
References fxcrt::ByteString::IsEmpty(), and fxcrt::ByteString::operator=().
bool CPDFSDK_InteractiveForm::SubmitForm | ( | const WideString & | sDestination | ) |
Definition at line 468 of file cpdfsdk_interactiveform.cpp.
References fxcrt::ByteString::IsEmpty(), and fxcrt::WideString::IsEmpty().
Referenced by DoAction_SubmitForm().
void CPDFSDK_InteractiveForm::UpdateField | ( | CPDF_FormField * | pFormField | ) |
Definition at line 332 of file cpdfsdk_interactiveform.cpp.
References CPDF_FormField::CountControls(), CPDF_FormField::GetControl(), CPDFSDK_Annot::GetPage(), and GetWidget().
Referenced by AfterCheckedStatusChange(), AfterSelectionChange(), and AfterValueChange().