19 #ifndef INCLUDED_CPPUHELPER_IMPLBASE4_HXX 20 #define INCLUDED_CPPUHELPER_IMPLBASE4_HXX 35 type_entry m_typeEntries[ 4 + 1 ];
38 template<
typename Ifc1,
typename Ifc2,
typename Ifc3,
typename Ifc4,
typename Impl >
41 class_data* operator ()()
43 static class_data4 s_cd =
46 { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
48 CPPUHELPER_DETAIL_TYPEENTRY(Ifc1),
49 CPPUHELPER_DETAIL_TYPEENTRY(Ifc2),
50 CPPUHELPER_DETAIL_TYPEENTRY(Ifc3),
51 CPPUHELPER_DETAIL_TYPEENTRY(Ifc4),
52 CPPUHELPER_DETAIL_TYPEENTRY(css::lang::XTypeProvider)
55 return reinterpret_cast< class_data *
>(&s_cd);
69 template<
class Ifc1,
class Ifc2,
class Ifc3,
class Ifc4 >
71 :
public css::lang::XTypeProvider
72 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4
74 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData4 < Ifc1, Ifc2, Ifc3, Ifc4, ImplHelper4<Ifc1, Ifc2, Ifc3, Ifc4> > > {};
76 virtual css::uno::Any SAL_CALL
queryInterface( css::uno::Type
const & rType )
throw (css::uno::RuntimeException, std::exception)
SAL_OVERRIDE 77 {
return ImplHelper_query( rType, cd::get(),
this ); }
78 virtual css::uno::Sequence< css::uno::Type > SAL_CALL
getTypes() throw (
css::uno::RuntimeException, std::exception)
SAL_OVERRIDE 79 {
return ImplHelper_getTypes( cd::get() ); }
81 {
return ImplHelper_getImplementationId( cd::get() ); }
83 #if !defined _MSC_VER // public -> protected changes mangled names there 96 template<
class Ifc1,
class Ifc2,
class Ifc3,
class Ifc4 >
99 ,
public css::lang::XTypeProvider
100 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4
102 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData4 < Ifc1, Ifc2, Ifc3, Ifc4, WeakImplHelper4<Ifc1, Ifc2, Ifc3, Ifc4> > > {};
104 virtual css::uno::Any SAL_CALL
queryInterface( css::uno::Type
const & rType )
throw (css::uno::RuntimeException, std::exception)
SAL_OVERRIDE 105 {
return WeakImplHelper_query( rType, cd::get(),
this, static_cast<OWeakObject *>(
this) ); }
110 virtual css::uno::Sequence< css::uno::Type > SAL_CALL
getTypes() throw (
css::uno::RuntimeException, std::exception)
SAL_OVERRIDE 111 {
return WeakImplHelper_getTypes( cd::get() ); }
113 {
return ImplHelper_getImplementationId( cd::get() ); }
128 template<
class Ifc1,
class Ifc2,
class Ifc3,
class Ifc4 >
131 ,
public css::lang::XTypeProvider
132 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4
134 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData4 < Ifc1, Ifc2, Ifc3, Ifc4, WeakAggImplHelper4<Ifc1, Ifc2, Ifc3, Ifc4> > > {};
136 virtual css::uno::Any SAL_CALL
queryInterface( css::uno::Type
const & rType )
throw (css::uno::RuntimeException, std::exception)
SAL_OVERRIDE 139 {
return WeakAggImplHelper_queryAgg( rType, cd::get(),
this, static_cast<OWeakAggObject *>(
this) ); }
144 virtual css::uno::Sequence< css::uno::Type > SAL_CALL
getTypes() throw (
css::uno::RuntimeException, std::exception)
SAL_OVERRIDE 145 {
return WeakAggImplHelper_getTypes( cd::get() ); }
147 {
return ImplHelper_getImplementationId( cd::get() ); }
165 template<
class BaseClass,
class Ifc1,
class Ifc2,
class Ifc3,
class Ifc4 >
168 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4
170 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData4 < Ifc1, Ifc2, Ifc3, Ifc4, ImplInheritanceHelper4<BaseClass, Ifc1, Ifc2, Ifc3, Ifc4> > > {};
172 template<
typename T1 >
174 template<
typename T1,
typename T2 >
176 BaseClass(arg1, arg2) {}
177 template<
typename T1,
typename T2,
typename T3 >
179 T1
const & arg1, T2
const & arg2, T3
const & arg3):
180 BaseClass(arg1, arg2, arg3) {}
181 template<
typename T1,
typename T2,
typename T3,
typename T4 >
183 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4):
184 BaseClass(arg1, arg2, arg3, arg4) {}
186 typename T1,
typename T2,
typename T3,
typename T4,
typename T5 >
188 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
190 BaseClass(arg1, arg2, arg3, arg4, arg5) {}
192 typename T1,
typename T2,
typename T3,
typename T4,
typename T5,
195 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
196 T5
const & arg5, T6
const & arg6):
197 BaseClass(arg1, arg2, arg3, arg4, arg5, arg6) {}
202 css::uno::Any aRet( ImplHelper_queryNoXInterface( rType, cd::get(),
this ) );
208 { BaseClass::acquire(); }
210 { BaseClass::release(); }
212 {
return ImplInhHelper_getTypes( cd::get(), BaseClass::getTypes() ); }
214 {
return ImplHelper_getImplementationId( cd::get() ); }
233 template<
class BaseClass,
class Ifc1,
class Ifc2,
class Ifc3,
class Ifc4 >
236 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4
238 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData4 < Ifc1, Ifc2, Ifc3, Ifc4, AggImplInheritanceHelper4<BaseClass, Ifc1, Ifc2, Ifc3, Ifc4> > > {};
240 template<
typename T1 >
242 template<
typename T1,
typename T2 >
244 BaseClass(arg1, arg2) {}
245 template<
typename T1,
typename T2,
typename T3 >
247 T1
const & arg1, T2
const & arg2, T3
const & arg3):
248 BaseClass(arg1, arg2, arg3) {}
249 template<
typename T1,
typename T2,
typename T3,
typename T4 >
251 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4):
252 BaseClass(arg1, arg2, arg3, arg4) {}
254 typename T1,
typename T2,
typename T3,
typename T4,
typename T5 >
256 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
258 BaseClass(arg1, arg2, arg3, arg4, arg5) {}
260 typename T1,
typename T2,
typename T3,
typename T4,
typename T5,
263 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
264 T5
const & arg5, T6
const & arg6):
265 BaseClass(arg1, arg2, arg3, arg4, arg5, arg6) {}
272 css::uno::Any aRet( ImplHelper_queryNoXInterface( rType, cd::get(),
this ) );
275 return BaseClass::queryAggregation( rType );
278 { BaseClass::acquire(); }
280 { BaseClass::release(); }
281 virtual css::uno::Sequence< css::uno::Type > SAL_CALL
getTypes() throw (
css::uno::RuntimeException, std::exception)
SAL_OVERRIDE 282 {
return ImplInhHelper_getTypes( cd::get(), BaseClass::getTypes() ); }
284 {
return ImplHelper_getImplementationId( cd::get() ); }
virtual void release() SAL_OVERRIDE
decreasing m_refCount
Definition: implbase4.hxx:108
virtual css::uno::Any queryAggregation(css::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase4.hxx:270
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase4.hxx:213
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase4.hxx:110
ImplInheritanceHelper4(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5)
Definition: implbase4.hxx:187
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase4.hxx:80
Base class to implement an UNO object supporting weak references, i.e.
Definition: weak.hxx:43
~ImplHelper4()
Definition: implbase4.hxx:86
Definition: Enterable.hxx:26
AggImplInheritanceHelper4(T1 const &arg1)
Definition: implbase4.hxx:241
Helper class for a late-initialized static aggregate, e.g.
Definition: instance.hxx:546
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase4.hxx:112
virtual void acquire() SAL_OVERRIDE
If a delegator is set, then the delegators gets acquired.
virtual void acquire() SAL_OVERRIDE
Definition: implbase4.hxx:277
AggImplInheritanceHelper4()
Definition: implbase4.hxx:267
virtual void acquire() SAL_OVERRIDE
Definition: implbase4.hxx:207
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase4.hxx:146
virtual css::uno::Any queryAggregation(css::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase4.hxx:138
css::uno::Any queryInterface(const css::uno::Type &rType, Interface1 *p1)
Compares demanded type to given template argument types.
Definition: queryinterface.hxx:39
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase4.hxx:78
virtual void acquire() SAL_OVERRIDE
increasing m_refCount
AggImplInheritanceHelper4(T1 const &arg1, T2 const &arg2, T3 const &arg3)
Definition: implbase4.hxx:246
virtual css::uno::Any queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase4.hxx:136
#define SAL_OVERRIDE
C++11 "override" feature.
Definition: types.h:421
Base class to implement an UNO object supporting weak references, i.e.
Definition: weakagg.hxx:41
Implementation helper implementing interfaces css::lang::XTypeProvider and css::uno::XInterface inher...
Definition: implbase4.hxx:234
ImplInheritanceHelper4(T1 const &arg1, T2 const &arg2, T3 const &arg3)
Definition: implbase4.hxx:178
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase4.hxx:144
Implementation helper implementing interface css::lang::XTypeProvider and method XInterface::queryInt...
Definition: implbase4.hxx:70
virtual css::uno::Any queryInterface(const css::uno::Type &rType) SAL_OVERRIDE
If a delegator is set, then the delegator is queried for the demanded interface.
unsigned char sal_Bool
Definition: types.h:48
virtual void release() SAL_OVERRIDE
If a delegator is set, then the delegators gets released.
Definition: implbase4.hxx:142
ImplInheritanceHelper4(T1 const &arg1)
Definition: implbase4.hxx:173
ImplInheritanceHelper4(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5, T6 const &arg6)
Definition: implbase4.hxx:194
virtual void acquire() SAL_OVERRIDE
If a delegator is set, then the delegators gets acquired.
Definition: implbase4.hxx:140
virtual css::uno::Any queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase4.hxx:76
virtual void acquire() SAL_OVERRIDE
increasing m_refCount
Definition: implbase4.hxx:106
Implementation helper implementing interfaces css::lang::XTypeProvider and css::uno::XInterface which...
Definition: implbase4.hxx:129
signed char sal_Int8
Definition: types.h:53
ImplInheritanceHelper4(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4)
Definition: implbase4.hxx:182
#define SAL_NO_VTABLE
Use this for pure virtual classes, e.g.
Definition: types.h:333
#define sal_False
Definition: types.h:49
virtual css::uno::Any queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase4.hxx:268
AggImplInheritanceHelper4(T1 const &arg1, T2 const &arg2)
Definition: implbase4.hxx:243
virtual void release() SAL_OVERRIDE
Definition: implbase4.hxx:279
virtual css::uno::Any queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase4.hxx:200
virtual void release() SAL_OVERRIDE
decreasing m_refCount
Implementation helper implementing interfaces css::lang::XTypeProvider and css::uno::XInterface which...
Definition: implbase4.hxx:97
ImplInheritanceHelper4(T1 const &arg1, T2 const &arg2)
Definition: implbase4.hxx:175
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase4.hxx:283
AggImplInheritanceHelper4(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4)
Definition: implbase4.hxx:250
ImplInheritanceHelper4()
Definition: implbase4.hxx:199
AggImplInheritanceHelper4(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5, T6 const &arg6)
Definition: implbase4.hxx:262
virtual void release() SAL_OVERRIDE
Definition: implbase4.hxx:209
AggImplInheritanceHelper4(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5)
Definition: implbase4.hxx:255
virtual void release() SAL_OVERRIDE
If a delegator is set, then the delegators gets released.
virtual css::uno::Any queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase4.hxx:104
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase4.hxx:281
Implementation helper implementing interfaces css::lang::XTypeProvider and css::uno::XInterface inher...
Definition: implbase4.hxx:166
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase4.hxx:211