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