19 #ifndef INCLUDED_CPPUHELPER_IMPLBASE11_HXX
20 #define INCLUDED_CPPUHELPER_IMPLBASE11_HXX
35 type_entry m_typeEntries[ 11 + 1 ];
38 template<
typename Ifc1,
typename Ifc2,
typename Ifc3,
typename Ifc4,
typename Ifc5,
typename Ifc6,
typename Ifc7,
typename Ifc8,
typename Ifc9,
typename Ifc10,
typename Ifc11,
typename Impl >
39 struct ImplClassData11
41 class_data* operator ()()
43 static class_data11 s_cd =
46 { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
48 { { Ifc1::static_type }, ((sal_IntPtr)(Ifc1 *) (Impl *) 16) - 16 },
49 { { Ifc2::static_type }, ((sal_IntPtr)(Ifc2 *) (Impl *) 16) - 16 },
50 { { Ifc3::static_type }, ((sal_IntPtr)(Ifc3 *) (Impl *) 16) - 16 },
51 { { Ifc4::static_type }, ((sal_IntPtr)(Ifc4 *) (Impl *) 16) - 16 },
52 { { Ifc5::static_type }, ((sal_IntPtr)(Ifc5 *) (Impl *) 16) - 16 },
53 { { Ifc6::static_type }, ((sal_IntPtr)(Ifc6 *) (Impl *) 16) - 16 },
54 { { Ifc7::static_type }, ((sal_IntPtr)(Ifc7 *) (Impl *) 16) - 16 },
55 { { Ifc8::static_type }, ((sal_IntPtr)(Ifc8 *) (Impl *) 16) - 16 },
56 { { Ifc9::static_type }, ((sal_IntPtr)(Ifc9 *) (Impl *) 16) - 16 },
57 { { Ifc10::static_type }, ((sal_IntPtr)(Ifc10 *) (Impl *) 16) - 16 },
58 { { Ifc11::static_type }, ((sal_IntPtr)(Ifc11 *) (Impl *) 16) - 16 },
59 { { com::sun::star::lang::XTypeProvider::static_type }, ((sal_IntPtr)(com::sun::star::lang::XTypeProvider *) (Impl *) 16) - 16 }
62 return reinterpret_cast< class_data *
>(&s_cd);
76 template<
class Ifc1,
class Ifc2,
class Ifc3,
class Ifc4,
class Ifc5,
class Ifc6,
class Ifc7,
class Ifc8,
class Ifc9,
class Ifc10,
class Ifc11 >
78 :
public com::sun::star::lang::XTypeProvider
79 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4,
public Ifc5,
public Ifc6,
public Ifc7,
public Ifc8,
public Ifc9,
public Ifc10,
public Ifc11
81 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData11< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9, Ifc10, Ifc11, ImplHelper11<Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9, Ifc10, Ifc11> > > {};
84 {
return ImplHelper_query( rType, cd::get(),
this ); }
86 {
return ImplHelper_getTypes( cd::get() ); }
88 {
return ImplHelper_getImplementationId( cd::get() ); }
90 #if !defined _MSC_VER // public -> protected changes mangled names there
103 template<
class Ifc1,
class Ifc2,
class Ifc3,
class Ifc4,
class Ifc5,
class Ifc6,
class Ifc7,
class Ifc8,
class Ifc9,
class Ifc10,
class Ifc11 >
106 ,
public com::sun::star::lang::XTypeProvider
107 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4,
public Ifc5,
public Ifc6,
public Ifc7,
public Ifc8,
public Ifc9,
public Ifc10,
public Ifc11
109 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData11< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9, Ifc10, Ifc11, WeakImplHelper11<Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9, Ifc10, Ifc11> > > {};
112 {
return WeakImplHelper_query( rType, cd::get(),
this, (
OWeakObject *)
this ); }
118 {
return WeakImplHelper_getTypes( cd::get() ); }
120 {
return ImplHelper_getImplementationId( cd::get() ); }
135 template<
class Ifc1,
class Ifc2,
class Ifc3,
class Ifc4,
class Ifc5,
class Ifc6,
class Ifc7,
class Ifc8,
class Ifc9,
class Ifc10,
class Ifc11 >
138 ,
public com::sun::star::lang::XTypeProvider
139 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4,
public Ifc5,
public Ifc6,
public Ifc7,
public Ifc8,
public Ifc9,
public Ifc10,
public Ifc11
141 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData11< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9, Ifc10, Ifc11, WeakAggImplHelper11<Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9, Ifc10, Ifc11> > > {};
146 {
return WeakAggImplHelper_queryAgg( rType, cd::get(),
this, (
OWeakAggObject *)
this ); }
152 {
return WeakAggImplHelper_getTypes( cd::get() ); }
154 {
return ImplHelper_getImplementationId( cd::get() ); }
172 template<
class BaseClass,
class Ifc1,
class Ifc2,
class Ifc3,
class Ifc4,
class Ifc5,
class Ifc6,
class Ifc7,
class Ifc8,
class Ifc9,
class Ifc10,
class Ifc11 >
175 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4,
public Ifc5,
public Ifc6,
public Ifc7,
public Ifc8,
public Ifc9,
public Ifc10,
public Ifc11
177 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData11< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9, Ifc10, Ifc11, ImplInheritanceHelper11<BaseClass, Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9, Ifc10, Ifc11> > > {};
179 template<
typename T1 >
181 template<
typename T1,
typename T2 >
183 BaseClass(arg1, arg2) {}
184 template<
typename T1,
typename T2,
typename T3 >
186 T1
const & arg1, T2
const & arg2, T3
const & arg3):
187 BaseClass(arg1, arg2, arg3) {}
188 template<
typename T1,
typename T2,
typename T3,
typename T4 >
190 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4):
191 BaseClass(arg1, arg2, arg3, arg4) {}
193 typename T1,
typename T2,
typename T3,
typename T4,
typename T5 >
195 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
197 BaseClass(arg1, arg2, arg3, arg4, arg5) {}
199 typename T1,
typename T2,
typename T3,
typename T4,
typename T5,
202 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
203 T5
const & arg5, T6
const & arg6):
204 BaseClass(arg1, arg2, arg3, arg4, arg5, arg6) {}
215 { BaseClass::acquire(); }
217 { BaseClass::release(); }
219 {
return ImplInhHelper_getTypes( cd::get(), BaseClass::getTypes() ); }
221 {
return ImplHelper_getImplementationId( cd::get() ); }
240 template<
class BaseClass,
class Ifc1,
class Ifc2,
class Ifc3,
class Ifc4,
class Ifc5,
class Ifc6,
class Ifc7,
class Ifc8,
class Ifc9,
class Ifc10,
class Ifc11 >
243 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4,
public Ifc5,
public Ifc6,
public Ifc7,
public Ifc8,
public Ifc9,
public Ifc10,
public Ifc11
245 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData11< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9, Ifc10, Ifc11, AggImplInheritanceHelper11<BaseClass, Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9, Ifc10, Ifc11> > > {};
247 template<
typename T1 >
249 template<
typename T1,
typename T2 >
251 BaseClass(arg1, arg2) {}
252 template<
typename T1,
typename T2,
typename T3 >
254 T1
const & arg1, T2
const & arg2, T3
const & arg3):
255 BaseClass(arg1, arg2, arg3) {}
256 template<
typename T1,
typename T2,
typename T3,
typename T4 >
258 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4):
259 BaseClass(arg1, arg2, arg3, arg4) {}
261 typename T1,
typename T2,
typename T3,
typename T4,
typename T5 >
263 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
265 BaseClass(arg1, arg2, arg3, arg4, arg5) {}
267 typename T1,
typename T2,
typename T3,
typename T4,
typename T5,
270 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
271 T5
const & arg5, T6
const & arg6):
272 BaseClass(arg1, arg2, arg3, arg4, arg5, arg6) {}
282 return BaseClass::queryAggregation( rType );
285 { BaseClass::acquire(); }
287 { BaseClass::release(); }
289 {
return ImplInhHelper_getTypes( cd::get(), BaseClass::getTypes() ); }
291 {
return ImplHelper_getImplementationId( cd::get() ); }
AggImplInheritanceHelper11(T1 const &arg1)
Definition: implbase11.hxx:248
inline::com::sun::star::uno::Any queryInterface(const ::com::sun::star::uno::Type &rType, Interface1 *p1)
Compares demanded type to given template argument types.
Definition: queryinterface.hxx:39
AggImplInheritanceHelper11(T1 const &arg1, T2 const &arg2)
Definition: implbase11.hxx:250
virtual com::sun::star::uno::Any queryInterface(com::sun::star::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase11.hxx:143
virtual com::sun::star::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase11.hxx:87
virtual void acquire() SAL_OVERRIDE
increasing m_refCount
Definition: implbase11.hxx:113
Base class to implement an UNO object supporting weak references, i.e.
Definition: weakagg.hxx:40
AggImplInheritanceHelper11()
Definition: implbase11.hxx:274
unsigned char sal_Bool
Definition: types.h:46
C++ class representing an IDL meta type.
Definition: Type.h:55
bool hasValue() const SAL_THROW(())
Tests if any contains a value.
Definition: Any.h:150
virtual com::sun::star::uno::Any queryAggregation(com::sun::star::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase11.hxx:145
virtual void acquire() SAL_OVERRIDE
Definition: implbase11.hxx:214
virtual com::sun::star::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase11.hxx:153
AggImplInheritanceHelper11(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5)
Definition: implbase11.hxx:262
virtual void acquire() SAL_OVERRIDE
If a delegator is set, then the delegators gets acquired.
Definition: implbase11.hxx:147
#define sal_False
Definition: types.h:47
Implementation helper implementing interfaces com::sun::star::lang::XTypeProvider and com::sun::star:...
Definition: implbase11.hxx:104
virtual com::sun::star::uno::Sequence< com::sun::star::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase11.hxx:288
ImplInheritanceHelper11()
Definition: implbase11.hxx:206
virtual void release() SAL_OVERRIDE
decreasing m_refCount
Definition: implbase11.hxx:115
Template C++ class representing an IDL sequence.
Definition: unotype.hxx:33
virtual com::sun::star::uno::Any queryInterface(com::sun::star::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase11.hxx:83
virtual com::sun::star::uno::Sequence< com::sun::star::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase11.hxx:151
virtual ::com::sun::star::uno::Any queryInterface(const ::com::sun::star::uno::Type &rType) SAL_OVERRIDE
If a delegator is set, then the delegator is queried for the demanded interface.
virtual com::sun::star::uno::Any queryInterface(com::sun::star::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase11.hxx:207
ImplInheritanceHelper11(T1 const &arg1)
Definition: implbase11.hxx:180
#define SAL_OVERRIDE
C++11 "override" feature.
Definition: types.h:423
virtual com::sun::star::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase11.hxx:220
ImplInheritanceHelper11(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5)
Definition: implbase11.hxx:194
AggImplInheritanceHelper11(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5, T6 const &arg6)
Definition: implbase11.hxx:269
virtual void acquire() SAL_OVERRIDE
increasing m_refCount
signed char sal_Int8
Definition: types.h:51
Implementation helper implementing interface com::sun::star::lang::XTypeProvider and method XInterfac...
Definition: implbase11.hxx:77
virtual com::sun::star::uno::Any queryInterface(com::sun::star::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase11.hxx:275
Definition: Enterable.hxx:26
virtual com::sun::star::uno::Any queryAggregation(com::sun::star::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase11.hxx:277
AggImplInheritanceHelper11(T1 const &arg1, T2 const &arg2, T3 const &arg3)
Definition: implbase11.hxx:253
virtual com::sun::star::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase11.hxx:290
C++ class representing an IDL any.
Definition: Any.h:46
Implementation helper implementing interfaces com::sun::star::lang::XTypeProvider and com::sun::star:...
Definition: implbase11.hxx:241
virtual void release() SAL_OVERRIDE
Definition: implbase11.hxx:286
ImplInheritanceHelper11(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4)
Definition: implbase11.hxx:189
virtual com::sun::star::uno::Sequence< com::sun::star::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase11.hxx:85
Implementation helper implementing interfaces com::sun::star::lang::XTypeProvider and com::sun::star:...
Definition: implbase11.hxx:136
Implementation helper implementing interfaces com::sun::star::lang::XTypeProvider and com::sun::star:...
Definition: implbase11.hxx:173
ImplInheritanceHelper11(T1 const &arg1, T2 const &arg2)
Definition: implbase11.hxx:182
ImplInheritanceHelper11(T1 const &arg1, T2 const &arg2, T3 const &arg3)
Definition: implbase11.hxx:185
~ImplHelper11()
Definition: implbase11.hxx:93
virtual void release() SAL_OVERRIDE
If a delegator is set, then the delegators gets released.
#define SAL_NO_VTABLE
Use this for pure virtual classes, e.g.
Definition: types.h:317
AggImplInheritanceHelper11(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4)
Definition: implbase11.hxx:257
Base class to implement an UNO object supporting weak references, i.e.
Definition: weak.hxx:43
virtual com::sun::star::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase11.hxx:119
Helper class for a late-initialized static aggregate, e.g.
Definition: instance.hxx:542
ImplInheritanceHelper11(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5, T6 const &arg6)
Definition: implbase11.hxx:201
virtual com::sun::star::uno::Any queryInterface(com::sun::star::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase11.hxx:111
virtual com::sun::star::uno::Sequence< com::sun::star::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase11.hxx:218
virtual void release() SAL_OVERRIDE
decreasing m_refCount
virtual com::sun::star::uno::Sequence< com::sun::star::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase11.hxx:117
virtual void release() SAL_OVERRIDE
Definition: implbase11.hxx:216
virtual void acquire() SAL_OVERRIDE
Definition: implbase11.hxx:284
virtual void release() SAL_OVERRIDE
If a delegator is set, then the delegators gets released.
Definition: implbase11.hxx:149
virtual void acquire() SAL_OVERRIDE
If a delegator is set, then the delegators gets acquired.