1*a462bbb7SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*a462bbb7SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*a462bbb7SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*a462bbb7SAndrew Rist * distributed with this work for additional information 6*a462bbb7SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*a462bbb7SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*a462bbb7SAndrew Rist * "License"); you may not use this file except in compliance 9*a462bbb7SAndrew Rist * with the License. You may obtain a copy of the License at 10cdf0e10cSrcweir * 11*a462bbb7SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12cdf0e10cSrcweir * 13*a462bbb7SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*a462bbb7SAndrew Rist * software distributed under the License is distributed on an 15*a462bbb7SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*a462bbb7SAndrew Rist * KIND, either express or implied. See the License for the 17*a462bbb7SAndrew Rist * specific language governing permissions and limitations 18*a462bbb7SAndrew Rist * under the License. 19cdf0e10cSrcweir * 20*a462bbb7SAndrew Rist *************************************************************/ 21*a462bbb7SAndrew Rist 22*a462bbb7SAndrew Rist 23cdf0e10cSrcweir #ifndef ACCESSIBILITY_EXT_ACCESSIBLEBROWSEBOXHEADERCELL_HXX 24cdf0e10cSrcweir #define ACCESSIBILITY_EXT_ACCESSIBLEBROWSEBOXHEADERCELL_HXX 25cdf0e10cSrcweir 26cdf0e10cSrcweir #include "accessibility/extended/AccessibleBrowseBoxBase.hxx" 27cdf0e10cSrcweir 28cdf0e10cSrcweir namespace accessibility 29cdf0e10cSrcweir { 30cdf0e10cSrcweir class AccessibleBrowseBoxHeaderCell : public BrowseBoxAccessibleElement 31cdf0e10cSrcweir { 32cdf0e10cSrcweir sal_Int32 m_nColumnRowId; 33cdf0e10cSrcweir public: 34cdf0e10cSrcweir AccessibleBrowseBoxHeaderCell(sal_Int32 _nColumnRowId, 35cdf0e10cSrcweir const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >& rxParent, 36cdf0e10cSrcweir ::svt::IAccessibleTableProvider& _rBrowseBox, 37cdf0e10cSrcweir const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow >& _xFocusWindow, 38cdf0e10cSrcweir ::svt::AccessibleBrowseBoxObjType _eObjType); 39cdf0e10cSrcweir /** @return The count of visible children. */ 40cdf0e10cSrcweir virtual sal_Int32 SAL_CALL getAccessibleChildCount() throw ( ::com::sun::star::uno::RuntimeException ); 41cdf0e10cSrcweir 42cdf0e10cSrcweir /** @return The XAccessible interface of the specified child. */ 43cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL 44cdf0e10cSrcweir getAccessibleChild( sal_Int32 nChildIndex ) throw ( ::com::sun::star::lang::IndexOutOfBoundsException,::com::sun::star::uno::RuntimeException ); 45cdf0e10cSrcweir 46cdf0e10cSrcweir /** @return The index of this object among the parent's children. */ 47cdf0e10cSrcweir virtual sal_Int32 SAL_CALL getAccessibleIndexInParent() throw ( ::com::sun::star::uno::RuntimeException ); 48cdf0e10cSrcweir 49cdf0e10cSrcweir /** Grabs the focus to the BrowseBox. */ 50cdf0e10cSrcweir virtual void SAL_CALL grabFocus() throw ( ::com::sun::star::uno::RuntimeException ); 51cdf0e10cSrcweir isRowBarCell() const52cdf0e10cSrcweir inline sal_Bool isRowBarCell() const 53cdf0e10cSrcweir { 54cdf0e10cSrcweir return getType() == ::svt::BBTYPE_ROWHEADERCELL; 55cdf0e10cSrcweir } 56cdf0e10cSrcweir 57cdf0e10cSrcweir /** @return 58cdf0e10cSrcweir The name of this class. 59cdf0e10cSrcweir */ 60cdf0e10cSrcweir virtual ::rtl::OUString SAL_CALL getImplementationName() throw ( ::com::sun::star::uno::RuntimeException ); 61cdf0e10cSrcweir 62cdf0e10cSrcweir /** Creates a new AccessibleStateSetHelper and fills it with states of the 63cdf0e10cSrcweir current object. 64cdf0e10cSrcweir @return 65cdf0e10cSrcweir A filled AccessibleStateSetHelper. 66cdf0e10cSrcweir */ 67cdf0e10cSrcweir ::utl::AccessibleStateSetHelper* implCreateStateSetHelper(); 68cdf0e10cSrcweir 69cdf0e10cSrcweir protected: 70cdf0e10cSrcweir virtual Rectangle implGetBoundingBox(); 71cdf0e10cSrcweir 72cdf0e10cSrcweir virtual Rectangle implGetBoundingBoxOnScreen(); 73cdf0e10cSrcweir }; 74cdf0e10cSrcweir } 75cdf0e10cSrcweir 76cdf0e10cSrcweir #endif // ACCESSIBILITY_EXT_ACCESSIBLEBROWSEBOXHEADERCELL_HXX 77cdf0e10cSrcweir 78