19 #ifndef INCLUDED_CPPUHELPER_IMPLBASE1_HXX
20 #define INCLUDED_CPPUHELPER_IMPLBASE1_HXX
35 type_entry m_typeEntries[ 1 + 1 ];
38 template<
typename Ifc1,
typename Impl >
struct ImplClassData1
40 class_data* operator ()()
42 static class_data1 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 { { com::sun::star::lang::XTypeProvider::static_type }, ((sal_IntPtr)(com::sun::star::lang::XTypeProvider *) (Impl *) 16) - 16 }
51 return reinterpret_cast< class_data *
>(&s_cd);
65 template<
class Ifc1 >
67 :
public com::sun::star::lang::XTypeProvider
70 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData1 < Ifc1, ImplHelper1<Ifc1> > > {};
73 {
return ImplHelper_query( rType, cd::get(),
this ); }
75 {
return ImplHelper_getTypes( cd::get() ); }
77 {
return ImplHelper_getImplementationId( cd::get() ); }
79 #if !defined _MSC_VER // public -> protected changes mangled names there
96 template<
class Ifc1 >
99 ,
public com::sun::star::lang::XTypeProvider
102 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData1< Ifc1, WeakImplHelper1< Ifc1 > > > {};
105 {
return WeakImplHelper_query( rType, cd::get(),
this, (
OWeakObject *)
this ); }
111 {
return WeakImplHelper_getTypes( cd::get() ); }
113 {
return ImplHelper_getImplementationId( cd::get() ); }
128 template<
class Ifc1 >
131 ,
public com::sun::star::lang::XTypeProvider
134 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData1< Ifc1, WeakAggImplHelper1< Ifc1 > > > {};
139 {
return WeakAggImplHelper_queryAgg( rType, cd::get(),
this, (
OWeakAggObject *)
this ); }
145 {
return WeakAggImplHelper_getTypes( cd::get() ); }
147 {
return ImplHelper_getImplementationId( cd::get() ); }
165 template<
class BaseClass,
class Ifc1 >
170 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData1< Ifc1, ImplInheritanceHelper1< BaseClass, Ifc1 > > > {};
172 template<
typename T1 >
174 template<
typename T1,
typename T2 >
176 BaseClass(arg1, arg2) {}
177 template<
typename T1,
typename T2,
typename T3 >
179 T1
const & arg1, T2
const & arg2, T3
const & arg3):
180 BaseClass(arg1, arg2, arg3) {}
181 template<
typename T1,
typename T2,
typename T3,
typename T4 >
183 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4):
184 BaseClass(arg1, arg2, arg3, arg4) {}
186 typename T1,
typename T2,
typename T3,
typename T4,
typename T5 >
188 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
190 BaseClass(arg1, arg2, arg3, arg4, arg5) {}
192 typename T1,
typename T2,
typename T3,
typename T4,
typename T5,
195 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
196 T5
const & arg5, T6
const & arg6):
197 BaseClass(arg1, arg2, arg3, arg4, arg5, arg6) {}
208 { BaseClass::acquire(); }
210 { BaseClass::release(); }
212 {
return ImplInhHelper_getTypes( cd::get(), BaseClass::getTypes() ); }
214 {
return ImplHelper_getImplementationId( cd::get() ); }
233 template<
class BaseClass,
class Ifc1 >
238 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData1< Ifc1, AggImplInheritanceHelper1< BaseClass, Ifc1 > > > {};
240 template<
typename T1 >
242 template<
typename T1,
typename T2 >
244 BaseClass(arg1, arg2) {}
245 template<
typename T1,
typename T2,
typename T3 >
247 T1
const & arg1, T2
const & arg2, T3
const & arg3):
248 BaseClass(arg1, arg2, arg3) {}
249 template<
typename T1,
typename T2,
typename T3,
typename T4 >
251 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4):
252 BaseClass(arg1, arg2, arg3, arg4) {}
254 typename T1,
typename T2,
typename T3,
typename T4,
typename T5 >
256 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
258 BaseClass(arg1, arg2, arg3, arg4, arg5) {}
260 typename T1,
typename T2,
typename T3,
typename T4,
typename T5,
263 T1
const & arg1, T2
const & arg2, T3
const & arg3, T4
const & arg4,
264 T5
const & arg5, T6
const & arg6):
265 BaseClass(arg1, arg2, arg3, arg4, arg5, arg6) {}
275 return BaseClass::queryAggregation( rType );
278 { BaseClass::acquire(); }
280 { BaseClass::release(); }
282 {
return ImplInhHelper_getTypes( cd::get(), BaseClass::getTypes() ); }
284 {
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
virtual com::sun::star::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase1.hxx:283
virtual com::sun::star::uno::Any queryInterface(com::sun::star::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase1.hxx:104
Base class to implement an UNO object supporting weak references, i.e.
Definition: weakagg.hxx:40
virtual com::sun::star::uno::Sequence< com::sun::star::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase1.hxx:110
unsigned char sal_Bool
Definition: types.h:46
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::Any queryInterface(com::sun::star::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase1.hxx:72
virtual void release() SAL_OVERRIDE
Definition: implbase1.hxx:279
Implementation helper implementing interfaces com::sun::star::lang::XTypeProvider and com::sun::star:...
Definition: implbase1.hxx:234
AggImplInheritanceHelper1(T1 const &arg1, T2 const &arg2, T3 const &arg3)
Definition: implbase1.hxx:246
Implementation helper implementing interfaces com::sun::star::lang::XTypeProvider and com::sun::star:...
Definition: implbase1.hxx:129
#define sal_False
Definition: types.h:47
ImplInheritanceHelper1(T1 const &arg1, T2 const &arg2, T3 const &arg3)
Definition: implbase1.hxx:178
virtual void release() SAL_OVERRIDE
decreasing m_refCount
Definition: implbase1.hxx:108
ImplInheritanceHelper1(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4)
Definition: implbase1.hxx:182
Template C++ class representing an IDL sequence.
Definition: unotype.hxx:33
~ImplHelper1()
Definition: implbase1.hxx:82
virtual com::sun::star::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase1.hxx:112
virtual com::sun::star::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase1.hxx:76
ImplInheritanceHelper1(T1 const &arg1, T2 const &arg2)
Definition: implbase1.hxx:175
virtual void acquire() SAL_OVERRIDE
increasing m_refCount
Definition: implbase1.hxx:106
virtual com::sun::star::uno::Any queryAggregation(com::sun::star::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase1.hxx:270
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 com::sun::star::uno::Any queryInterface(com::sun::star::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase1.hxx:200
virtual com::sun::star::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase1.hxx:146
virtual com::sun::star::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase1.hxx:213
#define SAL_OVERRIDE
C++11 "override" feature.
Definition: types.h:423
virtual void acquire() SAL_OVERRIDE
Definition: implbase1.hxx:277
virtual com::sun::star::uno::Sequence< com::sun::star::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase1.hxx:144
AggImplInheritanceHelper1()
Definition: implbase1.hxx:267
AggImplInheritanceHelper1(T1 const &arg1, T2 const &arg2)
Definition: implbase1.hxx:243
virtual void acquire() SAL_OVERRIDE
increasing m_refCount
signed char sal_Int8
Definition: types.h:51
virtual com::sun::star::uno::Sequence< com::sun::star::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase1.hxx:281
ImplInheritanceHelper1()
Definition: implbase1.hxx:199
virtual void acquire() SAL_OVERRIDE
Definition: implbase1.hxx:207
virtual void release() SAL_OVERRIDE
If a delegator is set, then the delegators gets released.
Definition: implbase1.hxx:142
Definition: Enterable.hxx:26
ImplInheritanceHelper1(T1 const &arg1)
Definition: implbase1.hxx:173
C++ class representing an IDL any.
Definition: Any.h:46
ImplInheritanceHelper1(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5)
Definition: implbase1.hxx:187
Implementation helper implementing interface com::sun::star::lang::XTypeProvider and method XInterfac...
Definition: implbase1.hxx:66
Implementation helper implementing interfaces com::sun::star::lang::XTypeProvider and com::sun::star:...
Definition: implbase1.hxx:166
virtual com::sun::star::uno::Sequence< com::sun::star::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase1.hxx:74
virtual com::sun::star::uno::Any queryInterface(com::sun::star::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase1.hxx:136
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::Any queryInterface(com::sun::star::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase1.hxx:268
Base class to implement an UNO object supporting weak references, i.e.
Definition: weak.hxx:43
Helper class for a late-initialized static aggregate, e.g.
Definition: instance.hxx:542
AggImplInheritanceHelper1(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5, T6 const &arg6)
Definition: implbase1.hxx:262
virtual com::sun::star::uno::Any queryAggregation(com::sun::star::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase1.hxx:138
AggImplInheritanceHelper1(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4)
Definition: implbase1.hxx:250
virtual void release() SAL_OVERRIDE
decreasing m_refCount
ImplInheritanceHelper1(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5, T6 const &arg6)
Definition: implbase1.hxx:194
virtual com::sun::star::uno::Sequence< com::sun::star::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase1.hxx:211
virtual void release() SAL_OVERRIDE
Definition: implbase1.hxx:209
AggImplInheritanceHelper1(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5)
Definition: implbase1.hxx:255
virtual void acquire() SAL_OVERRIDE
If a delegator is set, then the delegators gets acquired.
Implementation helper implementing interfaces com::sun::star::lang::XTypeProvider and com::sun::star:...
Definition: implbase1.hxx:97
virtual void acquire() SAL_OVERRIDE
If a delegator is set, then the delegators gets acquired.
Definition: implbase1.hxx:140
AggImplInheritanceHelper1(T1 const &arg1)
Definition: implbase1.hxx:241