gridwin5.cxx (4d7c9de0) gridwin5.cxx (3ea0c3d5)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 418 unchanged lines hidden (view full) ---

427 com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > xAcc= GetAccessible(sal_False);
428 if (xAcc.is())
429 {
430 return xAcc;
431 }
432 ScAccessibleDocument* pAccessibleDocument =
433 new ScAccessibleDocument(GetAccessibleParentWindow()->GetAccessible(),
434 pViewData->GetViewShell(), eWhich);
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 418 unchanged lines hidden (view full) ---

427 com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > xAcc= GetAccessible(sal_False);
428 if (xAcc.is())
429 {
430 return xAcc;
431 }
432 ScAccessibleDocument* pAccessibleDocument =
433 new ScAccessibleDocument(GetAccessibleParentWindow()->GetAccessible(),
434 pViewData->GetViewShell(), eWhich);
435 //com::sun::star::uno::Reference < ::com::sun::star::accessibility::XAccessible > xAccessible = pAccessibleDocument;
436 xAcc = pAccessibleDocument;
437 SetAccessible(xAcc);
438
439 pAccessibleDocument->Init();
435 xAcc = pAccessibleDocument;
436 SetAccessible(xAcc);
437
438 pAccessibleDocument->Init();
440 //return xAccessible;
441 return xAcc;
442}
443// MT: Removed Windows::SwitchView() introduced with IA2 CWS.
444// There are other notifications for this when the active view has chnaged, so please update the code to use that event mechanism
445void ScGridWindow::SwitchView()
446{
447 if (!Application::IsAccessibilityEnabled())
448 {
449 return ;
450 }
451 ScAccessibleDocumentBase* pAccDoc = static_cast<ScAccessibleDocumentBase*>(GetAccessible(sal_False).get());
452 if (pAccDoc)
453 {
454 pAccDoc->SwitchViewFireFocus();
455 }
456}
457
439 return xAcc;
440}
441// MT: Removed Windows::SwitchView() introduced with IA2 CWS.
442// There are other notifications for this when the active view has chnaged, so please update the code to use that event mechanism
443void ScGridWindow::SwitchView()
444{
445 if (!Application::IsAccessibilityEnabled())
446 {
447 return ;
448 }
449 ScAccessibleDocumentBase* pAccDoc = static_cast<ScAccessibleDocumentBase*>(GetAccessible(sal_False).get());
450 if (pAccDoc)
451 {
452 pAccDoc->SwitchViewFireFocus();
453 }
454}
455