line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package HTML::FormatNroff::Table::Cell; |
2
|
|
|
|
|
|
|
|
3
|
9
|
|
|
9
|
|
3557
|
use 5.004; |
|
9
|
|
|
|
|
21
|
|
|
9
|
|
|
|
|
285
|
|
4
|
9
|
|
|
9
|
|
34
|
use strict; |
|
9
|
|
|
|
|
8
|
|
|
9
|
|
|
|
|
241
|
|
5
|
9
|
|
|
9
|
|
33
|
use warnings; |
|
9
|
|
|
|
|
7
|
|
|
9
|
|
|
|
|
325
|
|
6
|
9
|
|
|
9
|
|
36
|
use Carp; |
|
9
|
|
|
|
|
11
|
|
|
9
|
|
|
|
|
2260
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub new { |
9
|
15
|
|
|
15
|
1
|
47
|
my ( $class, %attr ) = @_; |
10
|
|
|
|
|
|
|
|
11
|
15
|
|
100
|
|
|
378
|
my $self = bless { |
|
|
|
50
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
|
50
|
|
|
|
|
12
|
|
|
|
|
|
|
header => $attr{'header'} || '', |
13
|
|
|
|
|
|
|
nowrap => $attr{'nowrap'} || 'nowrap', |
14
|
|
|
|
|
|
|
rowspan => $attr{'rowspan'} || 1, |
15
|
|
|
|
|
|
|
colspan => $attr{'colspan'} || 1, |
16
|
|
|
|
|
|
|
align => $attr{'align'} || 'left', |
17
|
|
|
|
|
|
|
valign => $attr{'valign'} || 'middle', |
18
|
|
|
|
|
|
|
contents => $attr{'contents'} || '', |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
text => "", |
21
|
|
|
|
|
|
|
}, $class; |
22
|
|
|
|
|
|
|
|
23
|
15
|
|
|
|
|
122
|
return $self; |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
sub add_text { |
27
|
17
|
|
|
17
|
1
|
30
|
my ( $self, $text ) = @_; |
28
|
|
|
|
|
|
|
|
29
|
17
|
|
|
|
|
96
|
$self->{'text'} .= $text; |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
sub alignment { |
33
|
1
|
|
|
1
|
1
|
2
|
my ($self) = @_; |
34
|
|
|
|
|
|
|
|
35
|
1
|
|
|
|
|
5
|
return $self->{'align'}; |
36
|
|
|
|
|
|
|
} |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
sub colspan { |
39
|
1
|
|
|
1
|
1
|
7
|
my ($self) = @_; |
40
|
|
|
|
|
|
|
|
41
|
1
|
|
|
|
|
11
|
return $self->{'colspan'}; |
42
|
|
|
|
|
|
|
} |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
sub text { |
45
|
2
|
|
|
2
|
1
|
4
|
my ($self) = @_; |
46
|
|
|
|
|
|
|
|
47
|
2
|
|
|
|
|
13
|
return $self->{'text'}; |
48
|
|
|
|
|
|
|
} |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
sub width { |
51
|
13
|
|
|
13
|
1
|
14
|
my ($self) = @_; |
52
|
|
|
|
|
|
|
|
53
|
13
|
|
|
|
|
36
|
length( $self->{'text'} ); |
54
|
|
|
|
|
|
|
} |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
1; |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
__END__ |