3 #ifndef INCLUDED_CPPUHELPER_IMPLBASE5_HXX
4 #define INCLUDED_CPPUHELPER_IMPLBASE5_HXX
10 #include "com/sun/star/lang/XTypeProvider.hpp"
22 type_entry m_typeEntries[ 5 + 1 ];
25 template<
typename Ifc1,
typename Ifc2,
typename Ifc3,
typename Ifc4,
typename Ifc5,
typename Impl >
28 class_data* operator ()()
30 static class_data5 s_cd =
33 { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
35 CPPUHELPER_DETAIL_TYPEENTRY(Ifc1),
36 CPPUHELPER_DETAIL_TYPEENTRY(Ifc2),
37 CPPUHELPER_DETAIL_TYPEENTRY(Ifc3),
38 CPPUHELPER_DETAIL_TYPEENTRY(Ifc4),
39 CPPUHELPER_DETAIL_TYPEENTRY(Ifc5),
40 CPPUHELPER_DETAIL_TYPEENTRY(css::lang::XTypeProvider)
43 return reinterpret_cast< class_data *
>(&s_cd);
57 template<
class Ifc1,
class Ifc2,
class Ifc3,
class Ifc4,
class Ifc5 >
59 :
public css::lang::XTypeProvider
60 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4,
public Ifc5
62 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData5 < Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, ImplHelper5<Ifc1, Ifc2, Ifc3, Ifc4, Ifc5> > > {};
64 #if defined LIBO_INTERNAL_ONLY
73 {
return ImplHelper_query( rType, cd::get(),
this ); }
75 {
return ImplHelper_getTypes( cd::get() ); }
77 {
return ImplHelper_getImplementationId( cd::get() ); }
79 #if !defined _MSC_VER // public -> protected changes mangled names there
92 template<
class Ifc1,
class Ifc2,
class Ifc3,
class Ifc4,
class Ifc5 >
95 ,
public css::lang::XTypeProvider
96 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4,
public Ifc5
98 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData5 < Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, WeakImplHelper5<Ifc1, Ifc2, Ifc3, Ifc4, Ifc5> > > {};
101 {
return WeakImplHelper_query( rType, cd::get(),
this, static_cast<OWeakObject *>(
this) ); }
107 {
return WeakImplHelper_getTypes( cd::get() ); }
109 {
return ImplHelper_getImplementationId( cd::get() ); }
124 template<
class Ifc1,
class Ifc2,
class Ifc3,
class Ifc4,
class Ifc5 >
127 ,
public css::lang::XTypeProvider
128 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4,
public Ifc5
130 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData5 < Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, WeakAggImplHelper5<Ifc1, Ifc2, Ifc3, Ifc4, Ifc5> > > {};
135 {
return WeakAggImplHelper_queryAgg( rType, cd::get(),
this, static_cast<OWeakAggObject *>(
this) ); }
141 {
return WeakAggImplHelper_getTypes( cd::get() ); }
143 {
return ImplHelper_getImplementationId( cd::get() ); }
161 template<
class BaseClass,
class Ifc1,
class Ifc2,
class Ifc3,
class Ifc4,
class Ifc5 >
164 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4,
public Ifc5
166 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData5 < Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, ImplInheritanceHelper5<BaseClass, Ifc1, Ifc2, Ifc3, Ifc4, Ifc5> > > {};
168 template<
typename T1 >
170 template<
typename T1,
typename T2 >
172 BaseClass(arg1, arg2) {}
173 template<
typename T1,
typename T2,
typename T3 >
175 T1
const & arg1, T2
const & arg2, T3
const & arg3):
176 BaseClass(arg1, arg2, arg3) {}
177 template<
typename T1,
typename T2,
typename T3,
typename T4 >
179 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4):
180 BaseClass(arg1, arg2, arg3, arg4) {}
182 typename T1,
typename T2,
typename T3,
typename T4,
typename T5 >
184 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
186 BaseClass(arg1, arg2, arg3, arg4, arg5) {}
188 typename T1,
typename T2,
typename T3,
typename T4,
typename T5,
191 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
192 T5
const & arg5, T6
const & arg6):
193 BaseClass(arg1, arg2, arg3, arg4, arg5, arg6) {}
198 css::uno::Any aRet( ImplHelper_queryNoXInterface( rType, cd::get(),
this ) );
204 { BaseClass::acquire(); }
206 { BaseClass::release(); }
208 {
return ImplInhHelper_getTypes( cd::get(), BaseClass::getTypes() ); }
210 {
return ImplHelper_getImplementationId( cd::get() ); }
229 template<
class BaseClass,
class Ifc1,
class Ifc2,
class Ifc3,
class Ifc4,
class Ifc5 >
232 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4,
public Ifc5
234 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData5 < Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, AggImplInheritanceHelper5<BaseClass, Ifc1, Ifc2, Ifc3, Ifc4, Ifc5> > > {};
236 template<
typename T1 >
238 template<
typename T1,
typename T2 >
240 BaseClass(arg1, arg2) {}
241 template<
typename T1,
typename T2,
typename T3 >
243 T1
const & arg1, T2
const & arg2, T3
const & arg3):
244 BaseClass(arg1, arg2, arg3) {}
245 template<
typename T1,
typename T2,
typename T3,
typename T4 >
247 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4):
248 BaseClass(arg1, arg2, arg3, arg4) {}
250 typename T1,
typename T2,
typename T3,
typename T4,
typename T5 >
252 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
254 BaseClass(arg1, arg2, arg3, arg4, arg5) {}
256 typename T1,
typename T2,
typename T3,
typename T4,
typename T5,
259 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
260 T5
const & arg5, T6
const & arg6):
261 BaseClass(arg1, arg2, arg3, arg4, arg5, arg6) {}
268 css::uno::Any aRet( ImplHelper_queryNoXInterface( rType, cd::get(),
this ) );
271 return BaseClass::queryAggregation( rType );
274 { BaseClass::acquire(); }
276 { BaseClass::release(); }
278 {
return ImplInhHelper_getTypes( cd::get(), BaseClass::getTypes() ); }
280 {
return ImplHelper_getImplementationId( cd::get() ); }
virtual void acquire() SAL_NOEXCEPT SAL_OVERRIDE
Definition: implbase5.hxx:273
ImplInheritanceHelper5(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4)
Definition: implbase5.hxx:178
AggImplInheritanceHelper5(T1 const &arg1)
Definition: implbase5.hxx:237
AggImplInheritanceHelper5(T1 const &arg1, T2 const &arg2)
Definition: implbase5.hxx:239
virtual css::uno::Any queryAggregation(css::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase5.hxx:266
Implementation helper implementing interfaces css::lang::XTypeProvider and css::uno::XInterface inher...
Definition: implbase5.hxx:230
unsigned char sal_Bool
Definition: types.h:18
Implementation helper implementing interfaces css::lang::XTypeProvider and css::uno::XInterface inher...
Definition: implbase5.hxx:162
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase5.hxx:76
AggImplInheritanceHelper5(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5)
Definition: implbase5.hxx:251
virtual void release() SAL_NOEXCEPT SAL_OVERRIDE
If a delegator is set, then the delegators gets released.
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase5.hxx:140
Implementation helper implementing interfaces css::lang::XTypeProvider and css::uno::XInterface which...
Definition: implbase5.hxx:93
Base class to implement a UNO object supporting weak references, i.e.
Definition: weakagg.hxx:25
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase5.hxx:207
virtual css::uno::Any queryAggregation(css::uno::Type const &rType) SAL_OVERRIDE
Called by the delegator or queryInterface.
Definition: implbase5.hxx:134
virtual void release() SAL_NOEXCEPT SAL_OVERRIDE
Definition: implbase5.hxx:275
virtual css::uno::Any queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase5.hxx:72
virtual css::uno::Any queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
If a delegator is set, then the delegator is queried for the demanded interface.
Definition: implbase5.hxx:132
ImplInheritanceHelper5(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5)
Definition: implbase5.hxx:183
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase5.hxx:277
ImplInheritanceHelper5(T1 const &arg1)
Definition: implbase5.hxx:169
virtual void acquire() SAL_NOEXCEPT SAL_OVERRIDE
Definition: implbase5.hxx:203
AggImplInheritanceHelper5(T1 const &arg1, T2 const &arg2, T3 const &arg3)
Definition: implbase5.hxx:242
#define SAL_WARN_UNUSED
Annotate classes where a compiler should warn if an instance is unused.
Definition: types.h:567
AggImplInheritanceHelper5(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4)
Definition: implbase5.hxx:246
virtual void acquire() SAL_NOEXCEPT SAL_OVERRIDE
increasing m_refCount
Definition: implbase5.hxx:102
virtual void release() SAL_NOEXCEPT SAL_OVERRIDE
decreasing m_refCount
virtual void acquire() SAL_NOEXCEPT SAL_OVERRIDE
increasing m_refCount
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase5.hxx:209
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase5.hxx:108
ImplInheritanceHelper5(T1 const &arg1, T2 const &arg2, T3 const &arg3)
Definition: implbase5.hxx:174
ImplInheritanceHelper5(T1 const &arg1, T2 const &arg2)
Definition: implbase5.hxx:171
Helper class for a late-initialized static aggregate, e.g.
Definition: instance.hxx:528
css::uno::Any queryInterface(const css::uno::Type &rType, Interface1 *p1)
Compares demanded type to given template argument types.
Definition: queryinterface.hxx:23
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase5.hxx:279
AggImplInheritanceHelper5(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5, T6 const &arg6)
Definition: implbase5.hxx:258
virtual void release() SAL_NOEXCEPT SAL_OVERRIDE
decreasing m_refCount
Definition: implbase5.hxx:104
ImplInheritanceHelper5(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5, T6 const &arg6)
Definition: implbase5.hxx:190
#define SAL_NOEXCEPT
Macro for C++11 "noexcept" vs.
Definition: types.h:396
#define SAL_NO_VTABLE
Use this for pure virtual classes, e.g.
Definition: types.h:274
Implementation helper implementing interfaces css::lang::XTypeProvider and css::uno::XInterface which...
Definition: implbase5.hxx:125
virtual void release() SAL_NOEXCEPT SAL_OVERRIDE
Definition: implbase5.hxx:205
virtual void acquire() SAL_NOEXCEPT SAL_OVERRIDE
If a delegator is set, then the delegators gets acquired.
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.
virtual css::uno::Any queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
Basic queryInterface() implementation supporting com::sun::star::uno::XWeak and com::sun::star::uno::...
Definition: implbase5.hxx:100
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase5.hxx:106
virtual css::uno::Any queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase5.hxx:264
virtual void release() SAL_NOEXCEPT SAL_OVERRIDE
If a delegator is set, then the delegators gets released.
Definition: implbase5.hxx:138
signed char sal_Int8
Definition: types.h:23
ImplInheritanceHelper5()
Definition: implbase5.hxx:195
#define SAL_OVERRIDE
C++11 "override" feature.
Definition: types.h:371
~ImplHelper5() SAL_NOEXCEPT
Definition: implbase5.hxx:82
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase5.hxx:142
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase5.hxx:74
Base class to implement a UNO object supporting weak references, i.e.
Definition: weak.hxx:27
AggImplInheritanceHelper5()
Definition: implbase5.hxx:263
Implementation helper implementing interface css::lang::XTypeProvider and method XInterface::queryInt...
Definition: implbase5.hxx:58
virtual css::uno::Any queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase5.hxx:196
virtual void acquire() SAL_NOEXCEPT SAL_OVERRIDE
If a delegator is set, then the delegators gets acquired.
Definition: implbase5.hxx:136