19 #ifndef INCLUDED_CPPUHELPER_IMPLBASE8_HXX
20 #define INCLUDED_CPPUHELPER_IMPLBASE8_HXX
35 type_entry m_typeEntries[ 8 + 1 ];
38 template<
typename Ifc1,
typename Ifc2,
typename Ifc3,
typename Ifc4,
typename Ifc5,
typename Ifc6,
typename Ifc7,
typename Ifc8,
typename Impl >
41 class_data* operator ()()
43 static class_data8 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(Ifc5),
53 CPPUHELPER_DETAIL_TYPEENTRY(Ifc6),
54 CPPUHELPER_DETAIL_TYPEENTRY(Ifc7),
55 CPPUHELPER_DETAIL_TYPEENTRY(Ifc8),
56 CPPUHELPER_DETAIL_TYPEENTRY(css::lang::XTypeProvider)
59 return reinterpret_cast< class_data *
>(&s_cd);
73 template<
class Ifc1,
class Ifc2,
class Ifc3,
class Ifc4,
class Ifc5,
class Ifc6,
class Ifc7,
class Ifc8 >
75 :
public css::lang::XTypeProvider
76 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4,
public Ifc5,
public Ifc6,
public Ifc7,
public Ifc8
78 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> > > {};
80 virtual css::uno::Any SAL_CALL
queryInterface( css::uno::Type
const & rType )
throw (css::uno::RuntimeException, std::exception)
SAL_OVERRIDE
81 {
return ImplHelper_query( rType, cd::get(),
this ); }
82 virtual css::uno::Sequence< css::uno::Type > SAL_CALL
getTypes() throw (css::uno::RuntimeException, std::exception)
SAL_OVERRIDE
83 {
return ImplHelper_getTypes( cd::get() ); }
85 {
return ImplHelper_getImplementationId( cd::get() ); }
87 #if !defined _MSC_VER // public -> protected changes mangled names there
89 #elif defined __clang__
90 #pragma clang diagnostic push
91 #pragma clang diagnostic ignored "-Wnon-virtual-dtor"
94 #if defined _MSC_VER && defined __clang__
95 #pragma clang diagnostic pop
106 template<
class Ifc1,
class Ifc2,
class Ifc3,
class Ifc4,
class Ifc5,
class Ifc6,
class Ifc7,
class Ifc8 >
109 ,
public css::lang::XTypeProvider
110 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4,
public Ifc5,
public Ifc6,
public Ifc7,
public Ifc8
112 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> > > {};
114 virtual css::uno::Any SAL_CALL
queryInterface( css::uno::Type
const & rType )
throw (css::uno::RuntimeException, std::exception)
SAL_OVERRIDE
115 {
return WeakImplHelper_query( rType, cd::get(),
this, static_cast<OWeakObject *>(
this) ); }
120 virtual css::uno::Sequence< css::uno::Type > SAL_CALL
getTypes() throw (css::uno::RuntimeException, std::exception)
SAL_OVERRIDE
121 {
return WeakImplHelper_getTypes( cd::get() ); }
123 {
return ImplHelper_getImplementationId( cd::get() ); }
138 template<
class Ifc1,
class Ifc2,
class Ifc3,
class Ifc4,
class Ifc5,
class Ifc6,
class Ifc7,
class Ifc8 >
141 ,
public css::lang::XTypeProvider
142 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4,
public Ifc5,
public Ifc6,
public Ifc7,
public Ifc8
144 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> > > {};
146 virtual css::uno::Any SAL_CALL
queryInterface( css::uno::Type
const & rType )
throw (css::uno::RuntimeException, std::exception)
SAL_OVERRIDE
149 {
return WeakAggImplHelper_queryAgg( rType, cd::get(),
this, static_cast<OWeakAggObject *>(
this) ); }
154 virtual css::uno::Sequence< css::uno::Type > SAL_CALL
getTypes() throw (css::uno::RuntimeException, std::exception)
SAL_OVERRIDE
155 {
return WeakAggImplHelper_getTypes( cd::get() ); }
157 {
return ImplHelper_getImplementationId( cd::get() ); }
175 template<
class BaseClass,
class Ifc1,
class Ifc2,
class Ifc3,
class Ifc4,
class Ifc5,
class Ifc6,
class Ifc7,
class Ifc8 >
178 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4,
public Ifc5,
public Ifc6,
public Ifc7,
public Ifc8
180 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> > > {};
182 template<
typename T1 >
184 template<
typename T1,
typename T2 >
186 BaseClass(arg1, arg2) {}
187 template<
typename T1,
typename T2,
typename T3 >
189 T1
const & arg1, T2
const & arg2, T3
const & arg3):
190 BaseClass(arg1, arg2, arg3) {}
191 template<
typename T1,
typename T2,
typename T3,
typename T4 >
193 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4):
194 BaseClass(arg1, arg2, arg3, arg4) {}
196 typename T1,
typename T2,
typename T3,
typename T4,
typename T5 >
198 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
200 BaseClass(arg1, arg2, arg3, arg4, arg5) {}
202 typename T1,
typename T2,
typename T3,
typename T4,
typename T5,
205 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
206 T5
const & arg5, T6
const & arg6):
207 BaseClass(arg1, arg2, arg3, arg4, arg5, arg6) {}
212 css::uno::Any aRet( ImplHelper_queryNoXInterface( rType, cd::get(),
this ) );
218 { BaseClass::acquire(); }
220 { BaseClass::release(); }
221 virtual css::uno::Sequence< css::uno::Type > SAL_CALL
getTypes() throw (css::uno::RuntimeException)
SAL_OVERRIDE
222 {
return ImplInhHelper_getTypes( cd::get(), BaseClass::getTypes() ); }
224 {
return ImplHelper_getImplementationId( cd::get() ); }
243 template<
class BaseClass,
class Ifc1,
class Ifc2,
class Ifc3,
class Ifc4,
class Ifc5,
class Ifc6,
class Ifc7,
class Ifc8 >
246 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4,
public Ifc5,
public Ifc6,
public Ifc7,
public Ifc8
248 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> > > {};
250 template<
typename T1 >
252 template<
typename T1,
typename T2 >
254 BaseClass(arg1, arg2) {}
255 template<
typename T1,
typename T2,
typename T3 >
257 T1
const & arg1, T2
const & arg2, T3
const & arg3):
258 BaseClass(arg1, arg2, arg3) {}
259 template<
typename T1,
typename T2,
typename T3,
typename T4 >
261 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4):
262 BaseClass(arg1, arg2, arg3, arg4) {}
264 typename T1,
typename T2,
typename T3,
typename T4,
typename T5 >
266 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
268 BaseClass(arg1, arg2, arg3, arg4, arg5) {}
270 typename T1,
typename T2,
typename T3,
typename T4,
typename T5,
273 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
274 T5
const & arg5, T6
const & arg6):
275 BaseClass(arg1, arg2, arg3, arg4, arg5, arg6) {}
282 css::uno::Any aRet( ImplHelper_queryNoXInterface( rType, cd::get(),
this ) );
285 return BaseClass::queryAggregation( rType );
288 { BaseClass::acquire(); }
290 { BaseClass::release(); }
291 virtual css::uno::Sequence< css::uno::Type > SAL_CALL
getTypes() throw (css::uno::RuntimeException)
SAL_OVERRIDE
292 {
return ImplInhHelper_getTypes( cd::get(), BaseClass::getTypes() ); }
294 {
return ImplHelper_getImplementationId( cd::get() ); }
Implementation helper implementing interface css::lang::XTypeProvider and method XInterface::queryInt...
Definition: implbase8.hxx:74
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase8.hxx:223
virtual void release() SAL_OVERRIDE
decreasing m_refCount
Definition: implbase8.hxx:118
Base class to implement an UNO object supporting weak references, i.e.
Definition: weak.hxx:43
AggImplInheritanceHelper8(T1 const &arg1, T2 const &arg2)
Definition: implbase8.hxx:253
Helper class for a late-initialized static aggregate, e.g.
Definition: instance.hxx:546
Implementation helper implementing interfaces css::lang::XTypeProvider and css::uno::XInterface inher...
Definition: implbase8.hxx:244
virtual void acquire() SAL_OVERRIDE
If a delegator is set, then the delegators gets acquired.
ImplInheritanceHelper8()
Definition: implbase8.hxx:209
Implementation helper implementing interfaces css::lang::XTypeProvider and css::uno::XInterface inher...
Definition: implbase8.hxx:176
css::uno::Any queryInterface(const css::uno::Type &rType, Interface1 *p1)
Compares demanded type to given template argument types.
Definition: queryinterface.hxx:39
~ImplHelper8()
Definition: implbase8.hxx:93
virtual void acquire() SAL_OVERRIDE
increasing m_refCount
#define SAL_OVERRIDE
C++11 "override" feature.
Definition: types.h:423
ImplInheritanceHelper8(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4)
Definition: implbase8.hxx:192
Base class to implement an UNO object supporting weak references, i.e.
Definition: weakagg.hxx:41
virtual void release() SAL_OVERRIDE
Definition: implbase8.hxx:289
ImplInheritanceHelper8(T1 const &arg1)
Definition: implbase8.hxx:183
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:114
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
ImplInheritanceHelper8(T1 const &arg1, T2 const &arg2)
Definition: implbase8.hxx:185
AggImplInheritanceHelper8(T1 const &arg1)
Definition: implbase8.hxx:251
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase8.hxx:293
AggImplInheritanceHelper8(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5)
Definition: implbase8.hxx:265
virtual void acquire() SAL_OVERRIDE
Definition: implbase8.hxx:217
virtual css::uno::Any queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase8.hxx:278
Implementation helper implementing interfaces css::lang::XTypeProvider and css::uno::XInterface which...
Definition: implbase8.hxx:107
signed char sal_Int8
Definition: types.h:53
ImplInheritanceHelper8(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5, T6 const &arg6)
Definition: implbase8.hxx:204
#define SAL_NO_VTABLE
Use this for pure virtual classes, e.g.
Definition: types.h:335
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase8.hxx:82
AggImplInheritanceHelper8(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5, T6 const &arg6)
Definition: implbase8.hxx:272
virtual void release() SAL_OVERRIDE
decreasing m_refCount
AggImplInheritanceHelper8(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4)
Definition: implbase8.hxx:260
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase8.hxx:291
virtual void acquire() SAL_OVERRIDE
If a delegator is set, then the delegators gets acquired.
Definition: implbase8.hxx:150
virtual void acquire() SAL_OVERRIDE
increasing m_refCount
Definition: implbase8.hxx:116
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase8.hxx:154
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase8.hxx:84
virtual void acquire() SAL_OVERRIDE
Definition: implbase8.hxx:287
virtual void release() SAL_OVERRIDE
If a delegator is set, then the delegators gets released.
Definition: implbase8.hxx:152
Implementation helper implementing interfaces css::lang::XTypeProvider and css::uno::XInterface which...
Definition: implbase8.hxx:139
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase8.hxx:122
virtual css::uno::Any queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase8.hxx:210
virtual css::uno::Any queryAggregation(css::uno::Type const &rType) SAL_OVERRIDE
Called by the delegator or queryInterface.
Definition: implbase8.hxx:148
ImplInheritanceHelper8(T1 const &arg1, T2 const &arg2, T3 const &arg3)
Definition: implbase8.hxx:188
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase8.hxx:120
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:146
AggImplInheritanceHelper8(T1 const &arg1, T2 const &arg2, T3 const &arg3)
Definition: implbase8.hxx:256
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase8.hxx:221
AggImplInheritanceHelper8()
Definition: implbase8.hxx:277
ImplInheritanceHelper8(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5)
Definition: implbase8.hxx:197
virtual void release() SAL_OVERRIDE
If a delegator is set, then the delegators gets released.
virtual void release() SAL_OVERRIDE
Definition: implbase8.hxx:219
virtual css::uno::Any queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase8.hxx:80
virtual css::uno::Any queryAggregation(css::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase8.hxx:280
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase8.hxx:156