NAME

HTML::FormatNroff::Table::Cell - Format HTML Table

SYNOPSIS

use HTML::FormatNroff::Table::Cell;
use parent 'HTML::FormatNroff::Table::Cell';

DESCRIPTION

The HTML::FormatNroff::Table::Cell is a base class used to record information about a table entry as part of FormatTable processing. It is necessary to record information for formatting into languages such as nroff tbl which require formatting information ahead of the table data.

METHODS

new

my $cell = HTML::FormatNroff::Table::Cell->new(%attr);

Since this is a base class, a derived class constructor such as HTML::FormatNroff::Table::CellNroff should be called.

The following attributes are supported:

is a header (default is '')

nowrap

do not wrap if defined

rowspan

number of rows cell spans (default is 1)

colspan

number of columns cell spans (default is 1)

align

alignment of cell contents (default is 'left')

valign

vertical alignment of cell (default is 'middle')

contents

contents of cell (default is '')

add_text($text);

Add additional contents to cell.

alignment();

Return cell alignment.

colspan();

Return cell colspan.

text();

Return cell text.

width();

Return cell width in characters.

SEE ALSO

HTML::FormatNroff,

COPYRIGHT

Copyright (c) 1997 Frederick Hirsch. All rights reserved.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

Frederick Hirsch <f.hirsch@opengroup.org>