19 #ifndef INCLUDED_CPPUHELPER_IMPLBASE7_HXX 20 #define INCLUDED_CPPUHELPER_IMPLBASE7_HXX 35 type_entry m_typeEntries[ 7 + 1 ];
38 template<
typename Ifc1,
typename Ifc2,
typename Ifc3,
typename Ifc4,
typename Ifc5,
typename Ifc6,
typename Ifc7,
typename Impl >
41 class_data* operator ()()
43 static class_data7 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(css::lang::XTypeProvider)
58 return reinterpret_cast< class_data *
>(&s_cd);
72 template<
class Ifc1,
class Ifc2,
class Ifc3,
class Ifc4,
class Ifc5,
class Ifc6,
class Ifc7 >
74 :
public css::lang::XTypeProvider
75 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4,
public Ifc5,
public Ifc6,
public Ifc7
77 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData7< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, ImplHelper7<Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7> > > {};
79 virtual css::uno::Any SAL_CALL
queryInterface( css::uno::Type
const & rType )
throw (css::uno::RuntimeException, std::exception)
SAL_OVERRIDE 80 {
return ImplHelper_query( rType, cd::get(),
this ); }
81 virtual css::uno::Sequence< css::uno::Type > SAL_CALL
getTypes() throw (
css::uno::RuntimeException, std::exception)
SAL_OVERRIDE 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 >
102 ,
public css::lang::XTypeProvider
103 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4,
public Ifc5,
public Ifc6,
public Ifc7
105 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData7< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, WeakImplHelper7<Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7> > > {};
107 virtual css::uno::Any SAL_CALL
queryInterface( css::uno::Type
const & rType )
throw (css::uno::RuntimeException, std::exception)
SAL_OVERRIDE 108 {
return WeakImplHelper_query( rType, cd::get(),
this, static_cast<OWeakObject *>(
this) ); }
113 virtual css::uno::Sequence< css::uno::Type > SAL_CALL
getTypes() throw (
css::uno::RuntimeException, std::exception)
SAL_OVERRIDE 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 >
134 ,
public css::lang::XTypeProvider
135 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4,
public Ifc5,
public Ifc6,
public Ifc7
137 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData7< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, WeakAggImplHelper7<Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7> > > {};
139 virtual css::uno::Any SAL_CALL
queryInterface( css::uno::Type
const & rType )
throw (css::uno::RuntimeException, std::exception)
SAL_OVERRIDE 142 {
return WeakAggImplHelper_queryAgg( rType, cd::get(),
this, static_cast<OWeakAggObject *>(
this) ); }
147 virtual css::uno::Sequence< css::uno::Type > SAL_CALL
getTypes() throw (
css::uno::RuntimeException, std::exception)
SAL_OVERRIDE 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 >
171 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4,
public Ifc5,
public Ifc6,
public Ifc7
173 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData7< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, ImplInheritanceHelper7<BaseClass, Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7> > > {};
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) {}
203 virtual css::uno::Any SAL_CALL
queryInterface( css::uno::Type
const & rType )
throw (css::uno::RuntimeException, std::exception)
SAL_OVERRIDE 205 css::uno::Any aRet( ImplHelper_queryNoXInterface( rType, cd::get(),
this ) );
211 { BaseClass::acquire(); }
213 { BaseClass::release(); }
214 virtual css::uno::Sequence< css::uno::Type > SAL_CALL
getTypes() throw (
css::uno::RuntimeException, std::exception)
SAL_OVERRIDE 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 >
239 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4,
public Ifc5,
public Ifc6,
public Ifc7
241 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData7< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, AggImplInheritanceHelper7<BaseClass, Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7> > > {};
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() ); }
virtual css::uno::Any queryAggregation(css::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase7.hxx:141
Implementation helper implementing interfaces css::lang::XTypeProvider and css::uno::XInterface inher...
Definition: implbase7.hxx:169
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase7.hxx:113
virtual void release() SAL_OVERRIDE
Definition: implbase7.hxx:282
Base class to implement an UNO object supporting weak references, i.e.
Definition: weak.hxx:43
AggImplInheritanceHelper7(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5)
Definition: implbase7.hxx:258
virtual css::uno::Any queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase7.hxx:139
ImplInheritanceHelper7(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5, T6 const &arg6)
Definition: implbase7.hxx:197
AggImplInheritanceHelper7(T1 const &arg1)
Definition: implbase7.hxx:244
Definition: Enterable.hxx:26
ImplInheritanceHelper7(T1 const &arg1)
Definition: implbase7.hxx:176
AggImplInheritanceHelper7(T1 const &arg1, T2 const &arg2)
Definition: implbase7.hxx:246
virtual css::uno::Any queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase7.hxx:271
Helper class for a late-initialized static aggregate, e.g.
Definition: instance.hxx:546
virtual void acquire() SAL_OVERRIDE
If a delegator is set, then the delegators gets acquired.
css::uno::Any queryInterface(const css::uno::Type &rType, Interface1 *p1)
Compares demanded type to given template argument types.
Definition: queryinterface.hxx:39
virtual void release() SAL_OVERRIDE
decreasing m_refCount
Definition: implbase7.hxx:111
virtual void acquire() SAL_OVERRIDE
increasing m_refCount
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase7.hxx:214
#define SAL_OVERRIDE
C++11 "override" feature.
Definition: types.h:421
~ImplHelper7()
Definition: implbase7.hxx:89
Base class to implement an UNO object supporting weak references, i.e.
Definition: weakagg.hxx:41
AggImplInheritanceHelper7(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4)
Definition: implbase7.hxx:253
virtual css::uno::Any queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase7.hxx:107
virtual void acquire() SAL_OVERRIDE
Definition: implbase7.hxx:210
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::Any queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase7.hxx:79
unsigned char sal_Bool
Definition: types.h:48
ImplInheritanceHelper7(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4)
Definition: implbase7.hxx:185
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase7.hxx:147
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase7.hxx:286
AggImplInheritanceHelper7(T1 const &arg1, T2 const &arg2, T3 const &arg3)
Definition: implbase7.hxx:249
ImplInheritanceHelper7(T1 const &arg1, T2 const &arg2)
Definition: implbase7.hxx:178
virtual css::uno::Any queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase7.hxx:203
Implementation helper implementing interface css::lang::XTypeProvider and method XInterface::queryInt...
Definition: implbase7.hxx:73
ImplInheritanceHelper7(T1 const &arg1, T2 const &arg2, T3 const &arg3)
Definition: implbase7.hxx:181
virtual void acquire() SAL_OVERRIDE
If a delegator is set, then the delegators gets acquired.
Definition: implbase7.hxx:143
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase7.hxx:115
virtual void acquire() SAL_OVERRIDE
increasing m_refCount
Definition: implbase7.hxx:109
Implementation helper implementing interfaces css::lang::XTypeProvider and css::uno::XInterface inher...
Definition: implbase7.hxx:237
signed char sal_Int8
Definition: types.h:53
#define SAL_NO_VTABLE
Use this for pure virtual classes, e.g.
Definition: types.h:333
ImplInheritanceHelper7(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5)
Definition: implbase7.hxx:190
#define sal_False
Definition: types.h:49
Implementation helper implementing interfaces css::lang::XTypeProvider and css::uno::XInterface which...
Definition: implbase7.hxx:132
virtual void release() SAL_OVERRIDE
If a delegator is set, then the delegators gets released.
Definition: implbase7.hxx:145
virtual void release() SAL_OVERRIDE
decreasing m_refCount
Implementation helper implementing interfaces css::lang::XTypeProvider and css::uno::XInterface which...
Definition: implbase7.hxx:100
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase7.hxx:83
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase7.hxx:284
virtual void acquire() SAL_OVERRIDE
Definition: implbase7.hxx:280
AggImplInheritanceHelper7(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5, T6 const &arg6)
Definition: implbase7.hxx:265
virtual css::uno::Any queryAggregation(css::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase7.hxx:273
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase7.hxx:81
AggImplInheritanceHelper7()
Definition: implbase7.hxx:270
virtual void release() SAL_OVERRIDE
Definition: implbase7.hxx:212
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase7.hxx:149
virtual void release() SAL_OVERRIDE
If a delegator is set, then the delegators gets released.
ImplInheritanceHelper7()
Definition: implbase7.hxx:202
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase7.hxx:216