accessible/src/xpcom/xpcAccessibleTable.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/accessible/src/xpcom/xpcAccessibleTable.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,70 @@
     1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* vim: set ts=2 et sw=2 tw=80: */
     1.6 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this file,
     1.8 + * You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.9 +
    1.10 +#ifndef MOZILLA_A11Y_XPCOM_XPACCESSIBLETABLE_H_
    1.11 +#define MOZILLA_A11Y_XPCOM_XPACCESSIBLETABLE_H_
    1.12 +
    1.13 +#include "nsAString.h"
    1.14 +#include "nscore.h"
    1.15 +
    1.16 +class nsIAccessible;
    1.17 +class nsIArray;
    1.18 +
    1.19 +namespace mozilla {
    1.20 +namespace a11y {
    1.21 +
    1.22 +class TableAccessible;
    1.23 +
    1.24 +class xpcAccessibleTable
    1.25 +{
    1.26 +public:
    1.27 +  xpcAccessibleTable(mozilla::a11y::TableAccessible* aTable) : mTable(aTable) { }
    1.28 +
    1.29 +  nsresult GetCaption(nsIAccessible** aCaption);
    1.30 +  nsresult GetSummary(nsAString& aSummary);
    1.31 +  nsresult GetColumnCount(int32_t* aColumnCount);
    1.32 +  nsresult GetRowCount(int32_t* aRowCount);
    1.33 +  nsresult GetCellAt(int32_t aRowIndex, int32_t aColumnIndex,
    1.34 +                     nsIAccessible** aCell);
    1.35 +  nsresult GetCellIndexAt(int32_t aRowIndex, int32_t aColumnIndex,
    1.36 +                          int32_t* aCellIndex);
    1.37 +  nsresult GetColumnIndexAt(int32_t aCellIndex, int32_t* aColumnIndex);
    1.38 +  nsresult GetRowIndexAt(int32_t aCellIndex, int32_t* aRowIndex);
    1.39 +  nsresult GetRowAndColumnIndicesAt(int32_t aCellIndex, int32_t* aRowIndex,
    1.40 +                                    int32_t* aColumnIndex);
    1.41 +  nsresult GetColumnExtentAt(int32_t row, int32_t column,
    1.42 +                             int32_t* aColumnExtent);
    1.43 +  nsresult GetRowExtentAt(int32_t row, int32_t column,
    1.44 +                          int32_t* aRowExtent);
    1.45 +  nsresult GetColumnDescription(int32_t aColIdx, nsAString& aDescription);
    1.46 +  nsresult GetRowDescription(int32_t aRowIdx, nsAString& aDescription);
    1.47 +  nsresult IsColumnSelected(int32_t aColIdx, bool* _retval);
    1.48 +  nsresult IsRowSelected(int32_t aRowIdx, bool* _retval);
    1.49 +  nsresult IsCellSelected(int32_t aRowIdx, int32_t aColIdx, bool* _retval);
    1.50 +  nsresult GetSelectedCellCount(uint32_t* aSelectedCellCount);
    1.51 +  nsresult GetSelectedColumnCount(uint32_t* aSelectedColumnCount);
    1.52 +  nsresult GetSelectedRowCount(uint32_t* aSelectedRowCount);
    1.53 +  nsresult GetSelectedCells(nsIArray** aSelectedCell);
    1.54 +  nsresult GetSelectedCellIndices(uint32_t* aCellsArraySize,
    1.55 +                                  int32_t** aCellsArray);
    1.56 +  nsresult GetSelectedColumnIndices(uint32_t* aColsArraySize,
    1.57 +                                    int32_t** aColsArray);
    1.58 +  nsresult GetSelectedRowIndices(uint32_t* aRowsArraySize,
    1.59 +                                 int32_t** aRowsArray);
    1.60 +  nsresult SelectColumn(int32_t aColIdx);
    1.61 +  nsresult SelectRow(int32_t aRowIdx);
    1.62 +  nsresult UnselectColumn(int32_t aColIdx);
    1.63 +  nsresult UnselectRow(int32_t aRowIdx);
    1.64 +  nsresult IsProbablyForLayout(bool* aIsForLayout);
    1.65 +
    1.66 +protected:
    1.67 +  mozilla::a11y::TableAccessible* mTable;
    1.68 +};
    1.69 +
    1.70 +} // namespace a11y
    1.71 +} // namespace mozilla
    1.72 +
    1.73 +#endif // MOZILLA_A11Y_XPCOM_XPACCESSIBLETABLE_H_

mercurial