michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* vim:expandtab:shiftwidth=2:tabstop=2: michael@0: */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef _ACCESSIBLE_TABLECELL_H michael@0: #define _ACCESSIBLE_TABLECELL_H michael@0: michael@0: #include "AccessibleTableCell.h" michael@0: michael@0: namespace mozilla { michael@0: namespace a11y { michael@0: class TableCellAccessible; michael@0: michael@0: class ia2AccessibleTableCell : public IAccessibleTableCell michael@0: { michael@0: public: michael@0: michael@0: // IUnknown michael@0: STDMETHODIMP QueryInterface(REFIID, void**); michael@0: michael@0: // IAccessibleTableCell michael@0: michael@0: virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_table( michael@0: /* [out, retval] */ IUnknown **table); michael@0: michael@0: virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_columnExtent( michael@0: /* [out, retval] */ long *nColumnsSpanned); michael@0: michael@0: virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_columnHeaderCells( michael@0: /* [out, size_is(,*nColumnHeaderCells,)] */ IUnknown ***cellAccessibles, michael@0: /* [out, retval] */ long *nColumnHeaderCells); michael@0: michael@0: virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_columnIndex( michael@0: /* [out, retval] */ long *columnIndex); michael@0: michael@0: virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_rowExtent( michael@0: /* [out, retval] */ long *nRowsSpanned); michael@0: michael@0: virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_rowHeaderCells( michael@0: /* [out, size_is(,*nRowHeaderCells,)] */ IUnknown ***cellAccessibles, michael@0: /* [out, retval] */ long *nRowHeaderCells); michael@0: michael@0: virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_rowIndex( michael@0: /* [out, retval] */ long *rowIndex); michael@0: michael@0: virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_rowColumnExtents( michael@0: /* [out] */ long *row, michael@0: /* [out] */ long *column, michael@0: /* [out] */ long *rowExtents, michael@0: /* [out] */ long *columnExtents, michael@0: /* [out, retval] */ boolean *isSelected); michael@0: michael@0: virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_isSelected( michael@0: /* [out, retval] */ boolean *isSelected); michael@0: michael@0: protected: michael@0: ia2AccessibleTableCell(TableCellAccessible* aTableCell) : michael@0: mTableCell(aTableCell) {} michael@0: michael@0: TableCellAccessible* mTableCell; michael@0: }; michael@0: michael@0: } // namespace a11y michael@0: } // namespace mozilla michael@0: michael@0: #endif