19 #ifndef INCLUDED_CPPUHELPER_IMPLBASE5_HXX
20 #define INCLUDED_CPPUHELPER_IMPLBASE5_HXX
35 type_entry m_typeEntries[ 5 + 1 ];
38 template<
typename Ifc1,
typename Ifc2,
typename Ifc3,
typename Ifc4,
typename Ifc5,
typename Impl >
41 class_data* operator ()()
43 static class_data5 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 { { com::sun::star::lang::XTypeProvider::static_type }, ((sal_IntPtr)(com::sun::star::lang::XTypeProvider *) (Impl *) 16) - 16 }
56 return reinterpret_cast< class_data *
>(&s_cd);
70 template<
class Ifc1,
class Ifc2,
class Ifc3,
class Ifc4,
class Ifc5 >
72 :
public com::sun::star::lang::XTypeProvider
73 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4,
public Ifc5
75 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData5 < Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, ImplHelper5<Ifc1, Ifc2, Ifc3, Ifc4, Ifc5> > > {};
78 {
return ImplHelper_query( rType, cd::get(),
this ); }
80 {
return ImplHelper_getTypes( cd::get() ); }
82 {
return ImplHelper_getImplementationId( cd::get() ); }
84 #if !defined _MSC_VER // public -> protected changes mangled names there
97 template<
class Ifc1,
class Ifc2,
class Ifc3,
class Ifc4,
class Ifc5 >
100 ,
public com::sun::star::lang::XTypeProvider
101 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4,
public Ifc5
103 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData5 < Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, WeakImplHelper5<Ifc1, Ifc2, Ifc3, Ifc4, Ifc5> > > {};
106 {
return WeakImplHelper_query( rType, cd::get(),
this, (
OWeakObject *)
this ); }
112 {
return WeakImplHelper_getTypes( cd::get() ); }
114 {
return ImplHelper_getImplementationId( cd::get() ); }
129 template<
class Ifc1,
class Ifc2,
class Ifc3,
class Ifc4,
class Ifc5 >
132 ,
public com::sun::star::lang::XTypeProvider
133 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4,
public Ifc5
135 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData5 < Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, WeakAggImplHelper5<Ifc1, Ifc2, Ifc3, Ifc4, Ifc5> > > {};
140 {
return WeakAggImplHelper_queryAgg( rType, cd::get(),
this, (
OWeakAggObject *)
this ); }
146 {
return WeakAggImplHelper_getTypes( cd::get() ); }
148 {
return ImplHelper_getImplementationId( cd::get() ); }
166 template<
class BaseClass,
class Ifc1,
class Ifc2,
class Ifc3,
class Ifc4,
class Ifc5 >
169 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4,
public Ifc5
171 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData5 < Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, ImplInheritanceHelper5<BaseClass, Ifc1, Ifc2, Ifc3, Ifc4, Ifc5> > > {};
173 template<
typename T1 >
175 template<
typename T1,
typename T2 >
177 BaseClass(arg1, arg2) {}
178 template<
typename T1,
typename T2,
typename T3 >
180 T1
const & arg1, T2
const & arg2, T3
const & arg3):
181 BaseClass(arg1, arg2, arg3) {}
182 template<
typename T1,
typename T2,
typename T3,
typename T4 >
184 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4):
185 BaseClass(arg1, arg2, arg3, arg4) {}
187 typename T1,
typename T2,
typename T3,
typename T4,
typename T5 >
189 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
191 BaseClass(arg1, arg2, arg3, arg4, arg5) {}
193 typename T1,
typename T2,
typename T3,
typename T4,
typename T5,
196 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
197 T5
const & arg5, T6
const & arg6):
198 BaseClass(arg1, arg2, arg3, arg4, arg5, arg6) {}
209 { BaseClass::acquire(); }
211 { BaseClass::release(); }
213 {
return ImplInhHelper_getTypes( cd::get(), BaseClass::getTypes() ); }
215 {
return ImplHelper_getImplementationId( cd::get() ); }
234 template<
class BaseClass,
class Ifc1,
class Ifc2,
class Ifc3,
class Ifc4,
class Ifc5 >
237 ,
public Ifc1,
public Ifc2,
public Ifc3,
public Ifc4,
public Ifc5
239 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData5 < Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, AggImplInheritanceHelper5<BaseClass, Ifc1, Ifc2, Ifc3, Ifc4, Ifc5> > > {};
241 template<
typename T1 >
243 template<
typename T1,
typename T2 >
245 BaseClass(arg1, arg2) {}
246 template<
typename T1,
typename T2,
typename T3 >
248 T1
const & arg1, T2
const & arg2, T3
const & arg3):
249 BaseClass(arg1, arg2, arg3) {}
250 template<
typename T1,
typename T2,
typename T3,
typename T4 >
252 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4):
253 BaseClass(arg1, arg2, arg3, arg4) {}
255 typename T1,
typename T2,
typename T3,
typename T4,
typename T5 >
257 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
259 BaseClass(arg1, arg2, arg3, arg4, arg5) {}
261 typename T1,
typename T2,
typename T3,
typename T4,
typename T5,
264 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
265 T5
const & arg5, T6
const & arg6):
266 BaseClass(arg1, arg2, arg3, arg4, arg5, arg6) {}
276 return BaseClass::queryAggregation( rType );
279 { BaseClass::acquire(); }
281 { BaseClass::release(); }
283 {
return ImplInhHelper_getTypes( cd::get(), BaseClass::getTypes() ); }
285 {
return ImplHelper_getImplementationId( cd::get() ); }
virtual void acquire()
increasing m_refCount
Implementation helper implementing interfaces com::sun::star::lang::XTypeProvider and com::sun::star:...
Definition: implbase5.hxx:167
ImplInheritanceHelper5(T1 const &arg1, T2 const &arg2)
Definition: implbase5.hxx:176
virtual void release()
If a delegator is set, then the delegators gets released.
Helper class for a late-initialized static aggregate, e.g.
Definition: instance.hxx:542
C++ class representing an IDL meta type.
Definition: Type.h:55
AggImplInheritanceHelper5(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5, T6 const &arg6)
Definition: implbase5.hxx:263
ImplInheritanceHelper5(T1 const &arg1)
Definition: implbase5.hxx:174
Base class to implement an UNO object supporting weak references, i.e.
Definition: weakagg.hxx:40
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
virtual com::sun::star::uno::Sequence< sal_Int8 > getImplementationId()
Definition: implbase5.hxx:81
AggImplInheritanceHelper5(T1 const &arg1, T2 const &arg2)
Definition: implbase5.hxx:244
#define SAL_NO_VTABLE
Use this for pure virtual classes, e.g.
Definition: types.h:315
virtual com::sun::star::uno::Any queryAggregation(com::sun::star::uno::Type const &rType)
Definition: implbase5.hxx:271
AggImplInheritanceHelper5(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4)
Definition: implbase5.hxx:251
virtual com::sun::star::uno::Sequence< com::sun::star::uno::Type > getTypes()
Definition: implbase5.hxx:111
virtual com::sun::star::uno::Sequence< sal_Int8 > getImplementationId()
Definition: implbase5.hxx:214
virtual void release()
decreasing m_refCount
virtual void acquire()
Definition: implbase5.hxx:208
virtual com::sun::star::uno::Any queryInterface(com::sun::star::uno::Type const &rType)
Definition: implbase5.hxx:201
virtual com::sun::star::uno::Any queryInterface(com::sun::star::uno::Type const &rType)
Definition: implbase5.hxx:137
virtual com::sun::star::uno::Any queryInterface(com::sun::star::uno::Type const &rType)
Definition: implbase5.hxx:105
virtual com::sun::star::uno::Sequence< com::sun::star::uno::Type > getTypes()
Definition: implbase5.hxx:79
Implementation helper implementing interface com::sun::star::lang::XTypeProvider and method XInterfac...
Definition: implbase5.hxx:71
virtual void release()
Definition: implbase5.hxx:280
ImplInheritanceHelper5(T1 const &arg1, T2 const &arg2, T3 const &arg3)
Definition: implbase5.hxx:179
ImplInheritanceHelper5(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5, T6 const &arg6)
Definition: implbase5.hxx:195
virtual com::sun::star::uno::Sequence< com::sun::star::uno::Type > getTypes()
Definition: implbase5.hxx:282
virtual ::com::sun::star::uno::Any queryInterface(const ::com::sun::star::uno::Type &rType)
If a delegator is set, then the delegator is queried for the demanded interface.
Implementation helper implementing interfaces com::sun::star::lang::XTypeProvider and com::sun::star:...
Definition: implbase5.hxx:98
Implementation helper implementing interfaces com::sun::star::lang::XTypeProvider and com::sun::star:...
Definition: implbase5.hxx:235
virtual com::sun::star::uno::Sequence< sal_Int8 > getImplementationId()
Definition: implbase5.hxx:284
virtual void release()
If a delegator is set, then the delegators gets released.
Definition: implbase5.hxx:143
ImplInheritanceHelper5(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5)
Definition: implbase5.hxx:188
ImplInheritanceHelper5(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4)
Definition: implbase5.hxx:183
virtual void acquire()
increasing m_refCount
Definition: implbase5.hxx:107
virtual void release()
decreasing m_refCount
Definition: implbase5.hxx:109
virtual com::sun::star::uno::Sequence< sal_Int8 > getImplementationId()
Definition: implbase5.hxx:113
C++ class representing an IDL any.
Definition: Any.h:46
virtual void release()
Definition: implbase5.hxx:210
virtual com::sun::star::uno::Any queryInterface(com::sun::star::uno::Type const &rType)
Definition: implbase5.hxx:269
virtual com::sun::star::uno::Any queryInterface(com::sun::star::uno::Type const &rType)
Definition: implbase5.hxx:77
~ImplHelper5()
Definition: implbase5.hxx:87
unsigned char sal_Bool
Definition: types.h:46
sal_Bool hasValue() const
Tests if any contains a value.
Definition: Any.h:150
AggImplInheritanceHelper5()
Definition: implbase5.hxx:268
Implementation helper implementing interfaces com::sun::star::lang::XTypeProvider and com::sun::star:...
Definition: implbase5.hxx:130
virtual com::sun::star::uno::Any queryAggregation(com::sun::star::uno::Type const &rType)
Definition: implbase5.hxx:139
virtual void acquire()
If a delegator is set, then the delegators gets acquired.
Base class to implement an UNO object supporting weak references, i.e.
Definition: weak.hxx:43
#define sal_False
Definition: types.h:47
ImplInheritanceHelper5()
Definition: implbase5.hxx:200
virtual com::sun::star::uno::Sequence< com::sun::star::uno::Type > getTypes()
Definition: implbase5.hxx:212
virtual void acquire()
If a delegator is set, then the delegators gets acquired.
Definition: implbase5.hxx:141
signed char sal_Int8
Definition: types.h:51
virtual void acquire()
Definition: implbase5.hxx:278
AggImplInheritanceHelper5(T1 const &arg1, T2 const &arg2, T3 const &arg3)
Definition: implbase5.hxx:247
virtual com::sun::star::uno::Sequence< com::sun::star::uno::Type > getTypes()
Definition: implbase5.hxx:145
virtual com::sun::star::uno::Sequence< sal_Int8 > getImplementationId()
Definition: implbase5.hxx:147
Template C++ class representing an IDL sequence.
Definition: unotype.hxx:33
AggImplInheritanceHelper5(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5)
Definition: implbase5.hxx:256
AggImplInheritanceHelper5(T1 const &arg1)
Definition: implbase5.hxx:242