23#ifndef INCLUDED_CPPUHELPER_IMPLBASE2_HXX
24#define INCLUDED_CPPUHELPER_IMPLBASE2_HXX
27#include "rtl/instance.hxx"
30#include "com/sun/star/lang/XTypeProvider.hpp"
42 type_entry m_typeEntries[ 2 + 1 ];
45 template<
typename Ifc1,
typename Ifc2,
typename Impl >
struct SAL_WARN_UNUSED ImplClassData2
47 class_data* operator ()()
49 static class_data2 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(css::lang::XTypeProvider)
59 return reinterpret_cast< class_data *
>(&s_cd);
73 template<
class Ifc1,
class Ifc2 >
75 :
public css::lang::XTypeProvider
76 ,
public Ifc1,
public Ifc2
78 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData2 < Ifc1, Ifc2, ImplHelper2<Ifc1, Ifc2> > > {};
80#if defined LIBO_INTERNAL_ONLY
88 virtual css::uno::Any SAL_CALL
queryInterface( css::uno::Type
const & rType ) SAL_OVERRIDE
90 virtual css::uno::Sequence< css::uno::Type > SAL_CALL
getTypes() SAL_OVERRIDE
108 template<
class Ifc1,
class Ifc2 >
111 ,
public css::lang::XTypeProvider
112 ,
public Ifc1,
public Ifc2
114 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData2 < Ifc1, Ifc2, WeakImplHelper2<Ifc1, Ifc2> > > {};
116 virtual css::uno::Any SAL_CALL
queryInterface( css::uno::Type
const & rType ) SAL_OVERRIDE
118 virtual void SAL_CALL
acquire() SAL_NOEXCEPT SAL_OVERRIDE
120 virtual void SAL_CALL
release() SAL_NOEXCEPT SAL_OVERRIDE
122 virtual css::uno::Sequence< css::uno::Type > SAL_CALL
getTypes() SAL_OVERRIDE
140 template<
class Ifc1,
class Ifc2 >
143 ,
public css::lang::XTypeProvider
144 ,
public Ifc1,
public Ifc2
146 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData2 < Ifc1, Ifc2, WeakAggImplHelper2<Ifc1, Ifc2> > > {};
148 virtual css::uno::Any SAL_CALL
queryInterface( css::uno::Type
const & rType ) SAL_OVERRIDE
150 virtual css::uno::Any SAL_CALL
queryAggregation( css::uno::Type
const & rType ) SAL_OVERRIDE
152 virtual void SAL_CALL
acquire() SAL_NOEXCEPT SAL_OVERRIDE
154 virtual void SAL_CALL
release() SAL_NOEXCEPT SAL_OVERRIDE
156 virtual css::uno::Sequence< css::uno::Type > SAL_CALL
getTypes() SAL_OVERRIDE
177 template<
class BaseClass,
class Ifc1,
class Ifc2 >
180 ,
public Ifc1,
public Ifc2
182 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData2 < Ifc1, Ifc2, ImplInheritanceHelper2<BaseClass, Ifc1, Ifc2> > > {};
184 template<
typename T1 >
186 template<
typename T1,
typename T2 >
188 BaseClass(arg1, arg2) {}
189 template<
typename T1,
typename T2,
typename T3 >
191 T1
const & arg1, T2
const & arg2, T3
const & arg3):
192 BaseClass(arg1, arg2, arg3) {}
193 template<
typename T1,
typename T2,
typename T3,
typename T4 >
195 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4):
196 BaseClass(arg1, arg2, arg3, arg4) {}
198 typename T1,
typename T2,
typename T3,
typename T4,
typename T5 >
200 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
202 BaseClass(arg1, arg2, arg3, arg4, arg5) {}
204 typename T1,
typename T2,
typename T3,
typename T4,
typename T5,
207 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
208 T5
const & arg5, T6
const & arg6):
209 BaseClass(arg1, arg2, arg3, arg4, arg5, arg6) {}
212 virtual css::uno::Any SAL_CALL
queryInterface( css::uno::Type
const & rType ) SAL_OVERRIDE
219 virtual void SAL_CALL
acquire() SAL_NOEXCEPT SAL_OVERRIDE
220 { BaseClass::acquire(); }
221 virtual void SAL_CALL
release() SAL_NOEXCEPT SAL_OVERRIDE
222 { BaseClass::release(); }
223 virtual css::uno::Sequence< css::uno::Type > SAL_CALL
getTypes() SAL_OVERRIDE
245 template<
class BaseClass,
class Ifc1,
class Ifc2 >
248 ,
public Ifc1,
public Ifc2
250 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData2 < Ifc1, Ifc2, AggImplInheritanceHelper2<BaseClass, Ifc1, Ifc2> > > {};
252 template<
typename T1 >
254 template<
typename T1,
typename T2 >
256 BaseClass(arg1, arg2) {}
257 template<
typename T1,
typename T2,
typename T3 >
259 T1
const & arg1, T2
const & arg2, T3
const & arg3):
260 BaseClass(arg1, arg2, arg3) {}
261 template<
typename T1,
typename T2,
typename T3,
typename T4 >
263 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4):
264 BaseClass(arg1, arg2, arg3, arg4) {}
266 typename T1,
typename T2,
typename T3,
typename T4,
typename T5 >
268 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
270 BaseClass(arg1, arg2, arg3, arg4, arg5) {}
272 typename T1,
typename T2,
typename T3,
typename T4,
typename T5,
275 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
276 T5
const & arg5, T6
const & arg6):
277 BaseClass(arg1, arg2, arg3, arg4, arg5, arg6) {}
280 virtual css::uno::Any SAL_CALL
queryInterface( css::uno::Type
const & rType ) SAL_OVERRIDE
282 virtual css::uno::Any SAL_CALL
queryAggregation( css::uno::Type
const & rType ) SAL_OVERRIDE
287 return BaseClass::queryAggregation( rType );
289 virtual void SAL_CALL
acquire() SAL_NOEXCEPT SAL_OVERRIDE
290 { BaseClass::acquire(); }
291 virtual void SAL_CALL
release() SAL_NOEXCEPT SAL_OVERRIDE
292 { BaseClass::release(); }
293 virtual css::uno::Sequence< css::uno::Type > SAL_CALL
getTypes() SAL_OVERRIDE
Implementation helper implementing interfaces css::lang::XTypeProvider and css::uno::XInterface inher...
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() SAL_OVERRIDE
AggImplInheritanceHelper2(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4)
virtual void SAL_CALL release() SAL_NOEXCEPT SAL_OVERRIDE
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() SAL_OVERRIDE
virtual void SAL_CALL acquire() SAL_NOEXCEPT SAL_OVERRIDE
AggImplInheritanceHelper2(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5, T6 const &arg6)
AggImplInheritanceHelper2(T1 const &arg1)
AggImplInheritanceHelper2(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5)
virtual css::uno::Any SAL_CALL queryAggregation(css::uno::Type const &rType) SAL_OVERRIDE
AggImplInheritanceHelper2()
AggImplInheritanceHelper2(T1 const &arg1, T2 const &arg2)
AggImplInheritanceHelper2(T1 const &arg1, T2 const &arg2, T3 const &arg3)
virtual css::uno::Any SAL_CALL queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
Implementation helper implementing interface css::lang::XTypeProvider and queryInterface(),...
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() SAL_OVERRIDE
~ImplHelper2() SAL_NOEXCEPT
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() SAL_OVERRIDE
virtual css::uno::Any SAL_CALL queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
Implementation helper implementing interfaces css::lang::XTypeProvider and css::uno::XInterface inher...
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() SAL_OVERRIDE
virtual void SAL_CALL acquire() SAL_NOEXCEPT SAL_OVERRIDE
ImplInheritanceHelper2(T1 const &arg1, T2 const &arg2, T3 const &arg3)
ImplInheritanceHelper2(T1 const &arg1, T2 const &arg2)
virtual void SAL_CALL release() SAL_NOEXCEPT SAL_OVERRIDE
ImplInheritanceHelper2(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5, T6 const &arg6)
ImplInheritanceHelper2(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4)
ImplInheritanceHelper2(T1 const &arg1)
virtual css::uno::Any SAL_CALL queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() SAL_OVERRIDE
ImplInheritanceHelper2(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5)
Base class to implement a UNO object supporting weak references, i.e.
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.
virtual void SAL_CALL acquire() SAL_NOEXCEPT SAL_OVERRIDE
If a delegator is set, then the delegators gets acquired.
virtual void SAL_CALL 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.
virtual void SAL_CALL acquire() SAL_NOEXCEPT SAL_OVERRIDE
increasing m_refCount
virtual void SAL_CALL release() SAL_NOEXCEPT SAL_OVERRIDE
decreasing m_refCount
Implementation helper implementing interfaces css::lang::XTypeProvider and css::uno::XInterface which...
virtual void SAL_CALL release() SAL_NOEXCEPT SAL_OVERRIDE
If a delegator is set, then the delegators gets released.
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() SAL_OVERRIDE
virtual void SAL_CALL acquire() SAL_NOEXCEPT SAL_OVERRIDE
If a delegator is set, then the delegators gets acquired.
virtual css::uno::Any SAL_CALL queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
If a delegator is set, then the delegator is queried for the demanded interface.
virtual css::uno::Any SAL_CALL queryAggregation(css::uno::Type const &rType) SAL_OVERRIDE
Called by the delegator or queryInterface.
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() SAL_OVERRIDE
Implementation helper implementing interfaces css::lang::XTypeProvider and css::uno::XInterface which...
virtual css::uno::Any SAL_CALL queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
Basic queryInterface() implementation supporting com::sun::star::uno::XWeak and com::sun::star::uno::...
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() SAL_OVERRIDE
virtual void SAL_CALL release() SAL_NOEXCEPT SAL_OVERRIDE
decreasing m_refCount
virtual void SAL_CALL acquire() SAL_NOEXCEPT SAL_OVERRIDE
increasing m_refCount
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)
Sequence< Type > SAL_CALL ImplHelper_getTypes(class_data *cd)
css::uno::Any SAL_CALL queryInterface(const css::uno::Type &rType, Interface1 *p1)
Compares demanded type to given template argument types.
Any SAL_CALL WeakImplHelper_query(Type const &rType, class_data *cd, void *that, OWeakObject *pBase)
css::uno::Sequence< sal_Int8 > ImplHelper_getImplementationId(SAL_UNUSED_PARAMETER class_data *)
Any SAL_CALL WeakAggImplHelper_queryAgg(Type const &rType, class_data *cd, void *that, OWeakAggObject *pBase)
Sequence< Type > SAL_CALL WeakImplHelper_getTypes(class_data *cd)
Sequence< Type > SAL_CALL WeakAggImplHelper_getTypes(class_data *cd)
Any SAL_CALL ImplHelper_query(Type const &rType, class_data *cd, void *that)
Any SAL_CALL ImplHelper_queryNoXInterface(Type const &rType, class_data *cd, void *that)