Lines Matching refs:var

171 	bool convertValueObject( const VARIANTARG *var, Any& any);
311 CComVariant var; in variantToAny() local
314 if( FAILED(hr= VariantCopyInd( &var, const_cast<VARIANTARG*>(pArg)))) // remove VT_BYREF in variantToAny()
318 bool bHandled = convertValueObject( & var, rAny); in variantToAny()
332 if( var.vt == VT_BSTR) in variantToAny()
334 if(SUCCEEDED( hr= VariantChangeType( &var, &var, 0, VT_BSTR))) in variantToAny()
335 rAny.setValue( (void*)V_BSTR( &var), ptype); in variantToAny()
343 if(SUCCEEDED(hr = VariantChangeType( & var, &var, 0, VT_I2))) in variantToAny()
344 rAny.setValue((void*) & var.iVal, ptype); in variantToAny()
354 rAny = createOleObjectWrapper( & var, ptype); in variantToAny()
358 if(SUCCEEDED(hr = VariantChangeType( & var, &var, 0, VT_I4))) in variantToAny()
359 rAny.setValue((void*) & var.lVal, ptype); in variantToAny()
377 if ((var.vt & VT_ARRAY) != 0) in variantToAny()
379 … VARTYPE oleType = ::sal::static_int_cast< VARTYPE, int >( var.vt ^ VT_ARRAY ); in variantToAny()
380 Sequence<Any> unoSeq = createOleArrayWrapper( var.parray, oleType, ptype); in variantToAny()
427 if (var.decVal.sign == 0) in variantToAny()
430 variantToAny( & var, rAny, getCppuType( (sal_uInt64*) 0), in variantToAny()
436 variantToAny( & var, rAny, getCppuType( (sal_Int64*) 0), in variantToAny()
442 variantToAny( & var, rAny); in variantToAny()
446 if(SUCCEEDED(hr = VariantChangeType( & var, &var, 0, VT_BOOL))) in variantToAny()
447 variantToAny( & var, rAny); in variantToAny()
454 if(SUCCEEDED(hr = VariantChangeType( & var, &var, 0, VT_BSTR))) in variantToAny()
455 variantToAny( & var, rAny); in variantToAny()
462 if(SUCCEEDED(hr = VariantChangeType( & var, &var, 0, VT_R4))) in variantToAny()
463 variantToAny( & var, rAny); in variantToAny()
470 if(SUCCEEDED(hr = VariantChangeType( & var, &var, 0, VT_R8))) in variantToAny()
471 variantToAny(& var, rAny); in variantToAny()
478 if(SUCCEEDED(hr = VariantChangeType( & var, &var, 0, VT_I1))) in variantToAny()
479 variantToAny( & var, rAny); in variantToAny()
486 if(SUCCEEDED(hr = VariantChangeType( & var, &var, 0, VT_I2))) in variantToAny()
487 variantToAny( & var, rAny); in variantToAny()
494 if(SUCCEEDED(hr = VariantChangeType(& var, &var, 0, VT_I4))) in variantToAny()
495 variantToAny( & var, rAny, bReduceValueRange); in variantToAny()
502 if(SUCCEEDED(hr = VariantChangeType(& var, &var, 0, VT_DECIMAL))) in variantToAny()
504 if (var.decVal.Lo64 > SAL_CONST_UINT64(0x8000000000000000) in variantToAny()
505 || var.decVal.Hi32 > 0 in variantToAny()
506 || var.decVal.scale > 0) in variantToAny()
511 sal_Int64 value = var.decVal.Lo64; in variantToAny()
512 if (var.decVal.sign == DECIMAL_NEG) in variantToAny()
522 if(SUCCEEDED(hr = VariantChangeType( & var, &var, 0, VT_UI2))) in variantToAny()
523 variantToAny( & var, rAny); in variantToAny()
530 if(SUCCEEDED(hr = VariantChangeType( & var, &var, 0, VT_UI4))) in variantToAny()
531 variantToAny( & var, rAny, bReduceValueRange); in variantToAny()
538 if(SUCCEEDED(hr = VariantChangeType(& var, &var, 0, VT_DECIMAL))) in variantToAny()
540 if (var.decVal.Hi32 > 0 || var.decVal.scale > 0) in variantToAny()
545 rAny <<= var.decVal.Lo64; in variantToAny()
553 if(SUCCEEDED(hr = VariantChangeType(& var, &var, 0, VT_UNKNOWN))) in variantToAny()
554 variantToAny( & var, rAny); in variantToAny()
576 OUString::valueOf((sal_Int32) var.vt) + in variantToAny()
584 "The provided VARIANT of type\" ") + OUString::valueOf((sal_Int32) var.vt) + in variantToAny()
642 CComVariant var; in anyToVariant() local
643 anyToVariant( &var, rAny); in anyToVariant()
644 if(FAILED(hr = VariantChangeType(&var, &var, 0, type))) in anyToVariant()
663 if(FAILED(hr = VariantCopy(pVariant, &var))) in anyToVariant()
956 CComVariant var; in anyToVariant() local
957 if (createUnoTypeWrapper(type.getTypeName(), & var) == false) in anyToVariant()
962 if (FAILED(VariantCopy(pVariant, &var))) in anyToVariant()
1150 VARIANT var; in createUnoSequenceWrapper() local
1151 VariantInit( &var); in createUnoSequenceWrapper()
1152 anyToVariant( &var, unoElement); in createUnoSequenceWrapper()
1155 VariantCopy( ( VARIANT*)psaCurrentData, &var); in createUnoSequenceWrapper()
1156 VariantClear( &var); in createUnoSequenceWrapper()
1159 memcpy( psaCurrentData, &var.byref, oleElementSize); in createUnoSequenceWrapper()
1479 CComVariant var; in variantToAny() local
1482 if( FAILED(hr= VariantCopyInd( &var, const_cast<VARIANTARG*>(pVariant)))) // remove VT_BYREF in variantToAny()
1487 if ( ! convertValueObject( & var, rAny)) in variantToAny()
1489 if ((var.vt & VT_ARRAY) > 0) in variantToAny()
1491 VARTYPE oleTypeFlags = ::sal::static_int_cast< VARTYPE, int >( var.vt ^ VT_ARRAY ); in variantToAny()
1493 Sequence<Any> unoSeq = createOleArrayWrapper(var.parray, oleTypeFlags); in variantToAny()
1498 switch (var.vt) in variantToAny()
1507 rAny.setValue( & var.iVal, getCppuType( (sal_Int16*)0)); in variantToAny()
1510 rAny.setValue( & var.lVal, getCppuType( (sal_Int32*)0)); in variantToAny()
1516 rAny.setValue( & var.fltVal, getCppuType( (float*)0)); in variantToAny()
1519 rAny.setValue(& var.dblVal, getCppuType( (double*)0)); in variantToAny()
1523 Currency cy(var.cyVal.int64); in variantToAny()
1529 Date d(var.date); in variantToAny()
1535 OUString b(reinterpret_cast<const sal_Unicode*>(var.bstrVal)); in variantToAny()
1544 … CComQIPtr<IUnoTypeWrapper, &__uuidof(IUnoTypeWrapper)> spType((IUnknown*) var.byref); in variantToAny()
1546 CComQIPtr<IUnoTypeWrapper> spType((IUnknown*) var.byref); in variantToAny()
1568 rAny = createOleObjectWrapper( & var); in variantToAny()
1574 SCode scode(var.scode); in variantToAny()
1580 sal_Bool b= var.boolVal == VARIANT_TRUE; in variantToAny()
1585 rAny.setValue( & var.cVal, getCppuType((sal_Int8*)0)); in variantToAny()
1588 rAny.setValue( & var.bVal, getCppuType( (sal_Int8*)0)); in variantToAny()
1591 rAny.setValue( & var.uiVal, getCppuType( (sal_uInt16*)0)); in variantToAny()
1594 rAny.setValue( & var.ulVal, getCppuType( (sal_uInt32*)0)); in variantToAny()
1597 rAny.setValue( & var.intVal, getCppuType( (sal_Int32*)0)); in variantToAny()
1600 rAny.setValue( & var.uintVal, getCppuType( (sal_uInt32*)0)); in variantToAny()
1608 dec.Scale = var.decVal.scale; in variantToAny()
1609 dec.Sign = var.decVal.sign; in variantToAny()
1610 dec.LowValue = var.decVal.Lo32; in variantToAny()
1611 dec.MiddleValue = var.decVal.Mid32; in variantToAny()
1612 dec.HighValue = var.decVal.Hi32; in variantToAny()
1916 bool UnoConversionUtilities<T>::convertValueObject( const VARIANTARG *var, Any& any) in convertValueObject() argument
1925 if(SUCCEEDED(hr = varDisp.ChangeType( VT_DISPATCH, var))) in convertValueObject()
2345 CComVariant var; in getImplementedInterfaces() local
2348 if( FAILED( hr= disp.GetPropertyByName( SUPPORTED_INTERFACES_PROP, &var))) in getImplementedInterfaces()
2350 hr= disp.GetPropertyByName( SUPPORTED_INTERFACES_PROP2, &var); in getImplementedInterfaces()
2356 variantToAny( &var, anyNames, getCppuType( (Sequence<Any>*) 0)); in getImplementedInterfaces()