1*cdf0e10cSrcweir /*************************************************************************
2*cdf0e10cSrcweir  *
3*cdf0e10cSrcweir  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4*cdf0e10cSrcweir  *
5*cdf0e10cSrcweir  * Copyright 2000, 2010 Oracle and/or its affiliates.
6*cdf0e10cSrcweir  *
7*cdf0e10cSrcweir  * OpenOffice.org - a multi-platform office productivity suite
8*cdf0e10cSrcweir  *
9*cdf0e10cSrcweir  * This file is part of OpenOffice.org.
10*cdf0e10cSrcweir  *
11*cdf0e10cSrcweir  * OpenOffice.org is free software: you can redistribute it and/or modify
12*cdf0e10cSrcweir  * it under the terms of the GNU Lesser General Public License version 3
13*cdf0e10cSrcweir  * only, as published by the Free Software Foundation.
14*cdf0e10cSrcweir  *
15*cdf0e10cSrcweir  * OpenOffice.org is distributed in the hope that it will be useful,
16*cdf0e10cSrcweir  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17*cdf0e10cSrcweir  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*cdf0e10cSrcweir  * GNU Lesser General Public License version 3 for more details
19*cdf0e10cSrcweir  * (a copy is included in the LICENSE file that accompanied this code).
20*cdf0e10cSrcweir  *
21*cdf0e10cSrcweir  * You should have received a copy of the GNU Lesser General Public License
22*cdf0e10cSrcweir  * version 3 along with OpenOffice.org.  If not, see
23*cdf0e10cSrcweir  * <http://www.openoffice.org/license.html>
24*cdf0e10cSrcweir  * for a copy of the LGPLv3 License.
25*cdf0e10cSrcweir  *
26*cdf0e10cSrcweir  ************************************************************************/
27*cdf0e10cSrcweir #ifndef _CPPUHELPER_IMPLBASE4_HXX_
28*cdf0e10cSrcweir #define _CPPUHELPER_IMPLBASE4_HXX_
29*cdf0e10cSrcweir 
30*cdf0e10cSrcweir #include <cppuhelper/implbase_ex.hxx>
31*cdf0e10cSrcweir #include <rtl/instance.hxx>
32*cdf0e10cSrcweir 
33*cdf0e10cSrcweir namespace cppu
34*cdf0e10cSrcweir {
35*cdf0e10cSrcweir     /** @internal */
36*cdf0e10cSrcweir     struct class_data4
37*cdf0e10cSrcweir     {
38*cdf0e10cSrcweir         sal_Int16 m_nTypes;
39*cdf0e10cSrcweir         sal_Bool m_storedTypeRefs;
40*cdf0e10cSrcweir         sal_Bool m_storedId;
41*cdf0e10cSrcweir         sal_Int8 m_id[ 16 ];
42*cdf0e10cSrcweir         type_entry m_typeEntries[ 4 + 1 ];
43*cdf0e10cSrcweir     };
44*cdf0e10cSrcweir 
45*cdf0e10cSrcweir     /** @internal */
46*cdf0e10cSrcweir     template< typename Ifc1, typename Ifc2, typename Ifc3, typename Ifc4, typename Impl >
47*cdf0e10cSrcweir         struct ImplClassData4
48*cdf0e10cSrcweir     {
49*cdf0e10cSrcweir         class_data* operator ()()
50*cdf0e10cSrcweir         {
51*cdf0e10cSrcweir             static class_data4 s_cd =
52*cdf0e10cSrcweir             {
53*cdf0e10cSrcweir                 4 +1, sal_False, sal_False,
54*cdf0e10cSrcweir                 { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
55*cdf0e10cSrcweir                 {
56*cdf0e10cSrcweir 					{ { Ifc1::static_type }, ((sal_IntPtr)(Ifc1 *) (Impl *) 16) - 16 },
57*cdf0e10cSrcweir 					{ { Ifc2::static_type }, ((sal_IntPtr)(Ifc2 *) (Impl *) 16) - 16 },
58*cdf0e10cSrcweir 					{ { Ifc3::static_type }, ((sal_IntPtr)(Ifc3 *) (Impl *) 16) - 16 },
59*cdf0e10cSrcweir 					{ { Ifc4::static_type }, ((sal_IntPtr)(Ifc4 *) (Impl *) 16) - 16 },
60*cdf0e10cSrcweir 					{ { ::com::sun::star::lang::XTypeProvider::static_type }, ((sal_IntPtr)(::com::sun::star::lang::XTypeProvider *) (Impl *) 16) - 16 }
61*cdf0e10cSrcweir                 }
62*cdf0e10cSrcweir             };
63*cdf0e10cSrcweir             return reinterpret_cast< class_data * >(&s_cd);
64*cdf0e10cSrcweir         }
65*cdf0e10cSrcweir     };
66*cdf0e10cSrcweir 
67*cdf0e10cSrcweir     /** Implementation helper implementing interface ::com::sun::star::lang::XTypeProvider
68*cdf0e10cSrcweir         and method XInterface::queryInterface(), but no reference counting.
69*cdf0e10cSrcweir 
70*cdf0e10cSrcweir         @derive
71*cdf0e10cSrcweir         Inherit from this class giving your interface(s) to be implemented as template argument(s).
72*cdf0e10cSrcweir         Your sub class defines method implementations for these interface(s) including acquire()/
73*cdf0e10cSrcweir         release() and delegates incoming queryInterface() calls to this base class.
74*cdf0e10cSrcweir     */
75*cdf0e10cSrcweir     template< class Ifc1, class Ifc2, class Ifc3, class Ifc4 >
76*cdf0e10cSrcweir     class SAL_NO_VTABLE ImplHelper4
77*cdf0e10cSrcweir         : public ::com::sun::star::lang::XTypeProvider
78*cdf0e10cSrcweir         , public Ifc1, public Ifc2, public Ifc3, public Ifc4
79*cdf0e10cSrcweir     {
80*cdf0e10cSrcweir         /** @internal */
81*cdf0e10cSrcweir         struct cd : public rtl::StaticAggregate< class_data, ImplClassData4 < Ifc1, Ifc2, Ifc3, Ifc4, ImplHelper4<Ifc1, Ifc2, Ifc3, Ifc4> > > {};
82*cdf0e10cSrcweir     public:
83*cdf0e10cSrcweir         virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( ::com::sun::star::uno::Type const & rType ) throw (::com::sun::star::uno::RuntimeException)
84*cdf0e10cSrcweir             { return ImplHelper_query( rType, cd::get(), this ); }
85*cdf0e10cSrcweir         virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw (::com::sun::star::uno::RuntimeException)
86*cdf0e10cSrcweir             { return ImplHelper_getTypes( cd::get() ); }
87*cdf0e10cSrcweir         virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw (::com::sun::star::uno::RuntimeException)
88*cdf0e10cSrcweir             { return ImplHelper_getImplementationId( cd::get() ); }
89*cdf0e10cSrcweir     };
90*cdf0e10cSrcweir     /** Implementation helper implementing interfaces ::com::sun::star::lang::XTypeProvider and
91*cdf0e10cSrcweir         ::com::sun::star::uno::XInterface which supports weak mechanism to be held weakly
92*cdf0e10cSrcweir         (supporting ::com::sun::star::uno::XWeak thru ::cppu::OWeakObject).
93*cdf0e10cSrcweir 
94*cdf0e10cSrcweir         @derive
95*cdf0e10cSrcweir         Inherit from this class giving your interface(s) to be implemented as template argument(s).
96*cdf0e10cSrcweir         Your sub class defines method implementations for these interface(s).
97*cdf0e10cSrcweir     */
98*cdf0e10cSrcweir     template< class Ifc1, class Ifc2, class Ifc3, class Ifc4 >
99*cdf0e10cSrcweir     class SAL_NO_VTABLE WeakImplHelper4
100*cdf0e10cSrcweir         : public OWeakObject
101*cdf0e10cSrcweir         , public ::com::sun::star::lang::XTypeProvider
102*cdf0e10cSrcweir         , public Ifc1, public Ifc2, public Ifc3, public Ifc4
103*cdf0e10cSrcweir     {
104*cdf0e10cSrcweir         /** @internal */
105*cdf0e10cSrcweir         struct cd : public rtl::StaticAggregate< class_data, ImplClassData4 < Ifc1, Ifc2, Ifc3, Ifc4, WeakImplHelper4<Ifc1, Ifc2, Ifc3, Ifc4> > > {};
106*cdf0e10cSrcweir     public:
107*cdf0e10cSrcweir         virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( ::com::sun::star::uno::Type const & rType ) throw (::com::sun::star::uno::RuntimeException)
108*cdf0e10cSrcweir             { return WeakImplHelper_query( rType, cd::get(), this, (OWeakObject *)this ); }
109*cdf0e10cSrcweir         virtual void SAL_CALL acquire() throw ()
110*cdf0e10cSrcweir             { OWeakObject::acquire(); }
111*cdf0e10cSrcweir         virtual void SAL_CALL release() throw ()
112*cdf0e10cSrcweir             { OWeakObject::release(); }
113*cdf0e10cSrcweir         virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw (::com::sun::star::uno::RuntimeException)
114*cdf0e10cSrcweir             { return WeakImplHelper_getTypes( cd::get() ); }
115*cdf0e10cSrcweir         virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw (::com::sun::star::uno::RuntimeException)
116*cdf0e10cSrcweir             { return ImplHelper_getImplementationId( cd::get() ); }
117*cdf0e10cSrcweir     };
118*cdf0e10cSrcweir     /** Implementation helper implementing interfaces ::com::sun::star::lang::XTypeProvider and
119*cdf0e10cSrcweir         ::com::sun::star::uno::XInterface which supports weak mechanism to be held weakly
120*cdf0e10cSrcweir         (supporting ::com::sun::star::uno::XWeak thru ::cppu::OWeakAggObject).
121*cdf0e10cSrcweir         In addition, it supports also aggregation meaning object of this class can be aggregated
122*cdf0e10cSrcweir         (::com::sun::star::uno::XAggregation thru ::cppu::OWeakAggObject).
123*cdf0e10cSrcweir         If a delegator is set (this object is aggregated), then incoming queryInterface()
124*cdf0e10cSrcweir         calls are delegated to the delegator object. If the delegator does not support the
125*cdf0e10cSrcweir         demanded interface, it calls queryAggregation() on its aggregated objects.
126*cdf0e10cSrcweir 
127*cdf0e10cSrcweir         @derive
128*cdf0e10cSrcweir         Inherit from this class giving your interface(s) to be implemented as template argument(s).
129*cdf0e10cSrcweir         Your sub class defines method implementations for these interface(s).
130*cdf0e10cSrcweir     */
131*cdf0e10cSrcweir     template< class Ifc1, class Ifc2, class Ifc3, class Ifc4 >
132*cdf0e10cSrcweir     class SAL_NO_VTABLE WeakAggImplHelper4
133*cdf0e10cSrcweir         : public OWeakAggObject
134*cdf0e10cSrcweir         , public ::com::sun::star::lang::XTypeProvider
135*cdf0e10cSrcweir         , public Ifc1, public Ifc2, public Ifc3, public Ifc4
136*cdf0e10cSrcweir     {
137*cdf0e10cSrcweir         /** @internal */
138*cdf0e10cSrcweir         struct cd : public rtl::StaticAggregate< class_data, ImplClassData4 < Ifc1, Ifc2, Ifc3, Ifc4, WeakAggImplHelper4<Ifc1, Ifc2, Ifc3, Ifc4> > > {};
139*cdf0e10cSrcweir     public:
140*cdf0e10cSrcweir         virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( ::com::sun::star::uno::Type const & rType ) throw (::com::sun::star::uno::RuntimeException)
141*cdf0e10cSrcweir             { return OWeakAggObject::queryInterface( rType ); }
142*cdf0e10cSrcweir         virtual ::com::sun::star::uno::Any SAL_CALL queryAggregation( ::com::sun::star::uno::Type const & rType ) throw (::com::sun::star::uno::RuntimeException)
143*cdf0e10cSrcweir             { return WeakAggImplHelper_queryAgg( rType, cd::get(), this, (OWeakAggObject *)this ); }
144*cdf0e10cSrcweir         virtual void SAL_CALL acquire() throw ()
145*cdf0e10cSrcweir             { OWeakAggObject::acquire(); }
146*cdf0e10cSrcweir         virtual void SAL_CALL release() throw ()
147*cdf0e10cSrcweir             { OWeakAggObject::release(); }
148*cdf0e10cSrcweir         virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw (::com::sun::star::uno::RuntimeException)
149*cdf0e10cSrcweir             { return WeakAggImplHelper_getTypes( cd::get() ); }
150*cdf0e10cSrcweir         virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw (::com::sun::star::uno::RuntimeException)
151*cdf0e10cSrcweir             { return ImplHelper_getImplementationId( cd::get() ); }
152*cdf0e10cSrcweir     };
153*cdf0e10cSrcweir     /** Implementation helper implementing interfaces ::com::sun::star::lang::XTypeProvider and
154*cdf0e10cSrcweir         ::com::sun::star::uno::XInterface inherting from a BaseClass.
155*cdf0e10cSrcweir         All acquire() and release() calls are delegated to the BaseClass. Upon queryInterface(),
156*cdf0e10cSrcweir         if a demanded interface is not supported by this class directly, the request is
157*cdf0e10cSrcweir         delegated to the BaseClass.
158*cdf0e10cSrcweir 
159*cdf0e10cSrcweir         @attention
160*cdf0e10cSrcweir         The BaseClass has to be complete in a sense, that ::com::sun::star::uno::XInterface
161*cdf0e10cSrcweir         and ::com::sun::star::lang::XTypeProvider are implemented properly.  The
162*cdf0e10cSrcweir         BaseClass must have at least one ctor that can be called with six or
163*cdf0e10cSrcweir         fewer arguments, of which none is of non-const reference type.
164*cdf0e10cSrcweir 
165*cdf0e10cSrcweir         @derive
166*cdf0e10cSrcweir         Inherit from this class giving your additional interface(s) to be implemented as
167*cdf0e10cSrcweir         template argument(s). Your sub class defines method implementations for these interface(s).
168*cdf0e10cSrcweir     */
169*cdf0e10cSrcweir     template< class BaseClass, class Ifc1, class Ifc2, class Ifc3, class Ifc4 >
170*cdf0e10cSrcweir     class SAL_NO_VTABLE ImplInheritanceHelper4
171*cdf0e10cSrcweir         : public BaseClass
172*cdf0e10cSrcweir         , public Ifc1, public Ifc2, public Ifc3, public Ifc4
173*cdf0e10cSrcweir     {
174*cdf0e10cSrcweir         /** @internal */
175*cdf0e10cSrcweir         struct cd : public rtl::StaticAggregate< class_data, ImplClassData4 < Ifc1, Ifc2, Ifc3, Ifc4, ImplInheritanceHelper4<BaseClass, Ifc1, Ifc2, Ifc3, Ifc4> > > {};
176*cdf0e10cSrcweir     protected:
177*cdf0e10cSrcweir         template< typename T1 >
178*cdf0e10cSrcweir         explicit ImplInheritanceHelper4(T1 const & arg1): BaseClass(arg1) {}
179*cdf0e10cSrcweir         template< typename T1, typename T2 >
180*cdf0e10cSrcweir         ImplInheritanceHelper4(T1 const & arg1, T2 const & arg2):
181*cdf0e10cSrcweir             BaseClass(arg1, arg2) {}
182*cdf0e10cSrcweir         template< typename T1, typename T2, typename T3 >
183*cdf0e10cSrcweir         ImplInheritanceHelper4(
184*cdf0e10cSrcweir             T1 const & arg1, T2 const & arg2, T3 const & arg3):
185*cdf0e10cSrcweir             BaseClass(arg1, arg2, arg3) {}
186*cdf0e10cSrcweir         template< typename T1, typename T2, typename T3, typename T4 >
187*cdf0e10cSrcweir         ImplInheritanceHelper4(
188*cdf0e10cSrcweir             T1 const & arg1, T2 const & arg2, T3 const & arg3, T4 const & arg4):
189*cdf0e10cSrcweir             BaseClass(arg1, arg2, arg3, arg4) {}
190*cdf0e10cSrcweir         template<
191*cdf0e10cSrcweir             typename T1, typename T2, typename T3, typename T4, typename T5 >
192*cdf0e10cSrcweir         ImplInheritanceHelper4(
193*cdf0e10cSrcweir             T1 const & arg1, T2 const & arg2, T3 const & arg3, T4 const & arg4,
194*cdf0e10cSrcweir             T5 const & arg5):
195*cdf0e10cSrcweir             BaseClass(arg1, arg2, arg3, arg4, arg5) {}
196*cdf0e10cSrcweir         template<
197*cdf0e10cSrcweir             typename T1, typename T2, typename T3, typename T4, typename T5,
198*cdf0e10cSrcweir             typename T6 >
199*cdf0e10cSrcweir         ImplInheritanceHelper4(
200*cdf0e10cSrcweir             T1 const & arg1, T2 const & arg2, T3 const & arg3, T4 const & arg4,
201*cdf0e10cSrcweir             T5 const & arg5, T6 const & arg6):
202*cdf0e10cSrcweir             BaseClass(arg1, arg2, arg3, arg4, arg5, arg6) {}
203*cdf0e10cSrcweir     public:
204*cdf0e10cSrcweir         ImplInheritanceHelper4() {}
205*cdf0e10cSrcweir         virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( ::com::sun::star::uno::Type const & rType ) throw (::com::sun::star::uno::RuntimeException)
206*cdf0e10cSrcweir             {
207*cdf0e10cSrcweir                 ::com::sun::star::uno::Any aRet( ImplHelper_queryNoXInterface( rType, cd::get(), this ) );
208*cdf0e10cSrcweir                 if (aRet.hasValue())
209*cdf0e10cSrcweir                     return aRet;
210*cdf0e10cSrcweir                 return BaseClass::queryInterface( rType );
211*cdf0e10cSrcweir             }
212*cdf0e10cSrcweir         virtual void SAL_CALL acquire() throw ()
213*cdf0e10cSrcweir             { BaseClass::acquire(); }
214*cdf0e10cSrcweir         virtual void SAL_CALL release() throw ()
215*cdf0e10cSrcweir             { BaseClass::release(); }
216*cdf0e10cSrcweir         virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw (::com::sun::star::uno::RuntimeException)
217*cdf0e10cSrcweir             { return ImplInhHelper_getTypes( cd::get(), BaseClass::getTypes() ); }
218*cdf0e10cSrcweir         virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw (::com::sun::star::uno::RuntimeException)
219*cdf0e10cSrcweir             { return ImplHelper_getImplementationId( cd::get() ); }
220*cdf0e10cSrcweir     };
221*cdf0e10cSrcweir     /** Implementation helper implementing interfaces ::com::sun::star::lang::XTypeProvider and
222*cdf0e10cSrcweir         ::com::sun::star::uno::XInterface inherting from a BaseClass.
223*cdf0e10cSrcweir         All acquire(),  release() and queryInterface() calls are delegated to the BaseClass.
224*cdf0e10cSrcweir         Upon queryAggregation(), if a demanded interface is not supported by this class directly,
225*cdf0e10cSrcweir         the request is delegated to the BaseClass.
226*cdf0e10cSrcweir 
227*cdf0e10cSrcweir         @attention
228*cdf0e10cSrcweir         The BaseClass has to be complete in a sense, that ::com::sun::star::uno::XInterface,
229*cdf0e10cSrcweir         ::com::sun::star::uno::XAggregation and ::com::sun::star::lang::XTypeProvider
230*cdf0e10cSrcweir         are implemented properly.  The BaseClass must have at least one ctor
231*cdf0e10cSrcweir         that can be called with six or fewer arguments, of which none is of
232*cdf0e10cSrcweir         non-const reference type.
233*cdf0e10cSrcweir 
234*cdf0e10cSrcweir         @derive
235*cdf0e10cSrcweir         Inherit from this class giving your additional interface(s) to be implemented as
236*cdf0e10cSrcweir         template argument(s). Your sub class defines method implementations for these interface(s).
237*cdf0e10cSrcweir     */
238*cdf0e10cSrcweir     template< class BaseClass, class Ifc1, class Ifc2, class Ifc3, class Ifc4 >
239*cdf0e10cSrcweir     class SAL_NO_VTABLE AggImplInheritanceHelper4
240*cdf0e10cSrcweir         : public BaseClass
241*cdf0e10cSrcweir         , public Ifc1, public Ifc2, public Ifc3, public Ifc4
242*cdf0e10cSrcweir     {
243*cdf0e10cSrcweir         /** @internal */
244*cdf0e10cSrcweir         struct cd : public rtl::StaticAggregate< class_data, ImplClassData4 < Ifc1, Ifc2, Ifc3, Ifc4, AggImplInheritanceHelper4<BaseClass, Ifc1, Ifc2, Ifc3, Ifc4> > > {};
245*cdf0e10cSrcweir     protected:
246*cdf0e10cSrcweir         template< typename T1 >
247*cdf0e10cSrcweir         explicit AggImplInheritanceHelper4(T1 const & arg1): BaseClass(arg1) {}
248*cdf0e10cSrcweir         template< typename T1, typename T2 >
249*cdf0e10cSrcweir         AggImplInheritanceHelper4(T1 const & arg1, T2 const & arg2):
250*cdf0e10cSrcweir             BaseClass(arg1, arg2) {}
251*cdf0e10cSrcweir         template< typename T1, typename T2, typename T3 >
252*cdf0e10cSrcweir         AggImplInheritanceHelper4(
253*cdf0e10cSrcweir             T1 const & arg1, T2 const & arg2, T3 const & arg3):
254*cdf0e10cSrcweir             BaseClass(arg1, arg2, arg3) {}
255*cdf0e10cSrcweir         template< typename T1, typename T2, typename T3, typename T4 >
256*cdf0e10cSrcweir         AggImplInheritanceHelper4(
257*cdf0e10cSrcweir             T1 const & arg1, T2 const & arg2, T3 const & arg3, T4 const & arg4):
258*cdf0e10cSrcweir             BaseClass(arg1, arg2, arg3, arg4) {}
259*cdf0e10cSrcweir         template<
260*cdf0e10cSrcweir             typename T1, typename T2, typename T3, typename T4, typename T5 >
261*cdf0e10cSrcweir         AggImplInheritanceHelper4(
262*cdf0e10cSrcweir             T1 const & arg1, T2 const & arg2, T3 const & arg3, T4 const & arg4,
263*cdf0e10cSrcweir             T5 const & arg5):
264*cdf0e10cSrcweir             BaseClass(arg1, arg2, arg3, arg4, arg5) {}
265*cdf0e10cSrcweir         template<
266*cdf0e10cSrcweir             typename T1, typename T2, typename T3, typename T4, typename T5,
267*cdf0e10cSrcweir             typename T6 >
268*cdf0e10cSrcweir         AggImplInheritanceHelper4(
269*cdf0e10cSrcweir             T1 const & arg1, T2 const & arg2, T3 const & arg3, T4 const & arg4,
270*cdf0e10cSrcweir             T5 const & arg5, T6 const & arg6):
271*cdf0e10cSrcweir             BaseClass(arg1, arg2, arg3, arg4, arg5, arg6) {}
272*cdf0e10cSrcweir     public:
273*cdf0e10cSrcweir         AggImplInheritanceHelper4() {}
274*cdf0e10cSrcweir         virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( ::com::sun::star::uno::Type const & rType ) throw (::com::sun::star::uno::RuntimeException)
275*cdf0e10cSrcweir             { return BaseClass::queryInterface( rType ); }
276*cdf0e10cSrcweir         virtual ::com::sun::star::uno::Any SAL_CALL queryAggregation( ::com::sun::star::uno::Type const & rType ) throw (::com::sun::star::uno::RuntimeException)
277*cdf0e10cSrcweir             {
278*cdf0e10cSrcweir                 ::com::sun::star::uno::Any aRet( ImplHelper_queryNoXInterface( rType, cd::get(), this ) );
279*cdf0e10cSrcweir                 if (aRet.hasValue())
280*cdf0e10cSrcweir                     return aRet;
281*cdf0e10cSrcweir                 return BaseClass::queryAggregation( rType );
282*cdf0e10cSrcweir             }
283*cdf0e10cSrcweir         virtual void SAL_CALL acquire() throw ()
284*cdf0e10cSrcweir             { BaseClass::acquire(); }
285*cdf0e10cSrcweir         virtual void SAL_CALL release() throw ()
286*cdf0e10cSrcweir             { BaseClass::release(); }
287*cdf0e10cSrcweir         virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw (::com::sun::star::uno::RuntimeException)
288*cdf0e10cSrcweir             { return ImplInhHelper_getTypes( cd::get(), BaseClass::getTypes() ); }
289*cdf0e10cSrcweir         virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw (::com::sun::star::uno::RuntimeException)
290*cdf0e10cSrcweir             { return ImplHelper_getImplementationId( cd::get() ); }
291*cdf0e10cSrcweir     };
292*cdf0e10cSrcweir }
293*cdf0e10cSrcweir 
294*cdf0e10cSrcweir #endif
295