1 package Excel::Template::Container::Worksheet;
7 @ISA = qw(Excel::Template::Container);
9 use Excel::Template::Container;
12 sub exit_scope { $_[1]->active_worksheet( undef ) }
19 my $worksheet = $context->new_worksheet( $self );
21 my $password = $context->get( $self, 'PROTECT' );
22 if (defined $password)
24 $worksheet->protect( $password );
27 $worksheet->keep_leading_zeros( 1 )
28 if $context->mark( 'keep_leading_zeros' );
30 return $self->SUPER::render($context);
38 Excel::Template::Container::Worksheet - Excel::Template::Container::Worksheet
42 To provide a new worksheet.
50 Excel::Template::Container
58 This is the name of the worksheet to be added.
62 If the attribute exists, it will mark the worksheet as being protected. Whatever
63 value is set will be used as the password.
65 This activates the HIDDEN and LOCKED nodes.
67 =item * KEEP_LEADING_ZEROS
69 This will change the behavior of the worksheet to preserve leading zeros.
87 <worksheet name="My Taxes">
91 In the above example, the children will be executed in the context of the
96 Rob Kinyon (rob.kinyon@gmail.com)