Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <cpdfxfa_context.h>
Public Types | |
enum class | LoadStatus : uint8_t { kPreload = 0 , kLoading , kLoaded , kClosing } |
Definition at line 35 of file cpdfxfa_context.h.
|
strong |
Enumerator | |
---|---|
kPreload | |
kLoading | |
kLoaded | |
kClosing |
Definition at line 38 of file cpdfxfa_context.h.
|
explicit |
Definition at line 127 of file cpdfxfa_context.cpp.
References CPDFXFA_Context().
Referenced by CPDFXFA_Context().
|
override |
Definition at line 140 of file cpdfxfa_context.cpp.
References kClosing.
|
overridevirtual |
Causes the system to play a sound.
[in] | dwType | The system code for the appropriate sound.0 (Error)1 (Warning)2 (Question)3 (Status)4 (Default) |
Implements CXFA_FFApp::CallbackIface.
Definition at line 339 of file cpdfxfa_context.cpp.
void CPDFXFA_Context::ClearChangeMark | ( | ) |
Definition at line 311 of file cpdfxfa_context.cpp.
Referenced by SendPostSaveToXFADoc().
|
overridevirtual |
Implements CPDF_Document::Extension.
Definition at line 307 of file cpdfxfa_context.cpp.
References kXFAForeground.
|
overridevirtual |
Implements CPDF_Document::Extension.
Definition at line 298 of file cpdfxfa_context.cpp.
References kXFAForeground, and kXFAFull.
Referenced by SendPostSaveToXFADoc(), and SendPreSaveToXFADoc().
|
overridevirtual |
Implements CPDF_Document::Extension.
Definition at line 303 of file cpdfxfa_context.cpp.
References kXFAFull.
|
overridevirtual |
Implements CPDF_Document::Extension.
Definition at line 282 of file cpdfxfa_context.cpp.
|
overridevirtual |
Download something from somewhere.
[in] | wsURL | - http, ftp, such as "http://www.w3.org/TR/REC-xml-names/". |
Implements CXFA_FFApp::CallbackIface.
Definition at line 379 of file cpdfxfa_context.cpp.
|
overridevirtual |
Get application name, such as Phantom.
Implements CXFA_FFApp::CallbackIface.
Definition at line 327 of file cpdfxfa_context.cpp.
|
overridevirtual |
Get application message box title.
Implements CXFA_FFApp::CallbackIface.
Definition at line 323 of file cpdfxfa_context.cpp.
|
inline |
Definition at line 61 of file cpdfxfa_context.h.
|
inline |
Definition at line 50 of file cpdfxfa_context.h.
|
overridevirtual |
Implements CXFA_FFApp::CallbackIface.
Definition at line 409 of file cpdfxfa_context.cpp.
|
overridevirtual |
Returns the language of the running host application. Such as zh_CN
Implements CXFA_FFApp::CallbackIface.
Definition at line 331 of file cpdfxfa_context.cpp.
|
inline |
Definition at line 49 of file cpdfxfa_context.h.
RetainPtr< CPDFXFA_Page > CPDFXFA_Context::GetOrCreateXFAPage | ( | int | page_index | ) |
Definition at line 235 of file cpdfxfa_context.cpp.
References GetPageCount(), and GetPDFDoc().
|
inline |
Definition at line 51 of file cpdfxfa_context.h.
|
overridevirtual |
Implements CPDF_Document::Extension.
Definition at line 224 of file cpdfxfa_context.cpp.
Referenced by GetOrCreateXFAPage().
|
inline |
Definition at line 57 of file cpdfxfa_context.h.
Referenced by GetOrCreateXFAPage().
|
overridevirtual |
Returns the platform of the machine running the script. Such as WIN
Implements CXFA_FFApp::CallbackIface.
Definition at line 335 of file cpdfxfa_context.cpp.
|
overridevirtual |
Implements CXFA_FFApp::CallbackIface.
Definition at line 405 of file cpdfxfa_context.cpp.
|
inline |
Definition at line 59 of file cpdfxfa_context.h.
|
inline |
Definition at line 60 of file cpdfxfa_context.h.
Referenced by SendPostSaveToXFADoc(), and SendPreSaveToXFADoc().
RetainPtr< CPDFXFA_Page > CPDFXFA_Context::GetXFAPage | ( | CXFA_FFPageView * | pPage | ) | const |
Definition at line 264 of file cpdfxfa_context.cpp.
References kXFAFull.
RetainPtr< CPDFXFA_Page > CPDFXFA_Context::GetXFAPage | ( | int | page_index | ) |
Definition at line 257 of file cpdfxfa_context.cpp.
|
inline |
Definition at line 58 of file cpdfxfa_context.h.
bool CPDFXFA_Context::LoadXFADoc | ( | ) |
Definition at line 161 of file cpdfxfa_context.cpp.
References kLoaded, kLoading, kXFAForeground, and kXFAFull.
|
overridevirtual |
Displays a message box.
[in] | wsMessage | - Message string to display in box. |
[in] | wsTitle | - Title string for box. |
[in] | dwIconType | - Icon type, refer to XFA_MBICON. |
[in] | dwButtonType | - Button type, refer to XFA_MESSAGEBUTTON. |
Implements CXFA_FFApp::CallbackIface.
Definition at line 344 of file cpdfxfa_context.cpp.
|
overridevirtual |
POST data to the given url.
[in] | wsURL | the URL being uploaded. |
[in] | wsData | the data being uploaded. |
[in] | wsContentType | the content type of data including text/html, text/xml, text/plain, multipart/form-data, application/x-www-form-urlencoded, application/octet-stream, any valid MIME type. |
[in] | wsEncode | the encode of data including UTF-8, UTF-16, ISO8859-1, any recognized [IANA]character encoding |
[in] | wsHeader | any additional HTTP headers to be included in the post. |
[out] | wsResponse | decoded response from server. |
Implements CXFA_FFApp::CallbackIface.
Definition at line 384 of file cpdfxfa_context.cpp.
|
overridevirtual |
PUT data to the given url.
[in] | wsURL | the URL being uploaded. |
[in] | wsData | the data being uploaded. |
[in] | wsEncode | the encode of data including UTF-8, UTF-16, ISO8859-1, any recognized [IANA]character encoding |
Implements CXFA_FFApp::CallbackIface.
Definition at line 398 of file cpdfxfa_context.cpp.
|
overridevirtual |
Get a response from the user.
[in] | wsQuestion | - Message string to display in box. |
[in] | wsTitle | - Title string for box. |
[in] | wsDefaultAnswer | - Initial contents for answer. |
[in] | bMask | - Mask the user input with asterisks when true, |
Implements CXFA_FFApp::CallbackIface.
Definition at line 359 of file cpdfxfa_context.cpp.
References fxcrt::WideString::WideString(), and fxcrt::WideString::FromUTF16LE().
bool CPDFXFA_Context::SaveDatasetsPackage | ( | const RetainPtr< IFX_SeekableStream > & | pStream | ) |
Definition at line 413 of file cpdfxfa_context.cpp.
References XFA_HASHCODE_Datasets.
bool CPDFXFA_Context::SaveFormPackage | ( | const RetainPtr< IFX_SeekableStream > & | pStream | ) |
Definition at line 418 of file cpdfxfa_context.cpp.
References XFA_HASHCODE_Form.
void CPDFXFA_Context::SendPostSaveToXFADoc | ( | ) |
Definition at line 434 of file cpdfxfa_context.cpp.
References CXFA_EventParam::CXFA_EventParam(), CXFA_ReadyNodeIterator::CXFA_ReadyNodeIterator(), ClearChangeMark(), ContainsExtensionForm(), CXFA_FFDocView::GetRootSubform(), CXFA_FFDocView::GetWidgetHandler(), GetXFADocView(), CXFA_EventParam::m_bTargeted, CXFA_ReadyNodeIterator::MoveToNext(), CXFA_FFWidgetHandler::ProcessEvent(), CXFA_FFDocView::UpdateDocView(), and XFA_EVENT_PostSave.
void CPDFXFA_Context::SendPreSaveToXFADoc | ( | std::vector< RetainPtr< IFX_SeekableStream > > * | fileList | ) |
Definition at line 453 of file cpdfxfa_context.cpp.
References CXFA_EventParam::CXFA_EventParam(), CXFA_ReadyNodeIterator::CXFA_ReadyNodeIterator(), ContainsExtensionForm(), CXFA_FFDocView::GetRootSubform(), CXFA_FFDocView::GetWidgetHandler(), GetXFADocView(), CXFA_EventParam::m_bTargeted, CXFA_ReadyNodeIterator::MoveToNext(), CXFA_FFWidgetHandler::ProcessEvent(), CXFA_FFDocView::UpdateDocView(), and XFA_EVENT_PreSave.
void CPDFXFA_Context::SetFormFillEnv | ( | CPDFSDK_FormFillEnvironment * | pFormFillEnv | ) |
Definition at line 146 of file cpdfxfa_context.cpp.
|
inline |
Definition at line 52 of file cpdfxfa_context.h.