diff options
author | Thomas Benisch <tbe@openoffice.org> | 2002-11-22 13:03:05 +0000 |
---|---|---|
committer | Thomas Benisch <tbe@openoffice.org> | 2002-11-22 13:03:05 +0000 |
commit | bc30fd8541a770867dfbf7b98503722f43077ad9 (patch) | |
tree | 6e03e3bd6a96da5dca1358c121673532111c020a /toolkit | |
parent | 88e5002551889f26255a40b80c89301789b6d2a6 (diff) |
#105058# make NotifyAccessibleEvent virtual
Diffstat (limited to 'toolkit')
-rw-r--r-- | toolkit/inc/toolkit/awt/vclxaccessiblecomponent.hxx | 7 | ||||
-rw-r--r-- | toolkit/source/awt/vclxaccessiblecomponent.cxx | 15 |
2 files changed, 14 insertions, 8 deletions
diff --git a/toolkit/inc/toolkit/awt/vclxaccessiblecomponent.hxx b/toolkit/inc/toolkit/awt/vclxaccessiblecomponent.hxx index 6d0eec525b0a..f313d3e861ed 100644 --- a/toolkit/inc/toolkit/awt/vclxaccessiblecomponent.hxx +++ b/toolkit/inc/toolkit/awt/vclxaccessiblecomponent.hxx @@ -2,9 +2,9 @@ * * $RCSfile: vclxaccessiblecomponent.hxx,v $ * - * $Revision: 1.18 $ + * $Revision: 1.19 $ * - * last change: $Author: tbe $ $Date: 2002-11-06 15:14:42 $ + * last change: $Author: tbe $ $Date: 2002-11-22 14:01:37 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -143,6 +143,9 @@ protected: ::com::sun::star::uno::Reference< ::drafts::com::sun::star::accessibility::XAccessible > GetChildAccessible( const VclWindowEvent& rVclWindowEvent ) const; + // OAccessibleContextHelper + virtual void SAL_CALL NotifyAccessibleEvent( const sal_Int16 _nEventId, const ::com::sun::star::uno::Any& _rOldValue, const ::com::sun::star::uno::Any& _rNewValue ); + public: VCLXAccessibleComponent( VCLXWindow* pVCLXindow ); ~VCLXAccessibleComponent(); diff --git a/toolkit/source/awt/vclxaccessiblecomponent.cxx b/toolkit/source/awt/vclxaccessiblecomponent.cxx index 89e21704e141..d4a808ea373d 100644 --- a/toolkit/source/awt/vclxaccessiblecomponent.cxx +++ b/toolkit/source/awt/vclxaccessiblecomponent.cxx @@ -2,9 +2,9 @@ * * $RCSfile: vclxaccessiblecomponent.cxx,v $ * - * $Revision: 1.37 $ + * $Revision: 1.38 $ * - * last change: $Author: tbe $ $Date: 2002-11-20 16:56:19 $ + * last change: $Author: tbe $ $Date: 2002-11-22 14:03:05 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -216,9 +216,7 @@ IMPL_LINK( VCLXAccessibleComponent, WindowEventListener, VclSimpleEvent*, pEvent DBG_ASSERT( ((VclWindowEvent*)pEvent)->GetWindow(), "Window???" ); if( !((VclWindowEvent*)pEvent)->GetWindow()->IsAccessibilityEventsSuppressed() || ( pEvent->GetId() == VCLEVENT_OBJECT_DYING ) ) { - ULONG nCount = Application::ReleaseSolarMutex(); ProcessWindowEvent( *(VclWindowEvent*)pEvent ); - Application::AcquireSolarMutex( nCount ); } } return 0; @@ -237,9 +235,7 @@ IMPL_LINK( VCLXAccessibleComponent, WindowChildEventListener, VclSimpleEvent*, p // #103087# to prevent an early release of the component uno::Reference< accessibility::XAccessibleContext > xTmp = this; - ULONG nCount = Application::ReleaseSolarMutex(); ProcessWindowChildEvent( *(VclWindowEvent*)pEvent ); - Application::AcquireSolarMutex( nCount ); } } return 0; @@ -424,6 +420,13 @@ void VCLXAccessibleComponent::ProcessWindowEvent( const VclWindowEvent& rVclWind } } +void VCLXAccessibleComponent::NotifyAccessibleEvent( const sal_Int16 _nEventId, const uno::Any& _rOldValue, const uno::Any& _rNewValue ) +{ + ULONG nCount = Application::ReleaseSolarMutex(); + AccessibleExtendedComponentHelper_BASE::NotifyAccessibleEvent( _nEventId, _rOldValue, _rNewValue ); + Application::AcquireSolarMutex( nCount ); +} + void VCLXAccessibleComponent::disposing() { if ( mpVCLXindow && mpVCLXindow->GetWindow() ) |