28 #ifndef _CPPUHELPER_IMPLBASE6_HXX_
29 #define _CPPUHELPER_IMPLBASE6_HXX_
44 type_entry m_typeEntries[ 6 + 1 ];
47 template<
typename Ifc1,
typename Ifc2,
typename Ifc3,
typename Ifc4,
typename Ifc5,
typename Ifc6,
typename Impl >
50 class_data* operator ()()
52 static class_data6 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 { { Ifc5::static_type }, ((sal_IntPtr)(Ifc5 *) (Impl *) 16) - 16 },
62 { { Ifc6::static_type }, ((sal_IntPtr)(Ifc6 *) (Impl *) 16) - 16 },
63 { { com::sun::star::lang::XTypeProvider::static_type }, ((sal_IntPtr)(com::sun::star::lang::XTypeProvider *) (Impl *) 16) - 16 }
66 return reinterpret_cast< class_data *
>(&s_cd);
80 template<
class Ifc1,
class Ifc2,
class Ifc3,
class Ifc4,
class Ifc5,
class Ifc6 >
82 :
public com::sun::star::lang::XTypeProvider
83 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4,
public Ifc5,
public Ifc6
85 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData6 < Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, ImplHelper6<Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6> > > {};
88 {
return ImplHelper_query( rType, cd::get(),
this ); }
90 {
return ImplHelper_getTypes( cd::get() ); }
92 {
return ImplHelper_getImplementationId( cd::get() ); }
94 #if !defined _MSC_VER // public -> protected changes mangled names there
107 template<
class Ifc1,
class Ifc2,
class Ifc3,
class Ifc4,
class Ifc5,
class Ifc6 >
110 ,
public com::sun::star::lang::XTypeProvider
111 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4,
public Ifc5,
public Ifc6
113 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData6 < Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, WeakImplHelper6<Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6> > > {};
116 {
return WeakImplHelper_query( rType, cd::get(),
this, (
OWeakObject *)
this ); }
117 virtual void SAL_CALL acquire() throw ()
119 virtual void SAL_CALL release() throw ()
122 {
return WeakImplHelper_getTypes( cd::get() ); }
124 {
return ImplHelper_getImplementationId( cd::get() ); }
139 template<
class Ifc1,
class Ifc2,
class Ifc3,
class Ifc4,
class Ifc5,
class Ifc6 >
142 ,
public com::sun::star::lang::XTypeProvider
143 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4,
public Ifc5,
public Ifc6
145 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData6 < Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, WeakAggImplHelper6<Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6> > > {};
150 {
return WeakAggImplHelper_queryAgg( rType, cd::get(),
this, (
OWeakAggObject *)
this ); }
151 virtual void SAL_CALL acquire() throw ()
153 virtual void SAL_CALL release() throw ()
156 {
return WeakAggImplHelper_getTypes( cd::get() ); }
158 {
return ImplHelper_getImplementationId( cd::get() ); }
176 template<
class BaseClass,
class Ifc1,
class Ifc2,
class Ifc3,
class Ifc4,
class Ifc5,
class Ifc6 >
179 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4,
public Ifc5,
public Ifc6
181 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData6 < Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, ImplInheritanceHelper6<BaseClass, Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6> > > {};
183 template<
typename T1 >
185 template<
typename T1,
typename T2 >
187 BaseClass(arg1, arg2) {}
188 template<
typename T1,
typename T2,
typename T3 >
190 T1
const & arg1, T2
const & arg2, T3
const & arg3):
191 BaseClass(arg1, arg2, arg3) {}
192 template<
typename T1,
typename T2,
typename T3,
typename T4 >
194 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4):
195 BaseClass(arg1, arg2, arg3, arg4) {}
197 typename T1,
typename T2,
typename T3,
typename T4,
typename T5 >
199 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
201 BaseClass(arg1, arg2, arg3, arg4, arg5) {}
203 typename T1,
typename T2,
typename T3,
typename T4,
typename T5,
206 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
207 T5
const & arg5, T6
const & arg6):
208 BaseClass(arg1, arg2, arg3, arg4, arg5, arg6) {}
218 virtual void SAL_CALL acquire() throw ()
219 { BaseClass::acquire(); }
220 virtual void SAL_CALL release() throw ()
221 { BaseClass::release(); }
223 {
return ImplInhHelper_getTypes( cd::get(), BaseClass::getTypes() ); }
225 {
return ImplHelper_getImplementationId( cd::get() ); }
244 template<
class BaseClass,
class Ifc1,
class Ifc2,
class Ifc3,
class Ifc4,
class Ifc5,
class Ifc6 >
247 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4,
public Ifc5,
public Ifc6
249 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData6 < Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, AggImplInheritanceHelper6<BaseClass, Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6> > > {};
251 template<
typename T1 >
253 template<
typename T1,
typename T2 >
255 BaseClass(arg1, arg2) {}
256 template<
typename T1,
typename T2,
typename T3 >
258 T1
const & arg1, T2
const & arg2, T3
const & arg3):
259 BaseClass(arg1, arg2, arg3) {}
260 template<
typename T1,
typename T2,
typename T3,
typename T4 >
262 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4):
263 BaseClass(arg1, arg2, arg3, arg4) {}
265 typename T1,
typename T2,
typename T3,
typename T4,
typename T5 >
267 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
269 BaseClass(arg1, arg2, arg3, arg4, arg5) {}
271 typename T1,
typename T2,
typename T3,
typename T4,
typename T5,
274 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
275 T5
const & arg5, T6
const & arg6):
276 BaseClass(arg1, arg2, arg3, arg4, arg5, arg6) {}
286 return BaseClass::queryAggregation( rType );
288 virtual void SAL_CALL acquire() throw ()
289 { BaseClass::acquire(); }
290 virtual void SAL_CALL release() throw ()
291 { BaseClass::release(); }
293 {
return ImplInhHelper_getTypes( cd::get(), BaseClass::getTypes() ); }
295 {
return ImplHelper_getImplementationId( cd::get() ); }