NAME

HTML::FormatNroff::Table - base class for formatting HTML Tables

SYNOPSIS

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

DESCRIPTION

The HTML::FormatNroff::Table is a base class for formatting HTML tables. It is used by a class such as HTML::FormatNroff::Table::Nroff, which is called by the formatter HTML::FormatNroff when tables are processed.

METHODS

new

Create new table representation. Formatter is used to output table (e.g. $formatter is HTML::FormatNroff)

my $table = HTML::FormatNroff::Table->new($formatter, %attr);

Attributes include

align

table alignment (default is 'left'),

tab

the character used in tbl to separate table cells. (the default is '%', and should be a character not included in table text)

page_width

the page width in inches (e.g. "6")

width

width of table, string including the percent (eg "100%")

$table->end_row();

End the current table row.

$table->start_data(%attr);

Start new table cell.

$table->end_data();

End table cell.

$table->add_text($text);

Add text to table

$table->output();

Output the table - must be overridden by subclass.

SEE ALSO

HTML::Formatter

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>