Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions
nsITableLayout Class Reference

nsITableLayout interface for layout objects that act like tables. More...

#include <nsITableLayout.h>

Inheritance diagram for nsITableLayout:
Inheritance graph
[legend]
Collaboration diagram for nsITableLayout:
Collaboration graph
[legend]

List of all members.

Public Member Functions

NS_IMETHOD GetCellDataAt (PRInt32 aRowIndex, PRInt32 aColIndex, nsIDOMElement *&aCell, PRInt32 &aStartRowIndex, PRInt32 &aStartColIndex, PRInt32 &aRowSpan, PRInt32 &aColSpan, PRInt32 &aActualRowSpan, PRInt32 &aActualColSpan, PRBool &aIsSelected)=0
 return all the relevant layout information about a cell.
NS_IMETHOD GetTableSize (PRInt32 &aRowCount, PRInt32 &aColCount)=0
 Get the number of rows and column for a table from the frame's cellmap Some rows may not have enough cells (the number returned is the maximum possible), which displays as a ragged-right edge table.

Detailed Description

nsITableLayout interface for layout objects that act like tables.

initially, we use this to get cell info

Author:
sclark

Definition at line 55 of file nsITableLayout.h.


Member Function Documentation

NS_IMETHOD nsITableLayout::GetCellDataAt ( PRInt32  aRowIndex,
PRInt32  aColIndex,
nsIDOMElement *&  aCell,
PRInt32 aStartRowIndex,
PRInt32 aStartColIndex,
PRInt32 aRowSpan,
PRInt32 aColSpan,
PRInt32 aActualRowSpan,
PRInt32 aActualColSpan,
PRBool aIsSelected 
) [pure virtual]

return all the relevant layout information about a cell.

Parameters:
aRowIndexa row which the cell intersects
aColIndexa col which the cell intersects
aCell[OUT] the content representing the cell at (aRowIndex, aColIndex)
aStartRowIndex[IN/OUT] the row in which aCell starts
aStartColIndex[IN/OUT] the col in which aCell starts Initialize these with the "candidate" start indexes to use for searching through the table when a cell isn't found because of "holes" in the cellmap when ROWSPAN and/or COLSPAN > 1
aRowSpan[OUT] the value of the ROWSPAN attribute (may be 0 or actual number)
aColSpan[OUT] the value of the COLSPAN attribute (may be 0 or actual number)
aActualRowSpan[OUT] the actual number of rows aCell spans
aActualColSpan[OUT] the acutal number of cols aCell spans
aIsSelected[OUT] PR_TRUE if the frame that maps aCell is selected in the presentation shell that owns this.

Implemented in nsTableFrame, and nsTableOuterFrame.

Here is the caller graph for this function:

NS_IMETHOD nsITableLayout::GetTableSize ( PRInt32 aRowCount,
PRInt32 aColCount 
) [pure virtual]

Get the number of rows and column for a table from the frame's cellmap Some rows may not have enough cells (the number returned is the maximum possible), which displays as a ragged-right edge table.

Implemented in nsTableFrame, and nsTableOuterFrame.

Here is the caller graph for this function:


The documentation for this class was generated from the following file: