fdo#74697 Add Bluez 5 support for impress remote.
[LibreOffice.git] / sd / source / ui / inc / AccessibleScrollPanel.hxx
blob47aa7a3734c253af91d1f8424033297efeda53e9
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 SD_ACCESSIBILITY_ACCESSIBLE_SCROLL_PANEL_HXX
21 #define SD_ACCESSIBILITY_ACCESSIBLE_SCROLL_PANEL_HXX
23 #include "AccessibleTreeNode.hxx"
25 namespace sd { namespace toolpanel {
26 class ScrollPanel;
27 } }
30 namespace accessibility {
32 /** This derived class handles the accessible children different from its
33 base class. It adds the scroll bars as children when they are visible.
35 class AccessibleScrollPanel
36 : public AccessibleTreeNode
38 public:
39 AccessibleScrollPanel (
40 ::sd::toolpanel::ScrollPanel& rScrollPanel,
41 const OUString& rsName,
42 const OUString& rsDescription);
43 ~AccessibleScrollPanel (void);
45 //===== XAccessibleContext ==============================================
47 /// Return the number of currently visible children.
48 virtual sal_Int32 SAL_CALL
49 getAccessibleChildCount (void) throw (::com::sun::star::uno::RuntimeException);
51 /// Return the specified child or throw exception.
52 virtual ::com::sun::star::uno::Reference<
53 ::com::sun::star::accessibility::XAccessible> SAL_CALL
54 getAccessibleChild (sal_Int32 nIndex)
55 throw (::com::sun::star::lang::IndexOutOfBoundsException,
56 ::com::sun::star::uno::RuntimeException);
58 //===== XServiceInfo ====================================================
60 /** Returns an identifier for the implementation of this object.
62 virtual OUString SAL_CALL
63 getImplementationName (void)
64 throw (::com::sun::star::uno::RuntimeException);
66 private:
67 ::sd::toolpanel::ScrollPanel& GetScrollPanel (void) const;
70 } // end of namespace accessibility
72 #endif
74 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */