Home | History | Annotate | Download | only in javascript

Lines Matching refs:pRuntime

190 CJS_Array CJS_PublicMethods::AF_MakeArrayFromList(CJS_Runtime* pRuntime,
194 val.ConvertToArray(pRuntime, StrArray);
197 CFX_WideString wsStr = val.ToCFXWideString(pRuntime);
208 pRuntime, nIndex,
209 CJS_Value(pRuntime, StrTrim(CFX_ByteString(p)).c_str()));
218 pRuntime, nIndex,
219 CJS_Value(pRuntime, StrTrim(CFX_ByteString(pSub)).c_str()));
753 bool CJS_PublicMethods::AFNumber_Format(CJS_Runtime* pRuntime,
764 pRuntime->GetCurrentEventContext()->GetEventHandler();
773 int iDec = params[0].ToInt(pRuntime);
774 int iSepStyle = params[1].ToInt(pRuntime);
775 int iNegStyle = params[2].ToInt(pRuntime);
777 CFX_WideString wstrCurrency = params[4].ToCFXWideString(pRuntime);
778 bool bCurrencyPrepend = params[5].ToBool(pRuntime);
844 CJS_Value vColElm(pRuntime);
845 vColElm = CJS_Value(pRuntime, L"RGB");
846 arColor.SetElement(pRuntime, 0, vColElm);
847 vColElm = CJS_Value(pRuntime, 1);
848 arColor.SetElement(pRuntime, 1, vColElm);
849 vColElm = CJS_Value(pRuntime, 0);
850 arColor.SetElement(pRuntime, 2, vColElm);
851 arColor.SetElement(pRuntime, 3, vColElm);
853 CJS_PropValue vProp(pRuntime);
857 fTarget->textColor(pRuntime, vProp, sError); // red
864 CJS_Value vColElm(pRuntime);
865 vColElm = CJS_Value(pRuntime, L"RGB");
866 arColor.SetElement(pRuntime, 0, vColElm);
867 vColElm = CJS_Value(pRuntime, 0);
868 arColor.SetElement(pRuntime, 1, vColElm);
869 arColor.SetElement(pRuntime, 2, vColElm);
870 arColor.SetElement(pRuntime, 3, vColElm);
872 CJS_PropValue vProp(pRuntime);
874 fTarget->textColor(pRuntime, vProp, sError);
877 vProp.GetJSValue()->ConvertToArray(pRuntime, aProp);
881 color::ConvertArrayToPWLColor(pRuntime, aProp, &crProp);
882 color::ConvertArrayToPWLColor(pRuntime, arColor, &crColor);
885 CJS_PropValue vProp2(pRuntime);
889 fTarget->textColor(pRuntime, vProp2, sError);
900 bool CJS_PublicMethods::AFNumber_Keystroke(CJS_Runtime* pRuntime,
907 CJS_EventContext* pContext = pRuntime->GetCurrentEventContext();
946 int iSepStyle = params[1].ToInt(pRuntime);
999 bool CJS_PublicMethods::AFPercent_Format(CJS_Runtime* pRuntime,
1010 pRuntime->GetCurrentEventContext()->GetEventHandler();
1019 int iDec = params[0].ToInt(pRuntime);
1023 int iSepStyle = params[1].ToInt(pRuntime);
1091 CJS_Runtime* pRuntime,
1095 return AFNumber_Keystroke(pRuntime, params, vRet, sError);
1099 bool CJS_PublicMethods::AFDate_FormatEx(CJS_Runtime* pRuntime,
1108 CJS_EventContext* pContext = pRuntime->GetCurrentEventContext();
1118 CFX_WideString sFormat = params[0].ToCFXWideString(pRuntime);
1198 bool CJS_PublicMethods::AFDate_KeystrokeEx(CJS_Runtime* pRuntime,
1207 CJS_EventContext* pContext = pRuntime->GetCurrentEventContext();
1217 CFX_WideString sFormat = params[0].ToCFXWideString(pRuntime);
1232 bool CJS_PublicMethods::AFDate_Format(CJS_Runtime* pRuntime,
1241 int iIndex = params[0].ToInt(pRuntime);
1261 newParams.push_back(CJS_Value(pRuntime, cFormats[iIndex]));
1262 return AFDate_FormatEx(pRuntime, newParams, vRet, sError);
1266 bool CJS_PublicMethods::AFDate_Keystroke(CJS_Runtime* pRuntime,
1275 int iIndex = params[0].ToInt(pRuntime);
1295 newParams.push_back(CJS_Value(pRuntime, cFormats[iIndex]));
1296 return AFDate_KeystrokeEx(pRuntime, newParams, vRet, sError);
1300 bool CJS_PublicMethods::AFTime_Format(CJS_Runtime* pRuntime,
1309 int iIndex = params[0].ToInt(pRuntime);
1317 newParams.push_back(CJS_Value(pRuntime, cFormats[iIndex]));
1318 return AFDate_FormatEx(pRuntime, newParams, vRet, sError);
1321 bool CJS_PublicMethods::AFTime_Keystroke(CJS_Runtime* pRuntime,
1330 int iIndex = params[0].ToInt(pRuntime);
1338 newParams.push_back(CJS_Value(pRuntime, cFormats[iIndex]));
1339 return AFDate_KeystrokeEx(pRuntime, newParams, vRet, sError);
1342 bool CJS_PublicMethods::AFTime_FormatEx(CJS_Runtime* pRuntime,
1346 return AFDate_FormatEx(pRuntime, params, vRet, sError);
1349 bool CJS_PublicMethods::AFTime_KeystrokeEx(CJS_Runtime* pRuntime,
1353 return AFDate_KeystrokeEx(pRuntime, params, vRet, sError);
1357 bool CJS_PublicMethods::AFSpecial_Format(CJS_Runtime* pRuntime,
1367 pRuntime->GetCurrentEventContext()->GetEventHandler();
1373 switch (params[0].ToInt(pRuntime)) {
1397 CJS_Runtime* pRuntime,
1406 CJS_EventContext* pContext = pRuntime->GetCurrentEventContext();
1412 CFX_WideString wstrMask = params[0].ToCFXWideString(pRuntime);
1480 CJS_Runtime* pRuntime,
1490 pRuntime->GetCurrentEventContext()->GetEventHandler();
1495 switch (params[0].ToInt(pRuntime)) {
1514 params2.push_back(CJS_Value(pRuntime, cFormat));
1515 return AFSpecial_KeystrokeEx(pRuntime, params2, vRet, sError);
1518 bool CJS_PublicMethods::AFMergeChange(CJS_Runtime* pRuntime,
1528 pRuntime->GetCurrentEventContext()->GetEventHandler();
1535 vRet = CJS_Value(pRuntime, swValue.c_str());
1554 CJS_Value(pRuntime, (prefix + pEventHandler->Change() + postfix).c_str());
1558 bool CJS_PublicMethods::AFParseDateEx(CJS_Runtime* pRuntime,
1567 CFX_WideString sValue = params[0].ToCFXWideString(pRuntime);
1568 CFX_WideString sFormat = params[1].ToCFXWideString(pRuntime);
1574 AlertIfPossible(pRuntime->GetCurrentEventContext(), swMsg.c_str());
1578 vRet = CJS_Value(pRuntime, dDate);
1582 bool CJS_PublicMethods::AFSimple(CJS_Runtime* pRuntime,
1591 vRet = CJS_Value(pRuntime, static_cast<double>(AF_Simple(
1592 params[0].ToCFXWideString(pRuntime).c_str(),
1593 params[1].ToDouble(pRuntime),
1594 params[2].ToDouble(pRuntime))));
1599 bool CJS_PublicMethods::AFMakeNumber(CJS_Runtime* pRuntime,
1608 CFX_WideString ws = params[0].ToCFXWideString(pRuntime);
1610 vRet = CJS_Value(pRuntime, ws.c_str());
1611 vRet.MaybeCoerceToNumber(pRuntime);
1613 vRet = CJS_Value(pRuntime, 0);
1617 bool CJS_PublicMethods::AFSimple_Calculate(CJS_Runtime* pRuntime,
1633 pRuntime->GetFormFillEnv()->GetInterForm();
1636 CFX_WideString sFunction = params[0].ToCFXWideString(pRuntime);
1639 CJS_Array FieldNameArray = AF_MakeArrayFromList(pRuntime, params1);
1642 for (int i = 0, isz = FieldNameArray.GetLength(pRuntime); i < isz; i++) {
1643 CJS_Value jsValue(pRuntime);
1644 FieldNameArray.GetElement(pRuntime, i, jsValue);
1645 CFX_WideString wsFieldName = jsValue.ToCFXWideString(pRuntime);
1705 CJS_Value jsValue(pRuntime, dValue);
1706 CJS_EventContext* pContext = pRuntime->GetCurrentEventContext();
1708 pContext->GetEventHandler()->Value() = jsValue.ToCFXWideString(pRuntime);
1716 bool CJS_PublicMethods::AFRange_Validate(CJS_Runtime* pRuntime,
1724 CJS_EventContext* pContext = pRuntime->GetCurrentEventContext();
1734 bool bGreaterThan = params[0].ToBool(pRuntime);
1735 double dGreaterThan = params[1].ToDouble(pRuntime);
1736 bool bLessThan = params[2].ToBool(pRuntime);
1737 double dLessThan = params[3].ToDouble(pRuntime);
1743 params[1].ToCFXWideString(pRuntime).c_str(),
1744 params[3].ToCFXWideString(pRuntime).c_str());
1748 params[1].ToCFXWideString(pRuntime).c_str());
1752 params[3].ToCFXWideString(pRuntime).c_str());
1762 bool CJS_PublicMethods::AFExtractNums(CJS_Runtime* pRuntime,
1771 CFX_WideString str = params[0].ToCFXWideString(pRuntime);
1784 nums.SetElement(pRuntime, nIndex, CJS_Value(pRuntime, sPart.c_str()));
1792 nums.SetElement(pRuntime, nIndex, CJS_Value(pRuntime, sPart.c_str()));
1795 if (nums.GetLength(pRuntime) > 0)
1796 vRet = CJS_Value(pRuntime, nums);
1798 vRet.SetNull(pRuntime);