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 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 { { Ifc1::static_type }, ((sal_IntPtr)(Ifc1 *) (Impl *) 16) - 16 },
48 { { Ifc2::static_type }, ((sal_IntPtr)(Ifc2 *) (Impl *) 16) - 16 },
49 { { Ifc3::static_type }, ((sal_IntPtr)(Ifc3 *) (Impl *) 16) - 16 },
50 { { com::sun::star::lang::XTypeProvider::static_type }, ((sal_IntPtr)(com::sun::star::lang::XTypeProvider *) (Impl *) 16) - 16 }
53 return reinterpret_cast< class_data *
>(&s_cd);
67 template<
class Ifc1,
class Ifc2,
class Ifc3 >
69 :
public com::sun::star::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
94 template<
class Ifc1,
class Ifc2,
class Ifc3 >
97 ,
public com::sun::star::lang::XTypeProvider
98 ,
public Ifc1,
public Ifc2,
public Ifc3
100 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData3 < Ifc1, Ifc2, Ifc3, WeakImplHelper3<Ifc1, Ifc2, Ifc3> > > {};
103 {
return WeakImplHelper_query( rType, cd::get(),
this, (
OWeakObject *)
this ); }
109 {
return WeakImplHelper_getTypes( cd::get() ); }
111 {
return ImplHelper_getImplementationId( cd::get() ); }
126 template<
class Ifc1,
class Ifc2,
class Ifc3 >
129 ,
public com::sun::star::lang::XTypeProvider
130 ,
public Ifc1,
public Ifc2,
public Ifc3
132 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData3 < Ifc1, Ifc2, Ifc3, WeakAggImplHelper3<Ifc1, Ifc2, Ifc3> > > {};
137 {
return WeakAggImplHelper_queryAgg( rType, cd::get(),
this, (
OWeakAggObject *)
this ); }
143 {
return WeakAggImplHelper_getTypes( cd::get() ); }
145 {
return ImplHelper_getImplementationId( cd::get() ); }
164 template<
class BaseClass,
class Ifc1,
class Ifc2,
class Ifc3 >
167 ,
public Ifc1,
public Ifc2,
public Ifc3
169 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData3 < Ifc1, Ifc2, Ifc3, ImplInheritanceHelper3<BaseClass, Ifc1, Ifc2, Ifc3> > > {};
171 template<
typename T1 >
173 template<
typename T1,
typename T2 >
175 BaseClass(arg1, arg2) {}
176 template<
typename T1,
typename T2,
typename T3 >
178 T1
const & arg1, T2
const & arg2, T3
const & arg3):
179 BaseClass(arg1, arg2, arg3) {}
180 template<
typename T1,
typename T2,
typename T3,
typename T4 >
182 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4):
183 BaseClass(arg1, arg2, arg3, arg4) {}
185 typename T1,
typename T2,
typename T3,
typename T4,
typename T5 >
187 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
189 BaseClass(arg1, arg2, arg3, arg4, arg5) {}
191 typename T1,
typename T2,
typename T3,
typename T4,
typename T5,
194 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
195 T5
const & arg5, T6
const & arg6):
196 BaseClass(arg1, arg2, arg3, arg4, arg5, arg6) {}
207 { BaseClass::acquire(); }
209 { BaseClass::release(); }
211 {
return ImplInhHelper_getTypes( cd::get(), BaseClass::getTypes() ); }
213 {
return ImplHelper_getImplementationId( cd::get() ); }
232 template<
class BaseClass,
class Ifc1,
class Ifc2,
class Ifc3 >
235 ,
public Ifc1,
public Ifc2,
public Ifc3
237 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData3 < Ifc1, Ifc2, Ifc3, AggImplInheritanceHelper3<BaseClass, Ifc1, Ifc2, Ifc3> > > {};
239 template<
typename T1 >
241 template<
typename T1,
typename T2 >
243 BaseClass(arg1, arg2) {}
244 template<
typename T1,
typename T2,
typename T3 >
246 T1
const & arg1, T2
const & arg2, T3
const & arg3):
247 BaseClass(arg1, arg2, arg3) {}
248 template<
typename T1,
typename T2,
typename T3,
typename T4 >
250 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4):
251 BaseClass(arg1, arg2, arg3, arg4) {}
253 typename T1,
typename T2,
typename T3,
typename T4,
typename T5 >
255 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
257 BaseClass(arg1, arg2, arg3, arg4, arg5) {}
259 typename T1,
typename T2,
typename T3,
typename T4,
typename T5,
262 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
263 T5
const & arg5, T6
const & arg6):
264 BaseClass(arg1, arg2, arg3, arg4, arg5, arg6) {}
274 return BaseClass::queryAggregation( rType );
277 { BaseClass::acquire(); }
279 { BaseClass::release(); }
281 {
return ImplInhHelper_getTypes( cd::get(), BaseClass::getTypes() ); }
283 {
return ImplHelper_getImplementationId( cd::get() ); }
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
AggImplInheritanceHelper3()
Definition: implbase3.hxx:266
virtual com::sun::star::uno::Sequence< com::sun::star::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase3.hxx:76
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::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase3.hxx:282
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: implbase3.hxx:108
virtual com::sun::star::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase3.hxx:212
virtual com::sun::star::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase3.hxx:110
#define sal_False
Definition: types.h:47
~ImplHelper3()
Definition: implbase3.hxx:84
virtual void acquire() SAL_OVERRIDE
If a delegator is set, then the delegators gets acquired.
Definition: implbase3.hxx:138
ImplInheritanceHelper3(T1 const &arg1, T2 const &arg2, T3 const &arg3)
Definition: implbase3.hxx:177
AggImplInheritanceHelper3(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4)
Definition: implbase3.hxx:249
virtual com::sun::star::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase3.hxx:144
Template C++ class representing an IDL sequence.
Definition: unotype.hxx:33
Implementation helper implementing interfaces com::sun::star::lang::XTypeProvider and com::sun::star:...
Definition: implbase3.hxx:233
ImplInheritanceHelper3()
Definition: implbase3.hxx:198
virtual com::sun::star::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase3.hxx:78
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 void release() SAL_OVERRIDE
If a delegator is set, then the delegators gets released.
Definition: implbase3.hxx:140
virtual com::sun::star::uno::Any queryAggregation(com::sun::star::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase3.hxx:136
virtual void release() SAL_OVERRIDE
Definition: implbase3.hxx:208
#define SAL_OVERRIDE
C++11 "override" feature.
Definition: types.h:423
ImplInheritanceHelper3(T1 const &arg1, T2 const &arg2)
Definition: implbase3.hxx:174
virtual void acquire() SAL_OVERRIDE
increasing m_refCount
signed char sal_Int8
Definition: types.h:51
Implementation helper implementing interfaces com::sun::star::lang::XTypeProvider and com::sun::star:...
Definition: implbase3.hxx:127
virtual com::sun::star::uno::Any queryInterface(com::sun::star::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase3.hxx:267
Implementation helper implementing interfaces com::sun::star::lang::XTypeProvider and com::sun::star:...
Definition: implbase3.hxx:165
Definition: Enterable.hxx:26
virtual com::sun::star::uno::Any queryInterface(com::sun::star::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase3.hxx:74
AggImplInheritanceHelper3(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5, T6 const &arg6)
Definition: implbase3.hxx:261
virtual com::sun::star::uno::Sequence< com::sun::star::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase3.hxx:142
C++ class representing an IDL any.
Definition: Any.h:46
AggImplInheritanceHelper3(T1 const &arg1)
Definition: implbase3.hxx:240
ImplInheritanceHelper3(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4)
Definition: implbase3.hxx:181
virtual void release() SAL_OVERRIDE
decreasing m_refCount
Definition: implbase3.hxx:106
virtual com::sun::star::uno::Any queryInterface(com::sun::star::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase3.hxx:199
Implementation helper implementing interfaces com::sun::star::lang::XTypeProvider and com::sun::star:...
Definition: implbase3.hxx:95
AggImplInheritanceHelper3(T1 const &arg1, T2 const &arg2, T3 const &arg3)
Definition: implbase3.hxx:245
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
Base class to implement an UNO object supporting weak references, i.e.
Definition: weak.hxx:43
ImplInheritanceHelper3(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5)
Definition: implbase3.hxx:186
virtual void acquire() SAL_OVERRIDE
increasing m_refCount
Definition: implbase3.hxx:104
Helper class for a late-initialized static aggregate, e.g.
Definition: instance.hxx:542
AggImplInheritanceHelper3(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5)
Definition: implbase3.hxx:254
virtual com::sun::star::uno::Sequence< com::sun::star::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase3.hxx:280
virtual com::sun::star::uno::Any queryInterface(com::sun::star::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase3.hxx:134
AggImplInheritanceHelper3(T1 const &arg1, T2 const &arg2)
Definition: implbase3.hxx:242
virtual void acquire() SAL_OVERRIDE
Definition: implbase3.hxx:276
virtual com::sun::star::uno::Any queryInterface(com::sun::star::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase3.hxx:102
ImplInheritanceHelper3(T1 const &arg1)
Definition: implbase3.hxx:172
virtual void release() SAL_OVERRIDE
decreasing m_refCount
virtual com::sun::star::uno::Any queryAggregation(com::sun::star::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase3.hxx:269
Implementation helper implementing interface com::sun::star::lang::XTypeProvider and method XInterfac...
Definition: implbase3.hxx:68
virtual com::sun::star::uno::Sequence< com::sun::star::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase3.hxx:210
virtual void release() SAL_OVERRIDE
Definition: implbase3.hxx:278
ImplInheritanceHelper3(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5, T6 const &arg6)
Definition: implbase3.hxx:193
virtual void acquire() SAL_OVERRIDE
If a delegator is set, then the delegators gets acquired.
virtual void acquire() SAL_OVERRIDE
Definition: implbase3.hxx:206