|
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_COMPBASE9_HXX_ 00020 #define _CPPUHELPER_COMPBASE9_HXX_ 00021 00022 #include <cppuhelper/implbase9.hxx> 00023 #include <cppuhelper/compbase_ex.hxx> 00024 00025 namespace cppu 00026 { 00027 00028 // Suppress warnings about hidden functions in case any of the IfcN has 00029 // functions named dispose, addEventListener, or removeEventListener: 00030 #if defined __SUNPRO_CC 00031 #pragma disable_warn 00032 #endif 00033 00048 template< class Ifc1, class Ifc2, class Ifc3, class Ifc4, class Ifc5, class Ifc6, class Ifc7, class Ifc8, class Ifc9 > 00049 class SAL_NO_VTABLE SAL_DLLPUBLIC_TEMPLATE WeakComponentImplHelper9 00050 : public WeakComponentImplHelperBase 00051 , public ::com::sun::star::lang::XTypeProvider 00052 , public Ifc1, public Ifc2, public Ifc3, public Ifc4, public Ifc5, public Ifc6, public Ifc7, public Ifc8, public Ifc9 00053 { 00054 struct cd : public rtl::StaticAggregate< class_data, ImplClassData9< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9, WeakComponentImplHelper9<Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9> > > {}; 00055 public: 00056 inline WeakComponentImplHelper9( ::osl::Mutex & rMutex ) throw () 00057 : WeakComponentImplHelperBase( rMutex ) 00058 {} 00059 virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( ::com::sun::star::uno::Type const & rType ) throw (::com::sun::star::uno::RuntimeException) 00060 { return WeakComponentImplHelper_query( rType, cd::get(), this, (WeakComponentImplHelperBase *)this ); } 00061 virtual void SAL_CALL acquire() throw () 00062 { WeakComponentImplHelperBase::acquire(); } 00063 virtual void SAL_CALL release() throw () 00064 { WeakComponentImplHelperBase::release(); } 00065 virtual void SAL_CALL dispose()throw (::com::sun::star::uno::RuntimeException) 00066 { WeakComponentImplHelperBase::dispose(); } 00067 virtual void SAL_CALL addEventListener(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener > & xListener)throw (::com::sun::star::uno::RuntimeException) 00068 { WeakComponentImplHelperBase::addEventListener(xListener); } 00069 virtual void SAL_CALL removeEventListener(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener > & xListener)throw (::com::sun::star::uno::RuntimeException) 00070 { WeakComponentImplHelperBase::removeEventListener(xListener); } 00071 virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw (::com::sun::star::uno::RuntimeException) 00072 { return WeakComponentImplHelper_getTypes( cd::get() ); } 00073 virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw (::com::sun::star::uno::RuntimeException) 00074 { return ImplHelper_getImplementationId( cd::get() ); } 00075 }; 00076 00077 #if defined __SUNPRO_CC 00078 #pragma enable_warn 00079 #endif 00080 00090 template< class Ifc1, class Ifc2, class Ifc3, class Ifc4, class Ifc5, class Ifc6, class Ifc7, class Ifc8, class Ifc9 > 00091 class SAL_NO_VTABLE SAL_DLLPUBLIC_TEMPLATE PartialWeakComponentImplHelper9 00092 : public WeakComponentImplHelperBase 00093 , public ::com::sun::star::lang::XTypeProvider 00094 , public Ifc1, public Ifc2, public Ifc3, public Ifc4, public Ifc5, public Ifc6, public Ifc7, public Ifc8, public Ifc9 00095 { 00096 struct cd : public rtl::StaticAggregate< class_data, ImplClassData9< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9, PartialWeakComponentImplHelper9<Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9> > > {}; 00097 public: 00098 inline PartialWeakComponentImplHelper9( ::osl::Mutex & rMutex ) throw () 00099 : WeakComponentImplHelperBase( rMutex ) 00100 {} 00101 virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( ::com::sun::star::uno::Type const & rType ) throw (::com::sun::star::uno::RuntimeException) 00102 { return WeakComponentImplHelper_query( rType, cd::get(), this, (WeakComponentImplHelperBase *)this ); } 00103 virtual void SAL_CALL acquire() throw () 00104 { WeakComponentImplHelperBase::acquire(); } 00105 virtual void SAL_CALL release() throw () 00106 { WeakComponentImplHelperBase::release(); } 00107 virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw (::com::sun::star::uno::RuntimeException) 00108 { return WeakComponentImplHelper_getTypes( cd::get() ); } 00109 virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw (::com::sun::star::uno::RuntimeException) 00110 { return ImplHelper_getImplementationId( cd::get() ); } 00111 }; 00112 00129 template< class Ifc1, class Ifc2, class Ifc3, class Ifc4, class Ifc5, class Ifc6, class Ifc7, class Ifc8, class Ifc9 > 00130 class SAL_NO_VTABLE SAL_DLLPUBLIC_TEMPLATE WeakAggComponentImplHelper9 00131 : public WeakAggComponentImplHelperBase 00132 , public ::com::sun::star::lang::XTypeProvider 00133 , public Ifc1, public Ifc2, public Ifc3, public Ifc4, public Ifc5, public Ifc6, public Ifc7, public Ifc8, public Ifc9 00134 { 00135 struct cd : public rtl::StaticAggregate< class_data, ImplClassData9< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9, WeakAggComponentImplHelper9<Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9> > > {}; 00136 public: 00137 inline WeakAggComponentImplHelper9( ::osl::Mutex & rMutex ) throw () 00138 : WeakAggComponentImplHelperBase( rMutex ) 00139 {} 00140 virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( ::com::sun::star::uno::Type const & rType ) throw (::com::sun::star::uno::RuntimeException) 00141 { return WeakAggComponentImplHelperBase::queryInterface( rType ); } 00142 virtual ::com::sun::star::uno::Any SAL_CALL queryAggregation( ::com::sun::star::uno::Type const & rType ) throw (::com::sun::star::uno::RuntimeException) 00143 { return WeakAggComponentImplHelper_queryAgg( rType, cd::get(), this, (WeakAggComponentImplHelperBase *)this ); } 00144 virtual void SAL_CALL acquire() throw () 00145 { WeakAggComponentImplHelperBase::acquire(); } 00146 virtual void SAL_CALL release() throw () 00147 { WeakAggComponentImplHelperBase::release(); } 00148 virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw (::com::sun::star::uno::RuntimeException) 00149 { return WeakAggComponentImplHelper_getTypes( cd::get() ); } 00150 virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw (::com::sun::star::uno::RuntimeException) 00151 { return ImplHelper_getImplementationId( cd::get() ); } 00152 }; 00153 } 00154 00155 #endif 00156 00157 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
1.7.3