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 CPPUHELPER_DETAIL_TYPEENTRY(Ifc1),
48 CPPUHELPER_DETAIL_TYPEENTRY(Ifc2),
49 CPPUHELPER_DETAIL_TYPEENTRY(css::lang::XTypeProvider)
52 return reinterpret_cast< class_data *
>(&s_cd);
66 template<
class Ifc1,
class Ifc2 >
68 :
public css::lang::XTypeProvider
69 ,
public Ifc1,
public Ifc2
71 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData2 < Ifc1, Ifc2, ImplHelper2<Ifc1, Ifc2> > > {};
73 virtual css::uno::Any SAL_CALL
queryInterface( css::uno::Type
const & rType )
throw (css::uno::RuntimeException, std::exception)
SAL_OVERRIDE 74 {
return ImplHelper_query( rType, cd::get(),
this ); }
75 virtual css::uno::Sequence< css::uno::Type > SAL_CALL
getTypes() throw (
css::uno::RuntimeException, std::exception)
SAL_OVERRIDE 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 css::lang::XTypeProvider
97 ,
public Ifc1,
public Ifc2
99 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData2 < Ifc1, Ifc2, WeakImplHelper2<Ifc1, Ifc2> > > {};
101 virtual css::uno::Any SAL_CALL
queryInterface( css::uno::Type
const & rType )
throw (css::uno::RuntimeException, std::exception)
SAL_OVERRIDE 102 {
return WeakImplHelper_query( rType, cd::get(),
this, static_cast<OWeakObject *>(
this) ); }
107 virtual css::uno::Sequence< css::uno::Type > SAL_CALL
getTypes() throw (
css::uno::RuntimeException, std::exception)
SAL_OVERRIDE 108 {
return WeakImplHelper_getTypes( cd::get() ); }
110 {
return ImplHelper_getImplementationId( cd::get() ); }
125 template<
class Ifc1,
class Ifc2 >
128 ,
public css::lang::XTypeProvider
129 ,
public Ifc1,
public Ifc2
131 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData2 < Ifc1, Ifc2, WeakAggImplHelper2<Ifc1, Ifc2> > > {};
133 virtual css::uno::Any SAL_CALL
queryInterface( css::uno::Type
const & rType )
throw (css::uno::RuntimeException, std::exception)
SAL_OVERRIDE 136 {
return WeakAggImplHelper_queryAgg( rType, cd::get(),
this, static_cast<OWeakAggObject *>(
this) ); }
141 virtual css::uno::Sequence< css::uno::Type > SAL_CALL
getTypes() throw (
css::uno::RuntimeException, std::exception)
SAL_OVERRIDE 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) {}
197 virtual css::uno::Any SAL_CALL
queryInterface( css::uno::Type
const & rType )
throw (css::uno::RuntimeException, std::exception)
SAL_OVERRIDE 199 css::uno::Any aRet( ImplHelper_queryNoXInterface( rType, cd::get(),
this ) );
205 { BaseClass::acquire(); }
207 { BaseClass::release(); }
208 virtual css::uno::Sequence< css::uno::Type > SAL_CALL
getTypes() throw (
css::uno::RuntimeException, std::exception)
SAL_OVERRIDE 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) {}
269 css::uno::Any aRet( ImplHelper_queryNoXInterface( rType, cd::get(),
this ) );
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() ); }
ImplInheritanceHelper2(T1 const &arg1)
Definition: implbase2.hxx:170
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase2.hxx:77
virtual void release() SAL_OVERRIDE
decreasing m_refCount
Definition: implbase2.hxx:105
virtual css::uno::Any queryAggregation(css::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase2.hxx:135
Base class to implement an UNO object supporting weak references, i.e.
Definition: weak.hxx:43
Implementation helper implementing interfaces css::lang::XTypeProvider and css::uno::XInterface which...
Definition: implbase2.hxx:126
ImplInheritanceHelper2()
Definition: implbase2.hxx:196
Definition: Enterable.hxx:26
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase2.hxx:141
Helper class for a late-initialized static aggregate, e.g.
Definition: instance.hxx:546
AggImplInheritanceHelper2(T1 const &arg1, T2 const &arg2)
Definition: implbase2.hxx:240
virtual void acquire() SAL_OVERRIDE
If a delegator is set, then the delegators gets acquired.
virtual css::uno::Any queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase2.hxx:101
~ImplHelper2()
Definition: implbase2.hxx:83
css::uno::Any queryInterface(const css::uno::Type &rType, Interface1 *p1)
Compares demanded type to given template argument types.
Definition: queryinterface.hxx:39
virtual void acquire() SAL_OVERRIDE
increasing m_refCount
virtual void release() SAL_OVERRIDE
Definition: implbase2.hxx:276
#define SAL_OVERRIDE
C++11 "override" feature.
Definition: types.h:421
Base class to implement an UNO object supporting weak references, i.e.
Definition: weakagg.hxx:41
Implementation helper implementing interfaces css::lang::XTypeProvider and css::uno::XInterface inher...
Definition: implbase2.hxx:231
virtual css::uno::Any queryInterface(const css::uno::Type &rType) SAL_OVERRIDE
If a delegator is set, then the delegator is queried for the demanded interface.
unsigned char sal_Bool
Definition: types.h:48
AggImplInheritanceHelper2(T1 const &arg1, T2 const &arg2, T3 const &arg3)
Definition: implbase2.hxx:243
virtual css::uno::Any queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase2.hxx:73
ImplInheritanceHelper2(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4)
Definition: implbase2.hxx:179
AggImplInheritanceHelper2(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5)
Definition: implbase2.hxx:252
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase2.hxx:210
AggImplInheritanceHelper2(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5, T6 const &arg6)
Definition: implbase2.hxx:259
virtual void acquire() SAL_OVERRIDE
Definition: implbase2.hxx:204
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase2.hxx:278
AggImplInheritanceHelper2(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4)
Definition: implbase2.hxx:247
ImplInheritanceHelper2(T1 const &arg1, T2 const &arg2, T3 const &arg3)
Definition: implbase2.hxx:175
virtual css::uno::Any queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase2.hxx:133
Implementation helper implementing interfaces css::lang::XTypeProvider and css::uno::XInterface inher...
Definition: implbase2.hxx:163
signed char sal_Int8
Definition: types.h:53
#define SAL_NO_VTABLE
Use this for pure virtual classes, e.g.
Definition: types.h:333
#define sal_False
Definition: types.h:49
virtual void release() SAL_OVERRIDE
decreasing m_refCount
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase2.hxx:109
virtual void release() SAL_OVERRIDE
If a delegator is set, then the delegators gets released.
Definition: implbase2.hxx:139
Implementation helper implementing interfaces css::lang::XTypeProvider and css::uno::XInterface which...
Definition: implbase2.hxx:94
ImplInheritanceHelper2(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5, T6 const &arg6)
Definition: implbase2.hxx:191
ImplInheritanceHelper2(T1 const &arg1, T2 const &arg2)
Definition: implbase2.hxx:172
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase2.hxx:143
AggImplInheritanceHelper2()
Definition: implbase2.hxx:264
AggImplInheritanceHelper2(T1 const &arg1)
Definition: implbase2.hxx:238
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: implbase2.hxx:280
virtual void acquire() SAL_OVERRIDE
increasing m_refCount
Definition: implbase2.hxx:103
virtual void acquire() SAL_OVERRIDE
If a delegator is set, then the delegators gets acquired.
Definition: implbase2.hxx:137
virtual css::uno::Any queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase2.hxx:197
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase2.hxx:107
virtual void release() SAL_OVERRIDE
Definition: implbase2.hxx:206
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase2.hxx:75
Implementation helper implementing interface css::lang::XTypeProvider and queryInterface(), but no reference counting.
Definition: implbase2.hxx:67
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: implbase2.hxx:208
virtual void release() SAL_OVERRIDE
If a delegator is set, then the delegators gets released.
ImplInheritanceHelper2(T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5)
Definition: implbase2.hxx:184
virtual css::uno::Any queryAggregation(css::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase2.hxx:267
virtual void acquire() SAL_OVERRIDE
Definition: implbase2.hxx:274
virtual css::uno::Any queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
Definition: implbase2.hxx:265