Accessibility/MathML: Difference between revisions

Jump to navigation Jump to search
Added table and table cell interfaces.
(Added potential relations.)
(Added table and table cell interfaces.)
Line 462: Line 462:
// Get token value for token MathML elements (mi, mo, mn, mtext, mspace, ms,
// Get token value for token MathML elements (mi, mo, mn, mtext, mspace, ms,
// mglyph).  Returns empty string if not a token element.
// mglyph).  Returns empty string if not a token element.
readonly attribute boolean isToken;
// Check if this element is a token MathML element.
readonly attribute nsIPersistentProperties attributes;
// Get attributes specific to the MathML element.
</pre>
</pre>


Line 528: Line 522:
Returns nullptr if the related accessible doesn't exist.
Returns nullptr if the related accessible doesn't exist.


In addition, something similar to nsIAccessibleTable should be provided for table access and manipulation.
==nsIAccessibleMathMLTable==
Inherit from nsISupports.
 
<pre>
/**
* Return columns count in the table.
*/
readonly attribute long columnCount;
 
/**
* Return rows count in the table.
*/
readonly attribute long rowCount;
 
/**
* Return the MathML accessible object at the given row and column in the
* table.
*
* @param  rowIndex    [in] the row index to retrieve the cell at
* @param  columnIndex  [in] the column index to retrieve the cell at
*/
nsIAccessibleMathML getCellAt(in long rowIndex, in long columnIndex);
 
/**
* Return the number of columns occupied by the MathML accessible cell at
* the specified row and column in the table. The result differs from 1 if
* the specified cell spans multiple columns.
*
* @param  row    [in] row index of the cell to return the column extent for
* @param  column  [in] column index of the cell to return the column extent
*                  for
*/
long getColumnExtentAt(in long row, in long column);
 
/**
* Return the number of rows occupied by the MathML accessible cell at the
* specified row and column in the table. The result differs from 1 if the
* specified cell spans multiple rows.
*
* @param  row    [in] row index of the cell to return the column extent for
* @param  column  [in] column index of the cell to return the column extent
*                  for
*/
long getRowExtentAt(in long row, in long column);
 
/**
* Return the label MathML accessible of the specified row in the table if
* available (mlabeledtr), or nullptr otherwise.
*
* @param  rowIndex  [in] the row index to retrieve label mtd for
*/
nsIAccessibleMathML getRowLabel(in long rowIndex);
</pre>
 
==nsIAccessibleMathMLTableCell==
Inherit from nsISupports.
 
<pre>
/**
* Return container MathML table accessible.
*/
readonly attribute nsIAccessibleMathMLTable table;
 
/**
* Return column index of this cell.
*/
readonly attribute long columnIndex;
 
/**
* Return row index of this cell.
*/
readonly attribute long rowIndex;
 
/**
* Return the number of columns occupied by this cell. The result differs
* from 1 if the specified cell spans multiple columns.
*/
readonly attribute long columnExtent;
 
/**
* Return the number of rows occupied by this accessible cell. The result
* differs from 1 if the specified cell spans multiple rows.
*/
readonly attribute long rowExtent;
</pre>


==MathMLAccessible==
==MathMLAccessible==
29

edits

Navigation menu