Version 6.1.4.1, tag libreoffice-6.1.4.1
[LibreOffice.git] / accessibility / inc / standard / vclxaccessiblemenu.hxx
blob7a7bb6f74b8f3bc29641ea2ef18a998fbe58e25a
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_STANDARD_VCLXACCESSIBLEMENU_HXX
21 #define INCLUDED_ACCESSIBILITY_INC_STANDARD_VCLXACCESSIBLEMENU_HXX
23 #include <standard/vclxaccessiblemenuitem.hxx>
24 #include <com/sun/star/accessibility/XAccessibleSelection.hpp>
26 #include <cppuhelper/implbase1.hxx>
29 // class VCLXAccessibleMenu
32 typedef ::cppu::ImplHelper1 <
33 css::accessibility::XAccessibleSelection > VCLXAccessibleMenu_BASE;
35 class VCLXAccessibleMenu : public VCLXAccessibleMenuItem,
36 public VCLXAccessibleMenu_BASE
38 protected:
39 virtual bool IsFocused() override;
40 virtual bool IsPopupMenuOpen() override;
41 sal_Int32 implGetSelectedAccessibleChildCount();
43 public:
44 using VCLXAccessibleMenuItem::VCLXAccessibleMenuItem;
46 // XInterface
47 DECLARE_XINTERFACE()
49 // XTypeProvider
50 DECLARE_XTYPEPROVIDER()
52 // XServiceInfo
53 virtual OUString SAL_CALL getImplementationName() override;
54 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
56 // XAccessibleContext
57 virtual sal_Int32 SAL_CALL getAccessibleChildCount( ) override;
58 virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleChild( sal_Int32 i ) override;
59 virtual sal_Int16 SAL_CALL getAccessibleRole( ) override;
61 // XAccessibleComponent
62 virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint( const css::awt::Point& aPoint ) override;
64 // XAccessibleSelection
65 virtual void SAL_CALL selectAccessibleChild( sal_Int32 nChildIndex ) override;
66 virtual sal_Bool SAL_CALL isAccessibleChildSelected( sal_Int32 nChildIndex ) override;
67 virtual void SAL_CALL clearAccessibleSelection( ) override;
68 virtual void SAL_CALL selectAllAccessibleChildren( ) override;
69 virtual sal_Int32 SAL_CALL getSelectedAccessibleChildCount( ) override;
70 virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getSelectedAccessibleChild( sal_Int32 nSelectedChildIndex ) override;
71 virtual void SAL_CALL deselectAccessibleChild( sal_Int32 nChildIndex ) override;
73 // XAccessibleAction
74 virtual ::rtl::OUString SAL_CALL getAccessibleActionDescription ( sal_Int32 nIndex ) override;
77 #endif // INCLUDED_ACCESSIBILITY_INC_STANDARD_VCLXACCESSIBLEMENU_HXX
79 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */