19 #ifndef _CPPUHELPER_IMPLBASE2_HXX_
20 #define _CPPUHELPER_IMPLBASE2_HXX_
35 type_entry m_typeEntries[ 2 + 1 ];
38 template<
typename Ifc1,
typename Ifc2,
typename Impl >
struct ImplClassData2
40 class_data* operator ()()
42 static class_data2 s_cd =
45 { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
47 { { Ifc1::static_type }, ((sal_IntPtr)(Ifc1 *) (Impl *) 16) - 16 },
48 { { Ifc2::static_type }, ((sal_IntPtr)(Ifc2 *) (Impl *) 16) - 16 },
49 { { com::sun::star::lang::XTypeProvider::static_type }, ((sal_IntPtr)(com::sun::star::lang::XTypeProvider *) (Impl *) 16) - 16 }
52 return reinterpret_cast< class_data *
>(&s_cd);
66 template<
class Ifc1,
class Ifc2 >
68 :
public com::sun::star::lang::XTypeProvider
69 ,
public Ifc1,
public Ifc2
71 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData2 < Ifc1, Ifc2, ImplHelper2<Ifc1, Ifc2> > > {};
74 {
return ImplHelper_query( rType, cd::get(),
this ); }
76 {
return ImplHelper_getTypes( cd::get() ); }
78 {
return ImplHelper_getImplementationId( cd::get() ); }
80 #if !defined _MSC_VER // public -> protected changes mangled names there
93 template<
class Ifc1,
class Ifc2 >
96 ,
public com::sun::star::lang::XTypeProvider
97 ,
public Ifc1,
public Ifc2
99 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData2 < Ifc1, Ifc2, WeakImplHelper2<Ifc1, Ifc2> > > {};
102 {
return WeakImplHelper_query( rType, cd::get(),
this, (
OWeakObject *)
this ); }
103 virtual void SAL_CALL acquire() throw ()
105 virtual void SAL_CALL release() throw ()
108 {
return WeakImplHelper_getTypes( cd::get() ); }
110 {
return ImplHelper_getImplementationId( cd::get() ); }
125 template<
class Ifc1,
class Ifc2 >
128 ,
public com::sun::star::lang::XTypeProvider
129 ,
public Ifc1,
public Ifc2
131 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData2 < Ifc1, Ifc2, WeakAggImplHelper2<Ifc1, Ifc2> > > {};
136 {
return WeakAggImplHelper_queryAgg( rType, cd::get(),
this, (
OWeakAggObject *)
this ); }
137 virtual void SAL_CALL acquire() throw ()
139 virtual void SAL_CALL release() throw ()
142 {
return WeakAggImplHelper_getTypes( cd::get() ); }
144 {
return ImplHelper_getImplementationId( cd::get() ); }
162 template<
class BaseClass,
class Ifc1,
class Ifc2 >
165 ,
public Ifc1,
public Ifc2
167 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData2 < Ifc1, Ifc2, ImplInheritanceHelper2<BaseClass, Ifc1, Ifc2> > > {};
169 template<
typename T1 >
171 template<
typename T1,
typename T2 >
173 BaseClass(arg1, arg2) {}
174 template<
typename T1,
typename T2,
typename T3 >
176 T1
const & arg1, T2
const & arg2, T3
const & arg3):
177 BaseClass(arg1, arg2, arg3) {}
178 template<
typename T1,
typename T2,
typename T3,
typename T4 >
180 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4):
181 BaseClass(arg1, arg2, arg3, arg4) {}
183 typename T1,
typename T2,
typename T3,
typename T4,
typename T5 >
185 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
187 BaseClass(arg1, arg2, arg3, arg4, arg5) {}
189 typename T1,
typename T2,
typename T3,
typename T4,
typename T5,
192 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
193 T5
const & arg5, T6
const & arg6):
194 BaseClass(arg1, arg2, arg3, arg4, arg5, arg6) {}
204 virtual void SAL_CALL acquire() throw ()
205 { BaseClass::acquire(); }
206 virtual void SAL_CALL release() throw ()
207 { BaseClass::release(); }
209 {
return ImplInhHelper_getTypes( cd::get(), BaseClass::getTypes() ); }
211 {
return ImplHelper_getImplementationId( cd::get() ); }
230 template<
class BaseClass,
class Ifc1,
class Ifc2 >
233 ,
public Ifc1,
public Ifc2
235 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData2 < Ifc1, Ifc2, AggImplInheritanceHelper2<BaseClass, Ifc1, Ifc2> > > {};
237 template<
typename T1 >
239 template<
typename T1,
typename T2 >
241 BaseClass(arg1, arg2) {}
242 template<
typename T1,
typename T2,
typename T3 >
244 T1
const & arg1, T2
const & arg2, T3
const & arg3):
245 BaseClass(arg1, arg2, arg3) {}
246 template<
typename T1,
typename T2,
typename T3,
typename T4 >
248 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4):
249 BaseClass(arg1, arg2, arg3, arg4) {}
251 typename T1,
typename T2,
typename T3,
typename T4,
typename T5 >
253 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
255 BaseClass(arg1, arg2, arg3, arg4, arg5) {}
257 typename T1,
typename T2,
typename T3,
typename T4,
typename T5,
260 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
261 T5
const & arg5, T6
const & arg6):
262 BaseClass(arg1, arg2, arg3, arg4, arg5, arg6) {}
272 return BaseClass::queryAggregation( rType );
274 virtual void SAL_CALL acquire() throw ()
275 { BaseClass::acquire(); }
276 virtual void SAL_CALL release() throw ()
277 { BaseClass::release(); }
279 {
return ImplInhHelper_getTypes( cd::get(), BaseClass::getTypes() ); }
281 {
return ImplHelper_getImplementationId( cd::get() ); }