1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_ACCESSIBILITY_INC_EXTENDED_ACCESSIBLETABLISTBOX_HXX
21 #define INCLUDED_ACCESSIBILITY_INC_EXTENDED_ACCESSIBLETABLISTBOX_HXX
23 #include <extended/AccessibleBrowseBox.hxx>
24 #include <cppuhelper/implbase1.hxx>
25 #include <com/sun/star/accessibility/XAccessibleSelection.hpp>
26 #include <svtools/accessibletableprovider.hxx>
28 class SvHeaderTabListBox
;
31 namespace accessibility
{
33 class AccessibleBrowseBoxTable
;
35 typedef ::cppu::ImplHelper1
< css::accessibility::XAccessible
36 > AccessibleTabListBox_Base
;
39 class AccessibleTabListBox final
40 :public AccessibleBrowseBox
41 ,public AccessibleTabListBox_Base
42 ,public ::svt::IAccessibleTabListBox
45 VclPtr
<SvHeaderTabListBox
> m_pTabListBox
;
49 @param rxParent XAccessible interface of the parent object.
50 @param rBox The HeaderTabListBox control. */
52 const css::uno::Reference
< css::accessibility::XAccessible
>& rxParent
,
53 SvHeaderTabListBox
& rBox
);
58 DECLARE_XTYPEPROVIDER( )
60 // XAccessibleContext -----------------------------------------------------
62 /** @return The count of visible children. */
63 virtual sal_Int32 SAL_CALL
getAccessibleChildCount() override
;
65 /** @return The XAccessible interface of the specified child. */
66 virtual css::uno::Reference
< css::accessibility::XAccessible
> SAL_CALL
67 getAccessibleChild( sal_Int32 nChildIndex
) override
;
70 css::uno::Reference
< css::accessibility::XAccessibleContext
> SAL_CALL
getAccessibleContext() override
;
72 // IAccessibleTabListBox
73 virtual css::uno::Reference
< css::accessibility::XAccessible
>
79 css::uno::Reference
< css::accessibility::XAccessible
>
80 getHeaderBar() override
82 return AccessibleBrowseBox::getHeaderBar( svt::BBTYPE_COLUMNHEADERBAR
);
87 virtual ~AccessibleTabListBox() override
;
89 /** This method creates and returns an accessible table.
90 @return An AccessibleBrowseBoxTable. */
91 virtual AccessibleBrowseBoxTable
* createAccessibleTable() override
;
95 } // namespace accessibility
98 #endif // INCLUDED_ACCESSIBILITY_INC_EXTENDED_ACCESSIBLETABLISTBOX_HXX
100 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */