diff options
author | Michael Stahl <mstahl@redhat.com> | 2013-11-19 17:24:36 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2013-11-19 17:32:21 +0100 |
commit | 03fdec57762b287cb8e0b6b446f5e7ba1b187f88 (patch) | |
tree | 8504f32119aac162bc5370e6312c822739656b32 /winaccessibility/inc/AccEventListener.hxx | |
parent | 76ff4c5366fd89f2736dfc7b58d5a38e43ad7062 (diff) |
winaccessibility: use WeakImplHelper
Change-Id: I5872e520ca009a0f9277827d72e72befe3323a06
Diffstat (limited to 'winaccessibility/inc/AccEventListener.hxx')
-rw-r--r-- | winaccessibility/inc/AccEventListener.hxx | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/winaccessibility/inc/AccEventListener.hxx b/winaccessibility/inc/AccEventListener.hxx index 5978dddddd43..263e525b9137 100644 --- a/winaccessibility/inc/AccEventListener.hxx +++ b/winaccessibility/inc/AccEventListener.hxx @@ -22,7 +22,9 @@ #include <com/sun/star/accessibility/XAccessibleEventListener.hpp> #include <com/sun/star/accessibility/XAccessible.hpp> -#include <cppuhelper/weak.hxx> + +#include <cppuhelper/implbase1.hxx> + #include <osl/mutex.hxx> class AccObjectManagerAgent; @@ -32,12 +34,10 @@ using namespace ::com::sun::star::uno; * procedure of all the event handling and provides the basic support for some simple * methods. */ -class AccEventListener: - public com::sun::star::accessibility::XAccessibleEventListener, - public ::cppu::OWeakObject +class AccEventListener + : public ::cppu::WeakImplHelper1< + com::sun::star::accessibility::XAccessibleEventListener> { -private: - oslInterlockedCount m_refcount; protected: //accessible owner's pointer com::sun::star::accessibility::XAccessible* pAccessible; @@ -74,9 +74,6 @@ public: //for interface virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw (::com::sun::star::uno::RuntimeException); - virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& aType ) throw (::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL acquire() throw (); - virtual void SAL_CALL release() throw (); //get the accessible role of pAccessible virtual short SAL_CALL getRole(); //get the accessible parent's role |