28 #ifndef _CPPUHELPER_IMPLBASE4_HXX_
29 #define _CPPUHELPER_IMPLBASE4_HXX_
44 type_entry m_typeEntries[ 4 + 1 ];
47 template<
typename Ifc1,
typename Ifc2,
typename Ifc3,
typename Ifc4,
typename Impl >
50 class_data* operator ()()
52 static class_data4 s_cd =
55 { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
57 { { Ifc1::static_type }, ((sal_IntPtr)(Ifc1 *) (Impl *) 16) - 16 },
58 { { Ifc2::static_type }, ((sal_IntPtr)(Ifc2 *) (Impl *) 16) - 16 },
59 { { Ifc3::static_type }, ((sal_IntPtr)(Ifc3 *) (Impl *) 16) - 16 },
60 { { Ifc4::static_type }, ((sal_IntPtr)(Ifc4 *) (Impl *) 16) - 16 },
61 { { com::sun::star::lang::XTypeProvider::static_type }, ((sal_IntPtr)(com::sun::star::lang::XTypeProvider *) (Impl *) 16) - 16 }
64 return reinterpret_cast< class_data *
>(&s_cd);
78 template<
class Ifc1,
class Ifc2,
class Ifc3,
class Ifc4 >
80 :
public com::sun::star::lang::XTypeProvider
81 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4
83 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData4 < Ifc1, Ifc2, Ifc3, Ifc4, ImplHelper4<Ifc1, Ifc2, Ifc3, Ifc4> > > {};
86 {
return ImplHelper_query( rType, cd::get(),
this ); }
88 {
return ImplHelper_getTypes( cd::get() ); }
90 {
return ImplHelper_getImplementationId( cd::get() ); }
92 #if !defined _MSC_VER // public -> protected changes mangled names there
105 template<
class Ifc1,
class Ifc2,
class Ifc3,
class Ifc4 >
108 ,
public com::sun::star::lang::XTypeProvider
109 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4
111 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData4 < Ifc1, Ifc2, Ifc3, Ifc4, WeakImplHelper4<Ifc1, Ifc2, Ifc3, Ifc4> > > {};
114 {
return WeakImplHelper_query( rType, cd::get(),
this, (
OWeakObject *)
this ); }
115 virtual void SAL_CALL acquire() throw ()
117 virtual void SAL_CALL release() throw ()
120 {
return WeakImplHelper_getTypes( cd::get() ); }
122 {
return ImplHelper_getImplementationId( cd::get() ); }
137 template<
class Ifc1,
class Ifc2,
class Ifc3,
class Ifc4 >
140 ,
public com::sun::star::lang::XTypeProvider
141 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4
143 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData4 < Ifc1, Ifc2, Ifc3, Ifc4, WeakAggImplHelper4<Ifc1, Ifc2, Ifc3, Ifc4> > > {};
148 {
return WeakAggImplHelper_queryAgg( rType, cd::get(),
this, (
OWeakAggObject *)
this ); }
149 virtual void SAL_CALL acquire() throw ()
151 virtual void SAL_CALL release() throw ()
154 {
return WeakAggImplHelper_getTypes( cd::get() ); }
156 {
return ImplHelper_getImplementationId( cd::get() ); }
174 template<
class BaseClass,
class Ifc1,
class Ifc2,
class Ifc3,
class Ifc4 >
177 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4
179 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData4 < Ifc1, Ifc2, Ifc3, Ifc4, ImplInheritanceHelper4<BaseClass, Ifc1, Ifc2, Ifc3, Ifc4> > > {};
181 template<
typename T1 >
183 template<
typename T1,
typename T2 >
185 BaseClass(arg1, arg2) {}
186 template<
typename T1,
typename T2,
typename T3 >
188 T1
const & arg1, T2
const & arg2, T3
const & arg3):
189 BaseClass(arg1, arg2, arg3) {}
190 template<
typename T1,
typename T2,
typename T3,
typename T4 >
192 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4):
193 BaseClass(arg1, arg2, arg3, arg4) {}
195 typename T1,
typename T2,
typename T3,
typename T4,
typename T5 >
197 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
199 BaseClass(arg1, arg2, arg3, arg4, arg5) {}
201 typename T1,
typename T2,
typename T3,
typename T4,
typename T5,
204 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
205 T5
const & arg5, T6
const & arg6):
206 BaseClass(arg1, arg2, arg3, arg4, arg5, arg6) {}
216 virtual void SAL_CALL acquire() throw ()
217 { BaseClass::acquire(); }
218 virtual void SAL_CALL release() throw ()
219 { BaseClass::release(); }
221 {
return ImplInhHelper_getTypes( cd::get(), BaseClass::getTypes() ); }
223 {
return ImplHelper_getImplementationId( cd::get() ); }
242 template<
class BaseClass,
class Ifc1,
class Ifc2,
class Ifc3,
class Ifc4 >
245 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4
247 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData4 < Ifc1, Ifc2, Ifc3, Ifc4, AggImplInheritanceHelper4<BaseClass, Ifc1, Ifc2, Ifc3, Ifc4> > > {};
249 template<
typename T1 >
251 template<
typename T1,
typename T2 >
253 BaseClass(arg1, arg2) {}
254 template<
typename T1,
typename T2,
typename T3 >
256 T1
const & arg1, T2
const & arg2, T3
const & arg3):
257 BaseClass(arg1, arg2, arg3) {}
258 template<
typename T1,
typename T2,
typename T3,
typename T4 >
260 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4):
261 BaseClass(arg1, arg2, arg3, arg4) {}
263 typename T1,
typename T2,
typename T3,
typename T4,
typename T5 >
265 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
267 BaseClass(arg1, arg2, arg3, arg4, arg5) {}
269 typename T1,
typename T2,
typename T3,
typename T4,
typename T5,
272 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
273 T5
const & arg5, T6
const & arg6):
274 BaseClass(arg1, arg2, arg3, arg4, arg5, arg6) {}
284 return BaseClass::queryAggregation( rType );
286 virtual void SAL_CALL acquire() throw ()
287 { BaseClass::acquire(); }
288 virtual void SAL_CALL release() throw ()
289 { BaseClass::release(); }
291 {
return ImplInhHelper_getTypes( cd::get(), BaseClass::getTypes() ); }
293 {
return ImplHelper_getImplementationId( cd::get() ); }