Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <cpdf_action.h>
Public Types | |
enum class | Type { kUnknown = 0 , kGoTo , kGoToR , kGoToE , kLaunch , kThread , kURI , kSound , kMovie , kHide , kNamed , kSubmitForm , kResetForm , kImportData , kJavaScript , kSetOCGState , kRendition , kTrans , kGoTo3DView , kLast = kGoTo3DView } |
Public Member Functions | |
CPDF_Action (RetainPtr< const CPDF_Dictionary > pDict) | |
CPDF_Action (const CPDF_Action &that) | |
~CPDF_Action () | |
bool | HasDict () const |
const CPDF_Dictionary * | GetDict () const |
Type | GetType () const |
CPDF_Dest | GetDest (CPDF_Document *pDoc) const |
WideString | GetFilePath () const |
ByteString | GetURI (const CPDF_Document *pDoc) const |
bool | GetHideStatus () const |
ByteString | GetNamedAction () const |
uint32_t | GetFlags () const |
bool | HasFields () const |
std::vector< RetainPtr< const CPDF_Object > > | GetAllFields () const |
absl::optional< WideString > | MaybeGetJavaScript () const |
WideString | GetJavaScript () const |
size_t | GetSubActionsCount () const |
CPDF_Action | GetSubAction (size_t iIndex) const |
Definition at line 21 of file cpdf_action.h.
|
strong |
Enumerator | |
---|---|
kUnknown | |
kGoTo | |
kGoToR | |
kGoToE | |
kLaunch | |
kThread | |
kURI | |
kSound | |
kMovie | |
kHide | |
kNamed | |
kSubmitForm | |
kResetForm | |
kImportData | |
kJavaScript | |
kSetOCGState | |
kRendition | |
kTrans | |
kGoTo3DView | |
kLast |
Definition at line 23 of file cpdf_action.h.
|
explicit |
Definition at line 30 of file cpdf_action.cpp.
References CPDF_Action().
Referenced by CPDF_Action().
|
default |
|
default |
std::vector< RetainPtr< const CPDF_Object > > CPDF_Action::GetAllFields | ( | ) | const |
Definition at line 120 of file cpdf_action.cpp.
CPDF_Dest CPDF_Action::GetDest | ( | CPDF_Document * | pDoc | ) | const |
Definition at line 56 of file cpdf_action.cpp.
References GetType(), kGoTo, kGoToE, and kGoToR.
Referenced by CPDFSDK_FormFillEnvironment::DoActionGoTo(), FPDFAction_GetDest(), FPDFBookmark_GetDest(), and FPDFLink_GetDest().
|
inline |
Definition at line 51 of file cpdf_action.h.
Referenced by FPDF_GetPageAAction(), FPDFBookmark_GetAction(), and FPDFLink_GetAction().
WideString CPDF_Action::GetFilePath | ( | ) | const |
Definition at line 64 of file cpdf_action.cpp.
References fxcrt::WideString::WideString(), fxcrt::WideString::FromDefANSI(), CPDF_FileSpec::GetFileName(), GetType(), pdfium::stream::kF, kGoToE, kGoToR, kImportData, kLaunch, and kSubmitForm.
Referenced by CPDFSDK_InteractiveForm::DoAction_SubmitForm(), and FPDFAction_GetFilePath().
uint32_t CPDF_Action::GetFlags | ( | ) | const |
Definition at line 112 of file cpdf_action.cpp.
Referenced by CPDFSDK_InteractiveForm::DoAction_ResetForm(), and CPDFSDK_InteractiveForm::DoAction_SubmitForm().
bool CPDF_Action::GetHideStatus | ( | ) | const |
Definition at line 104 of file cpdf_action.cpp.
Referenced by CPDFSDK_InteractiveForm::DoAction_Hide().
WideString CPDF_Action::GetJavaScript | ( | ) | const |
Definition at line 156 of file cpdf_action.cpp.
References fxcrt::WideString::WideString().
Referenced by CPDFSDK_FormFillEnvironment::DoActionFieldJavaScript(), CPDFSDK_FormFillEnvironment::DoActionJavaScript(), FPDFAnnot_GetFormAdditionalActionJavaScript(), CPDFSDK_InteractiveForm::OnCalculate(), and CPDFSDK_InteractiveForm::OnFormat().
ByteString CPDF_Action::GetNamedAction | ( | ) | const |
Definition at line 108 of file cpdf_action.cpp.
Referenced by CPDFSDK_FormFillEnvironment::DoActionNamed().
CPDF_Action CPDF_Action::GetSubAction | ( | size_t | iIndex | ) | const |
Definition at line 174 of file cpdf_action.cpp.
size_t CPDF_Action::GetSubActionsCount | ( | ) | const |
Definition at line 161 of file cpdf_action.cpp.
CPDF_Action::Type CPDF_Action::GetType | ( | ) | const |
Definition at line 37 of file cpdf_action.cpp.
References fxcrt::ByteString::IsEmpty(), kLast, and kUnknown.
Referenced by CPDFSDK_FormFillEnvironment::DoActionFieldJavaScript(), CPDFSDK_FormFillEnvironment::DoActionJavaScript(), CPDFSDK_FormFillEnvironment::DoActionLink(), CPDFSDK_FormFillEnvironment::DoActionNoJs(), FPDFAction_GetType(), FPDFDoc_GetJavaScriptAction(), GetDest(), GetFilePath(), GetURI(), CPDFSDK_Widget::OnAAction(), and TEST().
ByteString CPDF_Action::GetURI | ( | const CPDF_Document * | pDoc | ) | const |
Definition at line 87 of file cpdf_action.cpp.
References fxcrt::ByteString::ByteString(), GetType(), and kURI.
Referenced by CPDFSDK_FormFillEnvironment::DoActionURI(), and FPDFAction_GetURIPath().
|
inline |
Definition at line 50 of file cpdf_action.h.
Referenced by FPDFBookmark_GetDest(), FPDFLink_GetDest(), CPDFSDK_InteractiveForm::OnCalculate(), CPDFSDK_InteractiveForm::OnFormat(), CPDFSDK_BAAnnot::OnKeyDown(), CPDFSDK_InteractiveForm::OnKeyStrokeCommit(), and CPDFSDK_InteractiveForm::OnValidate().
bool CPDF_Action::HasFields | ( | ) | const |
Definition at line 116 of file cpdf_action.cpp.
Referenced by CPDFSDK_InteractiveForm::DoAction_ResetForm(), and CPDFSDK_InteractiveForm::DoAction_SubmitForm().
absl::optional< WideString > CPDF_Action::MaybeGetJavaScript | ( | ) | const |
Definition at line 149 of file cpdf_action.cpp.