Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
CJS_PublicMethods Class Referencefinal

#include <cjs_publicmethods.h>

Inheritance diagram for CJS_PublicMethods:
Collaboration diagram for CJS_PublicMethods:

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_RuntimeGetRuntime () 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)

Detailed Description

Definition at line 14 of file cjs_publicmethods.h.

Constructor & Destructor Documentation

◆ CJS_PublicMethods()

CJS_PublicMethods::CJS_PublicMethods ( )
delete

Member Function Documentation

◆ AF_MakeArrayFromList()

v8::Local< v8::Array > CJS_PublicMethods::AF_MakeArrayFromList ( CJS_Runtime * pRuntime,
v8::Local< v8::Value > val )
static

Definition at line 319 of file cjs_publicmethods.cpp.

◆ AFDate_Format()

CJS_Result CJS_PublicMethods::AFDate_Format ( CJS_Runtime * pRuntime,
pdfium::span< v8::Local< v8::Value > > params )
static

Definition at line 990 of file cjs_publicmethods.cpp.

References CJS_Result::Failure(), and kParamError.

Here is the call graph for this function:

◆ AFDate_Format_static()

void CJS_PublicMethods::AFDate_Format_static ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

◆ AFDate_FormatEx()

CJS_Result CJS_PublicMethods::AFDate_FormatEx ( CJS_Runtime * pRuntime,
pdfium::span< v8::Local< v8::Value > > params )
static

◆ AFDate_FormatEx_static()

void CJS_PublicMethods::AFDate_FormatEx_static ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

◆ AFDate_Keystroke()

CJS_Result CJS_PublicMethods::AFDate_Keystroke ( CJS_Runtime * pRuntime,
pdfium::span< v8::Local< v8::Value > > params )
static

Definition at line 1004 of file cjs_publicmethods.cpp.

References CJS_Result::Failure(), and kParamError.

Here is the call graph for this function:

◆ AFDate_Keystroke_static()

void CJS_PublicMethods::AFDate_Keystroke_static ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

◆ AFDate_KeystrokeEx()

CJS_Result CJS_PublicMethods::AFDate_KeystrokeEx ( CJS_Runtime * pRuntime,
pdfium::span< v8::Local< v8::Value > > params )
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().

Here is the call graph for this function:

◆ AFDate_KeystrokeEx_static()

void CJS_PublicMethods::AFDate_KeystrokeEx_static ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

◆ AFExtractNums()

CJS_Result CJS_PublicMethods::AFExtractNums ( CJS_Runtime * pRuntime,
pdfium::span< v8::Local< v8::Value > > params )
static

Definition at line 1427 of file cjs_publicmethods.cpp.

References CJS_Result::Failure(), kParamError, and CJS_Result::Success().

Here is the call graph for this function:

◆ AFExtractNums_static()

void CJS_PublicMethods::AFExtractNums_static ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

◆ AFMakeNumber()

CJS_Result CJS_PublicMethods::AFMakeNumber ( CJS_Runtime * pRuntime,
pdfium::span< v8::Local< v8::Value > > params )
static

Definition at line 1271 of file cjs_publicmethods.cpp.

References CJS_Result::Failure(), kParamError, and CJS_Result::Success().

Here is the call graph for this function:

◆ AFMakeNumber_static()

void CJS_PublicMethods::AFMakeNumber_static ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

◆ AFMergeChange()

CJS_Result CJS_PublicMethods::AFMergeChange ( CJS_Runtime * pRuntime,
pdfium::span< v8::Local< v8::Value > > params )
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().

Here is the call graph for this function:

◆ AFMergeChange_static()

void CJS_PublicMethods::AFMergeChange_static ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

◆ AFNumber_Format()

CJS_Result CJS_PublicMethods::AFNumber_Format ( CJS_Runtime * pRuntime,
pdfium::span< v8::Local< v8::Value > > params )
static

Definition at line 594 of file cjs_publicmethods.cpp.

References CJS_Result::Success().

Here is the call graph for this function:

◆ AFNumber_Format_static()

void CJS_PublicMethods::AFNumber_Format_static ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

◆ AFNumber_Keystroke()

CJS_Result CJS_PublicMethods::AFNumber_Keystroke ( CJS_Runtime * pRuntime,
pdfium::span< v8::Local< v8::Value > > params )
static

◆ AFNumber_Keystroke_static()

void CJS_PublicMethods::AFNumber_Keystroke_static ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

◆ AFParseDateEx()

CJS_Result CJS_PublicMethods::AFParseDateEx ( CJS_Runtime * pRuntime,
pdfium::span< v8::Local< v8::Value > > params )
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().

Here is the call graph for this function:

◆ AFParseDateEx_static()

void CJS_PublicMethods::AFParseDateEx_static ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

◆ AFPercent_Format()

CJS_Result CJS_PublicMethods::AFPercent_Format ( CJS_Runtime * pRuntime,
pdfium::span< v8::Local< v8::Value > > params )
static

Definition at line 789 of file cjs_publicmethods.cpp.

References CJS_Result::Success().

Here is the call graph for this function:

◆ AFPercent_Format_static()

void CJS_PublicMethods::AFPercent_Format_static ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

◆ AFPercent_Keystroke()

CJS_Result CJS_PublicMethods::AFPercent_Keystroke ( CJS_Runtime * pRuntime,
pdfium::span< v8::Local< v8::Value > > params )
static

Definition at line 877 of file cjs_publicmethods.cpp.

◆ AFPercent_Keystroke_static()

void CJS_PublicMethods::AFPercent_Keystroke_static ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

◆ AFRange_Validate()

CJS_Result CJS_PublicMethods::AFRange_Validate ( CJS_Runtime * pRuntime,
pdfium::span< v8::Local< v8::Value > > params )
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().

Here is the call graph for this function:

◆ AFRange_Validate_static()

void CJS_PublicMethods::AFRange_Validate_static ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

◆ AFSimple()

CJS_Result CJS_PublicMethods::AFSimple ( CJS_Runtime * pRuntime,
pdfium::span< v8::Local< v8::Value > > params )
static

Definition at line 1248 of file cjs_publicmethods.cpp.

References fxcrt::WideString::EqualsASCII(), CJS_Result::Failure(), kParamError, kValueError, and CJS_Result::Success().

Here is the call graph for this function:

◆ AFSimple_Calculate()

◆ AFSimple_Calculate_static()

void CJS_PublicMethods::AFSimple_Calculate_static ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

◆ AFSimple_static()

void CJS_PublicMethods::AFSimple_static ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

◆ AFSpecial_Format()

CJS_Result CJS_PublicMethods::AFSpecial_Format ( CJS_Runtime * pRuntime,
pdfium::span< v8::Local< v8::Value > > params )
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().

Here is the call graph for this function:

◆ AFSpecial_Format_static()

void CJS_PublicMethods::AFSpecial_Format_static ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

◆ AFSpecial_Keystroke()

CJS_Result CJS_PublicMethods::AFSpecial_Keystroke ( CJS_Runtime * pRuntime,
pdfium::span< v8::Local< v8::Value > > params )
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().

Here is the call graph for this function:

◆ AFSpecial_Keystroke_static()

void CJS_PublicMethods::AFSpecial_Keystroke_static ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

◆ AFSpecial_KeystrokeEx()

CJS_Result CJS_PublicMethods::AFSpecial_KeystrokeEx ( CJS_Runtime * pRuntime,
pdfium::span< v8::Local< v8::Value > > params )
static

◆ AFSpecial_KeystrokeEx_static()

void CJS_PublicMethods::AFSpecial_KeystrokeEx_static ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

◆ AFTime_Format()

CJS_Result CJS_PublicMethods::AFTime_Format ( CJS_Runtime * pRuntime,
pdfium::span< v8::Local< v8::Value > > params )
static

Definition at line 1018 of file cjs_publicmethods.cpp.

References CJS_Result::Failure(), and kParamError.

Here is the call graph for this function:

◆ AFTime_Format_static()

void CJS_PublicMethods::AFTime_Format_static ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

◆ AFTime_FormatEx()

CJS_Result CJS_PublicMethods::AFTime_FormatEx ( CJS_Runtime * pRuntime,
pdfium::span< v8::Local< v8::Value > > params )
static

Definition at line 1044 of file cjs_publicmethods.cpp.

◆ AFTime_FormatEx_static()

void CJS_PublicMethods::AFTime_FormatEx_static ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

◆ AFTime_Keystroke()

CJS_Result CJS_PublicMethods::AFTime_Keystroke ( CJS_Runtime * pRuntime,
pdfium::span< v8::Local< v8::Value > > params )
static

Definition at line 1031 of file cjs_publicmethods.cpp.

References CJS_Result::Failure(), and kParamError.

Here is the call graph for this function:

◆ AFTime_Keystroke_static()

void CJS_PublicMethods::AFTime_Keystroke_static ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

◆ AFTime_KeystrokeEx()

CJS_Result CJS_PublicMethods::AFTime_KeystrokeEx ( CJS_Runtime * pRuntime,
pdfium::span< v8::Local< v8::Value > > params )
static

Definition at line 1050 of file cjs_publicmethods.cpp.

◆ AFTime_KeystrokeEx_static()

void CJS_PublicMethods::AFTime_KeystrokeEx_static ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

◆ DefineJSObjects()

void CJS_PublicMethods::DefineJSObjects ( CFXJS_Engine * pEngine)
static

Definition at line 227 of file cjs_publicmethods.cpp.

◆ IsNumber()

bool CJS_PublicMethods::IsNumber ( const WideString & str)
static

Definition at line 261 of file cjs_publicmethods.cpp.

References FXSYS_IsDecimalDigit().

Referenced by AFNumber_Keystroke(), and TEST().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ IsReservedMaskChar()

bool CJS_PublicMethods::IsReservedMaskChar ( wchar_t ch)
static

Definition at line 315 of file cjs_publicmethods.cpp.

Referenced by AFSpecial_KeystrokeEx().

Here is the caller graph for this function:

◆ MaskSatisfied()

bool CJS_PublicMethods::MaskSatisfied ( wchar_t c_Change,
wchar_t c_Mask )
static

Definition at line 300 of file cjs_publicmethods.cpp.

References FXSYS_IsDecimalDigit().

Referenced by AFSpecial_KeystrokeEx().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ParseDate()

double CJS_PublicMethods::ParseDate ( v8::Isolate * isolate,
const WideString & value,
bool * bWrongFormat )
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().

Here is the call graph for this function:

◆ ParseDateAsGMT()

double CJS_PublicMethods::ParseDateAsGMT ( v8::Isolate * isolate,
const WideString & value )
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.

Here is the call graph for this function:

◆ ParseDateUsingFormat()

double CJS_PublicMethods::ParseDateUsingFormat ( v8::Isolate * isolate,
const WideString & value,
const WideString & format,
bool * bWrongFormat )
static

Definition at line 435 of file cjs_publicmethods.cpp.

References fxjs::FX_ParseDateUsingFormat(), fxjs::kBadDate, and fxjs::kSuccess.

Here is the call graph for this function:

◆ PrintDateUsingFormat()

WideString CJS_PublicMethods::PrintDateUsingFormat ( double dDate,
const WideString & format )
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().

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following files: