xref: /AOO41X/main/editeng/source/accessibility/AccessibleSelectionBase.cxx (revision 190118d08a3be86671f4129b3e9a490e144719cd)
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
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 // MARKER(update_precomp.py): autogen include statement, do not remove
25 #include "precompiled_editeng.hxx"
26 
27 #include <editeng/AccessibleSelectionBase.hxx>
28 
29 using namespace ::rtl;
30 using namespace ::com::sun::star;
31 using namespace ::com::sun::star::accessibility;
32 
33 namespace accessibility
34 {
35     // ---------------------------
36     // - AccessibleSelectionBase -
37     // ---------------------------
38 
AccessibleSelectionBase()39     AccessibleSelectionBase::AccessibleSelectionBase()
40     {
41     }
42 
43     //--------------------------------------------------------------------
44 
~AccessibleSelectionBase()45     AccessibleSelectionBase::~AccessibleSelectionBase()
46     {
47     }
48 
49     //--------------------------------------------------------------------
50 
selectAccessibleChild(sal_Int32 nChildIndex)51     void SAL_CALL AccessibleSelectionBase::selectAccessibleChild( sal_Int32 nChildIndex ) throw (lang::IndexOutOfBoundsException, uno::RuntimeException)
52     {
53         ::osl::MutexGuard aGuard( implGetMutex() );
54         OCommonAccessibleSelection::selectAccessibleChild( nChildIndex );
55     }
56 
57     //--------------------------------------------------------------------
58 
isAccessibleChildSelected(sal_Int32 nChildIndex)59     sal_Bool SAL_CALL AccessibleSelectionBase::isAccessibleChildSelected( sal_Int32 nChildIndex ) throw (lang::IndexOutOfBoundsException, uno::RuntimeException)
60     {
61         ::osl::MutexGuard aGuard( implGetMutex() );
62         return( OCommonAccessibleSelection::isAccessibleChildSelected( nChildIndex ) );
63     }
64 
65     //--------------------------------------------------------------------
66 
clearAccessibleSelection()67     void SAL_CALL AccessibleSelectionBase::clearAccessibleSelection(  ) throw (uno::RuntimeException)
68     {
69         ::osl::MutexGuard aGuard( implGetMutex() );
70         OCommonAccessibleSelection::clearAccessibleSelection();
71     }
72 
73     //--------------------------------------------------------------------
74 
selectAllAccessibleChildren()75     void SAL_CALL AccessibleSelectionBase::selectAllAccessibleChildren(  ) throw (uno::RuntimeException)
76     {
77         ::osl::MutexGuard aGuard( implGetMutex() );
78         OCommonAccessibleSelection::selectAllAccessibleChildren();
79     }
80 
81     //--------------------------------------------------------------------
82 
getSelectedAccessibleChildCount()83     sal_Int32 SAL_CALL AccessibleSelectionBase::getSelectedAccessibleChildCount(  ) throw (uno::RuntimeException)
84     {
85         ::osl::MutexGuard aGuard( implGetMutex() );
86         return( OCommonAccessibleSelection::getSelectedAccessibleChildCount() );
87     }
88 
89     //--------------------------------------------------------------------
90 
getSelectedAccessibleChild(sal_Int32 nSelectedChildIndex)91     uno::Reference< XAccessible > SAL_CALL AccessibleSelectionBase::getSelectedAccessibleChild( sal_Int32 nSelectedChildIndex ) throw (lang::IndexOutOfBoundsException, uno::RuntimeException)
92     {
93         ::osl::MutexGuard aGuard( implGetMutex() );
94         return( OCommonAccessibleSelection::getSelectedAccessibleChild( nSelectedChildIndex ) );
95     }
96 
97     //--------------------------------------------------------------------
98 
deselectAccessibleChild(sal_Int32 nSelectedChildIndex)99     void SAL_CALL AccessibleSelectionBase::deselectAccessibleChild( sal_Int32 nSelectedChildIndex ) throw (lang::IndexOutOfBoundsException, uno::RuntimeException)
100     {
101         ::osl::MutexGuard aGuard( implGetMutex() );
102         OCommonAccessibleSelection::deselectAccessibleChild( nSelectedChildIndex );
103     }
104 }
105