1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 #ifndef SD_ACCESSIBILITY_ACCESSIBLE_SCROLL_PANEL_HXX 23 #define SD_ACCESSIBILITY_ACCESSIBLE_SCROLL_PANEL_HXX 24 25 #include "AccessibleTreeNode.hxx" 26 27 namespace sd { namespace toolpanel { 28 class ScrollPanel; 29 } } 30 31 namespace accessibility { 32 33 /** This derived class handles the accessible children different from its 34 base class. It adds the scroll bars as children when they are visible. 35 */ 36 class AccessibleScrollPanel 37 : public AccessibleTreeNode 38 { 39 public: 40 AccessibleScrollPanel ( 41 ::sd::toolpanel::ScrollPanel& rScrollPanel, 42 const ::rtl::OUString& rsName, 43 const ::rtl::OUString& rsDescription); 44 ~AccessibleScrollPanel (void); 45 46 // ===== XAccessibleContext ============================================== 47 48 // Return the number of currently visible children. 49 virtual sal_Int32 SAL_CALL 50 getAccessibleChildCount (void) throw (::com::sun::star::uno::RuntimeException); 51 52 // Return the specified child or throw exception. 53 virtual ::com::sun::star::uno::Reference< 54 ::com::sun::star::accessibility::XAccessible> SAL_CALL 55 getAccessibleChild (sal_Int32 nIndex) 56 throw (::com::sun::star::lang::IndexOutOfBoundsException, 57 ::com::sun::star::uno::RuntimeException); 58 59 // ===== XServiceInfo ==================================================== 60 61 /** Returns an identifier for the implementation of this object. 62 */ 63 virtual ::rtl::OUString SAL_CALL 64 getImplementationName (void) 65 throw (::com::sun::star::uno::RuntimeException); 66 67 private: 68 ::sd::toolpanel::ScrollPanel& GetScrollPanel (void) const; 69 }; 70 71 } // end of namespace accessibility 72 73 #endif 74 75 /* vim: set noet sw=4 ts=4: */ 76