LibreOffice
LibreOffice 24.8 SDK API Reference
|
Interface to provide standard type conversions. More...
import <XTypeConverter.idl;
Public Member Functions | |
any | convertTo ([in] any aFrom, [in] type xDestinationType) raises ( com::sun::star::lang::IllegalArgumentException, com::sun::star::script::CannotConvertException ) |
Converts the value aFrom to the specified type xDestinationType . | |
any | convertToSimpleType ([in] any aFrom, [in] com::sun::star::uno::TypeClass aDestinationType) raises ( com::sun::star::lang::IllegalArgumentException, com::sun::star::script::CannotConvertException ) |
Converts the value aFrom to the specified simple type aDestinationType . | |
![]() | |
any | queryInterface ([in] type aType) |
queries for a new interface to an existing UNO object. | |
void | acquire () |
increases the reference counter by one. | |
void | release () |
decreases the reference counter by one. | |
Interface to provide standard type conversions.
any convertTo | ( | [in] any | aFrom, | |||
[in] type | xDestinationType ) | |||||
raises | ( | com::sun::star::lang::IllegalArgumentException, | ||||
com::sun::star::script::CannotConvertException ) |
Converts the value aFrom
to the specified type xDestinationType
.
Throws a CannotConvertException if the conversion failed.
aFrom | source value |
xDestinationType | destination type |
xDestinationType
any convertToSimpleType | ( | [in] any | aFrom, | |||
[in] com::sun::star::uno::TypeClass | aDestinationType ) | |||||
raises | ( | com::sun::star::lang::IllegalArgumentException, | ||||
com::sun::star::script::CannotConvertException ) |
Converts the value aFrom
to the specified simple type aDestinationType
.
Throws a CannotConvertException if the conversion failed and a com::sun::star::lang::IllegalArgumentException if the destination com::sun::star::uno::TypeClass is not simple, e.g. not long or byte.
aFrom | source value |
aDestinationType | destination type class |
aDestinationType