Home | History | Annotate | Download | only in xfa

Lines Matching full:pvalue

142 void CJX_Object::className(CFXJSE_Value* pValue,
149 pValue->SetString(
332 void* pValue = nullptr;
334 if (GetMapModuleValue(pKey, pValue))
335 return {!!pValue};
371 void* pValue = nullptr;
372 if (GetMapModuleValue(pKey, pValue))
373 return {static_cast<int32_t>(reinterpret_cast<uintptr_t>(pValue))};
383 void* pValue = nullptr;
384 if (GetMapModuleValue(pKey, pValue)) {
386 static_cast<XFA_AttributeEnum>(reinterpret_cast<uintptr_t>(pValue))};
423 void* pValue;
425 if (GetMapModuleBuffer(pKey, pValue, iBytes, true) &&
427 return {*reinterpret_cast<CXFA_Measurement*>(pValue)};
599 void* pValue,
603 SetMapModuleValue(pKey, pValue);
625 CXFA_Value* pValue =
627 if (!pValue)
630 CXFA_Node* pChildValue = pValue->GetFirstChild();
706 CXFA_Value* pValue =
708 if (!pValue)
711 CXFA_Node* pChildValue = pValue->GetFirstChild();
811 CXFA_Value* pValue =
814 if (!pValue)
817 CXFA_Node* pChildValue = pValue->GetFirstChild();
969 void CJX_Object::SetMapModuleValue(void* pKey, void* pValue) {
970 CreateMapModuleData()->m_ValueMap[pKey] = pValue;
973 bool CJX_Object::GetMapModuleValue(void* pKey, void*& pValue) {
980 pValue = it->second;
991 void* pValue;
993 if (!GetMapModuleBuffer(pKey, pValue, iBytes, true))
998 wsValue = WideStringView(iChars ? (const wchar_t*)pValue : nullptr, iChars);
1004 void* pValue,
1026 memcpy(pBuffer->GetData(), pValue, iBytes);
1030 void*& pValue,
1050 pValue = pBuffer->GetData();
1210 void CJX_Object::Script_Attribute_String(CFXJSE_Value* pValue,
1214 pValue->SetString(GetAttribute(eAttribute).UTF8Encode().AsStringView());
1218 WideString wsValue = pValue->ToWideString();
1277 void CJX_Object::Script_Attribute_BOOL(CFXJSE_Value* pValue,
1281 SetBoolean(eAttribute, pValue->ToBoolean(), true);
1284 pValue->SetString(GetBoolean(eAttribute) ? "1" : "0");
1287 void CJX_Object::Script_Attribute_Integer(CFXJSE_Value* pValue,
1291 SetInteger(eAttribute, pValue->ToInteger(), true);
1294 pValue->SetInteger(GetInteger(eAttribute));
1297 void CJX_Object::Script_Som_FontColor(CFXJSE_Value* pValue,
1308 std::tie(r, g, b) = StrToRGB(pValue->ToWideString());
1319 pValue->SetString(ByteString::Format("%d,%d,%d", r, g, b).AsStringView());
1322 void CJX_Object::Script_Som_FillColor(CFXJSE_Value* pValue,
1334 std::tie(r, g, b) = StrToRGB(pValue->ToWideString());
1346 pValue->SetString(
1350 void CJX_Object::Script_Som_BorderColor(CFXJSE_Value* pValue,
1359 std::tie(r, g, b) = StrToRGB(pValue->ToWideString());
1377 pValue->SetString(
1381 void CJX_Object::Script_Som_BorderWidth(CFXJSE_Value* pValue,
1389 pValue->SetString(thickness.ToString().UTF8Encode().AsStringView());
1393 WideString wsThickness = pValue->ToWideString();
1401 void CJX_Object::Script_Som_Message(CFXJSE_Value* pValue,
1415 validate->SetScriptMessageText(pValue->ToWideString());
1418 validate->SetFormatMessageText(pValue->ToWideString());
1421 validate->SetNullMessageText(pValue->ToWideString());
1458 pValue->SetString(wsMessage.UTF8Encode().AsStringView());
1461 void CJX_Object::Script_Som_ValidationMessage(CFXJSE_Value* pValue,
1464 Script_Som_Message(pValue, bSetting, XFA_SOM_ValidationMessage);
1467 void CJX_Object::Script_Som_MandatoryMessage(CFXJSE_Value* pValue,
1470 pValue, bSetting, XFA_SOM_MandatoryMessage);
1473 void CJX_Object::Script_Field_Length(CFXJSE_Value* pValue,
1481 pValue->SetInteger(0);
1484 pValue->SetInteger(
1488 void CJX_Object::Script_Som_DefaultValue(CFXJSE_Value* pValue,
1497 static_cast<CJX_Field*>(this)->defaultValue(pValue, bSetting,
1502 static_cast<CJX_Draw*>(this)->defaultValue(pValue, bSetting,
1507 static_cast<CJX_Boolean*>(this)->defaultValue(pValue, bSetting,
1514 if (pValue && !(pValue->IsNull() || pValue->IsUndefined()))
1515 wsNewValue = pValue->ToWideString();
1550 pValue->SetNull();
1552 pValue->SetInteger(FXSYS_wtoi(content.c_str()));
1555 pValue->SetFloat((float)(double)decimal);
1557 pValue->SetString(content.UTF8Encode().AsStringView());
1561 void CJX_Object::Script_Som_DefaultValue_Read(CFXJSE_Value* pValue,
1571 pValue->SetNull();
1574 pValue->SetString(content.UTF8Encode().AsStringView());
1577 void CJX_Object::Script_Som_DataNode(CFXJSE_Value* pValue,
1587 pValue->SetNull();
1591 pValue->Assign(
1595 void CJX_Object::Script_Som_Mandatory(CFXJSE_Value* pValue,
1604 validate->SetNullTest(pValue->ToWideString());
1609 pValue->SetString(str.UTF8Encode().AsStringView());
1612 void CJX_Object::Script_Som_InstanceIndex(CFXJSE_Value* pValue,
1616 pValue->SetInteger(Subform_and_SubformSet_InstanceIndex());
1620 int32_t iTo = pValue->ToInteger();
1651 void CJX_Object::Script_Subform_InstanceManager(CFXJSE_Value* pValue,
1674 pValue->SetNull();
1678 pValue->Assign(
1682 void CJX_Object::Script_SubmitFormat_Mode(CFXJSE_Value* pValue,
1686 void CJX_Object::Script_Form_Checksum(CFXJSE_Value* pValue,
1690 SetAttribute(XFA_Attribute::Checksum, pValue->ToWideString().AsStringView(),
1696 pValue->SetString(checksum ? checksum->UTF8Encode().AsStringView() : "");
1699 void CJX_Object::Script_ExclGroup_ErrorText(CFXJSE_Value* pValue,