|
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
|
2 /* vim:expandtab:shiftwidth=2:tabstop=2: |
|
3 */ |
|
4 /* This Source Code Form is subject to the terms of the Mozilla Public |
|
5 * License, v. 2.0. If a copy of the MPL was not distributed with this |
|
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
|
7 |
|
8 #ifndef _ACCESSIBLE_TABLECELL_H |
|
9 #define _ACCESSIBLE_TABLECELL_H |
|
10 |
|
11 #include "AccessibleTableCell.h" |
|
12 |
|
13 namespace mozilla { |
|
14 namespace a11y { |
|
15 class TableCellAccessible; |
|
16 |
|
17 class ia2AccessibleTableCell : public IAccessibleTableCell |
|
18 { |
|
19 public: |
|
20 |
|
21 // IUnknown |
|
22 STDMETHODIMP QueryInterface(REFIID, void**); |
|
23 |
|
24 // IAccessibleTableCell |
|
25 |
|
26 virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_table( |
|
27 /* [out, retval] */ IUnknown **table); |
|
28 |
|
29 virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_columnExtent( |
|
30 /* [out, retval] */ long *nColumnsSpanned); |
|
31 |
|
32 virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_columnHeaderCells( |
|
33 /* [out, size_is(,*nColumnHeaderCells,)] */ IUnknown ***cellAccessibles, |
|
34 /* [out, retval] */ long *nColumnHeaderCells); |
|
35 |
|
36 virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_columnIndex( |
|
37 /* [out, retval] */ long *columnIndex); |
|
38 |
|
39 virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_rowExtent( |
|
40 /* [out, retval] */ long *nRowsSpanned); |
|
41 |
|
42 virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_rowHeaderCells( |
|
43 /* [out, size_is(,*nRowHeaderCells,)] */ IUnknown ***cellAccessibles, |
|
44 /* [out, retval] */ long *nRowHeaderCells); |
|
45 |
|
46 virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_rowIndex( |
|
47 /* [out, retval] */ long *rowIndex); |
|
48 |
|
49 virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_rowColumnExtents( |
|
50 /* [out] */ long *row, |
|
51 /* [out] */ long *column, |
|
52 /* [out] */ long *rowExtents, |
|
53 /* [out] */ long *columnExtents, |
|
54 /* [out, retval] */ boolean *isSelected); |
|
55 |
|
56 virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_isSelected( |
|
57 /* [out, retval] */ boolean *isSelected); |
|
58 |
|
59 protected: |
|
60 ia2AccessibleTableCell(TableCellAccessible* aTableCell) : |
|
61 mTableCell(aTableCell) {} |
|
62 |
|
63 TableCellAccessible* mTableCell; |
|
64 }; |
|
65 |
|
66 } // namespace a11y |
|
67 } // namespace mozilla |
|
68 |
|
69 #endif |