Version 6.1.4.1, tag libreoffice-6.1.4.1
[LibreOffice.git] / accessibility / inc / extended / accessibletablistbox.hxx
blob1c56d867bd336fb8be426d5ca4718383fc68a9d8
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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;
38 /** !!! */
39 class AccessibleTabListBox final
40 :public AccessibleBrowseBox
41 ,public AccessibleTabListBox_Base
42 ,public ::svt::IAccessibleTabListBox
44 private:
45 VclPtr<SvHeaderTabListBox> m_pTabListBox;
47 public:
48 /** ctor()
49 @param rxParent XAccessible interface of the parent object.
50 @param rBox The HeaderTabListBox control. */
51 AccessibleTabListBox(
52 const css::uno::Reference< css::accessibility::XAccessible >& rxParent,
53 SvHeaderTabListBox& rBox );
55 // XInterface
56 DECLARE_XINTERFACE( )
57 // XTypeProvider
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;
69 // XAccessibleContext
70 css::uno::Reference< css::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext() override;
72 // IAccessibleTabListBox
73 virtual css::uno::Reference< css::accessibility::XAccessible >
74 getMyself() override
76 return this;
79 css::uno::Reference< css::accessibility::XAccessible >
80 getHeaderBar() override
82 return AccessibleBrowseBox::getHeaderBar( svt::BBTYPE_COLUMNHEADERBAR );
85 private:
86 /** dtor() */
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: */