3 #ifndef INCLUDED_CPPUHELPER_IMPLBASE8_HXX
4 #define INCLUDED_CPPUHELPER_IMPLBASE8_HXX
10 #include "com/sun/star/lang/XTypeProvider.hpp"
22 type_entry m_typeEntries[ 8 + 1 ];
25 template<
typename Ifc1,
typename Ifc2,
typename Ifc3,
typename Ifc4,
typename Ifc5,
typename Ifc6,
typename Ifc7,
typename Ifc8,
typename Impl >
28 class_data* operator ()()
30 static class_data8 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(css::lang::XTypeProvider)
46 return reinterpret_cast< class_data *
>(&s_cd);
60 template<
class Ifc1,
class Ifc2,
class Ifc3,
class Ifc4,
class Ifc5,
class Ifc6,
class Ifc7,
class Ifc8 >
62 :
public css::lang::XTypeProvider
63 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4,
public Ifc5,
public Ifc6,
public Ifc7,
public Ifc8
65 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData8< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, ImplHelper8<Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8> > > {};
67 #if defined LIBO_INTERNAL_ONLY
76 {
return ImplHelper_query( rType, cd::get(),
this ); }
78 {
return ImplHelper_getTypes( cd::get() ); }
80 {
return ImplHelper_getImplementationId( cd::get() ); }
82 #if !defined _MSC_VER // public -> protected changes mangled names there
95 template<
class Ifc1,
class Ifc2,
class Ifc3,
class Ifc4,
class Ifc5,
class Ifc6,
class Ifc7,
class Ifc8 >
98 ,
public css::lang::XTypeProvider
99 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4,
public Ifc5,
public Ifc6,
public Ifc7,
public Ifc8
101 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData8< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, WeakImplHelper8<Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8> > > {};
104 {
return WeakImplHelper_query( rType, cd::get(),
this, static_cast<OWeakObject *>(
this) ); }
110 {
return WeakImplHelper_getTypes( cd::get() ); }
112 {
return ImplHelper_getImplementationId( cd::get() ); }
127 template<
class Ifc1,
class Ifc2,
class Ifc3,
class Ifc4,
class Ifc5,
class Ifc6,
class Ifc7,
class Ifc8 >
130 ,
public css::lang::XTypeProvider
131 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4,
public Ifc5,
public Ifc6,
public Ifc7,
public Ifc8
133 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData8< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, WeakAggImplHelper8<Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8> > > {};
138 {
return WeakAggImplHelper_queryAgg( rType, cd::get(),
this, static_cast<OWeakAggObject *>(
this) ); }
144 {
return WeakAggImplHelper_getTypes( cd::get() ); }
146 {
return ImplHelper_getImplementationId( cd::get() ); }
164 template<
class BaseClass,
class Ifc1,
class Ifc2,
class Ifc3,
class Ifc4,
class Ifc5,
class Ifc6,
class Ifc7,
class Ifc8 >
167 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4,
public Ifc5,
public Ifc6,
public Ifc7,
public Ifc8
169 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData8< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, ImplInheritanceHelper8<BaseClass, Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8> > > {};
171 template<
typename T1 >
173 template<
typename T1,
typename T2 >
175 BaseClass(arg1, arg2) {}
176 template<
typename T1,
typename T2,
typename T3 >
178 T1
const & arg1, T2
const & arg2, T3
const & arg3):
179 BaseClass(arg1, arg2, arg3) {}
180 template<
typename T1,
typename T2,
typename T3,
typename T4 >
182 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4):
183 BaseClass(arg1, arg2, arg3, arg4) {}
185 typename T1,
typename T2,
typename T3,
typename T4,
typename T5 >
187 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
189 BaseClass(arg1, arg2, arg3, arg4, arg5) {}
191 typename T1,
typename T2,
typename T3,
typename T4,
typename T5,
194 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
195 T5
const & arg5, T6
const & arg6):
196 BaseClass(arg1, arg2, arg3, arg4, arg5, arg6) {}
201 css::uno::Any aRet( ImplHelper_queryNoXInterface( rType, cd::get(),
this ) );
207 { BaseClass::acquire(); }
209 { BaseClass::release(); }
211 {
return ImplInhHelper_getTypes( cd::get(), BaseClass::getTypes() ); }
213 {
return ImplHelper_getImplementationId( cd::get() ); }
232 template<
class BaseClass,
class Ifc1,
class Ifc2,
class Ifc3,
class Ifc4,
class Ifc5,
class Ifc6,
class Ifc7,
class Ifc8 >
235 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4,
public Ifc5,
public Ifc6,
public Ifc7,
public Ifc8
237 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData8< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, AggImplInheritanceHelper8<BaseClass, Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8> > > {};
239 template<
typename T1 >
241 template<
typename T1,
typename T2 >
243 BaseClass(arg1, arg2) {}
244 template<
typename T1,
typename T2,
typename T3 >
246 T1
const & arg1, T2
const & arg2, T3
const & arg3):
247 BaseClass(arg1, arg2, arg3) {}
248 template<
typename T1,
typename T2,
typename T3,
typename T4 >
250 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4):
251 BaseClass(arg1, arg2, arg3, arg4) {}
253 typename T1,
typename T2,
typename T3,
typename T4,
typename T5 >
255 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
257 BaseClass(arg1, arg2, arg3, arg4, arg5) {}
259 typename T1,
typename T2,
typename T3,
typename T4,
typename T5,
262 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
263 T5
const & arg5, T6
const & arg6):
264 BaseClass(arg1, arg2, arg3, arg4, arg5, arg6) {}
271 css::uno::Any aRet( ImplHelper_queryNoXInterface( rType, cd::get(),
this ) );
274 return BaseClass::queryAggregation( rType );
277 { BaseClass::acquire(); }
279 { BaseClass::release(); }
281 {
return ImplInhHelper_getTypes( cd::get(), BaseClass::getTypes() ); }
283 {
return ImplHelper_getImplementationId( cd::get() ); }
virtual void acquire() SAL_NOEXCEPT SAL_OVERRIDE
increasing m_refCount
Definition: implbase8.hxx:105
virtual void release() SAL_NOEXCEPT SAL_OVERRIDE
Definition: implbase8.hxx:278
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase8.hxx:210
virtual void release() SAL_NOEXCEPT SAL_OVERRIDE
If a delegator is set, then the delegators gets released.
Definition: implbase8.hxx:141
unsigned char sal_Bool
Definition: types.h:18
~ImplHelper8() SAL_NOEXCEPT
Definition: implbase8.hxx:85
AggImplInheritanceHelper8(T1 const &arg1, T2 const &arg2)
Definition: implbase8.hxx:242
Implementation helper implementing interfaces css::lang::XTypeProvider and css::uno::XInterface inher...
Definition: implbase8.hxx:233
ImplInheritanceHelper8(T1 const &arg1)
Definition: implbase8.hxx:172
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase8.hxx:109
virtual void release() SAL_NOEXCEPT SAL_OVERRIDE
If a delegator is set, then the delegators gets released.
Base class to implement a UNO object supporting weak references, i.e.
Definition: weakagg.hxx:25
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: implbase8.hxx:135
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase8.hxx:212
Implementation helper implementing interfaces css::lang::XTypeProvider and css::uno::XInterface inher...
Definition: implbase8.hxx:165
ImplInheritanceHelper8()
Definition: implbase8.hxx:198
virtual void acquire() SAL_NOEXCEPT SAL_OVERRIDE
If a delegator is set, then the delegators gets acquired.
Definition: implbase8.hxx:139
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase8.hxx:79
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase8.hxx:111
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase8.hxx:143
AggImplInheritanceHelper8(T1 const &arg1)
Definition: implbase8.hxx:240
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase8.hxx:282
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase8.hxx:77
AggImplInheritanceHelper8(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5)
Definition: implbase8.hxx:254
virtual css::uno::Any queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase8.hxx:267
#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
ImplInheritanceHelper8(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4)
Definition: implbase8.hxx:181
virtual css::uno::Any queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase8.hxx:75
virtual css::uno::Any queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase8.hxx:199
css::uno::Any queryInterface(const css::uno::Type &rType, Interface1 *p1)
Compares demanded type to given template argument types.
Definition: queryinterface.hxx:23
Implementation helper implementing interface css::lang::XTypeProvider and method XInterface::queryInt...
Definition: implbase8.hxx:61
#define SAL_NOEXCEPT
Macro for C++11 "noexcept" vs.
Definition: types.h:396
ImplInheritanceHelper8(T1 const &arg1, T2 const &arg2)
Definition: implbase8.hxx:174
AggImplInheritanceHelper8(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5, T6 const &arg6)
Definition: implbase8.hxx:261
#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 acquire() SAL_NOEXCEPT SAL_OVERRIDE
Definition: implbase8.hxx:276
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.
ImplInheritanceHelper8(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5, T6 const &arg6)
Definition: implbase8.hxx:193
AggImplInheritanceHelper8(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4)
Definition: implbase8.hxx:249
ImplInheritanceHelper8(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5)
Definition: implbase8.hxx:186
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase8.hxx:280
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: implbase8.hxx:103
signed char sal_Int8
Definition: types.h:23
AggImplInheritanceHelper8(T1 const &arg1, T2 const &arg2, T3 const &arg3)
Definition: implbase8.hxx:245
virtual void release() SAL_NOEXCEPT SAL_OVERRIDE
decreasing m_refCount
Definition: implbase8.hxx:107
#define SAL_OVERRIDE
C++11 "override" feature.
Definition: types.h:371
ImplInheritanceHelper8(T1 const &arg1, T2 const &arg2, T3 const &arg3)
Definition: implbase8.hxx:177
AggImplInheritanceHelper8()
Definition: implbase8.hxx:266
Implementation helper implementing interfaces css::lang::XTypeProvider and css::uno::XInterface which...
Definition: implbase8.hxx:96
Implementation helper implementing interfaces css::lang::XTypeProvider and css::uno::XInterface which...
Definition: implbase8.hxx:128
Base class to implement a UNO object supporting weak references, i.e.
Definition: weak.hxx:27
virtual css::uno::Any queryAggregation(css::uno::Type const &rType) SAL_OVERRIDE
Called by the delegator or queryInterface.
Definition: implbase8.hxx:137
virtual void acquire() SAL_NOEXCEPT SAL_OVERRIDE
Definition: implbase8.hxx:206
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase8.hxx:145
virtual css::uno::Any queryAggregation(css::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase8.hxx:269
virtual void release() SAL_NOEXCEPT SAL_OVERRIDE
Definition: implbase8.hxx:208