summaryrefslogtreecommitdiffstats
path: root/vcl/source/window/tabpage.cxx
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2003-06-12 06:51:42 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2003-06-12 06:51:42 +0000
commit854a684a1fec765fbbf26cad7387cc5a80cba2c6 (patch)
treed5580f720c8e78a50c3719c494aff6433bc8fa7e /vcl/source/window/tabpage.cxx
parentINTEGRATION: CWS uaa04 (1.95.8); FILE MERGED (diff)
downloadcore-854a684a1fec765fbbf26cad7387cc5a80cba2c6.tar.gz
core-854a684a1fec765fbbf26cad7387cc5a80cba2c6.zip
INTEGRATION: CWS uaa04 (1.5.32); FILE MERGED
2003/06/02 15:58:01 tbe 1.5.32.1: #109460# changed implementation for accessible tab control and tab page
Diffstat (limited to 'vcl/source/window/tabpage.cxx')
-rw-r--r--vcl/source/window/tabpage.cxx33
1 files changed, 4 insertions, 29 deletions
diff --git a/vcl/source/window/tabpage.cxx b/vcl/source/window/tabpage.cxx
index 7940ebcfd0b7..a34d28b76650 100644
--- a/vcl/source/window/tabpage.cxx
+++ b/vcl/source/window/tabpage.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: tabpage.cxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: vg $ $Date: 2003-04-24 16:32:38 $
+ * last change: $Author: rt $ $Date: 2003-06-12 07:51:42 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -196,32 +196,7 @@ void TabPage::DeactivatePage()
::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > TabPage::CreateAccessible()
{
- ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > xAcc;
+ // TODO: remove this method (incompatible)
- Window* pParent = GetAccessibleParentWindow();
- if ( pParent && pParent->GetType() == WINDOW_TABCONTROL )
- {
- TabControl* pTabControl = static_cast< TabControl* >( pParent );
- if ( pTabControl )
- {
- for ( sal_uInt16 i = 0, nCount = pTabControl->GetPageCount(); i < nCount; ++i )
- {
- sal_uInt16 nPageId = pTabControl->GetPageId( i );
- if ( pTabControl->GetTabPage( nPageId ) == this )
- {
- ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > xParent = pTabControl->GetAccessible();
- if ( xParent.is() )
- {
- ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleContext > xParentContext( xParent->getAccessibleContext() );
- if ( xParentContext.is() )
- xAcc = xParentContext->getAccessibleChild( i );
- }
- }
- }
- }
- }
- else
- xAcc = Window::CreateAccessible();
-
- return xAcc;
+ return Window::CreateAccessible();
}