Back to index

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

#include <nsITableLayoutStrategy.h>

Inheritance diagram for nsITableLayoutStrategy:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual ~nsITableLayoutStrategy ()
virtual PRBool Initialize (const nsHTMLReflowState &aReflowState)=0
 call once every time any table thing changes (content, structure, or style)
virtual PRBool BalanceColumnWidths (const nsHTMLReflowState &aReflowState)=0
 assign widths for each column, taking into account the table content, the effective style, the layout constraints, and the compatibility mode.
virtual nscoord CalcPctAdjTableWidth (const nsHTMLReflowState &aReflowState, nscoord aAvailWidth)=0
 Calculate the basis for percent width calculations of the table elements.

Detailed Description

Definition at line 50 of file nsITableLayoutStrategy.h.


Constructor & Destructor Documentation

virtual nsITableLayoutStrategy::~nsITableLayoutStrategy ( ) [inline, virtual]

Definition at line 53 of file nsITableLayoutStrategy.h.

{};

Member Function Documentation

virtual PRBool nsITableLayoutStrategy::BalanceColumnWidths ( const nsHTMLReflowState aReflowState) [pure virtual]

assign widths for each column, taking into account the table content, the effective style, the layout constraints, and the compatibility mode.

Sets mColumnWidths as a side effect.

Parameters:
aReflowState- the reflow state for mTableFrame

Implemented in BasicTableLayoutStrategy, and FixedTableLayoutStrategy.

Here is the caller graph for this function:

virtual nscoord nsITableLayoutStrategy::CalcPctAdjTableWidth ( const nsHTMLReflowState aReflowState,
nscoord  aAvailWidth 
) [pure virtual]

Calculate the basis for percent width calculations of the table elements.

Parameters:
aReflowState- the reflow state of the table
aAvailWidth- the available width for the table
Returns:
- the basis for percent calculations

Implemented in BasicTableLayoutStrategy, and FixedTableLayoutStrategy.

Here is the caller graph for this function:

virtual PRBool nsITableLayoutStrategy::Initialize ( const nsHTMLReflowState aReflowState) [pure virtual]

call once every time any table thing changes (content, structure, or style)

Parameters:
aReflowState- the reflow state for mTableFrame

Implemented in BasicTableLayoutStrategy.

Here is the caller graph for this function:


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