AccessibleDocument.cxx (4b4244d8) AccessibleDocument.cxx (4937ceef)
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

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

252 ::accessibility::AccessibleShape* pCurrentChild,
253 const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape >& _rxShape,
254 const long _nIndex,
255 const ::accessibility::AccessibleShapeTreeInfo& _rShapeTreeInfo
256 ) throw (::com::sun::star::uno::RuntimeException);
257
258 virtual ::accessibility::AccessibleControlShape* GetAccControlShapeFromModel
259 (::com::sun::star::beans::XPropertySet* pSet)
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

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

252 ::accessibility::AccessibleShape* pCurrentChild,
253 const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape >& _rxShape,
254 const long _nIndex,
255 const ::accessibility::AccessibleShapeTreeInfo& _rShapeTreeInfo
256 ) throw (::com::sun::star::uno::RuntimeException);
257
258 virtual ::accessibility::AccessibleControlShape* GetAccControlShapeFromModel
259 (::com::sun::star::beans::XPropertySet* pSet)
260 throw (::com::sun::star::uno::RuntimeException, com::sun::star::ucb::CommandFailedException);
260 throw (::com::sun::star::uno::RuntimeException);
261 virtual ::com::sun::star::uno::Reference<
262 ::com::sun::star::accessibility::XAccessible>
263 GetAccessibleCaption (const ::com::sun::star::uno::Reference<
264 ::com::sun::star::drawing::XShape>& xShape)
261 virtual ::com::sun::star::uno::Reference<
262 ::com::sun::star::accessibility::XAccessible>
263 GetAccessibleCaption (const ::com::sun::star::uno::Reference<
264 ::com::sun::star::drawing::XShape>& xShape)
265 throw (::com::sun::star::uno::RuntimeException, com::sun::star::ucb::CommandFailedException);
265 throw (::com::sun::star::uno::RuntimeException);
266 ///===== Internal ========================================================
267 void SetDrawBroadcaster();
268
269 sal_Int32 GetCount() const;
270 uno::Reference< XAccessible > Get(const ScAccessibleShapeData* pData) const;
271 uno::Reference< XAccessible > Get(sal_Int32 nIndex) const;
272 uno::Reference< XAccessible > GetAt(const awt::Point& rPoint) const;
273

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

478
479 mpAccessibleDocument->CommitChange(aEvent); // child is new - event
480 bResult = sal_True;
481 }
482 }
483 return bResult;
484}
485
266 ///===== Internal ========================================================
267 void SetDrawBroadcaster();
268
269 sal_Int32 GetCount() const;
270 uno::Reference< XAccessible > Get(const ScAccessibleShapeData* pData) const;
271 uno::Reference< XAccessible > Get(sal_Int32 nIndex) const;
272 uno::Reference< XAccessible > GetAt(const awt::Point& rPoint) const;
273

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

478
479 mpAccessibleDocument->CommitChange(aEvent); // child is new - event
480 bResult = sal_True;
481 }
482 }
483 return bResult;
484}
485
486::accessibility::AccessibleControlShape * ScChildrenShapes::GetAccControlShapeFromModel(::com::sun::star::beans::XPropertySet* pSet) throw (::com::sun::star::uno::RuntimeException, com::sun::star::ucb::CommandFailedException)
486::accessibility::AccessibleControlShape * ScChildrenShapes::GetAccControlShapeFromModel(::com::sun::star::beans::XPropertySet* pSet) throw (::com::sun::star::uno::RuntimeException)
487{
488 sal_Int32 count = GetCount();
489 for (sal_Int32 index=0;index<count;index++)
490 {
491 ScAccessibleShapeData* pShape = maZOrderedShapes[index];
492 if (pShape)
493 {
494 ::accessibility::AccessibleShape* pAccShape = pShape->pAccShape;

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

499 return pCtlAccShape;
500 }
501 }
502 }
503 return NULL;
504}
505::com::sun::star::uno::Reference < ::com::sun::star::accessibility::XAccessible >
506ScChildrenShapes::GetAccessibleCaption (const ::com::sun::star::uno::Reference < ::com::sun::star::drawing::XShape>& xShape)
487{
488 sal_Int32 count = GetCount();
489 for (sal_Int32 index=0;index<count;index++)
490 {
491 ScAccessibleShapeData* pShape = maZOrderedShapes[index];
492 if (pShape)
493 {
494 ::accessibility::AccessibleShape* pAccShape = pShape->pAccShape;

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

499 return pCtlAccShape;
500 }
501 }
502 }
503 return NULL;
504}
505::com::sun::star::uno::Reference < ::com::sun::star::accessibility::XAccessible >
506ScChildrenShapes::GetAccessibleCaption (const ::com::sun::star::uno::Reference < ::com::sun::star::drawing::XShape>& xShape)
507 throw (::com::sun::star::uno::RuntimeException, com::sun::star::ucb::CommandFailedException)
507 throw (::com::sun::star::uno::RuntimeException)
508{
509 sal_Int32 count = GetCount();
510 for (sal_Int32 index=0;index<count;index++)
511 {
512 ScAccessibleShapeData* pShape = maZOrderedShapes[index];
513 if (pShape && pShape->xShape == xShape )
514 {
515 ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > xNewChild( pShape->pAccShape );

--- 2045 unchanged lines hidden ---
508{
509 sal_Int32 count = GetCount();
510 for (sal_Int32 index=0;index<count;index++)
511 {
512 ScAccessibleShapeData* pShape = maZOrderedShapes[index];
513 if (pShape && pShape->xShape == xShape )
514 {
515 ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > xNewChild( pShape->pAccShape );

--- 2045 unchanged lines hidden ---