LibreOffice Module accessibility (master) 1
vclxaccessiblepopupmenu.cxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19
21
22#include <com/sun/star/accessibility/AccessibleRole.hpp>
24#include <vcl/svapp.hxx>
25#include <vcl/settings.hxx>
26
27using namespace ::com::sun::star::accessibility;
28using namespace ::com::sun::star::uno;
29using namespace ::comphelper;
30
31
32
33
35{
36 return !IsChildHighlighted();
37}
38
39
40// XServiceInfo
41
42
44{
45 return "com.sun.star.comp.toolkit.AccessiblePopupMenu";
46}
47
48
50{
51 return { "com.sun.star.awt.AccessiblePopupMenu" };
52}
53
54
55// XAccessibleContext
56
57
59{
60 OExternalLockGuard aGuard( this );
61
62 return 0;
63}
64
65
67{
68 OExternalLockGuard aGuard( this );
69
70 return AccessibleRole::POPUP_MENU;
71}
72
73
74// XAccessibleExtendedComponent
75
76
78{
79 OExternalLockGuard aGuard( this );
80
81 return sal_Int32(Application::GetSettings().GetStyleSettings().GetMenuColor());
82}
83
84
85/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
static const AllSettings & GetSettings()
virtual bool IsFocused() override
virtual sal_Int32 SAL_CALL getBackground() override
virtual sal_Int16 SAL_CALL getAccessibleRole() override
virtual sal_Int64 SAL_CALL getAccessibleIndexInParent() override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual OUString SAL_CALL getImplementationName() override