UDK 3.2.7 C/C++ API Reference

cppuhelper/compbase10.hxx

Go to the documentation of this file.
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_COMPBASE10_HXX_
00020 #define _CPPUHELPER_COMPBASE10_HXX_
00021 
00022 #include <cppuhelper/implbase10.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, class Ifc10 >
00049     class SAL_NO_VTABLE SAL_DLLPUBLIC_TEMPLATE WeakComponentImplHelper10
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, public Ifc10
00053     {
00054         struct cd : public rtl::StaticAggregate< class_data, ImplClassData10< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9, Ifc10, WeakComponentImplHelper10<Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9, Ifc10> > > {};
00055     public:
00056         inline WeakComponentImplHelper10( ::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, class Ifc10 >
00091     class SAL_NO_VTABLE SAL_DLLPUBLIC_TEMPLATE PartialWeakComponentImplHelper10
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, public Ifc10
00095     {
00096         struct cd : public rtl::StaticAggregate< class_data, ImplClassData10< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9, Ifc10, PartialWeakComponentImplHelper10<Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9, Ifc10> > > {};
00097     public:
00098         inline PartialWeakComponentImplHelper10( ::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 
00130     template< class Ifc1, class Ifc2, class Ifc3, class Ifc4, class Ifc5, class Ifc6, class Ifc7, class Ifc8, class Ifc9, class Ifc10 >
00131     class SAL_NO_VTABLE SAL_DLLPUBLIC_TEMPLATE WeakAggComponentImplHelper10
00132         : public WeakAggComponentImplHelperBase
00133         , public ::com::sun::star::lang::XTypeProvider
00134         , public Ifc1, public Ifc2, public Ifc3, public Ifc4, public Ifc5, public Ifc6, public Ifc7, public Ifc8, public Ifc9, public Ifc10
00135     {
00136         struct cd : public rtl::StaticAggregate< class_data, ImplClassData10< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9, Ifc10, WeakAggComponentImplHelper10<Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9, Ifc10> > > {};
00137     public:
00138         inline WeakAggComponentImplHelper10( ::osl::Mutex & rMutex ) throw ()
00139             : WeakAggComponentImplHelperBase( rMutex )
00140             {}
00141         virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( ::com::sun::star::uno::Type const & rType ) throw (::com::sun::star::uno::RuntimeException)
00142             { return WeakAggComponentImplHelperBase::queryInterface( rType ); }
00143         virtual ::com::sun::star::uno::Any SAL_CALL queryAggregation( ::com::sun::star::uno::Type const & rType ) throw (::com::sun::star::uno::RuntimeException)
00144             { return WeakAggComponentImplHelper_queryAgg( rType, cd::get(), this, (WeakAggComponentImplHelperBase *)this ); }
00145         virtual void SAL_CALL acquire() throw ()
00146             { WeakAggComponentImplHelperBase::acquire(); }
00147         virtual void SAL_CALL release() throw ()
00148             { WeakAggComponentImplHelperBase::release(); }
00149         virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw (::com::sun::star::uno::RuntimeException)
00150             { return WeakAggComponentImplHelper_getTypes( cd::get() ); }
00151         virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw (::com::sun::star::uno::RuntimeException)
00152             { return ImplHelper_getImplementationId( cd::get() ); }
00153     };
00154 }
00155 
00156 #endif
00157 
00158 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines