3 #ifndef INCLUDED_CPPUHELPER_IMPLBASE12_HXX
4 #define INCLUDED_CPPUHELPER_IMPLBASE12_HXX
10 #include "com/sun/star/lang/XTypeProvider.hpp"
22 type_entry m_typeEntries[ 12 + 1 ];
25 template<
typename Ifc1,
typename Ifc2,
typename Ifc3,
typename Ifc4,
typename Ifc5,
typename Ifc6,
typename Ifc7,
typename Ifc8,
typename Ifc9,
typename Ifc10,
typename Ifc11,
typename Ifc12,
typename Impl >
28 class_data* operator ()()
30 static class_data12 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(Ifc6),
41 CPPUHELPER_DETAIL_TYPEENTRY(Ifc7),
42 CPPUHELPER_DETAIL_TYPEENTRY(Ifc8),
43 CPPUHELPER_DETAIL_TYPEENTRY(Ifc9),
44 CPPUHELPER_DETAIL_TYPEENTRY(Ifc10),
45 CPPUHELPER_DETAIL_TYPEENTRY(Ifc11),
46 CPPUHELPER_DETAIL_TYPEENTRY(Ifc12),
47 CPPUHELPER_DETAIL_TYPEENTRY(css::lang::XTypeProvider)
50 return reinterpret_cast< class_data *
>(&s_cd);
64 template<
class Ifc1,
class Ifc2,
class Ifc3,
class Ifc4,
class Ifc5,
class Ifc6,
class Ifc7,
class Ifc8,
class Ifc9,
class Ifc10,
class Ifc11,
class Ifc12 >
66 :
public css::lang::XTypeProvider
67 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4,
public Ifc5,
public Ifc6,
public Ifc7,
public Ifc8,
public Ifc9,
public Ifc10,
public Ifc11,
public Ifc12
69 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData12< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9, Ifc10, Ifc11, Ifc12, ImplHelper12<Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9, Ifc10, Ifc11, Ifc12> > > {};
71 #if defined LIBO_INTERNAL_ONLY
80 {
return ImplHelper_query( rType, cd::get(),
this ); }
82 {
return ImplHelper_getTypes( cd::get() ); }
84 {
return ImplHelper_getImplementationId( cd::get() ); }
86 #if !defined _MSC_VER // public -> protected changes mangled names there
99 template<
class Ifc1,
class Ifc2,
class Ifc3,
class Ifc4,
class Ifc5,
class Ifc6,
class Ifc7,
class Ifc8,
class Ifc9,
class Ifc10,
class Ifc11,
class Ifc12 >
102 ,
public css::lang::XTypeProvider
103 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4,
public Ifc5,
public Ifc6,
public Ifc7,
public Ifc8,
public Ifc9,
public Ifc10,
public Ifc11,
public Ifc12
105 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData12< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9, Ifc10, Ifc11, Ifc12, WeakImplHelper12<Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9, Ifc10, Ifc11, Ifc12> > > {};
108 {
return WeakImplHelper_query( rType, cd::get(),
this, static_cast<OWeakObject *>(
this) ); }
114 {
return WeakImplHelper_getTypes( cd::get() ); }
116 {
return ImplHelper_getImplementationId( cd::get() ); }
131 template<
class Ifc1,
class Ifc2,
class Ifc3,
class Ifc4,
class Ifc5,
class Ifc6,
class Ifc7,
class Ifc8,
class Ifc9,
class Ifc10,
class Ifc11,
class Ifc12 >
134 ,
public css::lang::XTypeProvider
135 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4,
public Ifc5,
public Ifc6,
public Ifc7,
public Ifc8,
public Ifc9,
public Ifc10,
public Ifc11,
public Ifc12
137 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData12< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9, Ifc10, Ifc11, Ifc12, WeakAggImplHelper12<Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9, Ifc10, Ifc11, Ifc12> > > {};
142 {
return WeakAggImplHelper_queryAgg( rType, cd::get(),
this, static_cast<OWeakAggObject *>(
this) ); }
148 {
return WeakAggImplHelper_getTypes( cd::get() ); }
150 {
return ImplHelper_getImplementationId( cd::get() ); }
168 template<
class BaseClass,
class Ifc1,
class Ifc2,
class Ifc3,
class Ifc4,
class Ifc5,
class Ifc6,
class Ifc7,
class Ifc8,
class Ifc9,
class Ifc10,
class Ifc11,
class Ifc12 >
171 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4,
public Ifc5,
public Ifc6,
public Ifc7,
public Ifc8,
public Ifc9,
public Ifc10,
public Ifc11,
public Ifc12
173 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData12< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9, Ifc10, Ifc11, Ifc12, ImplInheritanceHelper12<BaseClass, Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9, Ifc10, Ifc11, Ifc12> > > {};
175 template<
typename T1 >
177 template<
typename T1,
typename T2 >
179 BaseClass(arg1, arg2) {}
180 template<
typename T1,
typename T2,
typename T3 >
182 T1
const & arg1, T2
const & arg2, T3
const & arg3):
183 BaseClass(arg1, arg2, arg3) {}
184 template<
typename T1,
typename T2,
typename T3,
typename T4 >
186 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4):
187 BaseClass(arg1, arg2, arg3, arg4) {}
189 typename T1,
typename T2,
typename T3,
typename T4,
typename T5 >
191 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
193 BaseClass(arg1, arg2, arg3, arg4, arg5) {}
195 typename T1,
typename T2,
typename T3,
typename T4,
typename T5,
198 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
199 T5
const & arg5, T6
const & arg6):
200 BaseClass(arg1, arg2, arg3, arg4, arg5, arg6) {}
205 css::uno::Any aRet( ImplHelper_queryNoXInterface( rType, cd::get(),
this ) );
211 { BaseClass::acquire(); }
213 { BaseClass::release(); }
215 {
return ImplInhHelper_getTypes( cd::get(), BaseClass::getTypes() ); }
217 {
return ImplHelper_getImplementationId( cd::get() ); }
236 template<
class BaseClass,
class Ifc1,
class Ifc2,
class Ifc3,
class Ifc4,
class Ifc5,
class Ifc6,
class Ifc7,
class Ifc8,
class Ifc9,
class Ifc10,
class Ifc11,
class Ifc12 >
239 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4,
public Ifc5,
public Ifc6,
public Ifc7,
public Ifc8,
public Ifc9,
public Ifc10,
public Ifc11,
public Ifc12
241 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData12< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9, Ifc10, Ifc11, Ifc12, AggImplInheritanceHelper12<BaseClass, Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9, Ifc10, Ifc11, Ifc12> > > {};
243 template<
typename T1 >
245 template<
typename T1,
typename T2 >
247 BaseClass(arg1, arg2) {}
248 template<
typename T1,
typename T2,
typename T3 >
250 T1
const & arg1, T2
const & arg2, T3
const & arg3):
251 BaseClass(arg1, arg2, arg3) {}
252 template<
typename T1,
typename T2,
typename T3,
typename T4 >
254 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4):
255 BaseClass(arg1, arg2, arg3, arg4) {}
257 typename T1,
typename T2,
typename T3,
typename T4,
typename T5 >
259 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
261 BaseClass(arg1, arg2, arg3, arg4, arg5) {}
263 typename T1,
typename T2,
typename T3,
typename T4,
typename T5,
266 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
267 T5
const & arg5, T6
const & arg6):
268 BaseClass(arg1, arg2, arg3, arg4, arg5, arg6) {}
275 css::uno::Any aRet( ImplHelper_queryNoXInterface( rType, cd::get(),
this ) );
278 return BaseClass::queryAggregation( rType );
281 { BaseClass::acquire(); }
283 { BaseClass::release(); }
285 {
return ImplInhHelper_getTypes( cd::get(), BaseClass::getTypes() ); }
287 {
return ImplHelper_getImplementationId( cd::get() ); }
ImplInheritanceHelper12(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4)
Definition: implbase12.hxx:185
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase12.hxx:115
Implementation helper implementing interfaces css::lang::XTypeProvider and css::uno::XInterface inher...
Definition: implbase12.hxx:169
Implementation helper implementing interfaces css::lang::XTypeProvider and css::uno::XInterface inher...
Definition: implbase12.hxx:237
virtual void acquire() SAL_NOEXCEPT SAL_OVERRIDE
Definition: implbase12.hxx:280
AggImplInheritanceHelper12(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4)
Definition: implbase12.hxx:253
unsigned char sal_Bool
Definition: types.h:18
~ImplHelper12() SAL_NOEXCEPT
Definition: implbase12.hxx:89
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase12.hxx:113
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase12.hxx:216
virtual void release() SAL_NOEXCEPT SAL_OVERRIDE
Definition: implbase12.hxx:282
AggImplInheritanceHelper12(T1 const &arg1, T2 const &arg2)
Definition: implbase12.hxx:246
virtual void release() SAL_NOEXCEPT 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: implbase12.hxx:79
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: implbase12.hxx:81
ImplInheritanceHelper12(T1 const &arg1)
Definition: implbase12.hxx:176
virtual void release() SAL_NOEXCEPT SAL_OVERRIDE
decreasing m_refCount
Definition: implbase12.hxx:111
AggImplInheritanceHelper12(T1 const &arg1, T2 const &arg2, T3 const &arg3)
Definition: implbase12.hxx:249
virtual css::uno::Any queryAggregation(css::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase12.hxx:273
virtual void acquire() SAL_NOEXCEPT SAL_OVERRIDE
Definition: implbase12.hxx:210
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase12.hxx:214
AggImplInheritanceHelper12(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5, T6 const &arg6)
Definition: implbase12.hxx:265
AggImplInheritanceHelper12(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5)
Definition: implbase12.hxx:258
ImplInheritanceHelper12(T1 const &arg1, T2 const &arg2, T3 const &arg3)
Definition: implbase12.hxx:181
virtual css::uno::Any queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase12.hxx:203
AggImplInheritanceHelper12(T1 const &arg1)
Definition: implbase12.hxx:244
#define SAL_WARN_UNUSED
Annotate classes where a compiler should warn if an instance is unused.
Definition: types.h:567
virtual void release() SAL_NOEXCEPT SAL_OVERRIDE
decreasing m_refCount
virtual void acquire() SAL_NOEXCEPT SAL_OVERRIDE
increasing m_refCount
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::Any queryAggregation(css::uno::Type const &rType) SAL_OVERRIDE
Called by the delegator or queryInterface.
Definition: implbase12.hxx:141
#define SAL_NOEXCEPT
Macro for C++11 "noexcept" vs.
Definition: types.h:396
Implementation helper implementing interfaces css::lang::XTypeProvider and css::uno::XInterface which...
Definition: implbase12.hxx:132
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase12.hxx:83
#define SAL_NO_VTABLE
Use this for pure virtual classes, e.g.
Definition: types.h:274
virtual void acquire() SAL_NOEXCEPT SAL_OVERRIDE
If a delegator is set, then the delegators gets acquired.
virtual void release() SAL_NOEXCEPT SAL_OVERRIDE
Definition: implbase12.hxx:212
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::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase12.hxx:147
virtual void acquire() SAL_NOEXCEPT SAL_OVERRIDE
If a delegator is set, then the delegators gets acquired.
Definition: implbase12.hxx:143
ImplInheritanceHelper12(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5, T6 const &arg6)
Definition: implbase12.hxx:197
Implementation helper implementing interfaces css::lang::XTypeProvider and css::uno::XInterface which...
Definition: implbase12.hxx:100
ImplInheritanceHelper12(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5)
Definition: implbase12.hxx:190
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: implbase12.hxx:107
virtual css::uno::Any queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase12.hxx:271
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase12.hxx:149
AggImplInheritanceHelper12()
Definition: implbase12.hxx:270
signed char sal_Int8
Definition: types.h:23
#define SAL_OVERRIDE
C++11 "override" feature.
Definition: types.h:371
virtual void acquire() SAL_NOEXCEPT SAL_OVERRIDE
increasing m_refCount
Definition: implbase12.hxx:109
ImplInheritanceHelper12()
Definition: implbase12.hxx:202
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase12.hxx:286
Base class to implement a UNO object supporting weak references, i.e.
Definition: weak.hxx:27
Implementation helper implementing interface css::lang::XTypeProvider and method XInterface::queryInt...
Definition: implbase12.hxx:65
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase12.hxx:284
virtual void release() SAL_NOEXCEPT SAL_OVERRIDE
If a delegator is set, then the delegators gets released.
Definition: implbase12.hxx:145
ImplInheritanceHelper12(T1 const &arg1, T2 const &arg2)
Definition: implbase12.hxx:178
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: implbase12.hxx:139