Bump version to 5.0-14
[LibreOffice.git] / svtools / inc / vclxaccessibleheaderbar.hxx
blob4fcfd9e995369840429131f565ed45bfabde4f7a
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 .
19 #ifndef INCLUDED_SVTOOLS_INC_VCLXACCESSIBLEHEADERBAR_HXX
20 #define INCLUDED_SVTOOLS_INC_VCLXACCESSIBLEHEADERBAR_HXX
22 #include <svtools/headbar.hxx>
23 #include <toolkit/awt/vclxaccessiblecomponent.hxx>
24 #include <toolkit/awt/vclxwindow.hxx>
26 class HeaderBar;
29 // class VCLXAccessibleHeaderBar
32 typedef std::vector< ::com::sun::star::uno::WeakReference< ::com::sun::star::accessibility::XAccessible > >
33 ListItems;
35 class VCLXAccessibleHeaderBar : public VCLXAccessibleComponent
38 public:
39 VclPtr<HeaderBar> m_pHeadBar;
40 virtual ~VCLXAccessibleHeaderBar();
42 virtual void ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent ) SAL_OVERRIDE;
43 virtual void FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet ) SAL_OVERRIDE;
45 VCLXAccessibleHeaderBar( VCLXWindow* pVCLXindow );
47 // XAccessibleContext
48 virtual sal_Int32 SAL_CALL getAccessibleChildCount( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
49 virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL getAccessibleChild( sal_Int32 i ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
50 virtual sal_Int16 SAL_CALL getAccessibleRole( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
53 // XServiceInfo
54 virtual ::rtl::OUString SAL_CALL getImplementationName() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
55 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
57 public:
58 virtual void SAL_CALL disposing() SAL_OVERRIDE;
59 ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > CreateChild(sal_Int32 i);
61 private:
62 ListItems m_aAccessibleChildren;
67 class VCLXHeaderBar : public VCLXWindow
69 public:
70 VCLXHeaderBar(vcl::Window* pHeaderBar);
71 virtual ~VCLXHeaderBar();
73 virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleContext > CreateAccessibleContext() SAL_OVERRIDE;
77 #endif // INCLUDED_SVTOOLS_INC_VCLXACCESSIBLEHEADERBAR_HXX
79 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */