19 #ifndef INCLUDED_CPPUHELPER_IMPLBASE10_HXX
20 #define INCLUDED_CPPUHELPER_IMPLBASE10_HXX
35 type_entry m_typeEntries[ 10 + 1 ];
38 template<
typename Ifc1,
typename Ifc2,
typename Ifc3,
typename Ifc4,
typename Ifc5,
typename Ifc6,
typename Ifc7,
typename Ifc8,
typename Ifc9,
typename Ifc10,
typename Impl >
39 struct ImplClassData10
41 class_data* operator ()()
43 static class_data10 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 { { com::sun::star::lang::XTypeProvider::static_type }, ((sal_IntPtr)(com::sun::star::lang::XTypeProvider *) (Impl *) 16) - 16 }
61 return reinterpret_cast< class_data *
>(&s_cd);
75 template<
class Ifc1,
class Ifc2,
class Ifc3,
class Ifc4,
class Ifc5,
class Ifc6,
class Ifc7,
class Ifc8,
class Ifc9,
class Ifc10 >
77 :
public com::sun::star::lang::XTypeProvider
78 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4,
public Ifc5,
public Ifc6,
public Ifc7,
public Ifc8,
public Ifc9,
public Ifc10
80 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData10< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9, Ifc10, ImplHelper10<Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9, Ifc10> > > {};
83 {
return ImplHelper_query( rType, cd::get(),
this ); }
85 {
return ImplHelper_getTypes( cd::get() ); }
87 {
return ImplHelper_getImplementationId( cd::get() ); }
89 #if !defined _MSC_VER // public -> protected changes mangled names there
102 template<
class Ifc1,
class Ifc2,
class Ifc3,
class Ifc4,
class Ifc5,
class Ifc6,
class Ifc7,
class Ifc8,
class Ifc9,
class Ifc10 >
105 ,
public com::sun::star::lang::XTypeProvider
106 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4,
public Ifc5,
public Ifc6,
public Ifc7,
public Ifc8,
public Ifc9,
public Ifc10
108 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData10< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9, Ifc10, WeakImplHelper10<Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9, Ifc10> > > {};
111 {
return WeakImplHelper_query( rType, cd::get(),
this, (
OWeakObject *)
this ); }
117 {
return WeakImplHelper_getTypes( cd::get() ); }
119 {
return ImplHelper_getImplementationId( cd::get() ); }
134 template<
class Ifc1,
class Ifc2,
class Ifc3,
class Ifc4,
class Ifc5,
class Ifc6,
class Ifc7,
class Ifc8,
class Ifc9,
class Ifc10 >
137 ,
public com::sun::star::lang::XTypeProvider
138 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4,
public Ifc5,
public Ifc6,
public Ifc7,
public Ifc8,
public Ifc9,
public Ifc10
140 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData10< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9, Ifc10, WeakAggImplHelper10<Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9, Ifc10> > > {};
145 {
return WeakAggImplHelper_queryAgg( rType, cd::get(),
this, (
OWeakAggObject *)
this ); }
151 {
return WeakAggImplHelper_getTypes( cd::get() ); }
153 {
return ImplHelper_getImplementationId( cd::get() ); }
171 template<
class BaseClass,
class Ifc1,
class Ifc2,
class Ifc3,
class Ifc4,
class Ifc5,
class Ifc6,
class Ifc7,
class Ifc8,
class Ifc9,
class Ifc10 >
174 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4,
public Ifc5,
public Ifc6,
public Ifc7,
public Ifc8,
public Ifc9,
public Ifc10
176 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData10< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9, Ifc10, ImplInheritanceHelper10<BaseClass, Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9, Ifc10> > > {};
178 template<
typename T1 >
180 template<
typename T1,
typename T2 >
182 BaseClass(arg1, arg2) {}
183 template<
typename T1,
typename T2,
typename T3 >
185 T1
const & arg1, T2
const & arg2, T3
const & arg3):
186 BaseClass(arg1, arg2, arg3) {}
187 template<
typename T1,
typename T2,
typename T3,
typename T4 >
189 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4):
190 BaseClass(arg1, arg2, arg3, arg4) {}
192 typename T1,
typename T2,
typename T3,
typename T4,
typename T5 >
194 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
196 BaseClass(arg1, arg2, arg3, arg4, arg5) {}
198 typename T1,
typename T2,
typename T3,
typename T4,
typename T5,
201 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
202 T5
const & arg5, T6
const & arg6):
203 BaseClass(arg1, arg2, arg3, arg4, arg5, arg6) {}
214 { BaseClass::acquire(); }
216 { BaseClass::release(); }
218 {
return ImplInhHelper_getTypes( cd::get(), BaseClass::getTypes() ); }
220 {
return ImplHelper_getImplementationId( cd::get() ); }
239 template<
class BaseClass,
class Ifc1,
class Ifc2,
class Ifc3,
class Ifc4,
class Ifc5,
class Ifc6,
class Ifc7,
class Ifc8,
class Ifc9,
class Ifc10 >
242 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4,
public Ifc5,
public Ifc6,
public Ifc7,
public Ifc8,
public Ifc9,
public Ifc10
244 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData10< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9, Ifc10, AggImplInheritanceHelper10<BaseClass, Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9, Ifc10> > > {};
246 template<
typename T1 >
248 template<
typename T1,
typename T2 >
250 BaseClass(arg1, arg2) {}
251 template<
typename T1,
typename T2,
typename T3 >
253 T1
const & arg1, T2
const & arg2, T3
const & arg3):
254 BaseClass(arg1, arg2, arg3) {}
255 template<
typename T1,
typename T2,
typename T3,
typename T4 >
257 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4):
258 BaseClass(arg1, arg2, arg3, arg4) {}
260 typename T1,
typename T2,
typename T3,
typename T4,
typename T5 >
262 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
264 BaseClass(arg1, arg2, arg3, arg4, arg5) {}
266 typename T1,
typename T2,
typename T3,
typename T4,
typename T5,
269 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
270 T5
const & arg5, T6
const & arg6):
271 BaseClass(arg1, arg2, arg3, arg4, arg5, arg6) {}
281 return BaseClass::queryAggregation( rType );
284 { BaseClass::acquire(); }
286 { BaseClass::release(); }
288 {
return ImplInhHelper_getTypes( cd::get(), BaseClass::getTypes() ); }
290 {
return ImplHelper_getImplementationId( cd::get() ); }
Implementation helper implementing interfaces com::sun::star::lang::XTypeProvider and com::sun::star:...
Definition: implbase10.hxx:135
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
~ImplHelper10()
Definition: implbase10.hxx:92
ImplInheritanceHelper10(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4)
Definition: implbase10.hxx:188
Base class to implement an UNO object supporting weak references, i.e.
Definition: weakagg.hxx:40
unsigned char sal_Bool
Definition: types.h:46
virtual com::sun::star::uno::Any queryInterface(com::sun::star::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase10.hxx:142
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::Sequence< com::sun::star::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase10.hxx:84
ImplInheritanceHelper10(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5, T6 const &arg6)
Definition: implbase10.hxx:200
virtual void release() SAL_OVERRIDE
Definition: implbase10.hxx:285
#define sal_False
Definition: types.h:47
AggImplInheritanceHelper10(T1 const &arg1, T2 const &arg2, T3 const &arg3)
Definition: implbase10.hxx:252
virtual com::sun::star::uno::Sequence< com::sun::star::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase10.hxx:116
AggImplInheritanceHelper10(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4)
Definition: implbase10.hxx:256
virtual void acquire() SAL_OVERRIDE
Definition: implbase10.hxx:213
AggImplInheritanceHelper10(T1 const &arg1, T2 const &arg2)
Definition: implbase10.hxx:249
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: implbase10.hxx:82
Implementation helper implementing interface com::sun::star::lang::XTypeProvider and method XInterfac...
Definition: implbase10.hxx:76
AggImplInheritanceHelper10(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5, T6 const &arg6)
Definition: implbase10.hxx:268
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.
ImplInheritanceHelper10()
Definition: implbase10.hxx:205
virtual void acquire() SAL_OVERRIDE
If a delegator is set, then the delegators gets acquired.
Definition: implbase10.hxx:146
virtual com::sun::star::uno::Any queryAggregation(com::sun::star::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase10.hxx:144
AggImplInheritanceHelper10()
Definition: implbase10.hxx:273
ImplInheritanceHelper10(T1 const &arg1, T2 const &arg2)
Definition: implbase10.hxx:181
#define SAL_OVERRIDE
C++11 "override" feature.
Definition: types.h:423
Implementation helper implementing interfaces com::sun::star::lang::XTypeProvider and com::sun::star:...
Definition: implbase10.hxx:172
virtual void acquire() SAL_OVERRIDE
increasing m_refCount
signed char sal_Int8
Definition: types.h:51
virtual void release() SAL_OVERRIDE
If a delegator is set, then the delegators gets released.
Definition: implbase10.hxx:148
Definition: Enterable.hxx:26
virtual com::sun::star::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase10.hxx:219
C++ class representing an IDL any.
Definition: Any.h:46
virtual com::sun::star::uno::Sequence< com::sun::star::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase10.hxx:217
Implementation helper implementing interfaces com::sun::star::lang::XTypeProvider and com::sun::star:...
Definition: implbase10.hxx:103
virtual void acquire() SAL_OVERRIDE
Definition: implbase10.hxx:283
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
virtual com::sun::star::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase10.hxx:152
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: implbase10.hxx:289
virtual com::sun::star::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase10.hxx:86
virtual com::sun::star::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase10.hxx:118
AggImplInheritanceHelper10(T1 const &arg1)
Definition: implbase10.hxx:247
Helper class for a late-initialized static aggregate, e.g.
Definition: instance.hxx:542
ImplInheritanceHelper10(T1 const &arg1)
Definition: implbase10.hxx:179
virtual void release() SAL_OVERRIDE
decreasing m_refCount
Definition: implbase10.hxx:114
virtual com::sun::star::uno::Sequence< com::sun::star::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase10.hxx:287
virtual com::sun::star::uno::Any queryAggregation(com::sun::star::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase10.hxx:276
virtual void release() SAL_OVERRIDE
decreasing m_refCount
virtual void release() SAL_OVERRIDE
Definition: implbase10.hxx:215
virtual com::sun::star::uno::Sequence< com::sun::star::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase10.hxx:150
ImplInheritanceHelper10(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5)
Definition: implbase10.hxx:193
virtual void acquire() SAL_OVERRIDE
If a delegator is set, then the delegators gets acquired.
virtual com::sun::star::uno::Any queryInterface(com::sun::star::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase10.hxx:110
virtual com::sun::star::uno::Any queryInterface(com::sun::star::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase10.hxx:274
ImplInheritanceHelper10(T1 const &arg1, T2 const &arg2, T3 const &arg3)
Definition: implbase10.hxx:184
Implementation helper implementing interfaces com::sun::star::lang::XTypeProvider and com::sun::star:...
Definition: implbase10.hxx:240
virtual com::sun::star::uno::Any queryInterface(com::sun::star::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase10.hxx:206
virtual void acquire() SAL_OVERRIDE
increasing m_refCount
Definition: implbase10.hxx:112
AggImplInheritanceHelper10(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5)
Definition: implbase10.hxx:261