| 1 | package Excel::Template::Container::Row; | ||||||||||
| 2 | |||||||||||
| 3 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | |||||||||||
| 5 | BEGIN { | ||||||||||
| 6 | 1 | ▶ | use vars qw(@ISA); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | 1 | ▶ | @ISA = qw(Excel::Template::Container); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | |||||||||||
| 9 | 1 | ▶ | use Excel::Template::Container; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | } | ||||||||||
| 11 | |||||||||||
| 12 | sub render | ||||||||||
| 13 | { | ||||||||||
| 14 | 0 | ▶ | my $self = shift; | ||||||||
|
Subroutine
render: not called CC=3 SCAR=24.8
Pod
undocumented
| |||||||||||
| 15 | 0 | my ($context) = @_; | |||||||||
| 16 | |||||||||||
| 17 | 0 | $context->{COL} = 0; | |||||||||
| 18 | |||||||||||
| 19 | # Apply the height to the current row | ||||||||||
| 20 | 0 | ▶ | if (my $height = $context->get($self, 'HEIGHT')) | ||||||||
|
Branch: 1 branch
| |||||||||||
| 21 | { | ||||||||||
| 22 | 0 | $height =~ s/\D//g; | |||||||||
| 23 | 0 | $height *= 1; | |||||||||
| 24 | 0 | ▶ | if ($height > 0) | ||||||||
|
Branch: 1 branch
| |||||||||||
| 25 | { | ||||||||||
| 26 | 0 | $context->active_worksheet->set_row( | |||||||||
| 27 | $context->get( $self, 'ROW' ), | ||||||||||
| 28 | $height, | ||||||||||
| 29 | ); | ||||||||||
| 30 | } | ||||||||||
| 31 | } | ||||||||||
| 32 | |||||||||||
| 33 | 0 | return $self->SUPER::render($context); | |||||||||
| 34 | } | ||||||||||
| 35 | |||||||||||
| 36 | sub deltas | ||||||||||
| 37 | { | ||||||||||
| 38 | return { | ||||||||||
| 39 | 0 | ▶ | ROW => +1, | ||||||||
|
Subroutine
deltas: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 40 | }; | ||||||||||
| 41 | } | ||||||||||
| 42 | |||||||||||
| 43 | 1 | 1; | |||||||||
| 44 | __END__ | ||||||||||