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)
 
virtual ~CJS_Object ()
 
v8::Local< v8::Object > ToV8Object ()
 
CJS_RuntimeGetRuntime () 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)
 

Detailed Description

Definition at line 16 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 322 of file cjs_publicmethods.cpp.

References fxcrt::ByteString::c_str().

+ Here is the call graph for this function:

◆ AFDate_Format()

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

Definition at line 988 of file cjs_publicmethods.cpp.

References CJS_Result::Failure(), and kParamError.

+ Here is the call graph for this function:

◆ AFDate_Format_static()

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

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 1002 of file cjs_publicmethods.cpp.

References CJS_Result::Failure(), and kParamError.

+ Here is the call graph for this function:

◆ AFDate_Keystroke_static()

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

◆ AFDate_KeystrokeEx_static()

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

+ Here is the call graph for this function:

◆ AFExtractNums_static()

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 1269 of file cjs_publicmethods.cpp.

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

+ Here is the call graph for this function:

◆ AFMakeNumber_static()

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

+ Here is the call graph for this function:

◆ AFMergeChange_static()

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 593 of file cjs_publicmethods.cpp.

References CJS_Result::Success().

+ Here is the call graph for this function:

◆ AFNumber_Format_static()

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

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

+ Here is the call graph for this function:

◆ AFParseDateEx_static()

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 787 of file cjs_publicmethods.cpp.

References CJS_Result::Success().

+ Here is the call graph for this function:

◆ AFPercent_Format_static()

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 875 of file cjs_publicmethods.cpp.

◆ AFPercent_Keystroke_static()

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

+ Here is the call graph for this function:

◆ AFRange_Validate_static()

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 1246 of file cjs_publicmethods.cpp.

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

+ Here is the call graph for this function:

◆ AFSimple_Calculate()

◆ AFSimple_Calculate_static()

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

◆ AFSimple_static()

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

+ Here is the call graph for this function:

◆ AFSpecial_Format_static()

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

+ Here is the call graph for this function:

◆ AFSpecial_Keystroke_static()

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

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 1016 of file cjs_publicmethods.cpp.

References CJS_Result::Failure(), and kParamError.

+ Here is the call graph for this function:

◆ AFTime_Format_static()

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 1042 of file cjs_publicmethods.cpp.

◆ AFTime_FormatEx_static()

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 1029 of file cjs_publicmethods.cpp.

References CJS_Result::Failure(), and kParamError.

+ Here is the call graph for this function:

◆ AFTime_Keystroke_static()

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 1048 of file cjs_publicmethods.cpp.

◆ AFTime_KeystrokeEx_static()

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 235 of file cjs_publicmethods.cpp.

◆ IsNumber()

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

Definition at line 269 of file cjs_publicmethods.cpp.

References fxcrt::WideString::c_str(), and 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 318 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 303 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 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().

+ Here is the call graph for this function:

◆ ParseDateAsGMT()

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

+ 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 434 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 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().

+ 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: