« blib/lib/DBIx/ReportBuilder/Clause/Cell.pm
↑ Summary
blib/lib/DBIx/ReportBuilder/Clause/Groupby.pm »
| 1 | # $File: //member/autrijus/DBIx-ReportBuilder/lib/DBIx/ReportBuilder/Part/P.pm $ $Author: autrijus $ | ||
| 2 | # $Revision: #4 $ $Change: 7993 $ $DateTime: 2003/09/08 23:40:50 $ | ||
| 3 | |||
| 4 | package DBIx::ReportBuilder::Part::P; | ||
| 5 | use base 'DBIx::ReportBuilder::Part'; | ||
| 6 | |||
| 7 | sub Insert { | ||
| 8 | my $self = shift; | ||
| 9 | my $rv = $self->SUPER::Insert(@_); | ||
| 10 | return $rv if length($self->text); | ||
| 11 | |||
| 12 | # special case: if we are empty, replace ourselves. | ||
| 13 | $self->delete; | ||
| 14 | return 0; | ||
| 15 | } | ||
| 16 | |||
| 17 | use constant Inputs => ( | ||
| 18 | align => { | ||
| 19 | type => 'radio', | ||
| 20 | choices => [qw/left center right/], | ||
| 21 | default => 'left', | ||
| 22 | }, | ||
| 23 | font => { | ||
| 24 | }, | ||
| 25 | align => [ qw( align font size border ) ], | ||
| 26 | ); | ||
| 27 | |||
| 28 | 1; |