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 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 { { Ifc1::static_type }, ((sal_IntPtr)(Ifc1 *) (Impl *) 16) - 16 },
48 { { Ifc2::static_type }, ((sal_IntPtr)(Ifc2 *) (Impl *) 16) - 16 },
49 { { com::sun::star::lang::XTypeProvider::static_type }, ((sal_IntPtr)(com::sun::star::lang::XTypeProvider *) (Impl *) 16) - 16 }
52 return reinterpret_cast< class_data *
>(&s_cd);
66 template<
class Ifc1,
class Ifc2 >
68 :
public com::sun::star::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
93 template<
class Ifc1,
class Ifc2 >
96 ,
public com::sun::star::lang::XTypeProvider
97 ,
public Ifc1,
public Ifc2
99 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData2 < Ifc1, Ifc2, WeakImplHelper2<Ifc1, Ifc2> > > {};
102 {
return WeakImplHelper_query( rType, cd::get(),
this, (
OWeakObject *)
this ); }
108 {
return WeakImplHelper_getTypes( cd::get() ); }
110 {
return ImplHelper_getImplementationId( cd::get() ); }
125 template<
class Ifc1,
class Ifc2 >
128 ,
public com::sun::star::lang::XTypeProvider
129 ,
public Ifc1,
public Ifc2
131 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData2 < Ifc1, Ifc2, WeakAggImplHelper2<Ifc1, Ifc2> > > {};
136 {
return WeakAggImplHelper_queryAgg( rType, cd::get(),
this, (
OWeakAggObject *)
this ); }
142 {
return WeakAggImplHelper_getTypes( cd::get() ); }
144 {
return ImplHelper_getImplementationId( cd::get() ); }
162 template<
class BaseClass,
class Ifc1,
class Ifc2 >
165 ,
public Ifc1,
public Ifc2
167 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData2 < Ifc1, Ifc2, ImplInheritanceHelper2<BaseClass, Ifc1, Ifc2> > > {};
169 template<
typename T1 >
171 template<
typename T1,
typename T2 >
173 BaseClass(arg1, arg2) {}
174 template<
typename T1,
typename T2,
typename T3 >
176 T1
const & arg1, T2
const & arg2, T3
const & arg3):
177 BaseClass(arg1, arg2, arg3) {}
178 template<
typename T1,
typename T2,
typename T3,
typename T4 >
180 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4):
181 BaseClass(arg1, arg2, arg3, arg4) {}
183 typename T1,
typename T2,
typename T3,
typename T4,
typename T5 >
185 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
187 BaseClass(arg1, arg2, arg3, arg4, arg5) {}
189 typename T1,
typename T2,
typename T3,
typename T4,
typename T5,
192 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
193 T5
const & arg5, T6
const & arg6):
194 BaseClass(arg1, arg2, arg3, arg4, arg5, arg6) {}
205 { BaseClass::acquire(); }
207 { BaseClass::release(); }
209 {
return ImplInhHelper_getTypes( cd::get(), BaseClass::getTypes() ); }
211 {
return ImplHelper_getImplementationId( cd::get() ); }
230 template<
class BaseClass,
class Ifc1,
class Ifc2 >
233 ,
public Ifc1,
public Ifc2
235 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData2 < Ifc1, Ifc2, AggImplInheritanceHelper2<BaseClass, Ifc1, Ifc2> > > {};
237 template<
typename T1 >
239 template<
typename T1,
typename T2 >
241 BaseClass(arg1, arg2) {}
242 template<
typename T1,
typename T2,
typename T3 >
244 T1
const & arg1, T2
const & arg2, T3
const & arg3):
245 BaseClass(arg1, arg2, arg3) {}
246 template<
typename T1,
typename T2,
typename T3,
typename T4 >
248 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4):
249 BaseClass(arg1, arg2, arg3, arg4) {}
251 typename T1,
typename T2,
typename T3,
typename T4,
typename T5 >
253 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
255 BaseClass(arg1, arg2, arg3, arg4, arg5) {}
257 typename T1,
typename T2,
typename T3,
typename T4,
typename T5,
260 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
261 T5
const & arg5, T6
const & arg6):
262 BaseClass(arg1, arg2, arg3, arg4, arg5, arg6) {}
272 return BaseClass::queryAggregation( rType );
275 { BaseClass::acquire(); }
277 { BaseClass::release(); }
279 {
return ImplInhHelper_getTypes( cd::get(), BaseClass::getTypes() ); }
281 {
return ImplHelper_getImplementationId( cd::get() ); }
virtual void acquire()
If a delegator is set, then the delegators gets acquired.
Definition: implbase2.hxx:137
virtual void acquire()
increasing m_refCount
AggImplInheritanceHelper2(T1 const &arg1)
Definition: implbase2.hxx:238
~ImplHelper2()
Definition: implbase2.hxx:83
virtual void release()
If a delegator is set, then the delegators gets released.
virtual void release()
Definition: implbase2.hxx:206
Helper class for a late-initialized static aggregate, e.g.
Definition: instance.hxx:542
virtual com::sun::star::uno::Sequence< com::sun::star::uno::Type > getTypes()
Definition: implbase2.hxx:75
virtual void release()
Definition: implbase2.hxx:276
C++ class representing an IDL meta type.
Definition: Type.h:55
Implementation helper implementing interfaces com::sun::star::lang::XTypeProvider and com::sun::star:...
Definition: implbase2.hxx:126
Base class to implement an UNO object supporting weak references, i.e.
Definition: weakagg.hxx:40
virtual com::sun::star::uno::Any queryAggregation(com::sun::star::uno::Type const &rType)
Definition: implbase2.hxx:267
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
ImplInheritanceHelper2(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4)
Definition: implbase2.hxx:179
AggImplInheritanceHelper2(T1 const &arg1, T2 const &arg2)
Definition: implbase2.hxx:240
virtual void acquire()
increasing m_refCount
Definition: implbase2.hxx:103
virtual com::sun::star::uno::Any queryInterface(com::sun::star::uno::Type const &rType)
Definition: implbase2.hxx:101
Implementation helper implementing interfaces com::sun::star::lang::XTypeProvider and com::sun::star:...
Definition: implbase2.hxx:94
#define SAL_NO_VTABLE
Use this for pure virtual classes, e.g.
Definition: types.h:315
Implementation helper implementing interfaces com::sun::star::lang::XTypeProvider and com::sun::star:...
Definition: implbase2.hxx:231
virtual com::sun::star::uno::Any queryInterface(com::sun::star::uno::Type const &rType)
Definition: implbase2.hxx:265
Implementation helper implementing interface com::sun::star::lang::XTypeProvider and queryInterface()...
Definition: implbase2.hxx:67
ImplInheritanceHelper2(T1 const &arg1, T2 const &arg2, T3 const &arg3)
Definition: implbase2.hxx:175
virtual void release()
If a delegator is set, then the delegators gets released.
Definition: implbase2.hxx:139
virtual void release()
decreasing m_refCount
virtual com::sun::star::uno::Sequence< com::sun::star::uno::Type > getTypes()
Definition: implbase2.hxx:141
virtual void acquire()
Definition: implbase2.hxx:204
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.
virtual void release()
decreasing m_refCount
Definition: implbase2.hxx:105
virtual com::sun::star::uno::Any queryInterface(com::sun::star::uno::Type const &rType)
Definition: implbase2.hxx:73
ImplInheritanceHelper2(T1 const &arg1, T2 const &arg2)
Definition: implbase2.hxx:172
virtual com::sun::star::uno::Any queryInterface(com::sun::star::uno::Type const &rType)
Definition: implbase2.hxx:133
AggImplInheritanceHelper2(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5, T6 const &arg6)
Definition: implbase2.hxx:259
AggImplInheritanceHelper2(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5)
Definition: implbase2.hxx:252
virtual com::sun::star::uno::Sequence< com::sun::star::uno::Type > getTypes()
Definition: implbase2.hxx:278
AggImplInheritanceHelper2(T1 const &arg1, T2 const &arg2, T3 const &arg3)
Definition: implbase2.hxx:243
C++ class representing an IDL any.
Definition: Any.h:46
virtual com::sun::star::uno::Any queryAggregation(com::sun::star::uno::Type const &rType)
Definition: implbase2.hxx:135
virtual com::sun::star::uno::Sequence< com::sun::star::uno::Type > getTypes()
Definition: implbase2.hxx:107
unsigned char sal_Bool
Definition: types.h:46
sal_Bool hasValue() const
Tests if any contains a value.
Definition: Any.h:150
virtual com::sun::star::uno::Sequence< sal_Int8 > getImplementationId()
Definition: implbase2.hxx:280
virtual com::sun::star::uno::Any queryInterface(com::sun::star::uno::Type const &rType)
Definition: implbase2.hxx:197
virtual com::sun::star::uno::Sequence< sal_Int8 > getImplementationId()
Definition: implbase2.hxx:77
virtual com::sun::star::uno::Sequence< sal_Int8 > getImplementationId()
Definition: implbase2.hxx:210
virtual com::sun::star::uno::Sequence< sal_Int8 > getImplementationId()
Definition: implbase2.hxx:143
ImplInheritanceHelper2(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5)
Definition: implbase2.hxx:184
AggImplInheritanceHelper2(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4)
Definition: implbase2.hxx:247
virtual void acquire()
Definition: implbase2.hxx:274
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
ImplInheritanceHelper2(T1 const &arg1)
Definition: implbase2.hxx:170
#define sal_False
Definition: types.h:47
ImplInheritanceHelper2(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5, T6 const &arg6)
Definition: implbase2.hxx:191
virtual com::sun::star::uno::Sequence< sal_Int8 > getImplementationId()
Definition: implbase2.hxx:109
virtual com::sun::star::uno::Sequence< com::sun::star::uno::Type > getTypes()
Definition: implbase2.hxx:208
signed char sal_Int8
Definition: types.h:51
ImplInheritanceHelper2()
Definition: implbase2.hxx:196
AggImplInheritanceHelper2()
Definition: implbase2.hxx:264
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: implbase2.hxx:163