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 100 template<
class Ifc1,
class Ifc2,
class Ifc3,
class Ifc4,
class Ifc5,
class Ifc6,
class Ifc7,
class Ifc8 >
103 ,
public css::lang::XTypeProvider
104 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4,
public Ifc5,
public Ifc6,
public Ifc7,
public Ifc8
106 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> > > {};
108 virtual css::uno::Any SAL_CALL
queryInterface( css::uno::Type
const & rType )
throw (css::uno::RuntimeException, std::exception)
SAL_OVERRIDE 109 {
return WeakImplHelper_query( rType, cd::get(),
this, static_cast<OWeakObject *>(
this) ); }
114 virtual css::uno::Sequence< css::uno::Type > SAL_CALL
getTypes() throw (
css::uno::RuntimeException, std::exception)
SAL_OVERRIDE 115 {
return WeakImplHelper_getTypes( cd::get() ); }
117 {
return ImplHelper_getImplementationId( cd::get() ); }
132 template<
class Ifc1,
class Ifc2,
class Ifc3,
class Ifc4,
class Ifc5,
class Ifc6,
class Ifc7,
class Ifc8 >
135 ,
public css::lang::XTypeProvider
136 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4,
public Ifc5,
public Ifc6,
public Ifc7,
public Ifc8
138 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> > > {};
140 virtual css::uno::Any SAL_CALL
queryInterface( css::uno::Type
const & rType )
throw (css::uno::RuntimeException, std::exception)
SAL_OVERRIDE 143 {
return WeakAggImplHelper_queryAgg( rType, cd::get(),
this, static_cast<OWeakAggObject *>(
this) ); }
148 virtual css::uno::Sequence< css::uno::Type > SAL_CALL
getTypes() throw (
css::uno::RuntimeException, std::exception)
SAL_OVERRIDE 149 {
return WeakAggImplHelper_getTypes( cd::get() ); }
151 {
return ImplHelper_getImplementationId( cd::get() ); }
169 template<
class BaseClass,
class Ifc1,
class Ifc2,
class Ifc3,
class Ifc4,
class Ifc5,
class Ifc6,
class Ifc7,
class Ifc8 >
172 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4,
public Ifc5,
public Ifc6,
public Ifc7,
public Ifc8
174 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> > > {};
176 template<
typename T1 >
178 template<
typename T1,
typename T2 >
180 BaseClass(arg1, arg2) {}
181 template<
typename T1,
typename T2,
typename T3 >
183 T1
const & arg1, T2
const & arg2, T3
const & arg3):
184 BaseClass(arg1, arg2, arg3) {}
185 template<
typename T1,
typename T2,
typename T3,
typename T4 >
187 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4):
188 BaseClass(arg1, arg2, arg3, arg4) {}
190 typename T1,
typename T2,
typename T3,
typename T4,
typename T5 >
192 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
194 BaseClass(arg1, arg2, arg3, arg4, arg5) {}
196 typename T1,
typename T2,
typename T3,
typename T4,
typename T5,
199 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
200 T5
const & arg5, T6
const & arg6):
201 BaseClass(arg1, arg2, arg3, arg4, arg5, arg6) {}
206 css::uno::Any aRet( ImplHelper_queryNoXInterface( rType, cd::get(),
this ) );
212 { BaseClass::acquire(); }
214 { BaseClass::release(); }
216 {
return ImplInhHelper_getTypes( cd::get(), BaseClass::getTypes() ); }
218 {
return ImplHelper_getImplementationId( cd::get() ); }
237 template<
class BaseClass,
class Ifc1,
class Ifc2,
class Ifc3,
class Ifc4,
class Ifc5,
class Ifc6,
class Ifc7,
class Ifc8 >
240 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4,
public Ifc5,
public Ifc6,
public Ifc7,
public Ifc8
242 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> > > {};
244 template<
typename T1 >
246 template<
typename T1,
typename T2 >
248 BaseClass(arg1, arg2) {}
249 template<
typename T1,
typename T2,
typename T3 >
251 T1
const & arg1, T2
const & arg2, T3
const & arg3):
252 BaseClass(arg1, arg2, arg3) {}
253 template<
typename T1,
typename T2,
typename T3,
typename T4 >
255 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4):
256 BaseClass(arg1, arg2, arg3, arg4) {}
258 typename T1,
typename T2,
typename T3,
typename T4,
typename T5 >
260 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
262 BaseClass(arg1, arg2, arg3, arg4, arg5) {}
264 typename T1,
typename T2,
typename T3,
typename T4,
typename T5,
267 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
268 T5
const & arg5, T6
const & arg6):
269 BaseClass(arg1, arg2, arg3, arg4, arg5, arg6) {}
276 css::uno::Any aRet( ImplHelper_queryNoXInterface( rType, cd::get(),
this ) );
279 return BaseClass::queryAggregation( rType );
282 { BaseClass::acquire(); }
284 { BaseClass::release(); }
286 {
return ImplInhHelper_getTypes( cd::get(), BaseClass::getTypes() ); }
288 {
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:217
virtual void release() SAL_OVERRIDE
decreasing m_refCount
Definition: implbase8.hxx:112
Base class to implement an UNO object supporting weak references, i.e.
Definition: weak.hxx:43
Definition: Enterable.hxx:26
AggImplInheritanceHelper8(T1 const &arg1, T2 const &arg2)
Definition: implbase8.hxx:247
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:238
virtual void acquire() SAL_OVERRIDE
If a delegator is set, then the delegators gets acquired.
ImplInheritanceHelper8()
Definition: implbase8.hxx:203
Implementation helper implementing interfaces css::lang::XTypeProvider and css::uno::XInterface inher...
Definition: implbase8.hxx:170
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:90
virtual void acquire() SAL_OVERRIDE
increasing m_refCount
#define SAL_OVERRIDE
C++11 "override" feature.
Definition: types.h:421
ImplInheritanceHelper8(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4)
Definition: implbase8.hxx:186
Base class to implement an UNO object supporting weak references, i.e.
Definition: weakagg.hxx:41
virtual void release() SAL_OVERRIDE
Definition: implbase8.hxx:283
ImplInheritanceHelper8(T1 const &arg1)
Definition: implbase8.hxx:177
virtual css::uno::Any queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase8.hxx:108
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:179
AggImplInheritanceHelper8(T1 const &arg1)
Definition: implbase8.hxx:245
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase8.hxx:287
AggImplInheritanceHelper8(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5)
Definition: implbase8.hxx:259
virtual void acquire() SAL_OVERRIDE
Definition: implbase8.hxx:211
virtual css::uno::Any queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase8.hxx:272
Implementation helper implementing interfaces css::lang::XTypeProvider and css::uno::XInterface which...
Definition: implbase8.hxx:101
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:198
#define SAL_NO_VTABLE
Use this for pure virtual classes, e.g.
Definition: types.h:333
#define sal_False
Definition: types.h:49
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:266
virtual void release() SAL_OVERRIDE
decreasing m_refCount
AggImplInheritanceHelper8(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4)
Definition: implbase8.hxx:254
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase8.hxx:285
virtual void acquire() SAL_OVERRIDE
If a delegator is set, then the delegators gets acquired.
Definition: implbase8.hxx:144
virtual void acquire() SAL_OVERRIDE
increasing m_refCount
Definition: implbase8.hxx:110
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase8.hxx:148
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase8.hxx:84
virtual void acquire() SAL_OVERRIDE
Definition: implbase8.hxx:281
virtual void release() SAL_OVERRIDE
If a delegator is set, then the delegators gets released.
Definition: implbase8.hxx:146
Implementation helper implementing interfaces css::lang::XTypeProvider and css::uno::XInterface which...
Definition: implbase8.hxx:133
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase8.hxx:116
virtual css::uno::Any queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase8.hxx:204
virtual css::uno::Any queryAggregation(css::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase8.hxx:142
ImplInheritanceHelper8(T1 const &arg1, T2 const &arg2, T3 const &arg3)
Definition: implbase8.hxx:182
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase8.hxx:114
virtual css::uno::Any queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase8.hxx:140
AggImplInheritanceHelper8(T1 const &arg1, T2 const &arg2, T3 const &arg3)
Definition: implbase8.hxx:250
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase8.hxx:215
AggImplInheritanceHelper8()
Definition: implbase8.hxx:271
ImplInheritanceHelper8(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5)
Definition: implbase8.hxx:191
virtual void release() SAL_OVERRIDE
If a delegator is set, then the delegators gets released.
virtual void release() SAL_OVERRIDE
Definition: implbase8.hxx:213
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:274
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase8.hxx:150