19 #ifndef INCLUDED_CPPUHELPER_COMPBASE2_HXX 20 #define INCLUDED_CPPUHELPER_COMPBASE2_HXX 42 template<
class Ifc1,
class Ifc2 >
44 :
public WeakComponentImplHelperBase
45 ,
public css::lang::XTypeProvider
46 ,
public Ifc1,
public Ifc2
48 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData2 < Ifc1, Ifc2, WeakComponentImplHelper2<Ifc1, Ifc2> > > {};
51 : WeakComponentImplHelperBase( rMutex )
54 {
return WeakComponentImplHelper_query( rType, cd::get(),
this, static_cast<WeakComponentImplHelperBase *>(
this) ); }
56 { WeakComponentImplHelperBase::acquire(); }
58 { WeakComponentImplHelperBase::release(); }
60 { WeakComponentImplHelperBase::dispose(); }
62 { WeakComponentImplHelperBase::addEventListener(xListener); }
64 { WeakComponentImplHelperBase::removeEventListener(xListener); }
66 {
return WeakComponentImplHelper_getTypes( cd::get() ); }
68 {
return ImplHelper_getImplementationId( cd::get() ); }
80 template<
class Ifc1,
class Ifc2 >
82 :
public WeakComponentImplHelperBase
83 ,
public css::lang::XTypeProvider
84 ,
public Ifc1,
public Ifc2
86 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData2 < Ifc1, Ifc2, PartialWeakComponentImplHelper2<Ifc1, Ifc2> > > {};
89 : WeakComponentImplHelperBase( rMutex )
92 {
return WeakComponentImplHelper_query( rType, cd::get(),
this, static_cast<WeakComponentImplHelperBase *>(
this) ); }
94 { WeakComponentImplHelperBase::acquire(); }
96 { WeakComponentImplHelperBase::release(); }
98 {
return WeakComponentImplHelper_getTypes( cd::get() ); }
100 {
return ImplHelper_getImplementationId( cd::get() ); }
121 template<
class Ifc1,
class Ifc2 >
123 :
public WeakAggComponentImplHelperBase
124 ,
public css::lang::XTypeProvider
125 ,
public Ifc1,
public Ifc2
127 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData2 < Ifc1, Ifc2, WeakAggComponentImplHelper2<Ifc1, Ifc2> > > {};
130 : WeakAggComponentImplHelperBase( rMutex )
135 {
return WeakAggComponentImplHelper_queryAgg( rType, cd::get(),
this, static_cast<WeakAggComponentImplHelperBase *>(
this) ); }
137 { WeakAggComponentImplHelperBase::acquire(); }
139 { WeakAggComponentImplHelperBase::release(); }
141 {
return WeakAggComponentImplHelper_getTypes( cd::get() ); }
143 {
return ImplHelper_getImplementationId( cd::get() ); }
css::uno::Any queryInterface(const css::uno::Type &rType, Interface1 *p1)
Compares demanded type to given template argument types.
Definition: queryinterface.hxx:39
#define SAL_OVERRIDE
C++11 "override" feature.
Definition: types.h:409
#define SAL_NO_VTABLE
Use this for pure virtual classes, e.g.
Definition: types.h:312
virtual void acquire() SAL_OVERRIDE
Definition: compbase2.hxx:55
virtual void dispose() SAL_OVERRIDE
Definition: compbase2.hxx:59
virtual void removeEventListener(const css::uno::Reference< css::lang::XEventListener > &xListener) SAL_OVERRIDE
Definition: compbase2.hxx:63
virtual void addEventListener(const css::uno::Reference< css::lang::XEventListener > &xListener) SAL_OVERRIDE
Definition: compbase2.hxx:61
virtual void release() SAL_OVERRIDE
Definition: compbase2.hxx:57
virtual void release() SAL_OVERRIDE
Definition: compbase2.hxx:138
Implementation helper supporting css::lang::XTypeProvider and css::lang::XComponent.
Definition: compbase2.hxx:43
virtual css::uno::Any queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
Definition: compbase2.hxx:53
virtual void acquire() SAL_OVERRIDE
Definition: compbase2.hxx:93
Helper class for a late-initialized static aggregate, e.g.
Definition: instance.hxx:544
PartialWeakComponentImplHelper2(::osl::Mutex &rMutex)
Definition: compbase2.hxx:88
A mutual exclusion synchronization object.
Definition: mutex.hxx:31
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: compbase2.hxx:140
virtual void acquire() SAL_OVERRIDE
Definition: compbase2.hxx:136
Definition: Enterable.hxx:26
Same as WeakComponentImplHelper2, except doesn't implement addEventListener, removeEventListener and ...
Definition: compbase2.hxx:81
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: compbase2.hxx:67
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: compbase2.hxx:99
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: compbase2.hxx:65
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: compbase2.hxx:97
Implementation helper supporting css::lang::XTypeProvider and css::lang::XComponent.
Definition: compbase2.hxx:122
WeakAggComponentImplHelper2(::osl::Mutex &rMutex)
Definition: compbase2.hxx:129
virtual css::uno::Any queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
Definition: compbase2.hxx:132
virtual css::uno::Any queryAggregation(css::uno::Type const &rType) SAL_OVERRIDE
Definition: compbase2.hxx:134
WeakComponentImplHelper2(::osl::Mutex &rMutex)
Definition: compbase2.hxx:50
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: compbase2.hxx:142
virtual css::uno::Any queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
Definition: compbase2.hxx:91
virtual void release() SAL_OVERRIDE
Definition: compbase2.hxx:95