3 #ifndef INCLUDED_CPPUHELPER_COMPBASE1_HXX
4 #define INCLUDED_CPPUHELPER_COMPBASE1_HXX
26 template<
class Ifc1 >
28 :
public WeakComponentImplHelperBase
29 ,
public css::lang::XTypeProvider
32 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData1< Ifc1, WeakComponentImplHelper1< Ifc1 > > > {};
35 : WeakComponentImplHelperBase( rMutex )
38 {
return WeakComponentImplHelper_query( rType, cd::get(),
this, static_cast<WeakComponentImplHelperBase *>(
this) ); }
40 { WeakComponentImplHelperBase::acquire(); }
42 { WeakComponentImplHelperBase::release(); }
44 { WeakComponentImplHelperBase::dispose(); }
46 { WeakComponentImplHelperBase::addEventListener(xListener); }
48 { WeakComponentImplHelperBase::removeEventListener(xListener); }
50 {
return WeakComponentImplHelper_getTypes( cd::get() ); }
52 {
return ImplHelper_getImplementationId( cd::get() ); }
64 template<
class Ifc1 >
66 :
public WeakComponentImplHelperBase
67 ,
public css::lang::XTypeProvider
70 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData1< Ifc1, PartialWeakComponentImplHelper1< Ifc1 > > > {};
73 : WeakComponentImplHelperBase( rMutex )
76 {
return WeakComponentImplHelper_query( rType, cd::get(),
this, static_cast<WeakComponentImplHelperBase *>(
this) ); }
78 { WeakComponentImplHelperBase::acquire(); }
80 { WeakComponentImplHelperBase::release(); }
82 {
return WeakComponentImplHelper_getTypes( cd::get() ); }
84 {
return ImplHelper_getImplementationId( cd::get() ); }
104 template<
class Ifc1 >
106 :
public WeakAggComponentImplHelperBase
107 ,
public css::lang::XTypeProvider
110 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData1< Ifc1, WeakAggComponentImplHelper1< Ifc1 > > > {};
113 : WeakAggComponentImplHelperBase( rMutex )
118 {
return WeakAggComponentImplHelper_queryAgg( rType, cd::get(),
this, static_cast<WeakAggComponentImplHelperBase *>(
this) ); }
120 { WeakAggComponentImplHelperBase::acquire(); }
122 { WeakAggComponentImplHelperBase::release(); }
124 {
return WeakAggComponentImplHelper_getTypes( cd::get() ); }
126 {
return ImplHelper_getImplementationId( cd::get() ); }
virtual css::uno::Any queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
Definition: compbase1.hxx:37
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: compbase1.hxx:83
Implementation helper supporting css::lang::XTypeProvider and css::lang::XComponent.
Definition: compbase1.hxx:27
virtual css::uno::Any queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
Definition: compbase1.hxx:115
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: compbase1.hxx:125
virtual css::uno::Sequence< sal_Int8 > getImplementationId() SAL_OVERRIDE
Definition: compbase1.hxx:51
WeakComponentImplHelper1(::osl::Mutex &rMutex) SAL_NOEXCEPT
Definition: compbase1.hxx:34
PartialWeakComponentImplHelper1(::osl::Mutex &rMutex) SAL_NOEXCEPT
Definition: compbase1.hxx:72
Helper class for a late-initialized static aggregate, e.g.
Definition: instance.hxx:528
css::uno::Any queryInterface(const css::uno::Type &rType, Interface1 *p1)
Compares demanded type to given template argument types.
Definition: queryinterface.hxx:23
virtual css::uno::Any queryAggregation(css::uno::Type const &rType) SAL_OVERRIDE
Definition: compbase1.hxx:117
Implementation helper supporting css::lang::XTypeProvider and css::lang::XComponent.
Definition: compbase1.hxx:105
virtual void acquire() SAL_NOEXCEPT SAL_OVERRIDE
Definition: compbase1.hxx:119
#define SAL_NOEXCEPT
Macro for C++11 "noexcept" vs.
Definition: types.h:396
virtual void dispose() SAL_OVERRIDE
Definition: compbase1.hxx:43
#define SAL_NO_VTABLE
Use this for pure virtual classes, e.g.
Definition: types.h:274
A mutual exclusion synchronization object.
Definition: mutex.hxx:15
virtual void release() SAL_NOEXCEPT SAL_OVERRIDE
Definition: compbase1.hxx:121
virtual void release() SAL_NOEXCEPT SAL_OVERRIDE
Definition: compbase1.hxx:41
Same as WeakComponentImplHelper1, except doesn't implement addEventListener, removeEventListener and ...
Definition: compbase1.hxx:65
virtual void addEventListener(const css::uno::Reference< css::lang::XEventListener > &xListener) SAL_OVERRIDE
Definition: compbase1.hxx:45
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: compbase1.hxx:81
virtual css::uno::Any queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
Definition: compbase1.hxx:75
WeakAggComponentImplHelper1(::osl::Mutex &rMutex) SAL_NOEXCEPT
Definition: compbase1.hxx:112
virtual void release() SAL_NOEXCEPT SAL_OVERRIDE
Definition: compbase1.hxx:79
#define SAL_OVERRIDE
C++11 "override" feature.
Definition: types.h:371
virtual void removeEventListener(const css::uno::Reference< css::lang::XEventListener > &xListener) SAL_OVERRIDE
Definition: compbase1.hxx:47
virtual void acquire() SAL_NOEXCEPT SAL_OVERRIDE
Definition: compbase1.hxx:39
virtual void acquire() SAL_NOEXCEPT SAL_OVERRIDE
Definition: compbase1.hxx:77
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: compbase1.hxx:49
virtual css::uno::Sequence< css::uno::Type > getTypes() SAL_OVERRIDE
Definition: compbase1.hxx:123