19 #ifndef INCLUDED_CPPUHELPER_COMPBASE1_HXX
20 #define INCLUDED_CPPUHELPER_COMPBASE1_HXX
30 #if defined __SUNPRO_CC
48 template<
class Ifc1 >
50 :
public WeakComponentImplHelperBase
51 ,
public ::com::sun::star::lang::XTypeProvider
54 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData1< Ifc1, WeakComponentImplHelper1< Ifc1 > > > {};
57 : WeakComponentImplHelperBase( rMutex )
60 {
return WeakComponentImplHelper_query( rType, cd::get(),
this, (WeakComponentImplHelperBase *)
this ); }
62 { WeakComponentImplHelperBase::acquire(); }
64 { WeakComponentImplHelperBase::release(); }
65 virtual void SAL_CALL
dispose()throw (::com::sun::star::uno::RuntimeException)
66 { WeakComponentImplHelperBase::dispose(); }
67 virtual void SAL_CALL
addEventListener(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener > & xListener)
throw (::com::sun::star::uno::RuntimeException)
68 { WeakComponentImplHelperBase::addEventListener(xListener); }
69 virtual void SAL_CALL
removeEventListener(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener > & xListener)
throw (::com::sun::star::uno::RuntimeException)
70 { WeakComponentImplHelperBase::removeEventListener(xListener); }
71 virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL
getTypes() throw (::com::sun::star::uno::RuntimeException)
72 {
return WeakComponentImplHelper_getTypes( cd::get() ); }
73 virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL
getImplementationId() throw (::com::sun::star::uno::RuntimeException)
74 {
return ImplHelper_getImplementationId( cd::get() ); }
77 #if defined __SUNPRO_CC
90 template<
class Ifc1 >
92 :
public WeakComponentImplHelperBase
93 ,
public ::com::sun::star::lang::XTypeProvider
96 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData1< Ifc1, PartialWeakComponentImplHelper1< Ifc1 > > > {};
99 : WeakComponentImplHelperBase( rMutex )
102 {
return WeakComponentImplHelper_query( rType, cd::get(),
this, (WeakComponentImplHelperBase *)
this ); }
104 { WeakComponentImplHelperBase::acquire(); }
106 { WeakComponentImplHelperBase::release(); }
107 virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL
getTypes() throw (::com::sun::star::uno::RuntimeException)
108 {
return WeakComponentImplHelper_getTypes( cd::get() ); }
109 virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL
getImplementationId() throw (::com::sun::star::uno::RuntimeException)
110 {
return ImplHelper_getImplementationId( cd::get() ); }
130 template<
class Ifc1 >
132 :
public WeakAggComponentImplHelperBase
133 ,
public ::com::sun::star::lang::XTypeProvider
136 struct cd :
public rtl::StaticAggregate< class_data, ImplClassData1< Ifc1, WeakAggComponentImplHelper1< Ifc1 > > > {};
139 : WeakAggComponentImplHelperBase( rMutex )
144 {
return WeakAggComponentImplHelper_queryAgg( rType, cd::get(),
this, (WeakAggComponentImplHelperBase *)
this ); }
146 { WeakAggComponentImplHelperBase::acquire(); }
148 { WeakAggComponentImplHelperBase::release(); }
149 virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL
getTypes() throw (::com::sun::star::uno::RuntimeException)
150 {
return WeakAggComponentImplHelper_getTypes( cd::get() ); }
151 virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL
getImplementationId() throw (::com::sun::star::uno::RuntimeException)
152 {
return ImplHelper_getImplementationId( cd::get() ); }
virtual void acquire()
Definition: compbase1.hxx:103
virtual void release()
Definition: compbase1.hxx:105
virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > getTypes()
Definition: compbase1.hxx:149
virtual ::com::sun::star::uno::Sequence< sal_Int8 > getImplementationId()
Definition: compbase1.hxx:73
virtual void acquire()
Definition: compbase1.hxx:145
Helper class for a late-initialized static aggregate, e.g.
Definition: instance.hxx:542
PartialWeakComponentImplHelper1(::osl::Mutex &rMutex)
Definition: compbase1.hxx:98
virtual void release()
Definition: compbase1.hxx:147
C++ class representing an IDL meta type.
Definition: Type.h:55
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::Any queryInterface(::com::sun::star::uno::Type const &rType)
Definition: compbase1.hxx:59
WeakComponentImplHelper1(::osl::Mutex &rMutex)
Definition: compbase1.hxx:56
#define SAL_NO_VTABLE
Use this for pure virtual classes, e.g.
Definition: types.h:315
virtual ::com::sun::star::uno::Any queryAggregation(::com::sun::star::uno::Type const &rType)
Definition: compbase1.hxx:143
virtual void acquire()
Definition: compbase1.hxx:61
Implementation helper supporting com::sun::star::lang::XTypeProvider and com::sun::star::lang::XCompo...
Definition: compbase1.hxx:49
Same as WeakComponentImplHelper1, except doesn't implement addEventListener, removeEventListener and ...
Definition: compbase1.hxx:91
virtual void addEventListener(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener > &xListener)
Definition: compbase1.hxx:67
virtual ::com::sun::star::uno::Any queryInterface(::com::sun::star::uno::Type const &rType)
Definition: compbase1.hxx:141
virtual ::com::sun::star::uno::Sequence< sal_Int8 > getImplementationId()
Definition: compbase1.hxx:109
A mutual exclusion synchronization object.
Definition: mutex.hxx:32
WeakAggComponentImplHelper1(::osl::Mutex &rMutex)
Definition: compbase1.hxx:138
virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > getTypes()
Definition: compbase1.hxx:107
Implementation helper supporting com::sun::star::lang::XTypeProvider and com::sun::star::lang::XCompo...
Definition: compbase1.hxx:131
virtual ::com::sun::star::uno::Any queryInterface(::com::sun::star::uno::Type const &rType)
Definition: compbase1.hxx:101
virtual void removeEventListener(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener > &xListener)
Definition: compbase1.hxx:69
virtual ::com::sun::star::uno::Sequence< sal_Int8 > getImplementationId()
Definition: compbase1.hxx:151
virtual void release()
Definition: compbase1.hxx:63
virtual void dispose()
Definition: compbase1.hxx:65
virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > getTypes()
Definition: compbase1.hxx:71