1 package Excel::Template::Container::KeepLeadingZeros;
7 @ISA = qw(Excel::Template::Container);
9 use Excel::Template::Container;
17 my $worksheet = $context->active_worksheet;
20 ? $worksheet->keep_leading_zeros( 1 )
21 : $context->mark( keep_leading_zeros => 1 );
23 my $rv = $self->SUPER::render($context);
26 ? $worksheet->keep_leading_zeros( 0 )
27 : $context->mark( keep_leading_zeros => 0 );
37 Excel::Template::Container::KeepLeadingZeros - Excel::Template::Container::KeepLeadingZeros
41 To set the keep_leading_zeros flag for the surrounding worksheet or any worksheets that might be contained within this node.
49 L<CONTAINER|Excel::Template::Container>
61 Alters how leading zeros are interpreted by L<Spreadsheet::WriteExcel>.
70 ... Cells here will NOT have leading-zeros preserved
72 ... Cells here will have leading-zeros preserved
74 ... Cells here will NOT have leading-zeros preserved
79 ... Cells here will have leading-zeros preserved
82 ... Cells here will have leading-zeros preserved
88 Rob Kinyon (rob.kinyon@gmail.com)
92 L<CELL|Excel::Template::Element::Cell>, L<Spreadsheet::WriteExcel>