Lines Matching refs:rVal

542 Any SAL_CALL TypeConverter_Impl::convertTo( const Any& rVal, const Type& aDestType )   in convertTo()  argument
545 Type aSourceType = rVal.getValueType(); in convertTo()
547 return rVal; in convertTo()
562 return rVal; in convertTo()
574 aRet.setValue( rVal.getValue(), aDestTD.get() ); // evtl. .uP.cAsT. in convertTo()
588 if (! rVal.hasValue()) in convertTo()
596 if (rVal.getValueTypeClass() != TypeClass_INTERFACE || in convertTo()
597 !*(XInterface * const *)rVal.getValue()) in convertTo()
603 if (! (aRet = (*(XInterface * const *)rVal.getValue())->queryInterface( in convertTo()
618 return rVal; in convertTo()
631 sal_uInt32 nPos = (*(const uno_Sequence * const *)rVal.getValue())->nElements; in convertTo()
644 (*(const uno_Sequence * const *)rVal.getValue())->elements; in convertTo()
684 if (((const OUString *)rVal.getValue())->equalsIgnoreAsciiCase( in convertTo()
693 sal_Int32 nEnumValue = (sal_Int32)toHyper( rVal, -(sal_Int64)0x80000000, 0x7fffffff ); in convertTo()
721 aRet = convertToSimpleType( rVal, aDestinationClass ); in convertTo()
738 Any TypeConverter_Impl::convertToSimpleType( const Any& rVal, TypeClass aDestinationClass ) in convertToSimpleType() argument
762 Type aSourceType = rVal.getValueType(); in convertToSimpleType()
765 return rVal; in convertToSimpleType()
778 return rVal; in convertToSimpleType()
786 sal_Bool bTmp = (toDouble( rVal ) != 0.0); in convertToSimpleType()
794 const OUString & aStr = *(const OUString *)rVal.getValue(); in convertToSimpleType()
822 if ((*(const OUString *)rVal.getValue()).getLength() == 1) // single char in convertToSimpleType()
823 aRet.setValue( (*(const OUString *)rVal.getValue()).getStr(), ::getCharCppuType() ); in convertToSimpleType()
828 sal_Unicode cRet = (sal_Unicode)toHyper( rVal, 0, 0xffff ); // range in convertToSimpleType()
834 aRet <<= (sal_Int8)( toHyper( rVal, -(sal_Int64)0x80, 0x7f ) ); in convertToSimpleType()
839 aRet <<= (sal_Int16)( toHyper( rVal, -(sal_Int64)0x8000, 0x7fff ) ); in convertToSimpleType()
842 aRet <<= (sal_uInt16)( toHyper( rVal, 0, 0xffff ) ); in convertToSimpleType()
847 aRet <<= (sal_Int32)( toHyper( rVal, -(sal_Int64)0x80000000, 0x7fffffff ) ); in convertToSimpleType()
850 aRet <<= (sal_uInt32)( toHyper( rVal, 0, 0xffffffff ) ); in convertToSimpleType()
855 aRet <<= toHyper( rVal, SAL_INT64_MIN, SAL_INT64_MAX ); in convertToSimpleType()
858 aRet <<= (sal_uInt64)( toHyper( rVal, 0, SAL_UINT64_MAX ) ); in convertToSimpleType()
863 aRet <<= (float)( toDouble( rVal, -FLT_MAX, FLT_MAX ) ); in convertToSimpleType()
866 aRet <<= (double)( toDouble( rVal, -DBL_MAX, DBL_MAX ) ); in convertToSimpleType()
878 sal_Int32 nEnumValue = *(sal_Int32 *)rVal.getValue(); in convertToSimpleType()
900 aRet <<= OUString::createFromAscii( (*(sal_Bool *)rVal.getValue() ? "true" : "false") ); in convertToSimpleType()
903 aRet <<= OUString( (sal_Unicode *)rVal.getValue(), 1 ); in convertToSimpleType()
907 aRet <<= OUString::valueOf( (sal_Int32)*(sal_Int8 const *)rVal.getValue() ); in convertToSimpleType()
910 aRet <<= OUString::valueOf( (sal_Int32)*(sal_Int16 const *)rVal.getValue() ); in convertToSimpleType()
913 aRet <<= OUString::valueOf( (sal_Int32)*(sal_uInt16 const *)rVal.getValue() ); in convertToSimpleType()
916 aRet <<= OUString::valueOf( *(sal_Int32 const *)rVal.getValue() ); in convertToSimpleType()
919 aRet <<= OUString::valueOf( (sal_Int64)*(sal_uInt32 const *)rVal.getValue() ); in convertToSimpleType()
922 aRet <<= OUString::valueOf( *(sal_Int64 const *)rVal.getValue() ); in convertToSimpleType()
930 aRet <<= OUString::valueOf( toDouble( rVal ) ); in convertToSimpleType()