3 #ifndef INCLUDED_CPPUHELPER_IMPLBASE4_HXX
4 #define INCLUDED_CPPUHELPER_IMPLBASE4_HXX
10 #include "com/sun/star/lang/XTypeProvider.hpp"
22 type_entry m_typeEntries[ 4 + 1 ];
25 template<
typename Ifc1,
typename Ifc2,
typename Ifc3,
typename Ifc4,
typename Impl >
28 class_data* operator ()()
30 static class_data4 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(css::lang::XTypeProvider)
42 return reinterpret_cast< class_data *
>(&s_cd);
56 template<
class Ifc1,
class Ifc2,
class Ifc3,
class Ifc4 >
58 :
public css::lang::XTypeProvider
59 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4
61 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData4 < Ifc1, Ifc2, Ifc3, Ifc4, ImplHelper4<Ifc1, Ifc2, Ifc3, Ifc4> > > {};
63 #if defined LIBO_INTERNAL_ONLY
72 {
return ImplHelper_query( rType, cd::get(),
this ); }
74 {
return ImplHelper_getTypes( cd::get() ); }
76 {
return ImplHelper_getImplementationId( cd::get() ); }
78 #if !defined _MSC_VER // public -> protected changes mangled names there
91 template<
class Ifc1,
class Ifc2,
class Ifc3,
class Ifc4 >
94 ,
public css::lang::XTypeProvider
95 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4
97 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData4 < Ifc1, Ifc2, Ifc3, Ifc4, WeakImplHelper4<Ifc1, Ifc2, Ifc3, Ifc4> > > {};
100 {
return WeakImplHelper_query( rType, cd::get(),
this, static_cast<OWeakObject *>(
this) ); }
106 {
return WeakImplHelper_getTypes( cd::get() ); }
108 {
return ImplHelper_getImplementationId( cd::get() ); }
123 template<
class Ifc1,
class Ifc2,
class Ifc3,
class Ifc4 >
126 ,
public css::lang::XTypeProvider
127 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4
129 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData4 < Ifc1, Ifc2, Ifc3, Ifc4, WeakAggImplHelper4<Ifc1, Ifc2, Ifc3, Ifc4> > > {};
134 {
return WeakAggImplHelper_queryAgg( rType, cd::get(),
this, static_cast<OWeakAggObject *>(
this) ); }
140 {
return WeakAggImplHelper_getTypes( cd::get() ); }
142 {
return ImplHelper_getImplementationId( cd::get() ); }
160 template<
class BaseClass,
class Ifc1,
class Ifc2,
class Ifc3,
class Ifc4 >
163 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4
165 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData4 < Ifc1, Ifc2, Ifc3, Ifc4, ImplInheritanceHelper4<BaseClass, Ifc1, Ifc2, Ifc3, Ifc4> > > {};
167 template<
typename T1 >
169 template<
typename T1,
typename T2 >
171 BaseClass(arg1, arg2) {}
172 template<
typename T1,
typename T2,
typename T3 >
174 T1
const & arg1, T2
const & arg2, T3
const & arg3):
175 BaseClass(arg1, arg2, arg3) {}
176 template<
typename T1,
typename T2,
typename T3,
typename T4 >
178 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4):
179 BaseClass(arg1, arg2, arg3, arg4) {}
181 typename T1,
typename T2,
typename T3,
typename T4,
typename T5 >
183 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
185 BaseClass(arg1, arg2, arg3, arg4, arg5) {}
187 typename T1,
typename T2,
typename T3,
typename T4,
typename T5,
190 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
191 T5
const & arg5, T6
const & arg6):
192 BaseClass(arg1, arg2, arg3, arg4, arg5, arg6) {}
197 css::uno::Any aRet( ImplHelper_queryNoXInterface( rType, cd::get(),
this ) );
203 { BaseClass::acquire(); }
205 { BaseClass::release(); }
207 {
return ImplInhHelper_getTypes( cd::get(), BaseClass::getTypes() ); }
209 {
return ImplHelper_getImplementationId( cd::get() ); }
228 template<
class BaseClass,
class Ifc1,
class Ifc2,
class Ifc3,
class Ifc4 >
231 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4
233 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData4 < Ifc1, Ifc2, Ifc3, Ifc4, AggImplInheritanceHelper4<BaseClass, Ifc1, Ifc2, Ifc3, Ifc4> > > {};
235 template<
typename T1 >
237 template<
typename T1,
typename T2 >
239 BaseClass(arg1, arg2) {}
240 template<
typename T1,
typename T2,
typename T3 >
242 T1
const & arg1, T2
const & arg2, T3
const & arg3):
243 BaseClass(arg1, arg2, arg3) {}
244 template<
typename T1,
typename T2,
typename T3,
typename T4 >
246 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4):
247 BaseClass(arg1, arg2, arg3, arg4) {}
249 typename T1,
typename T2,
typename T3,
typename T4,
typename T5 >
251 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
253 BaseClass(arg1, arg2, arg3, arg4, arg5) {}
255 typename T1,
typename T2,
typename T3,
typename T4,
typename T5,
258 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
259 T5
const & arg5, T6
const & arg6):
260 BaseClass(arg1, arg2, arg3, arg4, arg5, arg6) {}
267 css::uno::Any aRet( ImplHelper_queryNoXInterface( rType, cd::get(),
this ) );
270 return BaseClass::queryAggregation( rType );
273 { BaseClass::acquire(); }
275 { BaseClass::release(); }
277 {
return ImplInhHelper_getTypes( cd::get(), BaseClass::getTypes() ); }
279 {
return ImplHelper_getImplementationId( cd::get() ); }
Implementation helper implementing interfaces css::lang::XTypeProvider and css::uno::XInterface which...
Definition: implbase4.hxx:124
virtual css::uno::Any queryAggregation(css::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase4.hxx:265
virtual void acquire() SAL_NOEXCEPT SAL_OVERRIDE
increasing m_refCount
Definition: implbase4.hxx:101
ImplInheritanceHelper4(T1 const &arg1, T2 const &arg2)
Definition: implbase4.hxx:170
unsigned char sal_Bool
Definition: types.h:18
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase4.hxx:206
virtual void release() SAL_NOEXCEPT SAL_OVERRIDE
Definition: implbase4.hxx:274
AggImplInheritanceHelper4(T1 const &arg1)
Definition: implbase4.hxx:236
Implementation helper implementing interface css::lang::XTypeProvider and method XInterface::queryInt...
Definition: implbase4.hxx:57
virtual css::uno::Any queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase4.hxx:71
AggImplInheritanceHelper4()
Definition: implbase4.hxx:262
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase4.hxx:141
virtual void acquire() SAL_NOEXCEPT SAL_OVERRIDE
Definition: implbase4.hxx:202
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
AggImplInheritanceHelper4(T1 const &arg1, T2 const &arg2, T3 const &arg3)
Definition: implbase4.hxx:241
~ImplHelper4() SAL_NOEXCEPT
Definition: implbase4.hxx:81
virtual css::uno::Any queryAggregation(css::uno::Type const &rType) SAL_OVERRIDE
Called by the delegator or queryInterface.
Definition: implbase4.hxx:133
Implementation helper implementing interfaces css::lang::XTypeProvider and css::uno::XInterface inher...
Definition: implbase4.hxx:229
ImplInheritanceHelper4(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4)
Definition: implbase4.hxx:177
ImplInheritanceHelper4(T1 const &arg1, T2 const &arg2, T3 const &arg3)
Definition: implbase4.hxx:173
virtual void acquire() SAL_NOEXCEPT SAL_OVERRIDE
Definition: implbase4.hxx:272
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase4.hxx:208
virtual css::uno::Any queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase4.hxx:195
virtual void release() SAL_NOEXCEPT SAL_OVERRIDE
Definition: implbase4.hxx:204
#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
Implementation helper implementing interfaces css::lang::XTypeProvider and css::uno::XInterface inher...
Definition: implbase4.hxx:161
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: implbase4.hxx:131
virtual void acquire() SAL_NOEXCEPT SAL_OVERRIDE
increasing m_refCount
virtual void release() SAL_NOEXCEPT SAL_OVERRIDE
If a delegator is set, then the delegators gets released.
Definition: implbase4.hxx:137
virtual void release() SAL_NOEXCEPT SAL_OVERRIDE
decreasing m_refCount
Definition: implbase4.hxx:103
Helper class for a late-initialized static aggregate, e.g.
Definition: instance.hxx:528
css::uno::Any queryInterface(const css::uno::Type &rType, Interface1 *p1)
Compares demanded type to given template argument types.
Definition: queryinterface.hxx:23
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase4.hxx:139
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase4.hxx:75
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: implbase4.hxx:99
virtual css::uno::Any queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase4.hxx:263
#define SAL_NOEXCEPT
Macro for C++11 "noexcept" vs.
Definition: types.h:396
AggImplInheritanceHelper4(T1 const &arg1, T2 const &arg2)
Definition: implbase4.hxx:238
Implementation helper implementing interfaces css::lang::XTypeProvider and css::uno::XInterface which...
Definition: implbase4.hxx:92
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase4.hxx:105
#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 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.
ImplInheritanceHelper4()
Definition: implbase4.hxx:194
virtual void acquire() SAL_NOEXCEPT SAL_OVERRIDE
If a delegator is set, then the delegators gets acquired.
Definition: implbase4.hxx:135
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase4.hxx:73
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase4.hxx:278
ImplInheritanceHelper4(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5, T6 const &arg6)
Definition: implbase4.hxx:189
AggImplInheritanceHelper4(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4)
Definition: implbase4.hxx:245
signed char sal_Int8
Definition: types.h:23
#define SAL_OVERRIDE
C++11 "override" feature.
Definition: types.h:371
AggImplInheritanceHelper4(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5, T6 const &arg6)
Definition: implbase4.hxx:257
AggImplInheritanceHelper4(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5)
Definition: implbase4.hxx:250
Base class to implement a UNO object supporting weak references, i.e.
Definition: weak.hxx:27
ImplInheritanceHelper4(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5)
Definition: implbase4.hxx:182
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase4.hxx:107
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase4.hxx:276
ImplInheritanceHelper4(T1 const &arg1)
Definition: implbase4.hxx:168