19 #ifndef INCLUDED_CPPUHELPER_IMPLBASE3_HXX 20 #define INCLUDED_CPPUHELPER_IMPLBASE3_HXX 35 type_entry m_typeEntries[ 3 + 1 ];
38 template<
typename Ifc1,
typename Ifc2,
typename Ifc3,
typename Impl >
struct SAL_WARN_UNUSED ImplClassData3
40 class_data* operator ()()
42 static class_data3 s_cd =
45 { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
47 CPPUHELPER_DETAIL_TYPEENTRY(Ifc1),
48 CPPUHELPER_DETAIL_TYPEENTRY(Ifc2),
49 CPPUHELPER_DETAIL_TYPEENTRY(Ifc3),
50 CPPUHELPER_DETAIL_TYPEENTRY(css::lang::XTypeProvider)
53 return reinterpret_cast< class_data *
>(&s_cd);
67 template<
class Ifc1,
class Ifc2,
class Ifc3 >
69 :
public css::lang::XTypeProvider
70 ,
public Ifc1,
public Ifc2,
public Ifc3
72 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData3 < Ifc1, Ifc2, Ifc3, ImplHelper3<Ifc1, Ifc2, Ifc3> > > {};
75 {
return ImplHelper_query( rType, cd::get(),
this ); }
77 {
return ImplHelper_getTypes( cd::get() ); }
79 {
return ImplHelper_getImplementationId( cd::get() ); }
81 #if !defined _MSC_VER // public -> protected changes mangled names there 83 #elif defined __clang__ 84 #pragma clang diagnostic push 85 #pragma clang diagnostic ignored "-Wnon-virtual-dtor" 88 #if defined _MSC_VER && defined __clang__ 89 #pragma clang diagnostic pop 100 template<
class Ifc1,
class Ifc2,
class Ifc3 >
103 ,
public css::lang::XTypeProvider
104 ,
public Ifc1,
public Ifc2,
public Ifc3
106 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData3 < Ifc1, Ifc2, Ifc3, WeakImplHelper3<Ifc1, Ifc2, Ifc3> > > {};
109 {
return WeakImplHelper_query( rType, cd::get(),
this, static_cast<OWeakObject *>(
this) ); }
115 {
return WeakImplHelper_getTypes( cd::get() ); }
117 {
return ImplHelper_getImplementationId( cd::get() ); }
132 template<
class Ifc1,
class Ifc2,
class Ifc3 >
135 ,
public css::lang::XTypeProvider
136 ,
public Ifc1,
public Ifc2,
public Ifc3
138 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData3 < Ifc1, Ifc2, Ifc3, WeakAggImplHelper3<Ifc1, Ifc2, Ifc3> > > {};
143 {
return WeakAggImplHelper_queryAgg( rType, cd::get(),
this, static_cast<OWeakAggObject *>(
this) ); }
149 {
return WeakAggImplHelper_getTypes( cd::get() ); }
151 {
return ImplHelper_getImplementationId( cd::get() ); }
170 template<
class BaseClass,
class Ifc1,
class Ifc2,
class Ifc3 >
173 ,
public Ifc1,
public Ifc2,
public Ifc3
175 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData3 < Ifc1, Ifc2, Ifc3, ImplInheritanceHelper3<BaseClass, Ifc1, Ifc2, Ifc3> > > {};
177 template<
typename T1 >
179 template<
typename T1,
typename T2 >
181 BaseClass(arg1, arg2) {}
182 template<
typename T1,
typename T2,
typename T3 >
184 T1
const & arg1, T2
const & arg2, T3
const & arg3):
185 BaseClass(arg1, arg2, arg3) {}
186 template<
typename T1,
typename T2,
typename T3,
typename T4 >
188 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4):
189 BaseClass(arg1, arg2, arg3, arg4) {}
191 typename T1,
typename T2,
typename T3,
typename T4,
typename T5 >
193 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
195 BaseClass(arg1, arg2, arg3, arg4, arg5) {}
197 typename T1,
typename T2,
typename T3,
typename T4,
typename T5,
200 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
201 T5
const & arg5, T6
const & arg6):
202 BaseClass(arg1, arg2, arg3, arg4, arg5, arg6) {}
207 css::uno::Any aRet( ImplHelper_queryNoXInterface( rType, cd::get(),
this ) );
213 { BaseClass::acquire(); }
215 { BaseClass::release(); }
217 {
return ImplInhHelper_getTypes( cd::get(), BaseClass::getTypes() ); }
219 {
return ImplHelper_getImplementationId( cd::get() ); }
238 template<
class BaseClass,
class Ifc1,
class Ifc2,
class Ifc3 >
241 ,
public Ifc1,
public Ifc2,
public Ifc3
243 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData3 < Ifc1, Ifc2, Ifc3, AggImplInheritanceHelper3<BaseClass, Ifc1, Ifc2, Ifc3> > > {};
245 template<
typename T1 >
247 template<
typename T1,
typename T2 >
249 BaseClass(arg1, arg2) {}
250 template<
typename T1,
typename T2,
typename T3 >
252 T1
const & arg1, T2
const & arg2, T3
const & arg3):
253 BaseClass(arg1, arg2, arg3) {}
254 template<
typename T1,
typename T2,
typename T3,
typename T4 >
256 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4):
257 BaseClass(arg1, arg2, arg3, arg4) {}
259 typename T1,
typename T2,
typename T3,
typename T4,
typename T5 >
261 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
263 BaseClass(arg1, arg2, arg3, arg4, arg5) {}
265 typename T1,
typename T2,
typename T3,
typename T4,
typename T5,
268 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
269 T5
const & arg5, T6
const & arg6):
270 BaseClass(arg1, arg2, arg3, arg4, arg5, arg6) {}
277 css::uno::Any aRet( ImplHelper_queryNoXInterface( rType, cd::get(),
this ) );
280 return BaseClass::queryAggregation( rType );
283 { BaseClass::acquire(); }
285 { BaseClass::release(); }
287 {
return ImplInhHelper_getTypes( cd::get(), BaseClass::getTypes() ); }
289 {
return ImplHelper_getImplementationId( cd::get() ); }
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
Definition: implbase3.hxx:284
#define SAL_OVERRIDE
C++11 "override" feature.
Definition: types.h:405
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase3.hxx:286
virtual void release() SAL_OVERRIDE
If a delegator is set, then the delegators gets released.
Definition: implbase3.hxx:146
#define SAL_NO_VTABLE
Use this for pure virtual classes, e.g.
Definition: types.h:317
virtual void release() SAL_OVERRIDE
decreasing m_refCount
Definition: implbase3.hxx:112
Implementation helper implementing interface css::lang::XTypeProvider and method XInterface::queryInt...
Definition: implbase3.hxx:68
virtual css::uno::Any queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase3.hxx:74
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase3.hxx:116
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase3.hxx:216
AggImplInheritanceHelper3(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4)
Definition: implbase3.hxx:255
Implementation helper implementing interfaces css::lang::XTypeProvider and css::uno::XInterface which...
Definition: implbase3.hxx:101
ImplInheritanceHelper3(T1 const &arg1)
Definition: implbase3.hxx:178
signed char sal_Int8
Definition: types.h:44
ImplInheritanceHelper3(T1 const &arg1, T2 const &arg2, T3 const &arg3)
Definition: implbase3.hxx:183
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase3.hxx:148
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase3.hxx:150
ImplInheritanceHelper3(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5)
Definition: implbase3.hxx:192
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::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase3.hxx:218
Implementation helper implementing interfaces css::lang::XTypeProvider and css::uno::XInterface which...
Definition: implbase3.hxx:133
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: implbase3.hxx:108
~ImplHelper3()
Definition: implbase3.hxx:87
virtual void acquire() SAL_OVERRIDE
Definition: implbase3.hxx:282
#define SAL_WARN_UNUSED
Annotate classes where a compiler should warn if an instance is unused.
Definition: types.h:598
ImplInheritanceHelper3(T1 const &arg1, T2 const &arg2)
Definition: implbase3.hxx:180
ImplInheritanceHelper3(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5, T6 const &arg6)
Definition: implbase3.hxx:199
virtual css::uno::Any queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase3.hxx:273
virtual css::uno::Any queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase3.hxx:205
virtual css::uno::Any queryAggregation(css::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase3.hxx:275
AggImplInheritanceHelper3()
Definition: implbase3.hxx:272
unsigned char sal_Bool
Definition: types.h:39
virtual void acquire() SAL_OVERRIDE
increasing m_refCount
virtual void acquire() SAL_OVERRIDE
Definition: implbase3.hxx:212
ImplInheritanceHelper3()
Definition: implbase3.hxx:204
ImplInheritanceHelper3(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4)
Definition: implbase3.hxx:187
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase3.hxx:114
AggImplInheritanceHelper3(T1 const &arg1)
Definition: implbase3.hxx:246
Implementation helper implementing interfaces css::lang::XTypeProvider and css::uno::XInterface inher...
Definition: implbase3.hxx:171
Definition: Enterable.hxx:26
Base class to implement an UNO object supporting weak references, i.e.
Definition: weak.hxx:43
AggImplInheritanceHelper3(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5, T6 const &arg6)
Definition: implbase3.hxx:267
Implementation helper implementing interfaces css::lang::XTypeProvider and css::uno::XInterface inher...
Definition: implbase3.hxx:239
virtual void release() SAL_OVERRIDE
Definition: implbase3.hxx:214
virtual css::uno::Any queryAggregation(css::uno::Type const &rType) SAL_OVERRIDE
Called by the delegator or queryInterface.
Definition: implbase3.hxx:142
virtual void acquire() SAL_OVERRIDE
If a delegator is set, then the delegators gets acquired.
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase3.hxx:288
Helper class for a late-initialized static aggregate, e.g.
Definition: instance.hxx:546
virtual void release() SAL_OVERRIDE
If a delegator is set, then the delegators gets released.
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: implbase3.hxx:140
virtual void acquire() SAL_OVERRIDE
If a delegator is set, then the delegators gets acquired.
Definition: implbase3.hxx:144
AggImplInheritanceHelper3(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5)
Definition: implbase3.hxx:260
AggImplInheritanceHelper3(T1 const &arg1, T2 const &arg2, T3 const &arg3)
Definition: implbase3.hxx:251
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase3.hxx:78
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase3.hxx:76
AggImplInheritanceHelper3(T1 const &arg1, T2 const &arg2)
Definition: implbase3.hxx:248
virtual void release() SAL_OVERRIDE
decreasing m_refCount
Base class to implement an UNO object supporting weak references, i.e.
Definition: weakagg.hxx:41
virtual void acquire() SAL_OVERRIDE
increasing m_refCount
Definition: implbase3.hxx:110