69 OSL_ENSURE( xParentContext.is(),
"OCommonAccessibleSelection::getSelectedAccessibleChildCount: no parent context!" );
71 if( xParentContext.is() )
73 for( sal_Int64
i = 0, nChildCount = xParentContext->getAccessibleChildCount();
i < nChildCount;
i++ )
84 Reference< XAccessible > xRet;
87 OSL_ENSURE( xParentContext.is(),
"OCommonAccessibleSelection::getSelectedAccessibleChildCount: no parent context!" );
89 if( xParentContext.is() )
91 for( sal_Int64
i = 0, nChildCount = xParentContext->getAccessibleChildCount(),
nPos = 0; (
i < nChildCount ) && !xRet.is();
i++ )
93 xRet = xParentContext->getAccessibleChild(
i );
105 OAccessibleSelectionHelper::OAccessibleSelectionHelper()
110 Reference< XAccessibleContext > OAccessibleSelectionHelper::implGetAccessibleContext()
116 void SAL_CALL OAccessibleSelectionHelper::selectAccessibleChild( sal_Int64 nChildIndex )
118 OExternalLockGuard aGuard(
this );
123 sal_Bool SAL_CALL OAccessibleSelectionHelper::isAccessibleChildSelected( sal_Int64 nChildIndex )
125 OExternalLockGuard aGuard(
this );
130 void SAL_CALL OAccessibleSelectionHelper::clearAccessibleSelection( )
132 OExternalLockGuard aGuard(
this );
137 void SAL_CALL OAccessibleSelectionHelper::selectAllAccessibleChildren( )
139 OExternalLockGuard aGuard(
this );
144 sal_Int64 SAL_CALL OAccessibleSelectionHelper::getSelectedAccessibleChildCount( )
146 OExternalLockGuard aGuard(
this );
151 Reference< XAccessible > SAL_CALL OAccessibleSelectionHelper::getSelectedAccessibleChild( sal_Int64 nSelectedChildIndex )
153 OExternalLockGuard aGuard(
this );
158 void SAL_CALL OAccessibleSelectionHelper::deselectAccessibleChild( sal_Int64 nSelectedChildIndex )
160 OExternalLockGuard aGuard(
this );
#define ACCESSIBLE_SELECTION_CHILD_ALL
virtual void implSelect(sal_Int64 nAccessibleChildIndex, bool bSelect)=0
css::uno::Reference< css::accessibility::XAccessible > getSelectedAccessibleChild(sal_Int64 nSelectedChildIndex)
bool isAccessibleChildSelected(sal_Int64 nChildIndex)
OCommonAccessibleSelection()
~OCommonAccessibleSelection()
void deselectAccessibleChild(sal_Int64 nSelectedChildIndex)
virtual bool implIsSelected(sal_Int64 nAccessibleChildIndex)=0
void clearAccessibleSelection()
virtual css::uno::Reference< css::accessibility::XAccessibleContext > implGetAccessibleContext()=0
void selectAllAccessibleChildren()
void selectAccessibleChild(sal_Int64 nChildIndex)
non-virtual versions of the methods which can be implemented using <method>implIsSelected</method> an...
sal_Int64 getSelectedAccessibleChildCount()