|
LibreOffice
LibreOffice 25.2 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. More... | |
| 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. More... | |
Public Member Functions inherited from XInterface | |
| any | queryInterface ([in] type aType) |
| queries for a new interface to an existing UNO object. More... | |
| void | acquire () |
| increases the reference counter by one. More... | |
| void | release () |
| decreases the reference counter by one. More... | |
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
1.8.14