ia2AccessibleTableCell.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. #ifndef _ACCESSIBLE_TABLECELL_H
  8. #define _ACCESSIBLE_TABLECELL_H
  9. #include "AccessibleTableCell.h"
  10. namespace mozilla {
  11. namespace a11y {
  12. class TableCellAccessible;
  13. class ia2AccessibleTableCell : public IAccessibleTableCell
  14. {
  15. public:
  16. // IUnknown
  17. STDMETHODIMP QueryInterface(REFIID, void**);
  18. // IAccessibleTableCell
  19. virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_table(
  20. /* [out, retval] */ IUnknown **table);
  21. virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_columnExtent(
  22. /* [out, retval] */ long *nColumnsSpanned);
  23. virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_columnHeaderCells(
  24. /* [out, size_is(,*nColumnHeaderCells,)] */ IUnknown ***cellAccessibles,
  25. /* [out, retval] */ long *nColumnHeaderCells);
  26. virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_columnIndex(
  27. /* [out, retval] */ long *columnIndex);
  28. virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_rowExtent(
  29. /* [out, retval] */ long *nRowsSpanned);
  30. virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_rowHeaderCells(
  31. /* [out, size_is(,*nRowHeaderCells,)] */ IUnknown ***cellAccessibles,
  32. /* [out, retval] */ long *nRowHeaderCells);
  33. virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_rowIndex(
  34. /* [out, retval] */ long *rowIndex);
  35. virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_rowColumnExtents(
  36. /* [out] */ long *row,
  37. /* [out] */ long *column,
  38. /* [out] */ long *rowExtents,
  39. /* [out] */ long *columnExtents,
  40. /* [out, retval] */ boolean *isSelected);
  41. virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_isSelected(
  42. /* [out, retval] */ boolean *isSelected);
  43. protected:
  44. ia2AccessibleTableCell(TableCellAccessible* aTableCell) :
  45. mTableCell(aTableCell) {}
  46. TableCellAccessible* mTableCell;
  47. };
  48. } // namespace a11y
  49. } // namespace mozilla
  50. #endif