merged tag LIBREOFFICE_3_2_99_3
[LibreOffice.git] / sd / source / ui / inc / AccessibleScrollPanel.hxx
blob86fb0a9f9d689ccbdddda272a674809f471c7038
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
29 #ifndef SD_ACCESSIBILITY_ACCESSIBLE_SCROLL_PANEL_HXX
30 #define SD_ACCESSIBILITY_ACCESSIBLE_SCROLL_PANEL_HXX
32 #include "AccessibleTreeNode.hxx"
34 namespace sd { namespace toolpanel {
35 class ScrollPanel;
36 } }
39 namespace accessibility {
41 /** This derived class handles the accessible children different from its
42 base class. It adds the scroll bars as children when they are visible.
44 class AccessibleScrollPanel
45 : public AccessibleTreeNode
47 public:
48 AccessibleScrollPanel (
49 ::sd::toolpanel::ScrollPanel& rScrollPanel,
50 const ::rtl::OUString& rsName,
51 const ::rtl::OUString& rsDescription);
52 ~AccessibleScrollPanel (void);
54 //===== XAccessibleContext ==============================================
56 /// Return the number of currently visible children.
57 virtual sal_Int32 SAL_CALL
58 getAccessibleChildCount (void) throw (::com::sun::star::uno::RuntimeException);
60 /// Return the specified child or throw exception.
61 virtual ::com::sun::star::uno::Reference<
62 ::com::sun::star::accessibility::XAccessible> SAL_CALL
63 getAccessibleChild (sal_Int32 nIndex)
64 throw (::com::sun::star::lang::IndexOutOfBoundsException,
65 ::com::sun::star::uno::RuntimeException);
67 //===== XServiceInfo ====================================================
69 /** Returns an identifier for the implementation of this object.
71 virtual ::rtl::OUString SAL_CALL
72 getImplementationName (void)
73 throw (::com::sun::star::uno::RuntimeException);
75 private:
76 ::sd::toolpanel::ScrollPanel& GetScrollPanel (void) const;
79 } // end of namespace accessibility
81 #endif
83 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */