michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* vim: set ts=2 et sw=2 tw=80: */ 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 file, michael@0: * You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef mozilla_a11y_xpcom_xpcAccessibletableCell_h_ michael@0: #define mozilla_a11y_xpcom_xpcAccessibletableCell_h_ michael@0: michael@0: #include "nscore.h" michael@0: michael@0: class nsIAccessibleTable; michael@0: class nsIArray; michael@0: michael@0: namespace mozilla { michael@0: namespace a11y { michael@0: michael@0: class TableAccessible; michael@0: class TableCellAccessible; michael@0: michael@0: /** michael@0: * This class provides an implementation of the nsIAccessibleTableCell michael@0: * interface's methods. michael@0: */ michael@0: class xpcAccessibleTableCell michael@0: { michael@0: public: michael@0: xpcAccessibleTableCell(mozilla::a11y::TableCellAccessible* aTableCell) : michael@0: mTableCell(aTableCell) { } michael@0: michael@0: nsresult GetTable(nsIAccessibleTable** aTable); michael@0: nsresult GetColumnIndex(int32_t* aColIdx); michael@0: nsresult GetRowIndex(int32_t* aRowIdx); michael@0: nsresult GetColumnExtent(int32_t* aExtent); michael@0: nsresult GetRowExtent(int32_t* aExtent); michael@0: nsresult GetColumnHeaderCells(nsIArray** aHeaderCells); michael@0: nsresult GetRowHeaderCells(nsIArray** aHeaderCells); michael@0: nsresult IsSelected(bool* aSelected); michael@0: michael@0: protected: michael@0: mozilla::a11y::TableCellAccessible* mTableCell; michael@0: }; michael@0: michael@0: } // namespace a11y michael@0: } // namespace mozilla michael@0: michael@0: #endif // mozilla_a11y_xpcom_xpcAccessibletableCell_h_