|
UDK 3.2.7 C/C++ API Reference
|
00001 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ 00002 /* 00003 * This file is part of the LibreOffice project. 00004 * 00005 * This Source Code Form is subject to the terms of the Mozilla Public 00006 * License, v. 2.0. If a copy of the MPL was not distributed with this 00007 * file, You can obtain one at http://mozilla.org/MPL/2.0/. 00008 * 00009 * This file incorporates work covered by the following license notice: 00010 * 00011 * Licensed to the Apache Software Foundation (ASF) under one or more 00012 * contributor license agreements. See the NOTICE file distributed 00013 * with this work for additional information regarding copyright 00014 * ownership. The ASF licenses this file to you under the Apache 00015 * License, Version 2.0 (the "License"); you may not use this file 00016 * except in compliance with the License. You may obtain a copy of 00017 * the License at http://www.apache.org/licenses/LICENSE-2.0 . 00018 */ 00019 #ifndef _CPPUHELPER_PROPTYPEHLP_H 00020 #define _CPPUHELPER_PROPTYPEHLP_H 00021 00022 #include <com/sun/star/lang/IllegalArgumentException.hpp> 00023 #include <com/sun/star/uno/TypeClass.hpp> 00024 00025 00026 namespace cppu { 00027 00035 template < class target > 00036 inline void SAL_CALL convertPropertyValue( target &value , const ::com::sun::star::uno::Any & a); 00037 00038 template < class target > 00039 inline void SAL_CALL convertPropertyValue( target &value , ::com::sun::star::uno::Any & a); 00040 00044 inline void SAL_CALL convertPropertyValue( sal_Int64 & target , const ::com::sun::star::uno::Any & source ) 00045 SAL_THROW( (::com::sun::star::lang::IllegalArgumentException) ); 00046 inline void SAL_CALL convertPropertyValue( sal_uInt64 & target, const ::com::sun::star::uno::Any & source ) 00047 SAL_THROW( (::com::sun::star::lang::IllegalArgumentException) ); 00048 inline void SAL_CALL convertPropertyValue( sal_Int32 & target , const ::com::sun::star::uno::Any & source ) 00049 SAL_THROW( (::com::sun::star::lang::IllegalArgumentException) ); 00050 inline void SAL_CALL convertPropertyValue( sal_uInt32 & target, const ::com::sun::star::uno::Any & source ) 00051 SAL_THROW( (::com::sun::star::lang::IllegalArgumentException) ); 00052 inline void SAL_CALL convertPropertyValue( sal_Int16 & target , const ::com::sun::star::uno::Any & source ) 00053 SAL_THROW( (::com::sun::star::lang::IllegalArgumentException) ); 00054 inline void SAL_CALL convertPropertyValue( sal_uInt16 & target, const ::com::sun::star::uno::Any & source ) 00055 SAL_THROW( (::com::sun::star::lang::IllegalArgumentException) ); 00056 inline void SAL_CALL convertPropertyValue( sal_Int8 & target , const ::com::sun::star::uno::Any & source ) 00057 SAL_THROW( (::com::sun::star::lang::IllegalArgumentException) ); 00058 inline void SAL_CALL convertPropertyValue( float & target , const ::com::sun::star::uno::Any & source ) 00059 SAL_THROW( (::com::sun::star::lang::IllegalArgumentException) ); 00060 inline void SAL_CALL convertPropertyValue( double &target , const ::com::sun::star::uno::Any &source ) 00061 SAL_THROW( (::com::sun::star::lang::IllegalArgumentException) ); 00062 inline void SAL_CALL convertPropertyValue( ::rtl::OUString &target , const ::com::sun::star::uno::Any &source ) 00063 SAL_THROW( (::com::sun::star::lang::IllegalArgumentException) ); 00064 00065 } // end namespace cppu 00066 00067 00068 #endif 00069 00070 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
1.7.3