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_STANDARD_ACCESSIBLEMENUCOMPONENT_HXX
21 #define INCLUDED_ACCESSIBILITY_INC_STANDARD_ACCESSIBLEMENUCOMPONENT_HXX
23 #include <standard/accessiblemenubasecomponent.hxx>
24 #include <com/sun/star/accessibility/XAccessibleSelection.hpp>
25 #include <cppuhelper/implbase1.hxx>
28 // class OAccessibleMenuComponent
30 typedef ::cppu::ImplHelper1
<
31 css::accessibility::XAccessibleSelection
> OAccessibleMenuComponent_BASE
;
33 class OAccessibleMenuComponent
: public OAccessibleMenuBaseComponent
,
34 public OAccessibleMenuComponent_BASE
37 virtual bool IsEnabled() override
;
38 virtual bool IsVisible() override
;
40 virtual void FillAccessibleStateSet( utl::AccessibleStateSetHelper
& rStateSet
) override
;
42 // OCommonAccessibleComponent
43 virtual css::awt::Rectangle
implGetBounds( ) override
;
45 using OAccessibleMenuBaseComponent::OAccessibleMenuBaseComponent
;
53 DECLARE_XTYPEPROVIDER()
56 virtual sal_Int32 SAL_CALL
getAccessibleChildCount( ) override
;
57 virtual css::uno::Reference
< css::accessibility::XAccessible
> SAL_CALL
getAccessibleChild( sal_Int32 i
) override
;
58 virtual css::uno::Reference
< css::accessibility::XAccessible
> SAL_CALL
getAccessibleParent( ) override
;
59 virtual sal_Int16 SAL_CALL
getAccessibleRole( ) override
;
60 virtual OUString SAL_CALL
getAccessibleDescription( ) override
;
61 virtual OUString SAL_CALL
getAccessibleName( ) override
;
62 virtual css::uno::Reference
< css::accessibility::XAccessibleRelationSet
> SAL_CALL
getAccessibleRelationSet( ) override
;
63 virtual css::lang::Locale SAL_CALL
getLocale( ) override
;
65 // XAccessibleComponent
66 virtual css::uno::Reference
< css::accessibility::XAccessible
> SAL_CALL
getAccessibleAtPoint( const css::awt::Point
& aPoint
) override
;
67 virtual css::awt::Point SAL_CALL
getLocationOnScreen( ) override
;
68 virtual void SAL_CALL
grabFocus( ) override
;
69 virtual sal_Int32 SAL_CALL
getForeground( ) override
;
70 virtual sal_Int32 SAL_CALL
getBackground( ) override
;
72 // XAccessibleExtendedComponent
73 virtual css::uno::Reference
< css::awt::XFont
> SAL_CALL
getFont( ) override
;
74 virtual OUString SAL_CALL
getTitledBorderText( ) override
;
75 virtual OUString SAL_CALL
getToolTipText( ) override
;
77 // XAccessibleSelection
78 virtual void SAL_CALL
selectAccessibleChild( sal_Int32 nChildIndex
) override
;
79 virtual sal_Bool SAL_CALL
isAccessibleChildSelected( sal_Int32 nChildIndex
) override
;
80 virtual void SAL_CALL
clearAccessibleSelection( ) override
;
81 virtual void SAL_CALL
selectAllAccessibleChildren( ) override
;
82 virtual sal_Int32 SAL_CALL
getSelectedAccessibleChildCount( ) override
;
83 virtual css::uno::Reference
< css::accessibility::XAccessible
> SAL_CALL
getSelectedAccessibleChild( sal_Int32 nSelectedChildIndex
) override
;
84 virtual void SAL_CALL
deselectAccessibleChild( sal_Int32 nChildIndex
) override
;
87 #endif // INCLUDED_ACCESSIBILITY_INC_STANDARD_ACCESSIBLEMENUCOMPONENT_HXX
89 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */