diff options
author | Thomas Benisch <tbe@openoffice.org> | 2002-05-17 14:29:11 +0000 |
---|---|---|
committer | Thomas Benisch <tbe@openoffice.org> | 2002-05-17 14:29:11 +0000 |
commit | 2b735db8db3efc8503fe6599f09f099e52db32d1 (patch) | |
tree | ff8f8861309b01ac691097cd6125cbc268f2fad5 /toolkit/source/awt/vclxaccessiblecomponent.cxx | |
parent | c707826d199c4bdb0bbcd35374f8a84baf236aa2 (diff) |
#97222# removed isShowing, isVisible, isFocusTraversable, addFocusListener, removeFocusListener
Diffstat (limited to 'toolkit/source/awt/vclxaccessiblecomponent.cxx')
-rw-r--r-- | toolkit/source/awt/vclxaccessiblecomponent.cxx | 50 |
1 files changed, 4 insertions, 46 deletions
diff --git a/toolkit/source/awt/vclxaccessiblecomponent.cxx b/toolkit/source/awt/vclxaccessiblecomponent.cxx index dfea0ef4917b..1c4a1ad37a01 100644 --- a/toolkit/source/awt/vclxaccessiblecomponent.cxx +++ b/toolkit/source/awt/vclxaccessiblecomponent.cxx @@ -2,9 +2,9 @@ * * $RCSfile: vclxaccessiblecomponent.cxx,v $ * - * $Revision: 1.13 $ + * $Revision: 1.14 $ * - * last change: $Author: fs $ $Date: 2002-05-08 15:44:41 $ + * last change: $Author: tbe $ $Date: 2002-05-17 15:27:59 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -576,54 +576,12 @@ awt::Point VCLXAccessibleComponent::getLocationOnScreen( ) throw (uno::RuntimeE return aPos; } -sal_Bool VCLXAccessibleComponent::isShowing() throw (uno::RuntimeException) -{ - OContextEntryGuard( this ); - - sal_Bool bShowing = sal_False; - if ( GetWindow() && GetWindow()->IsVisible() ) - bShowing = GetWindow()->IsReallyVisible(); // I hope IsReallyVisible is doing everything I need? - - return bShowing; -} - -sal_Bool VCLXAccessibleComponent::isVisible() throw (uno::RuntimeException) -{ - OContextEntryGuard( this ); - - sal_Bool bVisible = sal_False; - if ( GetWindow() ) - bVisible = GetWindow()->IsVisible(); - - return bVisible; -} - -sal_Bool VCLXAccessibleComponent::isFocusTraversable() throw (uno::RuntimeException) -{ - return FALSE; -} - -void VCLXAccessibleComponent::addFocusListener( const uno::Reference< awt::XFocusListener >& xListener ) throw (uno::RuntimeException) -{ - OContextEntryGuard( this ); - - if ( mxWindow.is() ) - mxWindow->addFocusListener( xListener ); -} - -void VCLXAccessibleComponent::removeFocusListener( const uno::Reference< awt::XFocusListener >& xListener ) throw (uno::RuntimeException) -{ - OContextEntryGuard( this ); - - if ( mxWindow.is() ) - mxWindow->removeFocusListener( xListener ); -} - void VCLXAccessibleComponent::grabFocus( ) throw (uno::RuntimeException) { OContextEntryGuard( this ); - if ( mxWindow.is() && isFocusTraversable() ) + uno::Reference< accessibility::XAccessibleStateSet > xStates = getAccessibleStateSet(); + if ( mxWindow.is() && xStates.is() && xStates->contains( accessibility::AccessibleStateType::FOCUSABLE ) ) mxWindow->setFocus(); } |