UDK 3.2.7 C/C++ API Reference
|
00001 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ 00002 /************************************************************************* 00003 * 00004 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 00005 * 00006 * Copyright 2000, 2010 Oracle and/or its affiliates. 00007 * 00008 * OpenOffice.org - a multi-platform office productivity suite 00009 * 00010 * This file is part of OpenOffice.org. 00011 * 00012 * OpenOffice.org is free software: you can redistribute it and/or modify 00013 * it under the terms of the GNU Lesser General Public License version 3 00014 * only, as published by the Free Software Foundation. 00015 * 00016 * OpenOffice.org is distributed in the hope that it will be useful, 00017 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00019 * GNU Lesser General Public License version 3 for more details 00020 * (a copy is included in the LICENSE file that accompanied this code). 00021 * 00022 * You should have received a copy of the GNU Lesser General Public License 00023 * version 3 along with OpenOffice.org. If not, see 00024 * <http://www.openoffice.org/license.html> 00025 * for a copy of the LGPLv3 License. 00026 * 00027 ************************************************************************/ 00028 #ifndef _CPPUHELPER_PROPTYPEHLP_H 00029 #define _CPPUHELPER_PROPTYPEHLP_H 00030 00031 #include <com/sun/star/lang/IllegalArgumentException.hpp> 00032 #include <com/sun/star/uno/TypeClass.hpp> 00033 00034 00035 namespace cppu { 00036 00044 template < class target > 00045 inline void SAL_CALL convertPropertyValue( target &value , const ::com::sun::star::uno::Any & a); 00046 00047 template < class target > 00048 inline void SAL_CALL convertPropertyValue( target &value , ::com::sun::star::uno::Any & a); 00049 00053 inline void SAL_CALL convertPropertyValue( sal_Int64 & target , const ::com::sun::star::uno::Any & source ) 00054 SAL_THROW( (::com::sun::star::lang::IllegalArgumentException) ); 00055 inline void SAL_CALL convertPropertyValue( sal_uInt64 & target, const ::com::sun::star::uno::Any & source ) 00056 SAL_THROW( (::com::sun::star::lang::IllegalArgumentException) ); 00057 inline void SAL_CALL convertPropertyValue( sal_Int32 & target , const ::com::sun::star::uno::Any & source ) 00058 SAL_THROW( (::com::sun::star::lang::IllegalArgumentException) ); 00059 inline void SAL_CALL convertPropertyValue( sal_uInt32 & target, const ::com::sun::star::uno::Any & source ) 00060 SAL_THROW( (::com::sun::star::lang::IllegalArgumentException) ); 00061 inline void SAL_CALL convertPropertyValue( sal_Int16 & target , const ::com::sun::star::uno::Any & source ) 00062 SAL_THROW( (::com::sun::star::lang::IllegalArgumentException) ); 00063 inline void SAL_CALL convertPropertyValue( sal_uInt16 & target, const ::com::sun::star::uno::Any & source ) 00064 SAL_THROW( (::com::sun::star::lang::IllegalArgumentException) ); 00065 inline void SAL_CALL convertPropertyValue( sal_Int8 & target , const ::com::sun::star::uno::Any & source ) 00066 SAL_THROW( (::com::sun::star::lang::IllegalArgumentException) ); 00067 inline void SAL_CALL convertPropertyValue( float & target , const ::com::sun::star::uno::Any & source ) 00068 SAL_THROW( (::com::sun::star::lang::IllegalArgumentException) ); 00069 inline void SAL_CALL convertPropertyValue( double &target , const ::com::sun::star::uno::Any &source ) 00070 SAL_THROW( (::com::sun::star::lang::IllegalArgumentException) ); 00071 inline void SAL_CALL convertPropertyValue( ::rtl::OUString &target , const ::com::sun::star::uno::Any &source ) 00072 SAL_THROW( (::com::sun::star::lang::IllegalArgumentException) ); 00073 00074 } // end namespace cppu 00075 00076 00077 #endif 00078 00079 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */