1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
30 #include <editeng/AccessibleSelectionBase.hxx>
32 using namespace ::rtl
;
33 using namespace ::com::sun::star
;
34 using namespace ::com::sun::star::accessibility
;
36 namespace accessibility
38 // ---------------------------
39 // - AccessibleSelectionBase -
40 // ---------------------------
42 AccessibleSelectionBase::AccessibleSelectionBase()
46 //--------------------------------------------------------------------
48 AccessibleSelectionBase::~AccessibleSelectionBase()
52 //--------------------------------------------------------------------
54 void SAL_CALL
AccessibleSelectionBase::selectAccessibleChild( sal_Int32 nChildIndex
) throw (lang::IndexOutOfBoundsException
, uno::RuntimeException
)
56 ::osl::MutexGuard
aGuard( implGetMutex() );
57 OCommonAccessibleSelection::selectAccessibleChild( nChildIndex
);
60 //--------------------------------------------------------------------
62 sal_Bool SAL_CALL
AccessibleSelectionBase::isAccessibleChildSelected( sal_Int32 nChildIndex
) throw (lang::IndexOutOfBoundsException
, uno::RuntimeException
)
64 ::osl::MutexGuard
aGuard( implGetMutex() );
65 return( OCommonAccessibleSelection::isAccessibleChildSelected( nChildIndex
) );
68 //--------------------------------------------------------------------
70 void SAL_CALL
AccessibleSelectionBase::clearAccessibleSelection( ) throw (uno::RuntimeException
)
72 ::osl::MutexGuard
aGuard( implGetMutex() );
73 OCommonAccessibleSelection::clearAccessibleSelection();
76 //--------------------------------------------------------------------
78 void SAL_CALL
AccessibleSelectionBase::selectAllAccessibleChildren( ) throw (uno::RuntimeException
)
80 ::osl::MutexGuard
aGuard( implGetMutex() );
81 OCommonAccessibleSelection::selectAllAccessibleChildren();
84 //--------------------------------------------------------------------
86 sal_Int32 SAL_CALL
AccessibleSelectionBase::getSelectedAccessibleChildCount( ) throw (uno::RuntimeException
)
88 ::osl::MutexGuard
aGuard( implGetMutex() );
89 return( OCommonAccessibleSelection::getSelectedAccessibleChildCount() );
92 //--------------------------------------------------------------------
94 uno::Reference
< XAccessible
> SAL_CALL
AccessibleSelectionBase::getSelectedAccessibleChild( sal_Int32 nSelectedChildIndex
) throw (lang::IndexOutOfBoundsException
, uno::RuntimeException
)
96 ::osl::MutexGuard
aGuard( implGetMutex() );
97 return( OCommonAccessibleSelection::getSelectedAccessibleChild( nSelectedChildIndex
) );
100 //--------------------------------------------------------------------
102 void SAL_CALL
AccessibleSelectionBase::deselectAccessibleChild( sal_Int32 nSelectedChildIndex
) throw (lang::IndexOutOfBoundsException
, uno::RuntimeException
)
104 ::osl::MutexGuard
aGuard( implGetMutex() );
105 OCommonAccessibleSelection::deselectAccessibleChild( nSelectedChildIndex
);
109 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */