19 #ifndef INCLUDED_CPPUHELPER_IMPLBASE2_HXX 20 #define INCLUDED_CPPUHELPER_IMPLBASE2_HXX 35 type_entry m_typeEntries[ 2 + 1 ];
38 template<
typename Ifc1,
typename Ifc2,
typename Impl >
struct SAL_WARN_UNUSED ImplClassData2
40 class_data* operator ()()
42 static class_data2 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(css::lang::XTypeProvider)
52 return reinterpret_cast< class_data *
>(&s_cd);
66 template<
class Ifc1,
class Ifc2 >
68 :
public css::lang::XTypeProvider
69 ,
public Ifc1,
public Ifc2
71 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData2 < Ifc1, Ifc2, ImplHelper2<Ifc1, Ifc2> > > {};
74 {
return ImplHelper_query( rType, cd::get(),
this ); }
76 {
return ImplHelper_getTypes( cd::get() ); }
78 {
return ImplHelper_getImplementationId( cd::get() ); }
80 #if !defined _MSC_VER // public -> protected changes mangled names there 82 #elif defined __clang__ 83 #pragma clang diagnostic push 84 #pragma clang diagnostic ignored "-Wnon-virtual-dtor" 87 #if defined _MSC_VER && defined __clang__ 88 #pragma clang diagnostic pop 99 template<
class Ifc1,
class Ifc2 >
102 ,
public css::lang::XTypeProvider
103 ,
public Ifc1,
public Ifc2
105 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData2 < Ifc1, Ifc2, WeakImplHelper2<Ifc1, Ifc2> > > {};
108 {
return WeakImplHelper_query( rType, cd::get(),
this, static_cast<OWeakObject *>(
this) ); }
114 {
return WeakImplHelper_getTypes( cd::get() ); }
116 {
return ImplHelper_getImplementationId( cd::get() ); }
131 template<
class Ifc1,
class Ifc2 >
134 ,
public css::lang::XTypeProvider
135 ,
public Ifc1,
public Ifc2
137 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData2 < Ifc1, Ifc2, WeakAggImplHelper2<Ifc1, Ifc2> > > {};
142 {
return WeakAggImplHelper_queryAgg( rType, cd::get(),
this, static_cast<OWeakAggObject *>(
this) ); }
148 {
return WeakAggImplHelper_getTypes( cd::get() ); }
150 {
return ImplHelper_getImplementationId( cd::get() ); }
168 template<
class BaseClass,
class Ifc1,
class Ifc2 >
171 ,
public Ifc1,
public Ifc2
173 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData2 < Ifc1, Ifc2, ImplInheritanceHelper2<BaseClass, Ifc1, Ifc2> > > {};
175 template<
typename T1 >
177 template<
typename T1,
typename T2 >
179 BaseClass(arg1, arg2) {}
180 template<
typename T1,
typename T2,
typename T3 >
182 T1
const & arg1, T2
const & arg2, T3
const & arg3):
183 BaseClass(arg1, arg2, arg3) {}
184 template<
typename T1,
typename T2,
typename T3,
typename T4 >
186 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4):
187 BaseClass(arg1, arg2, arg3, arg4) {}
189 typename T1,
typename T2,
typename T3,
typename T4,
typename T5 >
191 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
193 BaseClass(arg1, arg2, arg3, arg4, arg5) {}
195 typename T1,
typename T2,
typename T3,
typename T4,
typename T5,
198 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
199 T5
const & arg5, T6
const & arg6):
200 BaseClass(arg1, arg2, arg3, arg4, arg5, arg6) {}
205 css::uno::Any aRet( ImplHelper_queryNoXInterface( rType, cd::get(),
this ) );
211 { BaseClass::acquire(); }
213 { BaseClass::release(); }
215 {
return ImplInhHelper_getTypes( cd::get(), BaseClass::getTypes() ); }
217 {
return ImplHelper_getImplementationId( cd::get() ); }
236 template<
class BaseClass,
class Ifc1,
class Ifc2 >
239 ,
public Ifc1,
public Ifc2
241 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData2 < Ifc1, Ifc2, AggImplInheritanceHelper2<BaseClass, Ifc1, Ifc2> > > {};
243 template<
typename T1 >
245 template<
typename T1,
typename T2 >
247 BaseClass(arg1, arg2) {}
248 template<
typename T1,
typename T2,
typename T3 >
250 T1
const & arg1, T2
const & arg2, T3
const & arg3):
251 BaseClass(arg1, arg2, arg3) {}
252 template<
typename T1,
typename T2,
typename T3,
typename T4 >
254 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4):
255 BaseClass(arg1, arg2, arg3, arg4) {}
257 typename T1,
typename T2,
typename T3,
typename T4,
typename T5 >
259 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
261 BaseClass(arg1, arg2, arg3, arg4, arg5) {}
263 typename T1,
typename T2,
typename T3,
typename T4,
typename T5,
266 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
267 T5
const & arg5, T6
const & arg6):
268 BaseClass(arg1, arg2, arg3, arg4, arg5, arg6) {}
275 css::uno::Any aRet( ImplHelper_queryNoXInterface( rType, cd::get(),
this ) );
278 return BaseClass::queryAggregation( rType );
281 { BaseClass::acquire(); }
283 { BaseClass::release(); }
285 {
return ImplInhHelper_getTypes( cd::get(), BaseClass::getTypes() ); }
287 {
return ImplHelper_getImplementationId( cd::get() ); }
Implementation helper implementing interfaces css::lang::XTypeProvider and css::uno::XInterface which...
Definition: implbase2.hxx:100
virtual css::uno::Any queryAggregation(css::uno::Type const &rType) SAL_OVERRIDE
Called by the delegator or queryInterface.
Definition: implbase2.hxx:141
css::uno::Any queryInterface(const css::uno::Type &rType, Interface1 *p1)
Compares demanded type to given template argument types.
Definition: queryinterface.hxx:39
#define SAL_OVERRIDE
C++11 "override" feature.
Definition: types.h:405
#define SAL_NO_VTABLE
Use this for pure virtual classes, e.g.
Definition: types.h:317
ImplInheritanceHelper2(T1 const &arg1, T2 const &arg2)
Definition: implbase2.hxx:178
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase2.hxx:147
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase2.hxx:216
virtual css::uno::Any queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase2.hxx:73
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase2.hxx:286
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase2.hxx:115
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase2.hxx:75
ImplInheritanceHelper2(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4)
Definition: implbase2.hxx:185
signed char sal_Int8
Definition: types.h:44
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: implbase2.hxx:107
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.
#define SAL_WARN_UNUSED
Annotate classes where a compiler should warn if an instance is unused.
Definition: types.h:598
virtual void release() SAL_OVERRIDE
decreasing m_refCount
Definition: implbase2.hxx:111
AggImplInheritanceHelper2(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5)
Definition: implbase2.hxx:258
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase2.hxx:284
ImplInheritanceHelper2(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5)
Definition: implbase2.hxx:190
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase2.hxx:149
ImplInheritanceHelper2(T1 const &arg1)
Definition: implbase2.hxx:176
AggImplInheritanceHelper2(T1 const &arg1, T2 const &arg2)
Definition: implbase2.hxx:246
virtual void release() SAL_OVERRIDE
Definition: implbase2.hxx:212
unsigned char sal_Bool
Definition: types.h:39
virtual css::uno::Any queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase2.hxx:271
AggImplInheritanceHelper2(T1 const &arg1)
Definition: implbase2.hxx:244
ImplInheritanceHelper2(T1 const &arg1, T2 const &arg2, T3 const &arg3)
Definition: implbase2.hxx:181
virtual void acquire() SAL_OVERRIDE
increasing m_refCount
virtual void acquire() SAL_OVERRIDE
If a delegator is set, then the delegators gets acquired.
Definition: implbase2.hxx:143
ImplInheritanceHelper2(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5, T6 const &arg6)
Definition: implbase2.hxx:197
AggImplInheritanceHelper2(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5, T6 const &arg6)
Definition: implbase2.hxx:265
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase2.hxx:113
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase2.hxx:214
Definition: Enterable.hxx:26
Implementation helper implementing interfaces css::lang::XTypeProvider and css::uno::XInterface which...
Definition: implbase2.hxx:132
ImplInheritanceHelper2()
Definition: implbase2.hxx:202
Base class to implement an UNO object supporting weak references, i.e.
Definition: weak.hxx:43
~ImplHelper2()
Definition: implbase2.hxx:86
AggImplInheritanceHelper2(T1 const &arg1, T2 const &arg2, T3 const &arg3)
Definition: implbase2.hxx:249
AggImplInheritanceHelper2(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4)
Definition: implbase2.hxx:253
virtual void acquire() SAL_OVERRIDE
increasing m_refCount
Definition: implbase2.hxx:109
virtual css::uno::Any queryAggregation(css::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase2.hxx:273
virtual void acquire() SAL_OVERRIDE
Definition: implbase2.hxx:280
AggImplInheritanceHelper2()
Definition: implbase2.hxx:270
virtual void release() SAL_OVERRIDE
Definition: implbase2.hxx:282
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: implbase2.hxx:139
virtual void acquire() SAL_OVERRIDE
If a delegator is set, then the delegators gets acquired.
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.
Definition: implbase2.hxx:145
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase2.hxx:77
Implementation helper implementing interfaces css::lang::XTypeProvider and css::uno::XInterface inher...
Definition: implbase2.hxx:169
virtual void release() SAL_OVERRIDE
If a delegator is set, then the delegators gets released.
Implementation helper implementing interface css::lang::XTypeProvider and queryInterface(), but no reference counting.
Definition: implbase2.hxx:67
virtual void acquire() SAL_OVERRIDE
Definition: implbase2.hxx:210
virtual css::uno::Any queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase2.hxx:203
Implementation helper implementing interfaces css::lang::XTypeProvider and css::uno::XInterface inher...
Definition: implbase2.hxx:237
virtual void release() SAL_OVERRIDE
decreasing m_refCount
Base class to implement an UNO object supporting weak references, i.e.
Definition: weakagg.hxx:41