diff options
author | Michael Stahl <mstahl@redhat.com> | 2015-04-25 19:23:12 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-04-25 22:45:52 +0200 |
commit | 1d2244ecac353c227c6001d9a2e326d42b1116b0 (patch) | |
tree | 79de64fbc770f837f57d905194e4b89040f306de /sw/source/core/access/accdoc.cxx | |
parent | 8c7928b647c49e7bb4a6d0ee46a1d5bc90f168b5 (diff) |
sw: remove SwAccessibleDocument XEventListener buggy dead code
This was added with IA2, but evidently it's dead - the listener is never
registered at the broadcaster. Also the first of the events it is
listening for does not exist, and the others are actually called
"OnLoadFinished" and "OnLayoutFinished".
Also remove the "isIfAsynLoad" [sic] member.
Change-Id: Ib261c193289e415af91b3097c525e90ef051f824
Diffstat (limited to 'sw/source/core/access/accdoc.cxx')
-rw-r--r-- | sw/source/core/access/accdoc.cxx | 45 |
1 files changed, 1 insertions, 44 deletions
diff --git a/sw/source/core/access/accdoc.cxx b/sw/source/core/access/accdoc.cxx index 0e334716c7cb..765ce5fb654d 100644 --- a/sw/source/core/access/accdoc.cxx +++ b/sw/source/core/access/accdoc.cxx @@ -465,12 +465,6 @@ uno::Any SwAccessibleDocument::queryInterface( uno::Reference<XAccessibleSelection> aSelect = this; aRet <<= aSelect; } - //Add XEventListener interface support. - else if ( (rType == cppu::UnoType<com::sun::star::document::XEventListener>::get()) ) - { - uno::Reference<com::sun::star::document::XEventListener> aSelect = this; - aRet <<= aSelect; - } else if ( rType == cppu::UnoType<XAccessibleExtendedAttributes>::get()) { uno::Reference<XAccessibleExtendedAttributes> aAttribute = this; @@ -494,13 +488,10 @@ uno::Sequence< uno::Type > SAL_CALL SwAccessibleDocument::getTypes() sal_Int32 nIndex = aTypes.getLength(); //Reset types memory alloc - //aTypes.realloc( nIndex + 1 ); - aTypes.realloc( nIndex + 2 ); + aTypes.realloc( nIndex + 1 ); uno::Type* pTypes = aTypes.getArray(); pTypes[nIndex] = cppu::UnoType<XAccessibleSelection>::get(); - //Add XEventListener interface support. - pTypes[nIndex + 1 ] = cppu::UnoType<com::sun::star::document::XEventListener>::get(); return aTypes; } @@ -562,40 +553,6 @@ void SwAccessibleDocument::deselectAccessibleChild( maSelectionHelper.deselectAccessibleChild( nChildIndex ); } -//Implement XEventListener interfaces -void SAL_CALL SwAccessibleDocument::notifyEvent( const ::com::sun::star::document::EventObject& Event ) - throw (::com::sun::star::uno::RuntimeException, std::exception) -{ - SolarMutexGuard g; - - if ( Event.EventName == "FirstPageShows" ) - { - FireStateChangedEvent( AccessibleStateType::FOCUSED,true ); - } - else if ( Event.EventName == "LoadFinished" ) - { - // IA2 CWS. MT: OFFSCREEN == !SHOWING, should stay consistent - // FireStateChangedEvent( AccessibleStateType::OFFSCREEN,true ); - // MT: LoadFinished => Why not SHOWING == TRUE? - FireStateChangedEvent( AccessibleStateType::SHOWING,false ); - } - else if ( Event.EventName == "FormatFinished" ) - { - FireStateChangedEvent( AccessibleStateType::BUSY,false ); - // FireStateChangedEvent( AccessibleStateType::OFFSCREEN,false ); - FireStateChangedEvent( AccessibleStateType::SHOWING,true ); - } - else - { - isIfAsynLoad = false; - } -} - -void SAL_CALL SwAccessibleDocument::disposing( const ::com::sun::star::lang::EventObject& ) - throw (::com::sun::star::uno::RuntimeException, std::exception) -{ -} - uno::Any SAL_CALL SwAccessibleDocument::getExtendedAttributes() throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException, |