23 #ifndef INCLUDED_CPPUHELPER_IMPLBASE3_HXX
24 #define INCLUDED_CPPUHELPER_IMPLBASE3_HXX
27 #include "rtl/instance.hxx"
30 #include "com/sun/star/lang/XTypeProvider.hpp"
42 type_entry m_typeEntries[ 3 + 1 ];
45 template<
typename Ifc1,
typename Ifc2,
typename Ifc3,
typename Impl >
struct SAL_WARN_UNUSED ImplClassData3
47 class_data* operator ()()
49 static class_data3 s_cd =
52 { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
54 CPPUHELPER_DETAIL_TYPEENTRY(Ifc1),
55 CPPUHELPER_DETAIL_TYPEENTRY(Ifc2),
56 CPPUHELPER_DETAIL_TYPEENTRY(Ifc3),
57 CPPUHELPER_DETAIL_TYPEENTRY(css::lang::XTypeProvider)
60 return reinterpret_cast< class_data *
>(&s_cd);
74 template<
class Ifc1,
class Ifc2,
class Ifc3 >
76 :
public css::lang::XTypeProvider
77 ,
public Ifc1,
public Ifc2,
public Ifc3
79 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData3 < Ifc1, Ifc2, Ifc3, ImplHelper3<Ifc1, Ifc2, Ifc3> > > {};
81 #if defined LIBO_INTERNAL_ONLY
89 virtual css::uno::Any SAL_CALL
queryInterface( css::uno::Type
const & rType ) SAL_OVERRIDE
91 virtual css::uno::Sequence< css::uno::Type > SAL_CALL
getTypes() SAL_OVERRIDE
96 #if !defined _MSC_VER // public -> protected changes mangled names there
98 #elif defined __clang__
99 #pragma clang diagnostic push
100 #pragma clang diagnostic ignored "-Wnon-virtual-dtor"
103 #if defined _MSC_VER && defined __clang__
104 #pragma clang diagnostic pop
115 template<
class Ifc1,
class Ifc2,
class Ifc3 >
118 ,
public css::lang::XTypeProvider
119 ,
public Ifc1,
public Ifc2,
public Ifc3
121 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData3 < Ifc1, Ifc2, Ifc3, WeakImplHelper3<Ifc1, Ifc2, Ifc3> > > {};
123 virtual css::uno::Any SAL_CALL
queryInterface( css::uno::Type
const & rType ) SAL_OVERRIDE
125 virtual void SAL_CALL
acquire() SAL_NOEXCEPT SAL_OVERRIDE
127 virtual void SAL_CALL
release() SAL_NOEXCEPT SAL_OVERRIDE
129 virtual css::uno::Sequence< css::uno::Type > SAL_CALL
getTypes() SAL_OVERRIDE
147 template<
class Ifc1,
class Ifc2,
class Ifc3 >
150 ,
public css::lang::XTypeProvider
151 ,
public Ifc1,
public Ifc2,
public Ifc3
153 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData3 < Ifc1, Ifc2, Ifc3, WeakAggImplHelper3<Ifc1, Ifc2, Ifc3> > > {};
155 virtual css::uno::Any SAL_CALL
queryInterface( css::uno::Type
const & rType ) SAL_OVERRIDE
157 virtual css::uno::Any SAL_CALL
queryAggregation( css::uno::Type
const & rType ) SAL_OVERRIDE
159 virtual void SAL_CALL
acquire() SAL_NOEXCEPT SAL_OVERRIDE
161 virtual void SAL_CALL
release() SAL_NOEXCEPT SAL_OVERRIDE
163 virtual css::uno::Sequence< css::uno::Type > SAL_CALL
getTypes() SAL_OVERRIDE
185 template<
class BaseClass,
class Ifc1,
class Ifc2,
class Ifc3 >
188 ,
public Ifc1,
public Ifc2,
public Ifc3
190 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData3 < Ifc1, Ifc2, Ifc3, ImplInheritanceHelper3<BaseClass, Ifc1, Ifc2, Ifc3> > > {};
192 template<
typename T1 >
194 template<
typename T1,
typename T2 >
196 BaseClass(arg1, arg2) {}
197 template<
typename T1,
typename T2,
typename T3 >
199 T1
const & arg1, T2
const & arg2, T3
const & arg3):
200 BaseClass(arg1, arg2, arg3) {}
201 template<
typename T1,
typename T2,
typename T3,
typename T4 >
203 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4):
204 BaseClass(arg1, arg2, arg3, arg4) {}
206 typename T1,
typename T2,
typename T3,
typename T4,
typename T5 >
208 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
210 BaseClass(arg1, arg2, arg3, arg4, arg5) {}
212 typename T1,
typename T2,
typename T3,
typename T4,
typename T5,
215 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
216 T5
const & arg5, T6
const & arg6):
217 BaseClass(arg1, arg2, arg3, arg4, arg5, arg6) {}
220 virtual css::uno::Any SAL_CALL
queryInterface( css::uno::Type
const & rType ) SAL_OVERRIDE
227 virtual void SAL_CALL
acquire() SAL_NOEXCEPT SAL_OVERRIDE
228 { BaseClass::acquire(); }
229 virtual void SAL_CALL
release() SAL_NOEXCEPT SAL_OVERRIDE
230 { BaseClass::release(); }
231 virtual css::uno::Sequence< css::uno::Type > SAL_CALL
getTypes() SAL_OVERRIDE
253 template<
class BaseClass,
class Ifc1,
class Ifc2,
class Ifc3 >
256 ,
public Ifc1,
public Ifc2,
public Ifc3
258 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData3 < Ifc1, Ifc2, Ifc3, AggImplInheritanceHelper3<BaseClass, Ifc1, Ifc2, Ifc3> > > {};
260 template<
typename T1 >
262 template<
typename T1,
typename T2 >
264 BaseClass(arg1, arg2) {}
265 template<
typename T1,
typename T2,
typename T3 >
267 T1
const & arg1, T2
const & arg2, T3
const & arg3):
268 BaseClass(arg1, arg2, arg3) {}
269 template<
typename T1,
typename T2,
typename T3,
typename T4 >
271 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4):
272 BaseClass(arg1, arg2, arg3, arg4) {}
274 typename T1,
typename T2,
typename T3,
typename T4,
typename T5 >
276 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
278 BaseClass(arg1, arg2, arg3, arg4, arg5) {}
280 typename T1,
typename T2,
typename T3,
typename T4,
typename T5,
283 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
284 T5
const & arg5, T6
const & arg6):
285 BaseClass(arg1, arg2, arg3, arg4, arg5, arg6) {}
288 virtual css::uno::Any SAL_CALL
queryInterface( css::uno::Type
const & rType ) SAL_OVERRIDE
290 virtual css::uno::Any SAL_CALL
queryAggregation( css::uno::Type
const & rType ) SAL_OVERRIDE
295 return BaseClass::queryAggregation( rType );
297 virtual void SAL_CALL
acquire() SAL_NOEXCEPT SAL_OVERRIDE
298 { BaseClass::acquire(); }
299 virtual void SAL_CALL
release() SAL_NOEXCEPT SAL_OVERRIDE
300 { BaseClass::release(); }
301 virtual css::uno::Sequence< css::uno::Type > SAL_CALL
getTypes() SAL_OVERRIDE
Implementation helper implementing interfaces css::lang::XTypeProvider and css::uno::XInterface which...
AggImplInheritanceHelper3(T1 const &arg1, T2 const &arg2)
virtual void SAL_CALL acquire() SAL_NOEXCEPT SAL_OVERRIDE
virtual void SAL_CALL acquire() SAL_NOEXCEPT SAL_OVERRIDE
If a delegator is set, then the delegators gets acquired.
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() SAL_OVERRIDE
Sequence< Type > SAL_CALL ImplInhHelper_getTypes(class_data *cd, Sequence< Type > const &rAddTypes)
Implementation helper implementing interfaces css::lang::XTypeProvider and css::uno::XInterface inher...
Implementation helper implementing interfaces css::lang::XTypeProvider and css::uno::XInterface inher...
ImplInheritanceHelper3(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4)
virtual void SAL_CALL acquire() SAL_NOEXCEPT SAL_OVERRIDE
increasing m_refCount
virtual css::uno::Any SAL_CALL queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
ImplInheritanceHelper3(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5, T6 const &arg6)
Any SAL_CALL WeakImplHelper_query(Type const &rType, class_data *cd, void *that, OWeakObject *pBase)
ImplInheritanceHelper3(T1 const &arg1)
virtual css::uno::Any SAL_CALL queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
Implementation helper implementing interface css::lang::XTypeProvider and method XInterface::queryInt...
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() SAL_OVERRIDE
Sequence< Type > SAL_CALL WeakImplHelper_getTypes(class_data *cd)
Base class to implement a UNO object supporting weak references, i.e.
Any SAL_CALL ImplHelper_queryNoXInterface(Type const &rType, class_data *cd, void *that)
virtual void SAL_CALL acquire() SAL_NOEXCEPT SAL_OVERRIDE
css::uno::Sequence< sal_Int8 > ImplHelper_getImplementationId(SAL_UNUSED_PARAMETER class_data *)
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &rType) SAL_OVERRIDE
If a delegator is set, then the delegator is queried for the demanded interface.
Sequence< Type > SAL_CALL WeakAggImplHelper_getTypes(class_data *cd)
AggImplInheritanceHelper3(T1 const &arg1)
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() SAL_OVERRIDE
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() SAL_OVERRIDE
AggImplInheritanceHelper3(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4)
ImplInheritanceHelper3(T1 const &arg1, T2 const &arg2, T3 const &arg3)
virtual void SAL_CALL acquire() SAL_NOEXCEPT SAL_OVERRIDE
If a delegator is set, then the delegators gets acquired.
AggImplInheritanceHelper3(T1 const &arg1, T2 const &arg2, T3 const &arg3)
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() SAL_OVERRIDE
AggImplInheritanceHelper3(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5, T6 const &arg6)
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() SAL_OVERRIDE
virtual css::uno::Any SAL_CALL queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
Base class to implement a UNO object supporting weak references, i.e.
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() SAL_OVERRIDE
virtual void SAL_CALL acquire() SAL_NOEXCEPT SAL_OVERRIDE
increasing m_refCount
AggImplInheritanceHelper3()
~ImplHelper3() SAL_NOEXCEPT
virtual css::uno::Any SAL_CALL queryAggregation(css::uno::Type const &rType) SAL_OVERRIDE
Implementation helper implementing interfaces css::lang::XTypeProvider and css::uno::XInterface which...
AggImplInheritanceHelper3(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5)
ImplInheritanceHelper3(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5)
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() SAL_OVERRIDE
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() SAL_OVERRIDE
virtual css::uno::Any SAL_CALL queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
Any SAL_CALL WeakAggImplHelper_queryAgg(Type const &rType, class_data *cd, void *that, OWeakAggObject *pBase)
Any SAL_CALL ImplHelper_query(Type const &rType, class_data *cd, void *that)
virtual void SAL_CALL release() SAL_NOEXCEPT SAL_OVERRIDE
If a delegator is set, then the delegators gets released.
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() SAL_OVERRIDE
virtual void SAL_CALL release() SAL_NOEXCEPT SAL_OVERRIDE
decreasing m_refCount
Sequence< Type > SAL_CALL ImplHelper_getTypes(class_data *cd)
virtual void SAL_CALL release() SAL_NOEXCEPT SAL_OVERRIDE
decreasing m_refCount
virtual css::uno::Any SAL_CALL queryAggregation(css::uno::Type const &rType) SAL_OVERRIDE
virtual void SAL_CALL release() SAL_NOEXCEPT SAL_OVERRIDE
virtual css::uno::Any SAL_CALL queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
ImplInheritanceHelper3(T1 const &arg1, T2 const &arg2)
css::uno::Any SAL_CALL queryInterface(const css::uno::Type &rType, Interface1 *p1)
Compares demanded type to given template argument types.
virtual void SAL_CALL release() SAL_NOEXCEPT SAL_OVERRIDE
If a delegator is set, then the delegators gets released.
virtual void SAL_CALL release() SAL_NOEXCEPT SAL_OVERRIDE