accessible/src/windows/ia2/ia2AccessibleTableCell.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/accessible/src/windows/ia2/ia2AccessibleTableCell.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,69 @@
     1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* vim:expandtab:shiftwidth=2:tabstop=2:
     1.6 + */
     1.7 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.8 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.9 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
    1.10 +
    1.11 +#ifndef _ACCESSIBLE_TABLECELL_H
    1.12 +#define _ACCESSIBLE_TABLECELL_H
    1.13 +
    1.14 +#include "AccessibleTableCell.h"
    1.15 +
    1.16 +namespace mozilla {
    1.17 +namespace a11y {
    1.18 +class TableCellAccessible;
    1.19 +
    1.20 +class ia2AccessibleTableCell : public IAccessibleTableCell
    1.21 +{
    1.22 +public:
    1.23 +
    1.24 +  // IUnknown
    1.25 +  STDMETHODIMP QueryInterface(REFIID, void**);
    1.26 +
    1.27 +  // IAccessibleTableCell
    1.28 +
    1.29 +  virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_table(
    1.30 +      /* [out, retval] */ IUnknown **table);
    1.31 +
    1.32 +  virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_columnExtent(
    1.33 +      /* [out, retval] */ long *nColumnsSpanned);
    1.34 +
    1.35 +  virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_columnHeaderCells(
    1.36 +      /* [out, size_is(,*nColumnHeaderCells,)] */ IUnknown ***cellAccessibles,
    1.37 +      /* [out, retval] */ long *nColumnHeaderCells);
    1.38 +
    1.39 +  virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_columnIndex(
    1.40 +      /* [out, retval] */ long *columnIndex);
    1.41 +
    1.42 +  virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_rowExtent(
    1.43 +      /* [out, retval] */ long *nRowsSpanned);
    1.44 +
    1.45 +  virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_rowHeaderCells(
    1.46 +      /* [out, size_is(,*nRowHeaderCells,)] */ IUnknown ***cellAccessibles,
    1.47 +      /* [out, retval] */ long *nRowHeaderCells);
    1.48 +
    1.49 +  virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_rowIndex(
    1.50 +      /* [out, retval] */ long *rowIndex);
    1.51 +
    1.52 +  virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_rowColumnExtents(
    1.53 +      /* [out] */ long *row,
    1.54 +      /* [out] */ long *column,
    1.55 +      /* [out] */ long *rowExtents,
    1.56 +      /* [out] */ long *columnExtents,
    1.57 +      /* [out, retval] */ boolean *isSelected);
    1.58 +
    1.59 +  virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_isSelected(
    1.60 +      /* [out, retval] */ boolean *isSelected);
    1.61 +
    1.62 +protected:
    1.63 +  ia2AccessibleTableCell(TableCellAccessible* aTableCell) :
    1.64 +    mTableCell(aTableCell) {}
    1.65 +
    1.66 +  TableCellAccessible* mTableCell;
    1.67 +};
    1.68 +
    1.69 +} // namespace a11y
    1.70 +} // namespace mozilla
    1.71 +
    1.72 +#endif

mercurial