28 #ifndef _CPPUHELPER_IMPLBASE3_HXX_
29 #define _CPPUHELPER_IMPLBASE3_HXX_
44 type_entry m_typeEntries[ 3 + 1 ];
47 template<
typename Ifc1,
typename Ifc2,
typename Ifc3,
typename Impl >
struct ImplClassData3
49 class_data* operator ()()
51 static class_data3 s_cd =
54 { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
56 { { Ifc1::static_type }, ((sal_IntPtr)(Ifc1 *) (Impl *) 16) - 16 },
57 { { Ifc2::static_type }, ((sal_IntPtr)(Ifc2 *) (Impl *) 16) - 16 },
58 { { Ifc3::static_type }, ((sal_IntPtr)(Ifc3 *) (Impl *) 16) - 16 },
59 { { com::sun::star::lang::XTypeProvider::static_type }, ((sal_IntPtr)(com::sun::star::lang::XTypeProvider *) (Impl *) 16) - 16 }
62 return reinterpret_cast< class_data *
>(&s_cd);
76 template<
class Ifc1,
class Ifc2,
class Ifc3 >
78 :
public com::sun::star::lang::XTypeProvider
79 ,
public Ifc1,
public Ifc2,
public Ifc3
81 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData3 < Ifc1, Ifc2, Ifc3, ImplHelper3<Ifc1, Ifc2, Ifc3> > > {};
84 {
return ImplHelper_query( rType, cd::get(),
this ); }
86 {
return ImplHelper_getTypes( cd::get() ); }
88 {
return ImplHelper_getImplementationId( cd::get() ); }
90 #if !defined _MSC_VER // public -> protected changes mangled names there
103 template<
class Ifc1,
class Ifc2,
class Ifc3 >
106 ,
public com::sun::star::lang::XTypeProvider
107 ,
public Ifc1,
public Ifc2,
public Ifc3
109 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData3 < Ifc1, Ifc2, Ifc3, WeakImplHelper3<Ifc1, Ifc2, Ifc3> > > {};
112 {
return WeakImplHelper_query( rType, cd::get(),
this, (
OWeakObject *)
this ); }
113 virtual void SAL_CALL acquire() throw ()
115 virtual void SAL_CALL release() throw ()
118 {
return WeakImplHelper_getTypes( cd::get() ); }
120 {
return ImplHelper_getImplementationId( cd::get() ); }
135 template<
class Ifc1,
class Ifc2,
class Ifc3 >
138 ,
public com::sun::star::lang::XTypeProvider
139 ,
public Ifc1,
public Ifc2,
public Ifc3
141 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData3 < Ifc1, Ifc2, Ifc3, WeakAggImplHelper3<Ifc1, Ifc2, Ifc3> > > {};
146 {
return WeakAggImplHelper_queryAgg( rType, cd::get(),
this, (
OWeakAggObject *)
this ); }
147 virtual void SAL_CALL acquire() throw ()
149 virtual void SAL_CALL release() throw ()
152 {
return WeakAggImplHelper_getTypes( cd::get() ); }
154 {
return ImplHelper_getImplementationId( cd::get() ); }
173 template<
class BaseClass,
class Ifc1,
class Ifc2,
class Ifc3 >
176 ,
public Ifc1,
public Ifc2,
public Ifc3
178 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData3 < Ifc1, Ifc2, Ifc3, ImplInheritanceHelper3<BaseClass, Ifc1, Ifc2, Ifc3> > > {};
180 template<
typename T1 >
182 template<
typename T1,
typename T2 >
184 BaseClass(arg1, arg2) {}
185 template<
typename T1,
typename T2,
typename T3 >
187 T1
const & arg1, T2
const & arg2, T3
const & arg3):
188 BaseClass(arg1, arg2, arg3) {}
189 template<
typename T1,
typename T2,
typename T3,
typename T4 >
191 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4):
192 BaseClass(arg1, arg2, arg3, arg4) {}
194 typename T1,
typename T2,
typename T3,
typename T4,
typename T5 >
196 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
198 BaseClass(arg1, arg2, arg3, arg4, arg5) {}
200 typename T1,
typename T2,
typename T3,
typename T4,
typename T5,
203 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
204 T5
const & arg5, T6
const & arg6):
205 BaseClass(arg1, arg2, arg3, arg4, arg5, arg6) {}
215 virtual void SAL_CALL acquire() throw ()
216 { BaseClass::acquire(); }
217 virtual void SAL_CALL release() throw ()
218 { BaseClass::release(); }
220 {
return ImplInhHelper_getTypes( cd::get(), BaseClass::getTypes() ); }
222 {
return ImplHelper_getImplementationId( cd::get() ); }
241 template<
class BaseClass,
class Ifc1,
class Ifc2,
class Ifc3 >
244 ,
public Ifc1,
public Ifc2,
public Ifc3
246 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData3 < Ifc1, Ifc2, Ifc3, AggImplInheritanceHelper3<BaseClass, Ifc1, Ifc2, Ifc3> > > {};
248 template<
typename T1 >
250 template<
typename T1,
typename T2 >
252 BaseClass(arg1, arg2) {}
253 template<
typename T1,
typename T2,
typename T3 >
255 T1
const & arg1, T2
const & arg2, T3
const & arg3):
256 BaseClass(arg1, arg2, arg3) {}
257 template<
typename T1,
typename T2,
typename T3,
typename T4 >
259 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4):
260 BaseClass(arg1, arg2, arg3, arg4) {}
262 typename T1,
typename T2,
typename T3,
typename T4,
typename T5 >
264 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
266 BaseClass(arg1, arg2, arg3, arg4, arg5) {}
268 typename T1,
typename T2,
typename T3,
typename T4,
typename T5,
271 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
272 T5
const & arg5, T6
const & arg6):
273 BaseClass(arg1, arg2, arg3, arg4, arg5, arg6) {}
283 return BaseClass::queryAggregation( rType );
285 virtual void SAL_CALL acquire() throw ()
286 { BaseClass::acquire(); }
287 virtual void SAL_CALL release() throw ()
288 { BaseClass::release(); }
290 {
return ImplInhHelper_getTypes( cd::get(), BaseClass::getTypes() ); }
292 {
return ImplHelper_getImplementationId( cd::get() ); }