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) | |
virtual | ~CJS_Object () |
v8::Local< v8::Object > | ToV8Object () |
CJS_Runtime * | GetRuntime () const |
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 16 of file cjs_publicmethods.h.
|
delete |
|
static |
Definition at line 322 of file cjs_publicmethods.cpp.
References fxcrt::ByteString::c_str().
|
static |
Definition at line 988 of file cjs_publicmethods.cpp.
References CJS_Result::Failure(), and kParamError.
|
static |
|
static |
Definition at line 882 of file cjs_publicmethods.cpp.
References fxcrt::WideString::c_str(), CJS_Result::Failure(), fxcrt::WideString::Format(), CJS_Runtime::GetCurrentEventContext(), CJS_EventContext::HasValue(), fxcrt::WideString::IsEmpty(), JSGetStringFromID(), kBadObjectError, kParamError, kParseDateError, fxcrt::WideString::operator=(), PrintDateUsingFormat(), CJS_Result::Success(), and CJS_EventContext::Value().
|
static |
|
static |
Definition at line 1002 of file cjs_publicmethods.cpp.
References CJS_Result::Failure(), and kParamError.
|
static |
|
static |
Definition at line 956 of file cjs_publicmethods.cpp.
References fxcrt::WideString::c_str(), CJS_Result::Failure(), fxcrt::WideString::Format(), fxcrt::WideString::FromASCII(), CJS_Runtime::GetCurrentEventContext(), CJS_EventContext::HasValue(), fxcrt::WideString::IsEmpty(), JSGetStringFromID(), kBadObjectError, kParseDateError, CJS_EventContext::Rc(), CJS_Result::Success(), CJS_EventContext::Value(), and CJS_EventContext::WillCommit().
|
static |
|
static |
Definition at line 1426 of file cjs_publicmethods.cpp.
References fxcrt::WideString::clear(), CJS_Result::Failure(), FXSYS_IsDecimalDigit(), kParamError, fxcrt::WideString::operator+=(), fxcrt::WideString::operator[](), and CJS_Result::Success().
|
static |
|
static |
Definition at line 1269 of file cjs_publicmethods.cpp.
References CJS_Result::Failure(), kParamError, and CJS_Result::Success().
|
static |
|
static |
Definition at line 1207 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 593 of file cjs_publicmethods.cpp.
References CJS_Result::Success().
|
static |
|
static |
Definition at line 700 of file cjs_publicmethods.cpp.
References CJS_EventContext::Change(), CJS_Result::Failure(), CJS_Result::Failure(), CJS_Runtime::GetCurrentEventContext(), CJS_EventContext::HasValue(), fxcrt::WideString::IsEmpty(), 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 1226 of file cjs_publicmethods.cpp.
References fxcrt::WideString::c_str(), CJS_Result::Failure(), fxcrt::WideString::Format(), CJS_Runtime::GetCurrentEventContext(), JSGetStringFromID(), kParamError, kParseDateError, and CJS_Result::Success().
|
static |
|
static |
Definition at line 787 of file cjs_publicmethods.cpp.
References CJS_Result::Success().
|
static |
|
static |
Definition at line 875 of file cjs_publicmethods.cpp.
|
static |
|
static |
Definition at line 1381 of file cjs_publicmethods.cpp.
References fxcrt::ByteString::c_str(), CJS_Result::Failure(), CJS_Runtime::GetCurrentEventContext(), CJS_EventContext::HasValue(), fxcrt::WideString::IsEmpty(), kBadObjectError, kParamError, CJS_EventContext::Rc(), CJS_Result::Success(), fxcrt::WideString::ToUTF8(), and CJS_EventContext::Value().
|
static |
|
static |
Definition at line 1246 of file cjs_publicmethods.cpp.
References fxcrt::WideString::c_str(), CJS_Result::Failure(), kParamError, kValueError, and CJS_Result::Success().
|
static |
Definition at line 1286 of file cjs_publicmethods.cpp.
References fxcrt::WideString::c_str(), CPDF_FormField::CountControls(), CPDF_FormField::CountSelectedItems(), 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::TrimLeft(), fxcrt::WideString::TrimRight(), and CJS_EventContext::Value().
|
static |
|
static |
|
static |
Definition at line 1055 of file cjs_publicmethods.cpp.
References CJS_Result::Failure(), CJS_Runtime::GetCurrentEventContext(), CJS_EventContext::HasValue(), kBadObjectError, kParamError, fxcrt::WideString::operator=(), fxcrt::WideString::operator=(), CJS_Util::StringPrintx(), CJS_Result::Success(), and CJS_EventContext::Value().
|
static |
|
static |
Definition at line 1173 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 1090 of file cjs_publicmethods.cpp.
References CJS_EventContext::Change(), CJS_Result::Failure(), CJS_Runtime::GetCurrentEventContext(), CJS_EventContext::HasValue(), fxcrt::WideString::IsEmpty(), IsReservedMaskChar(), JSGetStringFromID(), kBadObjectError, kInvalidInputError, kParamError, kParamTooLongError, MaskSatisfied(), CJS_EventContext::Rc(), CJS_Result::Success(), CJS_EventContext::Value(), and CJS_EventContext::WillCommit().
|
static |
|
static |
Definition at line 1016 of file cjs_publicmethods.cpp.
References CJS_Result::Failure(), and kParamError.
|
static |
|
static |
Definition at line 1042 of file cjs_publicmethods.cpp.
|
static |
|
static |
Definition at line 1029 of file cjs_publicmethods.cpp.
References CJS_Result::Failure(), and kParamError.
|
static |
|
static |
Definition at line 1048 of file cjs_publicmethods.cpp.
|
static |
|
static |
Definition at line 235 of file cjs_publicmethods.cpp.
|
static |
Definition at line 269 of file cjs_publicmethods.cpp.
References fxcrt::WideString::c_str(), and FXSYS_IsDecimalDigit().
Referenced by AFNumber_Keystroke(), and TEST().
|
static |
Definition at line 318 of file cjs_publicmethods.cpp.
Referenced by AFSpecial_KeystrokeEx().
|
static |
Definition at line 303 of file cjs_publicmethods.cpp.
References FXSYS_IsDecimalDigit().
Referenced by AFSpecial_KeystrokeEx().
|
static |
Definition at line 354 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(), fxjs::FX_IsValidDay(), fxjs::FX_IsValidMonth(), and FXSYS_IsDecimalDigit().
|
static |
Definition at line 918 of file cjs_publicmethods.cpp.
References fxjs::FX_MakeDate(), fxjs::FX_MakeDay(), fxjs::FX_MakeTime(), fxjs::kMonths, and fxcrt::WideString::operator+=().
|
static |
Definition at line 434 of file cjs_publicmethods.cpp.
References fxjs::FX_ParseDateUsingFormat(), fxjs::kBadDate, and fxjs::kSuccess.
|
static |
Definition at line 457 of file cjs_publicmethods.cpp.
References fxcrt::WideString::clear(), fxcrt::WideString::Format(), fxcrt::WideString::FormatInteger(), fxjs::FX_GetDayFromTime(), fxjs::FX_GetHourFromTime(), fxjs::FX_GetMinFromTime(), fxjs::FX_GetMonthFromTime(), fxjs::FX_GetSecFromTime(), fxjs::FX_GetYearFromTime(), fxjs::FX_IsValidMonth(), fxjs::kFullMonths, fxjs::kMonths, fxcrt::WideString::operator+=(), fxcrt::WideString::operator+=(), fxcrt::WideString::operator+=(), fxcrt::WideString::operator=(), and fxcrt::WideString::operator=().
Referenced by AFDate_FormatEx(), and TEST_F().