28 #ifndef _CPPUHELPER_IMPLBASE2_HXX_
29 #define _CPPUHELPER_IMPLBASE2_HXX_
44 type_entry m_typeEntries[ 2 + 1 ];
47 template<
typename Ifc1,
typename Ifc2,
typename Impl >
struct ImplClassData2
49 class_data* operator ()()
51 static class_data2 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 { { com::sun::star::lang::XTypeProvider::static_type }, ((sal_IntPtr)(com::sun::star::lang::XTypeProvider *) (Impl *) 16) - 16 }
61 return reinterpret_cast< class_data *
>(&s_cd);
75 template<
class Ifc1,
class Ifc2 >
77 :
public com::sun::star::lang::XTypeProvider
78 ,
public Ifc1,
public Ifc2
80 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData2 < Ifc1, Ifc2, ImplHelper2<Ifc1, Ifc2> > > {};
83 {
return ImplHelper_query( rType, cd::get(),
this ); }
85 {
return ImplHelper_getTypes( cd::get() ); }
87 {
return ImplHelper_getImplementationId( cd::get() ); }
89 #if !defined _MSC_VER // public -> protected changes mangled names there
102 template<
class Ifc1,
class Ifc2 >
105 ,
public com::sun::star::lang::XTypeProvider
106 ,
public Ifc1,
public Ifc2
108 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData2 < Ifc1, Ifc2, WeakImplHelper2<Ifc1, Ifc2> > > {};
111 {
return WeakImplHelper_query( rType, cd::get(),
this, (
OWeakObject *)
this ); }
112 virtual void SAL_CALL acquire() throw ()
114 virtual void SAL_CALL release() throw ()
117 {
return WeakImplHelper_getTypes( cd::get() ); }
119 {
return ImplHelper_getImplementationId( cd::get() ); }
134 template<
class Ifc1,
class Ifc2 >
137 ,
public com::sun::star::lang::XTypeProvider
138 ,
public Ifc1,
public Ifc2
140 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData2 < Ifc1, Ifc2, WeakAggImplHelper2<Ifc1, Ifc2> > > {};
145 {
return WeakAggImplHelper_queryAgg( rType, cd::get(),
this, (
OWeakAggObject *)
this ); }
146 virtual void SAL_CALL acquire() throw ()
148 virtual void SAL_CALL release() throw ()
151 {
return WeakAggImplHelper_getTypes( cd::get() ); }
153 {
return ImplHelper_getImplementationId( cd::get() ); }
171 template<
class BaseClass,
class Ifc1,
class Ifc2 >
174 ,
public Ifc1,
public Ifc2
176 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData2 < Ifc1, Ifc2, ImplInheritanceHelper2<BaseClass, Ifc1, Ifc2> > > {};
178 template<
typename T1 >
180 template<
typename T1,
typename T2 >
182 BaseClass(arg1, arg2) {}
183 template<
typename T1,
typename T2,
typename T3 >
185 T1
const & arg1, T2
const & arg2, T3
const & arg3):
186 BaseClass(arg1, arg2, arg3) {}
187 template<
typename T1,
typename T2,
typename T3,
typename T4 >
189 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4):
190 BaseClass(arg1, arg2, arg3, arg4) {}
192 typename T1,
typename T2,
typename T3,
typename T4,
typename T5 >
194 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
196 BaseClass(arg1, arg2, arg3, arg4, arg5) {}
198 typename T1,
typename T2,
typename T3,
typename T4,
typename T5,
201 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
202 T5
const & arg5, T6
const & arg6):
203 BaseClass(arg1, arg2, arg3, arg4, arg5, arg6) {}
213 virtual void SAL_CALL acquire() throw ()
214 { BaseClass::acquire(); }
215 virtual void SAL_CALL release() throw ()
216 { BaseClass::release(); }
218 {
return ImplInhHelper_getTypes( cd::get(), BaseClass::getTypes() ); }
220 {
return ImplHelper_getImplementationId( cd::get() ); }
239 template<
class BaseClass,
class Ifc1,
class Ifc2 >
242 ,
public Ifc1,
public Ifc2
244 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData2 < Ifc1, Ifc2, AggImplInheritanceHelper2<BaseClass, Ifc1, Ifc2> > > {};
246 template<
typename T1 >
248 template<
typename T1,
typename T2 >
250 BaseClass(arg1, arg2) {}
251 template<
typename T1,
typename T2,
typename T3 >
253 T1
const & arg1, T2
const & arg2, T3
const & arg3):
254 BaseClass(arg1, arg2, arg3) {}
255 template<
typename T1,
typename T2,
typename T3,
typename T4 >
257 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4):
258 BaseClass(arg1, arg2, arg3, arg4) {}
260 typename T1,
typename T2,
typename T3,
typename T4,
typename T5 >
262 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
264 BaseClass(arg1, arg2, arg3, arg4, arg5) {}
266 typename T1,
typename T2,
typename T3,
typename T4,
typename T5,
269 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
270 T5
const & arg5, T6
const & arg6):
271 BaseClass(arg1, arg2, arg3, arg4, arg5, arg6) {}
281 return BaseClass::queryAggregation( rType );
283 virtual void SAL_CALL acquire() throw ()
284 { BaseClass::acquire(); }
285 virtual void SAL_CALL release() throw ()
286 { BaseClass::release(); }
288 {
return ImplInhHelper_getTypes( cd::get(), BaseClass::getTypes() ); }
290 {
return ImplHelper_getImplementationId( cd::get() ); }