![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <cjs_publicmethods.h>
Public Member Functions | |
CJS_PublicMethods ()=delete | |
Public Member Functions inherited from CJS_Object | |
CJS_Object (v8::Local< v8::Object > pObject, CJS_Runtime *pRuntime) | |
~CJS_Object () override | |
v8::Local< v8::Object > | ToV8Object () |
CJS_Runtime * | GetRuntime () const |
Public Member Functions inherited from CFXJS_PerObjectData::Binding | |
virtual | ~Binding ()=default |
Static Public Member Functions | |
static void | DefineJSObjects (CFXJS_Engine *pEngine) |
static double | ParseDate (v8::Isolate *isolate, const WideString &value, bool *bWrongFormat) |
static double | ParseDateAsGMT (v8::Isolate *isolate, const WideString &value) |
static double | ParseDateUsingFormat (v8::Isolate *isolate, const WideString &value, const WideString &format, bool *bWrongFormat) |
static WideString | PrintDateUsingFormat (double dDate, const WideString &format) |
static bool | IsNumber (const WideString &str) |
static CJS_Result | AFNumber_Format (CJS_Runtime *pRuntime, pdfium::span< v8::Local< v8::Value > > params) |
static CJS_Result | AFNumber_Keystroke (CJS_Runtime *pRuntime, pdfium::span< v8::Local< v8::Value > > params) |
static CJS_Result | AFPercent_Format (CJS_Runtime *pRuntime, pdfium::span< v8::Local< v8::Value > > params) |
static CJS_Result | AFPercent_Keystroke (CJS_Runtime *pRuntime, pdfium::span< v8::Local< v8::Value > > params) |
static CJS_Result | AFDate_FormatEx (CJS_Runtime *pRuntime, pdfium::span< v8::Local< v8::Value > > params) |
static CJS_Result | AFDate_KeystrokeEx (CJS_Runtime *pRuntime, pdfium::span< v8::Local< v8::Value > > params) |
static CJS_Result | AFDate_Format (CJS_Runtime *pRuntime, pdfium::span< v8::Local< v8::Value > > params) |
static CJS_Result | AFDate_Keystroke (CJS_Runtime *pRuntime, pdfium::span< v8::Local< v8::Value > > params) |
static CJS_Result | AFTime_FormatEx (CJS_Runtime *pRuntime, pdfium::span< v8::Local< v8::Value > > params) |
static CJS_Result | AFTime_KeystrokeEx (CJS_Runtime *pRuntime, pdfium::span< v8::Local< v8::Value > > params) |
static CJS_Result | AFTime_Format (CJS_Runtime *pRuntime, pdfium::span< v8::Local< v8::Value > > params) |
static CJS_Result | AFTime_Keystroke (CJS_Runtime *pRuntime, pdfium::span< v8::Local< v8::Value > > params) |
static CJS_Result | AFSpecial_Format (CJS_Runtime *pRuntime, pdfium::span< v8::Local< v8::Value > > params) |
static CJS_Result | AFSpecial_Keystroke (CJS_Runtime *pRuntime, pdfium::span< v8::Local< v8::Value > > params) |
static CJS_Result | AFSpecial_KeystrokeEx (CJS_Runtime *pRuntime, pdfium::span< v8::Local< v8::Value > > params) |
static CJS_Result | AFSimple (CJS_Runtime *pRuntime, pdfium::span< v8::Local< v8::Value > > params) |
static CJS_Result | AFMakeNumber (CJS_Runtime *pRuntime, pdfium::span< v8::Local< v8::Value > > params) |
static CJS_Result | AFSimple_Calculate (CJS_Runtime *pRuntime, pdfium::span< v8::Local< v8::Value > > params) |
static CJS_Result | AFRange_Validate (CJS_Runtime *pRuntime, pdfium::span< v8::Local< v8::Value > > params) |
static CJS_Result | AFMergeChange (CJS_Runtime *pRuntime, pdfium::span< v8::Local< v8::Value > > params) |
static CJS_Result | AFParseDateEx (CJS_Runtime *pRuntime, pdfium::span< v8::Local< v8::Value > > params) |
static CJS_Result | AFExtractNums (CJS_Runtime *pRuntime, pdfium::span< v8::Local< v8::Value > > params) |
static void | AFNumber_Format_static (const v8::FunctionCallbackInfo< v8::Value > &info) |
static void | AFNumber_Keystroke_static (const v8::FunctionCallbackInfo< v8::Value > &info) |
static void | AFPercent_Format_static (const v8::FunctionCallbackInfo< v8::Value > &info) |
static void | AFPercent_Keystroke_static (const v8::FunctionCallbackInfo< v8::Value > &info) |
static void | AFDate_FormatEx_static (const v8::FunctionCallbackInfo< v8::Value > &info) |
static void | AFDate_KeystrokeEx_static (const v8::FunctionCallbackInfo< v8::Value > &info) |
static void | AFDate_Format_static (const v8::FunctionCallbackInfo< v8::Value > &info) |
static void | AFDate_Keystroke_static (const v8::FunctionCallbackInfo< v8::Value > &info) |
static void | AFTime_FormatEx_static (const v8::FunctionCallbackInfo< v8::Value > &info) |
static void | AFTime_KeystrokeEx_static (const v8::FunctionCallbackInfo< v8::Value > &info) |
static void | AFTime_Format_static (const v8::FunctionCallbackInfo< v8::Value > &info) |
static void | AFTime_Keystroke_static (const v8::FunctionCallbackInfo< v8::Value > &info) |
static void | AFSpecial_Format_static (const v8::FunctionCallbackInfo< v8::Value > &info) |
static void | AFSpecial_Keystroke_static (const v8::FunctionCallbackInfo< v8::Value > &info) |
static void | AFSpecial_KeystrokeEx_static (const v8::FunctionCallbackInfo< v8::Value > &info) |
static void | AFSimple_static (const v8::FunctionCallbackInfo< v8::Value > &info) |
static void | AFMakeNumber_static (const v8::FunctionCallbackInfo< v8::Value > &info) |
static void | AFSimple_Calculate_static (const v8::FunctionCallbackInfo< v8::Value > &info) |
static void | AFRange_Validate_static (const v8::FunctionCallbackInfo< v8::Value > &info) |
static void | AFMergeChange_static (const v8::FunctionCallbackInfo< v8::Value > &info) |
static void | AFParseDateEx_static (const v8::FunctionCallbackInfo< v8::Value > &info) |
static void | AFExtractNums_static (const v8::FunctionCallbackInfo< v8::Value > &info) |
static bool | MaskSatisfied (wchar_t c_Change, wchar_t c_Mask) |
static bool | IsReservedMaskChar (wchar_t ch) |
static v8::Local< v8::Array > | AF_MakeArrayFromList (CJS_Runtime *pRuntime, v8::Local< v8::Value > val) |
Static Public Member Functions inherited from CJS_Object | |
static void | DefineConsts (CFXJS_Engine *pEngine, uint32_t nObjDefnID, pdfium::span< const JSConstSpec > consts) |
static void | DefineProps (CFXJS_Engine *pEngine, uint32_t nObjDefnID, pdfium::span< const JSPropertySpec > consts) |
static void | DefineMethods (CFXJS_Engine *pEngine, uint32_t nObjDefnID, pdfium::span< const JSMethodSpec > consts) |
Definition at line 14 of file cjs_publicmethods.h.
|
delete |
|
static |
Definition at line 319 of file cjs_publicmethods.cpp.
|
static |
Definition at line 990 of file cjs_publicmethods.cpp.
References CJS_Result::Failure(), and kParamError.
|
static |
|
static |
Definition at line 884 of file cjs_publicmethods.cpp.
References CJS_Result::Failure(), fxcrt::WideString::Format(), fxcrt::WideString::FromASCII(), CJS_Runtime::GetCurrentEventContext(), CJS_EventContext::HasValue(), JSGetStringFromID(), kBadObjectError, kParamError, kParseDateError, fxcrt::WideString::operator=(), PrintDateUsingFormat(), CJS_Result::Success(), and CJS_EventContext::Value().
|
static |
|
static |
Definition at line 1004 of file cjs_publicmethods.cpp.
References CJS_Result::Failure(), and kParamError.
|
static |
|
static |
Definition at line 958 of file cjs_publicmethods.cpp.
References CJS_Result::Failure(), fxcrt::WideString::Format(), fxcrt::WideString::FromASCII(), CJS_Runtime::GetCurrentEventContext(), CJS_EventContext::HasValue(), JSGetStringFromID(), kBadObjectError, kParseDateError, CJS_EventContext::Rc(), CJS_Result::Success(), CJS_EventContext::Value(), and CJS_EventContext::WillCommit().
|
static |
|
static |
Definition at line 1427 of file cjs_publicmethods.cpp.
References CJS_Result::Failure(), kParamError, and CJS_Result::Success().
|
static |
|
static |
Definition at line 1271 of file cjs_publicmethods.cpp.
References CJS_Result::Failure(), kParamError, and CJS_Result::Success().
|
static |
|
static |
Definition at line 1209 of file cjs_publicmethods.cpp.
References CJS_EventContext::Change(), CJS_Result::Failure(), CJS_Runtime::GetCurrentEventContext(), CJS_EventContext::HasValue(), kParamError, fxcrt::WideString::operator=(), CJS_Result::Success(), CJS_EventContext::Value(), and CJS_EventContext::WillCommit().
|
static |
|
static |
Definition at line 594 of file cjs_publicmethods.cpp.
References CJS_Result::Success().
|
static |
|
static |
Definition at line 701 of file cjs_publicmethods.cpp.
References CJS_EventContext::Change(), CJS_Result::Failure(), CJS_Result::Failure(), fxcrt::WideString::FromASCII(), CJS_Runtime::GetCurrentEventContext(), CJS_EventContext::HasValue(), IsNumber(), JSGetStringFromID(), kBadObjectError, kInvalidInputError, kParamError, fxcrt::WideString::operator=(), CJS_EventContext::Rc(), CJS_EventContext::SelEnd(), CJS_EventContext::SelStart(), CJS_Result::Success(), CJS_EventContext::Value(), and CJS_EventContext::WillCommit().
|
static |
|
static |
Definition at line 1228 of file cjs_publicmethods.cpp.
References CJS_Result::Failure(), fxcrt::WideString::Format(), fxcrt::WideString::FromASCII(), CJS_Runtime::GetCurrentEventContext(), JSGetStringFromID(), kParamError, kParseDateError, and CJS_Result::Success().
|
static |
|
static |
Definition at line 789 of file cjs_publicmethods.cpp.
References CJS_Result::Success().
|
static |
|
static |
Definition at line 877 of file cjs_publicmethods.cpp.
|
static |
|
static |
Definition at line 1382 of file cjs_publicmethods.cpp.
References CJS_Result::Failure(), fxcrt::WideString::FromASCII(), CJS_Runtime::GetCurrentEventContext(), CJS_EventContext::HasValue(), kBadObjectError, kParamError, CJS_EventContext::Rc(), CJS_Result::Success(), fxcrt::WideString::ToUTF8(), and CJS_EventContext::Value().
|
static |
|
static |
Definition at line 1248 of file cjs_publicmethods.cpp.
References fxcrt::WideString::EqualsASCII(), CJS_Result::Failure(), kParamError, kValueError, and CJS_Result::Success().
|
static |
Definition at line 1288 of file cjs_publicmethods.cpp.
References CPDF_FormField::CountControls(), CPDF_FormField::CountSelectedItems(), fxcrt::WideString::EqualsASCII(), CJS_Result::Failure(), CPDF_FormField::GetControl(), CJS_Runtime::GetCurrentEventContext(), CPDF_FormControl::GetExportValue(), CPDF_FormField::GetFieldType(), CJS_Runtime::GetFormFillEnv(), CPDFSDK_FormFillEnvironment::GetInteractiveForm(), CPDFSDK_InteractiveForm::GetInteractiveForm(), CPDF_FormField::GetValue(), CJS_EventContext::HasValue(), CPDF_FormControl::IsChecked(), kCheckBox, kComboBox, kListBox, kParamError, kPushButton, kRadioButton, kTextField, kValueError, CJS_Result::Success(), fxcrt::WideString::TrimWhitespaceBack(), fxcrt::WideString::TrimWhitespaceFront(), and CJS_EventContext::Value().
|
static |
|
static |
|
static |
Definition at line 1057 of file cjs_publicmethods.cpp.
References CJS_Result::Failure(), fxcrt::WideString::FromASCII(), CJS_Runtime::GetCurrentEventContext(), CJS_EventContext::HasValue(), kBadObjectError, kParamError, fxcrt::WideString::operator=(), CJS_Util::StringPrintx(), CJS_Result::Success(), and CJS_EventContext::Value().
|
static |
|
static |
Definition at line 1175 of file cjs_publicmethods.cpp.
References CJS_EventContext::Change(), CJS_Result::Failure(), CJS_Runtime::GetCurrentEventContext(), CJS_EventContext::HasValue(), kBadObjectError, kParamError, and CJS_EventContext::Value().
|
static |
|
static |
Definition at line 1092 of file cjs_publicmethods.cpp.
References CJS_EventContext::Change(), CJS_Result::Failure(), fxcrt::WideString::FromASCII(), CJS_Runtime::GetCurrentEventContext(), CJS_EventContext::HasValue(), IsReservedMaskChar(), JSGetStringFromID(), kBadObjectError, kInvalidInputError, kParamError, kParamTooLongError, MaskSatisfied(), CJS_EventContext::Rc(), CJS_EventContext::SelEnd(), CJS_EventContext::SelStart(), CJS_Result::Success(), CJS_EventContext::Value(), and CJS_EventContext::WillCommit().
|
static |
|
static |
Definition at line 1018 of file cjs_publicmethods.cpp.
References CJS_Result::Failure(), and kParamError.
|
static |
|
static |
Definition at line 1044 of file cjs_publicmethods.cpp.
|
static |
|
static |
Definition at line 1031 of file cjs_publicmethods.cpp.
References CJS_Result::Failure(), and kParamError.
|
static |
|
static |
Definition at line 1050 of file cjs_publicmethods.cpp.
|
static |
|
static |
Definition at line 227 of file cjs_publicmethods.cpp.
|
static |
Definition at line 261 of file cjs_publicmethods.cpp.
References FXSYS_IsDecimalDigit().
Referenced by AFNumber_Keystroke(), and TEST().
|
static |
Definition at line 315 of file cjs_publicmethods.cpp.
Referenced by AFSpecial_KeystrokeEx().
|
static |
Definition at line 300 of file cjs_publicmethods.cpp.
References FXSYS_IsDecimalDigit().
Referenced by AFSpecial_KeystrokeEx().
|
static |
Definition at line 355 of file cjs_publicmethods.cpp.
References fxjs::FX_GetDateTime(), fxjs::FX_GetDayFromTime(), fxjs::FX_GetHourFromTime(), fxjs::FX_GetMinFromTime(), fxjs::FX_GetMonthFromTime(), fxjs::FX_GetSecFromTime(), fxjs::FX_GetYearFromTime(), and FXSYS_IsDecimalDigit().
|
static |
Definition at line 920 of file cjs_publicmethods.cpp.
References fxcrt::WideString::EqualsASCII(), fxjs::FX_MakeDate(), fxjs::FX_MakeDay(), fxjs::FX_MakeTime(), and fxjs::kMonths.
|
static |
Definition at line 435 of file cjs_publicmethods.cpp.
References fxjs::FX_ParseDateUsingFormat(), fxjs::kBadDate, and fxjs::kSuccess.
|
static |
Definition at line 458 of file cjs_publicmethods.cpp.
References fxcrt::WideString::Format(), fxcrt::WideString::FormatInteger(), fxjs::FX_GetDayFromTime(), fxjs::FX_GetHourFromTime(), fxjs::FX_GetMinFromTime(), fxjs::FX_GetMonthFromTime(), fxjs::FX_GetSecFromTime(), fxjs::FX_GetYearFromTime(), fxcrt::WideString::operator+=(), fxcrt::WideString::operator+=(), fxcrt::WideString::operator=(), and fxcrt::WideString::operator=().
Referenced by AFDate_FormatEx(), and TEST_F().