19 #ifndef INCLUDED_CPPUHELPER_IMPLBASE1_HXX
20 #define INCLUDED_CPPUHELPER_IMPLBASE1_HXX
24 #include <com/sun/star/uno/XComponentContext.hpp>
36 type_entry m_typeEntries[ 1 + 1 ];
39 template<
typename Ifc1,
typename Impl >
struct ImplClassData1
41 class_data* operator ()()
43 static class_data1 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 { { 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 >
68 :
public com::sun::star::lang::XTypeProvider
71 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData1 < Ifc1, ImplHelper1<Ifc1> > > {};
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
97 template<
class Ifc1 >
100 ,
public com::sun::star::lang::XTypeProvider
103 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData1< Ifc1, WeakImplHelper1< Ifc1 > > > {};
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 >
132 ,
public com::sun::star::lang::XTypeProvider
135 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData1< Ifc1, WeakAggImplHelper1< Ifc1 > > > {};
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 >
171 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData1< Ifc1, ImplInheritanceHelper1< BaseClass, Ifc1 > > > {};
173 #if (defined __SUNPRO_CC && __SUNPRO_CC <= 0x550)
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 >
244 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData1< Ifc1, AggImplInheritanceHelper1< BaseClass, Ifc1 > > > {};
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() ); }
virtual com::sun::star::uno::Sequence< com::sun::star::uno::Type > getTypes()
Definition: implbase1.hxx:145
virtual void acquire()
increasing m_refCount
virtual void acquire()
increasing m_refCount
Definition: implbase1.hxx:107
~ImplHelper1()
Definition: implbase1.hxx:83
AggImplInheritanceHelper1()
Definition: implbase1.hxx:273
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
virtual com::sun::star::uno::Sequence< com::sun::star::uno::Type > getTypes()
Definition: implbase1.hxx:287
C++ class representing an IDL meta type.
Definition: Type.h:55
virtual void acquire()
If a delegator is set, then the delegators gets acquired.
Definition: implbase1.hxx:141
virtual com::sun::star::uno::Any queryInterface(com::sun::star::uno::Type const &rType)
Definition: implbase1.hxx:73
Implementation helper implementing interface com::sun::star::lang::XTypeProvider and method XInterfac...
Definition: implbase1.hxx:67
virtual void release()
decreasing m_refCount
Definition: implbase1.hxx:109
Base class to implement an UNO object supporting weak references, i.e.
Definition: weakagg.hxx:40
ImplInheritanceHelper1(T1 const &arg1, T2 const &arg2, T3 const &arg3)
Definition: implbase1.hxx:184
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 void release()
If a delegator is set, then the delegators gets released.
Definition: implbase1.hxx:143
Implementation helper implementing interfaces com::sun::star::lang::XTypeProvider and com::sun::star:...
Definition: implbase1.hxx:98
virtual com::sun::star::uno::Any queryInterface(com::sun::star::uno::Type const &rType)
Definition: implbase1.hxx:105
#define SAL_NO_VTABLE
Use this for pure virtual classes, e.g.
Definition: types.h:315
virtual com::sun::star::uno::Sequence< sal_Int8 > getImplementationId()
Definition: implbase1.hxx:147
virtual void release()
Definition: implbase1.hxx:215
AggImplInheritanceHelper1(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5)
Definition: implbase1.hxx:261
virtual com::sun::star::uno::Sequence< sal_Int8 > getImplementationId()
Definition: implbase1.hxx:219
AggImplInheritanceHelper1(T1 const &arg1)
Definition: implbase1.hxx:247
virtual com::sun::star::uno::Any queryInterface(com::sun::star::uno::Type const &rType)
Definition: implbase1.hxx:137
virtual void release()
decreasing m_refCount
AggImplInheritanceHelper1(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5, T6 const &arg6)
Definition: implbase1.hxx:268
Implementation helper implementing interfaces com::sun::star::lang::XTypeProvider and com::sun::star:...
Definition: implbase1.hxx:240
ImplInheritanceHelper1(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4)
Definition: implbase1.hxx:188
virtual com::sun::star::uno::Any queryAggregation(com::sun::star::uno::Type const &rType)
Definition: implbase1.hxx:276
AggImplInheritanceHelper1(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4)
Definition: implbase1.hxx:256
virtual void acquire()
Definition: implbase1.hxx:213
virtual com::sun::star::uno::Any queryAggregation(com::sun::star::uno::Type const &rType)
Definition: implbase1.hxx:139
Implementation helper implementing interfaces com::sun::star::lang::XTypeProvider and com::sun::star:...
Definition: implbase1.hxx:167
ImplInheritanceHelper1(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5)
Definition: implbase1.hxx:193
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 com::sun::star::uno::Sequence< sal_Int8 > getImplementationId()
Definition: implbase1.hxx:77
ImplInheritanceHelper1(T1 const &arg1, T2 const &arg2)
Definition: implbase1.hxx:181
virtual com::sun::star::uno::Sequence< com::sun::star::uno::Type > getTypes()
Definition: implbase1.hxx:75
ImplInheritanceHelper1()
Definition: implbase1.hxx:205
Template reference class for interface type derived from BaseReference.
Definition: unotype.hxx:32
AggImplInheritanceHelper1(T1 const &arg1, T2 const &arg2, T3 const &arg3)
Definition: implbase1.hxx:252
ImplInheritanceHelper1(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5, T6 const &arg6)
Definition: implbase1.hxx:200
virtual void acquire()
Definition: implbase1.hxx:283
Implementation helper implementing interfaces com::sun::star::lang::XTypeProvider and com::sun::star:...
Definition: implbase1.hxx:130
virtual com::sun::star::uno::Any queryInterface(com::sun::star::uno::Type const &rType)
Definition: implbase1.hxx:274
C++ class representing an IDL any.
Definition: Any.h:46
ImplInheritanceHelper1(T1 const &arg1)
Definition: implbase1.hxx:179
virtual com::sun::star::uno::Sequence< sal_Int8 > getImplementationId()
Definition: implbase1.hxx:289
virtual void release()
Definition: implbase1.hxx:285
unsigned char sal_Bool
Definition: types.h:46
sal_Bool hasValue() const
Tests if any contains a value.
Definition: Any.h:150
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
virtual com::sun::star::uno::Any queryInterface(com::sun::star::uno::Type const &rType)
Definition: implbase1.hxx:206
AggImplInheritanceHelper1(T1 const &arg1, T2 const &arg2)
Definition: implbase1.hxx:249
signed char sal_Int8
Definition: types.h:51
virtual com::sun::star::uno::Sequence< sal_Int8 > getImplementationId()
Definition: implbase1.hxx:113
Template C++ class representing an IDL sequence.
Definition: unotype.hxx:33
virtual com::sun::star::uno::Sequence< com::sun::star::uno::Type > getTypes()
Definition: implbase1.hxx:111
virtual com::sun::star::uno::Sequence< com::sun::star::uno::Type > getTypes()
Definition: implbase1.hxx:217