update credits
[LibreOffice.git] / vcl / aqua / source / a11y / aqua11yfocuslistener.hxx
blob4e7cc11b481674b76aba571710ec659de2820bf7
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 _AQUA11YFOCUSLISTENER_HXX_
21 #define _AQUA11YFOCUSLISTENER_HXX_
23 #include <salhelper/refobj.hxx>
25 #include "aqua/keyboardfocuslistener.hxx"
26 #include "aqua/aquavcltypes.h"
28 class AquaA11yFocusListener :
29 public KeyboardFocusListener,
30 public salhelper::ReferenceObject
32 id m_focusedObject;
34 static rtl::Reference< AquaA11yFocusListener > theListener;
36 AquaA11yFocusListener();
37 virtual ~AquaA11yFocusListener() {};
38 public:
40 static rtl::Reference< AquaA11yFocusListener > get();
42 id getFocusedUIElement();
44 // KeyboardFocusListener
45 virtual void SAL_CALL focusedObjectChanged(const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >& xAccessible);
47 // rtl::IReference
48 virtual oslInterlockedCount SAL_CALL acquire() SAL_THROW(());
49 virtual oslInterlockedCount SAL_CALL release() SAL_THROW(());
52 #endif // _AQUA11YFOCUSLISTENER_HXX_
54 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */