23#ifndef INCLUDED_CPPUHELPER_COMPBASE_EX_HXX
24#define INCLUDED_CPPUHELPER_COMPBASE_EX_HXX
27#include "com/sun/star/lang/XComponent.hpp"
34namespace osl {
class Mutex; }
35namespace cppu {
struct class_data; }
45 ,
public css::lang::XComponent
54 virtual void SAL_CALL disposing();
60 WeakComponentImplHelperBase( ::osl::Mutex & rMutex );
64 virtual ~WeakComponentImplHelperBase() SAL_OVERRIDE;
67 static
void * SAL_CALL operator new(
size_t nSize )
68 { return ::rtl_allocateMemory( nSize ); }
69 static void SAL_CALL
operator delete(
void * pMem )
70 { ::rtl_freeMemory( pMem ); }
71 static void * SAL_CALL
operator new( size_t,
void * pMem )
73 static void SAL_CALL
operator delete(
void *,
void * )
77 css::uno::Type
const & rType ) SAL_OVERRIDE;
78 virtual void SAL_CALL acquire()
79 SAL_NOEXCEPT SAL_OVERRIDE;
80 virtual
void SAL_CALL release()
81 SAL_NOEXCEPT SAL_OVERRIDE;
82 virtual
void SAL_CALL dispose() SAL_OVERRIDE;
83 virtual
void SAL_CALL addEventListener(
84 css::
uno::Reference< css::lang::XEventListener > const & xListener ) SAL_OVERRIDE;
85 virtual
void SAL_CALL removeEventListener(
86 css::
uno::Reference< css::lang::XEventListener > const & xListener ) SAL_OVERRIDE;
93 : public ::
cppu::OWeakAggObject
94 , public css::lang::XComponent
101 virtual void SAL_CALL disposing();
103 WeakAggComponentImplHelperBase( ::osl::Mutex & rMutex );
105 virtual ~WeakAggComponentImplHelperBase() SAL_OVERRIDE;
108 static
void * SAL_CALL operator new(
size_t nSize )
109 { return ::rtl_allocateMemory( nSize ); }
110 static void SAL_CALL
operator delete(
void * pMem )
111 { ::rtl_freeMemory( pMem ); }
112 static void * SAL_CALL
operator new( size_t,
void * pMem )
114 static void SAL_CALL
operator delete(
void *,
void * )
118 css::uno::Type
const & rType ) SAL_OVERRIDE;
119 virtual css::uno::Any SAL_CALL queryAggregation(
120 css::uno::Type
const & rType ) SAL_OVERRIDE;
121 virtual void SAL_CALL acquire()
122 SAL_NOEXCEPT SAL_OVERRIDE;
123 virtual
void SAL_CALL release()
124 SAL_NOEXCEPT SAL_OVERRIDE;
125 virtual
void SAL_CALL dispose() SAL_OVERRIDE;
126 virtual
void SAL_CALL addEventListener(
127 css::
uno::Reference< css::lang::XEventListener > const & xListener ) SAL_OVERRIDE;
128 virtual
void SAL_CALL removeEventListener(
129 css::
uno::Reference< css::lang::XEventListener > const & xListener ) SAL_OVERRIDE;
138 ::
cppu::WeakComponentImplHelperBase * pBase );
150 ::
cppu::WeakAggComponentImplHelperBase * pBase );
Base class to implement a UNO object supporting weak references, i.e.
#define CPPUHELPER_DLLPUBLIC
Any SAL_CALL WeakComponentImplHelper_query(Type const &rType, class_data *cd, void *that, WeakComponentImplHelperBase *pBase)
css::uno::Any SAL_CALL queryInterface(const css::uno::Type &rType, Interface1 *p1)
Compares demanded type to given template argument types.
Sequence< Type > SAL_CALL WeakAggComponentImplHelper_getTypes(class_data *cd)
Any SAL_CALL WeakAggComponentImplHelper_queryAgg(Type const &rType, class_data *cd, void *that, WeakAggComponentImplHelperBase *pBase)
Sequence< Type > SAL_CALL WeakComponentImplHelper_getTypes(class_data *cd)
This struct contains the standard variables of a broadcaster.