3 #ifndef INCLUDED_CPPUHELPER_IMPLBASE6_HXX
4 #define INCLUDED_CPPUHELPER_IMPLBASE6_HXX
10 #include "com/sun/star/lang/XTypeProvider.hpp"
22 type_entry m_typeEntries[ 6 + 1 ];
25 template<
typename Ifc1,
typename Ifc2,
typename Ifc3,
typename Ifc4,
typename Ifc5,
typename Ifc6,
typename Impl >
28 class_data* operator ()()
30 static class_data6 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(css::lang::XTypeProvider)
44 return reinterpret_cast< class_data *
>(&s_cd);
58 template<
class Ifc1,
class Ifc2,
class Ifc3,
class Ifc4,
class Ifc5,
class Ifc6 >
60 :
public css::lang::XTypeProvider
61 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4,
public Ifc5,
public Ifc6
63 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData6 < Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, ImplHelper6<Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6> > > {};
65 #if defined LIBO_INTERNAL_ONLY
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,
class Ifc3,
class Ifc4,
class Ifc5,
class Ifc6 >
96 ,
public css::lang::XTypeProvider
97 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4,
public Ifc5,
public Ifc6
99 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData6 < Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, WeakImplHelper6<Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6> > > {};
102 {
return WeakImplHelper_query( rType, cd::get(),
this, static_cast<OWeakObject *>(
this) ); }
108 {
return WeakImplHelper_getTypes( cd::get() ); }
110 {
return ImplHelper_getImplementationId( cd::get() ); }
125 template<
class Ifc1,
class Ifc2,
class Ifc3,
class Ifc4,
class Ifc5,
class Ifc6 >
128 ,
public css::lang::XTypeProvider
129 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4,
public Ifc5,
public Ifc6
131 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData6 < Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, WeakAggImplHelper6<Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6> > > {};
136 {
return WeakAggImplHelper_queryAgg( rType, cd::get(),
this, static_cast<OWeakAggObject *>(
this) ); }
142 {
return WeakAggImplHelper_getTypes( cd::get() ); }
144 {
return ImplHelper_getImplementationId( cd::get() ); }
162 template<
class BaseClass,
class Ifc1,
class Ifc2,
class Ifc3,
class Ifc4,
class Ifc5,
class Ifc6 >
165 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4,
public Ifc5,
public Ifc6
167 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData6 < Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, ImplInheritanceHelper6<BaseClass, Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6> > > {};
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) {}
199 css::uno::Any aRet( ImplHelper_queryNoXInterface( rType, cd::get(),
this ) );
205 { BaseClass::acquire(); }
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,
class Ifc3,
class Ifc4,
class Ifc5,
class Ifc6 >
233 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4,
public Ifc5,
public Ifc6
235 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData6 < Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, AggImplInheritanceHelper6<BaseClass, Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6> > > {};
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) {}
269 css::uno::Any aRet( ImplHelper_queryNoXInterface( rType, cd::get(),
this ) );
272 return BaseClass::queryAggregation( rType );
275 { BaseClass::acquire(); }
277 { BaseClass::release(); }
279 {
return ImplInhHelper_getTypes( cd::get(), BaseClass::getTypes() ); }
281 {
return ImplHelper_getImplementationId( cd::get() ); }
ImplInheritanceHelper6(T1 const &arg1, T2 const &arg2, T3 const &arg3)
Definition: implbase6.hxx:175
virtual css::uno::Any queryAggregation(css::uno::Type const &rType) SAL_OVERRIDE
Called by the delegator or queryInterface.
Definition: implbase6.hxx:135
virtual void release() SAL_NOEXCEPT SAL_OVERRIDE
If a delegator is set, then the delegators gets released.
Definition: implbase6.hxx:139
unsigned char sal_Bool
Definition: types.h:18
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase6.hxx:210
Implementation helper implementing interface css::lang::XTypeProvider and method XInterface::queryInt...
Definition: implbase6.hxx:59
virtual css::uno::Any queryAggregation(css::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase6.hxx:267
virtual void release() SAL_NOEXCEPT SAL_OVERRIDE
If a delegator is set, then the delegators gets released.
ImplInheritanceHelper6(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5)
Definition: implbase6.hxx:184
Base class to implement a UNO object supporting weak references, i.e.
Definition: weakagg.hxx:25
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase6.hxx:143
virtual css::uno::Any queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase6.hxx:265
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase6.hxx:280
virtual void release() SAL_NOEXCEPT SAL_OVERRIDE
decreasing m_refCount
Definition: implbase6.hxx:105
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase6.hxx:75
virtual void acquire() SAL_NOEXCEPT SAL_OVERRIDE
Definition: implbase6.hxx:204
Implementation helper implementing interfaces css::lang::XTypeProvider and css::uno::XInterface which...
Definition: implbase6.hxx:126
#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
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase6.hxx:208
Helper class for a late-initialized static aggregate, e.g.
Definition: instance.hxx:528
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: implbase6.hxx:101
AggImplInheritanceHelper6()
Definition: implbase6.hxx:264
css::uno::Any queryInterface(const css::uno::Type &rType, Interface1 *p1)
Compares demanded type to given template argument types.
Definition: queryinterface.hxx:23
ImplInheritanceHelper6()
Definition: implbase6.hxx:196
ImplInheritanceHelper6(T1 const &arg1)
Definition: implbase6.hxx:170
AggImplInheritanceHelper6(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5)
Definition: implbase6.hxx:252
virtual void acquire() SAL_NOEXCEPT SAL_OVERRIDE
If a delegator is set, then the delegators gets acquired.
Definition: implbase6.hxx:137
virtual void release() SAL_NOEXCEPT SAL_OVERRIDE
Definition: implbase6.hxx:276
#define SAL_NOEXCEPT
Macro for C++11 "noexcept" vs.
Definition: types.h:396
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase6.hxx:107
virtual void acquire() SAL_NOEXCEPT SAL_OVERRIDE
Definition: implbase6.hxx:274
AggImplInheritanceHelper6(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5, T6 const &arg6)
Definition: implbase6.hxx:259
#define SAL_NO_VTABLE
Use this for pure virtual classes, e.g.
Definition: types.h:274
AggImplInheritanceHelper6(T1 const &arg1, T2 const &arg2, T3 const &arg3)
Definition: implbase6.hxx:243
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: implbase6.hxx:206
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 void acquire() SAL_NOEXCEPT SAL_OVERRIDE
increasing m_refCount
Definition: implbase6.hxx:103
AggImplInheritanceHelper6(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4)
Definition: implbase6.hxx:247
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: implbase6.hxx:133
Implementation helper implementing interfaces css::lang::XTypeProvider and css::uno::XInterface inher...
Definition: implbase6.hxx:231
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase6.hxx:278
AggImplInheritanceHelper6(T1 const &arg1)
Definition: implbase6.hxx:238
signed char sal_Int8
Definition: types.h:23
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase6.hxx:141
ImplInheritanceHelper6(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5, T6 const &arg6)
Definition: implbase6.hxx:191
#define SAL_OVERRIDE
C++11 "override" feature.
Definition: types.h:371
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase6.hxx:77
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase6.hxx:109
virtual css::uno::Any queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase6.hxx:197
ImplInheritanceHelper6(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4)
Definition: implbase6.hxx:179
Implementation helper implementing interfaces css::lang::XTypeProvider and css::uno::XInterface which...
Definition: implbase6.hxx:94
Base class to implement a UNO object supporting weak references, i.e.
Definition: weak.hxx:27
Implementation helper implementing interfaces css::lang::XTypeProvider and css::uno::XInterface inher...
Definition: implbase6.hxx:163
virtual css::uno::Any queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase6.hxx:73
~ImplHelper6() SAL_NOEXCEPT
Definition: implbase6.hxx:83
ImplInheritanceHelper6(T1 const &arg1, T2 const &arg2)
Definition: implbase6.hxx:172
AggImplInheritanceHelper6(T1 const &arg1, T2 const &arg2)
Definition: implbase6.hxx:240