19 #ifndef INCLUDED_CPPUHELPER_IMPLBASE5_HXX
20 #define INCLUDED_CPPUHELPER_IMPLBASE5_HXX
35 type_entry m_typeEntries[ 5 + 1 ];
38 template<
typename Ifc1,
typename Ifc2,
typename Ifc3,
typename Ifc4,
typename Ifc5,
typename Impl >
41 class_data* operator ()()
43 static class_data5 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(css::lang::XTypeProvider)
56 return reinterpret_cast< class_data *
>(&s_cd);
70 template<
class Ifc1,
class Ifc2,
class Ifc3,
class Ifc4,
class Ifc5 >
72 :
public css::lang::XTypeProvider
73 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4,
public Ifc5
75 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData5 < Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, ImplHelper5<Ifc1, Ifc2, Ifc3, Ifc4, Ifc5> > > {};
77 virtual css::uno::Any SAL_CALL
queryInterface( css::uno::Type
const & rType )
throw (css::uno::RuntimeException, std::exception)
SAL_OVERRIDE
78 {
return ImplHelper_query( rType, cd::get(),
this ); }
79 virtual css::uno::Sequence< css::uno::Type > SAL_CALL
getTypes() throw (css::uno::RuntimeException, std::exception)
SAL_OVERRIDE
80 {
return ImplHelper_getTypes( cd::get() ); }
82 {
return ImplHelper_getImplementationId( cd::get() ); }
84 #if !defined _MSC_VER // public -> protected changes mangled names there
86 #elif defined __clang__
87 #pragma clang diagnostic push
88 #pragma clang diagnostic ignored "-Wnon-virtual-dtor"
91 #if defined _MSC_VER && defined __clang__
92 #pragma clang diagnostic pop
103 template<
class Ifc1,
class Ifc2,
class Ifc3,
class Ifc4,
class Ifc5 >
106 ,
public css::lang::XTypeProvider
107 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4,
public Ifc5
109 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData5 < Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, WeakImplHelper5<Ifc1, Ifc2, Ifc3, Ifc4, Ifc5> > > {};
111 virtual css::uno::Any SAL_CALL
queryInterface( css::uno::Type
const & rType )
throw (css::uno::RuntimeException, std::exception)
SAL_OVERRIDE
112 {
return WeakImplHelper_query( rType, cd::get(),
this, static_cast<OWeakObject *>(
this) ); }
117 virtual css::uno::Sequence< css::uno::Type > SAL_CALL
getTypes() throw (css::uno::RuntimeException, std::exception)
SAL_OVERRIDE
118 {
return WeakImplHelper_getTypes( cd::get() ); }
120 {
return ImplHelper_getImplementationId( cd::get() ); }
135 template<
class Ifc1,
class Ifc2,
class Ifc3,
class Ifc4,
class Ifc5 >
138 ,
public css::lang::XTypeProvider
139 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4,
public Ifc5
141 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData5 < Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, WeakAggImplHelper5<Ifc1, Ifc2, Ifc3, Ifc4, Ifc5> > > {};
143 virtual css::uno::Any SAL_CALL
queryInterface( css::uno::Type
const & rType )
throw (css::uno::RuntimeException, std::exception)
SAL_OVERRIDE
146 {
return WeakAggImplHelper_queryAgg( rType, cd::get(),
this, static_cast<OWeakAggObject *>(
this) ); }
151 virtual css::uno::Sequence< css::uno::Type > SAL_CALL
getTypes() throw (css::uno::RuntimeException, std::exception)
SAL_OVERRIDE
152 {
return WeakAggImplHelper_getTypes( cd::get() ); }
154 {
return ImplHelper_getImplementationId( cd::get() ); }
172 template<
class BaseClass,
class Ifc1,
class Ifc2,
class Ifc3,
class Ifc4,
class Ifc5 >
175 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4,
public Ifc5
177 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData5 < Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, ImplInheritanceHelper5<BaseClass, Ifc1, Ifc2, Ifc3, Ifc4, Ifc5> > > {};
179 template<
typename T1 >
181 template<
typename T1,
typename T2 >
183 BaseClass(arg1, arg2) {}
184 template<
typename T1,
typename T2,
typename T3 >
186 T1
const & arg1, T2
const & arg2, T3
const & arg3):
187 BaseClass(arg1, arg2, arg3) {}
188 template<
typename T1,
typename T2,
typename T3,
typename T4 >
190 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4):
191 BaseClass(arg1, arg2, arg3, arg4) {}
193 typename T1,
typename T2,
typename T3,
typename T4,
typename T5 >
195 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
197 BaseClass(arg1, arg2, arg3, arg4, arg5) {}
199 typename T1,
typename T2,
typename T3,
typename T4,
typename T5,
202 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
203 T5
const & arg5, T6
const & arg6):
204 BaseClass(arg1, arg2, arg3, arg4, arg5, arg6) {}
207 virtual css::uno::Any SAL_CALL
queryInterface( css::uno::Type
const & rType )
throw (css::uno::RuntimeException, std::exception)
SAL_OVERRIDE
209 css::uno::Any aRet( ImplHelper_queryNoXInterface( rType, cd::get(),
this ) );
215 { BaseClass::acquire(); }
217 { BaseClass::release(); }
218 virtual css::uno::Sequence< css::uno::Type > SAL_CALL
getTypes() throw (css::uno::RuntimeException, std::exception)
SAL_OVERRIDE
219 {
return ImplInhHelper_getTypes( cd::get(), BaseClass::getTypes() ); }
221 {
return ImplHelper_getImplementationId( cd::get() ); }
240 template<
class BaseClass,
class Ifc1,
class Ifc2,
class Ifc3,
class Ifc4,
class Ifc5 >
243 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4,
public Ifc5
245 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData5 < Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, AggImplInheritanceHelper5<BaseClass, Ifc1, Ifc2, Ifc3, Ifc4, Ifc5> > > {};
247 template<
typename T1 >
249 template<
typename T1,
typename T2 >
251 BaseClass(arg1, arg2) {}
252 template<
typename T1,
typename T2,
typename T3 >
254 T1
const & arg1, T2
const & arg2, T3
const & arg3):
255 BaseClass(arg1, arg2, arg3) {}
256 template<
typename T1,
typename T2,
typename T3,
typename T4 >
258 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4):
259 BaseClass(arg1, arg2, arg3, arg4) {}
261 typename T1,
typename T2,
typename T3,
typename T4,
typename T5 >
263 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
265 BaseClass(arg1, arg2, arg3, arg4, arg5) {}
267 typename T1,
typename T2,
typename T3,
typename T4,
typename T5,
270 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
271 T5
const & arg5, T6
const & arg6):
272 BaseClass(arg1, arg2, arg3, arg4, arg5, arg6) {}
279 css::uno::Any aRet( ImplHelper_queryNoXInterface( rType, cd::get(),
this ) );
282 return BaseClass::queryAggregation( rType );
285 { BaseClass::acquire(); }
287 { BaseClass::release(); }
288 virtual css::uno::Sequence< css::uno::Type > SAL_CALL
getTypes() throw (css::uno::RuntimeException)
SAL_OVERRIDE
289 {
return ImplInhHelper_getTypes( cd::get(), BaseClass::getTypes() ); }
291 {
return ImplHelper_getImplementationId( cd::get() ); }
AggImplInheritanceHelper5(T1 const &arg1)
Definition: implbase5.hxx:248
ImplInheritanceHelper5()
Definition: implbase5.hxx:206
AggImplInheritanceHelper5(T1 const &arg1, T2 const &arg2)
Definition: implbase5.hxx:250
Base class to implement an UNO object supporting weak references, i.e.
Definition: weak.hxx:43
virtual css::uno::Any queryAggregation(css::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase5.hxx:277
Implementation helper implementing interfaces css::lang::XTypeProvider and css::uno::XInterface inher...
Definition: implbase5.hxx:241
virtual void acquire() SAL_OVERRIDE
Definition: implbase5.hxx:284
Implementation helper implementing interfaces css::lang::XTypeProvider and css::uno::XInterface which...
Definition: implbase5.hxx:136
ImplInheritanceHelper5(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5)
Definition: implbase5.hxx:194
Helper class for a late-initialized static aggregate, e.g.
Definition: instance.hxx:546
ImplInheritanceHelper5(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4)
Definition: implbase5.hxx:189
AggImplInheritanceHelper5(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5)
Definition: implbase5.hxx:262
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 acquire() SAL_OVERRIDE
increasing m_refCount
ImplInheritanceHelper5(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5, T6 const &arg6)
Definition: implbase5.hxx:201
virtual void acquire() SAL_OVERRIDE
Definition: implbase5.hxx:214
#define SAL_OVERRIDE
C++11 "override" feature.
Definition: types.h:423
Implementation helper implementing interfaces css::lang::XTypeProvider and css::uno::XInterface which...
Definition: implbase5.hxx:104
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase5.hxx:153
Base class to implement an UNO object supporting weak references, i.e.
Definition: weakagg.hxx:41
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase5.hxx:151
ImplInheritanceHelper5(T1 const &arg1)
Definition: implbase5.hxx:180
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase5.hxx:220
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 release() SAL_OVERRIDE
Definition: implbase5.hxx:216
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: implbase5.hxx:111
unsigned char sal_Bool
Definition: types.h:48
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase5.hxx:288
virtual void release() SAL_OVERRIDE
If a delegator is set, then the delegators gets released.
Definition: implbase5.hxx:149
AggImplInheritanceHelper5(T1 const &arg1, T2 const &arg2, T3 const &arg3)
Definition: implbase5.hxx:253
AggImplInheritanceHelper5(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4)
Definition: implbase5.hxx:257
virtual void acquire() SAL_OVERRIDE
increasing m_refCount
Definition: implbase5.hxx:113
~ImplHelper5()
Definition: implbase5.hxx:90
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase5.hxx:79
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: implbase5.hxx:143
signed char sal_Int8
Definition: types.h:53
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase5.hxx:290
#define SAL_NO_VTABLE
Use this for pure virtual classes, e.g.
Definition: types.h:335
AggImplInheritanceHelper5(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5, T6 const &arg6)
Definition: implbase5.hxx:269
Implementation helper implementing interfaces css::lang::XTypeProvider and css::uno::XInterface inher...
Definition: implbase5.hxx:173
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase5.hxx:119
ImplInheritanceHelper5(T1 const &arg1, T2 const &arg2, T3 const &arg3)
Definition: implbase5.hxx:185
ImplInheritanceHelper5(T1 const &arg1, T2 const &arg2)
Definition: implbase5.hxx:182
virtual void release() SAL_OVERRIDE
decreasing m_refCount
virtual css::uno::Any queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase5.hxx:77
virtual css::uno::Any queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase5.hxx:207
virtual void release() SAL_OVERRIDE
Definition: implbase5.hxx:286
virtual void acquire() SAL_OVERRIDE
If a delegator is set, then the delegators gets acquired.
Definition: implbase5.hxx:147
virtual css::uno::Any queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase5.hxx:275
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase5.hxx:117
virtual void release() SAL_OVERRIDE
decreasing m_refCount
Definition: implbase5.hxx:115
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase5.hxx:81
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase5.hxx:218
virtual css::uno::Any queryAggregation(css::uno::Type const &rType) SAL_OVERRIDE
Called by the delegator or queryInterface.
Definition: implbase5.hxx:145
AggImplInheritanceHelper5()
Definition: implbase5.hxx:274
virtual void release() SAL_OVERRIDE
If a delegator is set, then the delegators gets released.
Implementation helper implementing interface css::lang::XTypeProvider and method XInterface::queryInt...
Definition: implbase5.hxx:71