merge the formfield patch from ooo-build
[ooovba.git] / svx / source / accessibility / AccessibleSelectionBase.cxx
blob37b769c44f2e463d53cc6a55d178348648b8e163
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: AccessibleSelectionBase.cxx,v $
10 * $Revision: 1.7 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 // MARKER(update_precomp.py): autogen include statement, do not remove
32 #include "precompiled_svx.hxx"
34 #include "AccessibleSelectionBase.hxx"
36 using namespace ::rtl;
37 using namespace ::com::sun::star;
38 using namespace ::com::sun::star::accessibility;
40 namespace accessibility
42 // ---------------------------
43 // - AccessibleSelectionBase -
44 // ---------------------------
46 AccessibleSelectionBase::AccessibleSelectionBase()
50 //--------------------------------------------------------------------
52 AccessibleSelectionBase::~AccessibleSelectionBase()
56 //--------------------------------------------------------------------
58 void SAL_CALL AccessibleSelectionBase::selectAccessibleChild( sal_Int32 nChildIndex ) throw (lang::IndexOutOfBoundsException, uno::RuntimeException)
60 ::osl::MutexGuard aGuard( implGetMutex() );
61 OCommonAccessibleSelection::selectAccessibleChild( nChildIndex );
64 //--------------------------------------------------------------------
66 sal_Bool SAL_CALL AccessibleSelectionBase::isAccessibleChildSelected( sal_Int32 nChildIndex ) throw (lang::IndexOutOfBoundsException, uno::RuntimeException)
68 ::osl::MutexGuard aGuard( implGetMutex() );
69 return( OCommonAccessibleSelection::isAccessibleChildSelected( nChildIndex ) );
72 //--------------------------------------------------------------------
74 void SAL_CALL AccessibleSelectionBase::clearAccessibleSelection( ) throw (uno::RuntimeException)
76 ::osl::MutexGuard aGuard( implGetMutex() );
77 OCommonAccessibleSelection::clearAccessibleSelection();
80 //--------------------------------------------------------------------
82 void SAL_CALL AccessibleSelectionBase::selectAllAccessibleChildren( ) throw (uno::RuntimeException)
84 ::osl::MutexGuard aGuard( implGetMutex() );
85 OCommonAccessibleSelection::selectAllAccessibleChildren();
88 //--------------------------------------------------------------------
90 sal_Int32 SAL_CALL AccessibleSelectionBase::getSelectedAccessibleChildCount( ) throw (uno::RuntimeException)
92 ::osl::MutexGuard aGuard( implGetMutex() );
93 return( OCommonAccessibleSelection::getSelectedAccessibleChildCount() );
96 //--------------------------------------------------------------------
98 uno::Reference< XAccessible > SAL_CALL AccessibleSelectionBase::getSelectedAccessibleChild( sal_Int32 nSelectedChildIndex ) throw (lang::IndexOutOfBoundsException, uno::RuntimeException)
100 ::osl::MutexGuard aGuard( implGetMutex() );
101 return( OCommonAccessibleSelection::getSelectedAccessibleChild( nSelectedChildIndex ) );
104 //--------------------------------------------------------------------
106 void SAL_CALL AccessibleSelectionBase::deselectAccessibleChild( sal_Int32 nSelectedChildIndex ) throw (lang::IndexOutOfBoundsException, uno::RuntimeException)
108 ::osl::MutexGuard aGuard( implGetMutex() );
109 OCommonAccessibleSelection::deselectAccessibleChild( nSelectedChildIndex );