Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*
3 : : * This file is part of the LibreOffice project.
4 : : *
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/.
8 : : *
9 : : * This file incorporates work covered by the following license notice:
10 : : *
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 .
18 : : */
19 : : #ifndef ACCESSIBILITY_EXT_ACCESSIBLEGRIDCONTROLHEADERCELL_HXX
20 : : #define ACCESSIBILITY_EXT_ACCESSIBLEGRIDCONTROLHEADERCELL_HXX
21 : :
22 : : #include "accessibility/extended/AccessibleGridControlTableCell.hxx"
23 : :
24 : : namespace accessibility
25 : : {
26 [ # # ]: 0 : class AccessibleGridControlHeaderCell : public AccessibleGridControlCell, public ::com::sun::star::accessibility::XAccessible
27 : : {
28 : : sal_Int32 m_nColumnRowId;
29 : : public:
30 : : AccessibleGridControlHeaderCell(sal_Int32 _nColumnRowId,
31 : : const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >& rxParent,
32 : : ::svt::table::IAccessibleTable& _rTable,
33 : : ::svt::table::AccessibleTableControlObjType _eObjType);
34 : : /** @return The count of visible children. */
35 : : virtual sal_Int32 SAL_CALL getAccessibleChildCount() throw ( ::com::sun::star::uno::RuntimeException );
36 : :
37 : : /** @return The XAccessible interface of the specified child. */
38 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL
39 : : getAccessibleChild( sal_Int32 nChildIndex ) throw ( ::com::sun::star::lang::IndexOutOfBoundsException,::com::sun::star::uno::RuntimeException );
40 : :
41 : : /** @return The index of this object among the parent's children. */
42 : : virtual sal_Int32 SAL_CALL getAccessibleIndexInParent() throw ( ::com::sun::star::uno::RuntimeException );
43 : :
44 : : /** Grabs the focus to the GridControl. */
45 : : virtual void SAL_CALL grabFocus() throw ( ::com::sun::star::uno::RuntimeException );
46 : :
47 : : // XInterface -------------------------------------------------------------
48 : :
49 : : /** Queries for a new interface. */
50 : : ::com::sun::star::uno::Any SAL_CALL queryInterface(
51 : : const ::com::sun::star::uno::Type& rType )
52 : : throw ( ::com::sun::star::uno::RuntimeException );
53 : :
54 : : /** Aquires the object (calls acquire() on base class). */
55 : : virtual void SAL_CALL acquire() throw ();
56 : :
57 : : /** Releases the object (calls release() on base class). */
58 : : virtual void SAL_CALL release() throw ();
59 : : // XAccessible ------------------------------------------------------------
60 : :
61 : : /** @return The XAccessibleContext interface of this object. */
62 : : virtual ::com::sun::star::uno::Reference<
63 : : ::com::sun::star::accessibility::XAccessibleContext > SAL_CALL
64 : : getAccessibleContext()
65 : : throw ( ::com::sun::star::uno::RuntimeException );
66 : : //-------------------------------------------------------------------------
67 : : inline sal_Bool isRowBarCell() const
68 : : {
69 : : return getType() == ::svt::table::TCTYPE_ROWHEADERCELL;
70 : : }
71 : :
72 : : /** @return
73 : : The name of this class.
74 : : */
75 : : virtual ::rtl::OUString SAL_CALL getImplementationName() throw ( ::com::sun::star::uno::RuntimeException );
76 : :
77 : : /** Creates a new AccessibleStateSetHelper and fills it with states of the
78 : : current object.
79 : : @return
80 : : A filled AccessibleStateSetHelper.
81 : : */
82 : : ::utl::AccessibleStateSetHelper* implCreateStateSetHelper();
83 : :
84 : : protected:
85 : : virtual Rectangle implGetBoundingBox();
86 : :
87 : : virtual Rectangle implGetBoundingBoxOnScreen();
88 : : private:
89 : : ::rtl::OUString m_sHeaderName;
90 : : };
91 : : }
92 : :
93 : : #endif // ACCESSIBILITY_EXT_ACCESSIBLEGRIDCONTROLHEADERCELL_HXX
94 : :
95 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|