00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef _CPPUHELPER_COMPONENT_HXX_
00020 #define _CPPUHELPER_COMPONENT_HXX_
00021
00022 #include <osl/mutex.hxx>
00023 #include <cppuhelper/weakagg.hxx>
00024 #include <cppuhelper/interfacecontainer.hxx>
00025
00026 #include <cppuhelper/implbase1.hxx>
00027
00028 #include <com/sun/star/lang/XComponent.hpp>
00029 #include <com/sun/star/lang/XEventListener.hpp>
00030
00031 #include "cppuhelperdllapi.h"
00032
00033 namespace cppu
00034 {
00035
00045 class CPPUHELPER_DLLPUBLIC OComponentHelper
00046 : public ::cppu::OWeakAggObject
00047 , public ::com::sun::star::lang::XTypeProvider
00048 , public ::com::sun::star::lang::XComponent
00049 {
00050 public:
00057 OComponentHelper( ::osl::Mutex & rMutex ) SAL_THROW(());
00060 virtual ~OComponentHelper() SAL_THROW( (::com::sun::star::uno::RuntimeException) );
00061
00062
00063 virtual ::com::sun::star::uno::Any SAL_CALL queryInterface(
00064 ::com::sun::star::uno::Type const & rType )
00065 throw (::com::sun::star::uno::RuntimeException);
00066 virtual ::com::sun::star::uno::Any SAL_CALL queryAggregation(
00067 ::com::sun::star::uno::Type const & rType )
00068 throw (::com::sun::star::uno::RuntimeException);
00069 virtual void SAL_CALL acquire()
00070 throw ();
00071 virtual void SAL_CALL release()
00072 throw ();
00073
00077 virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId()
00078 throw(::com::sun::star::uno::RuntimeException) = 0;
00082 virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes()
00083 throw (::com::sun::star::uno::RuntimeException);
00084
00085
00086 virtual void SAL_CALL dispose()
00087 throw(::com::sun::star::uno::RuntimeException);
00088 virtual void SAL_CALL addEventListener(
00089 const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& aListener )
00090 throw(::com::sun::star::uno::RuntimeException);
00091 virtual void SAL_CALL removeEventListener(
00092 const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& aListener )
00093 throw(::com::sun::star::uno::RuntimeException);
00094
00095 protected:
00098 virtual void SAL_CALL disposing();
00099
00101 OBroadcastHelper rBHelper;
00103
00104 private:
00105 inline OComponentHelper( const OComponentHelper & ) SAL_THROW(());
00106 inline OComponentHelper & operator = ( const OComponentHelper & ) SAL_THROW(());
00107 };
00108
00109 }
00110
00111 #endif
00112
00113