11 |
|
|
12 |
sub subdocument_index ($) { 0 } |
sub subdocument_index ($) { 0 } |
13 |
|
|
14 |
|
sub full_subdocument_index ($) { 0 } |
15 |
|
|
16 |
sub generate_info_section ($$) { |
sub generate_info_section ($$) { |
17 |
my $self = shift; |
my $self = shift; |
18 |
|
|
145 |
return shift->{subdocument_index}; |
return shift->{subdocument_index}; |
146 |
} # subdocument_index |
} # subdocument_index |
147 |
|
|
148 |
|
sub full_subdocument_index ($) { |
149 |
|
my $self = shift; |
150 |
|
my $parent = $self->{parent_input}->full_subdocument_index; |
151 |
|
if ($parent) { |
152 |
|
return $parent . '.' . $self->{subdocument_index}; |
153 |
|
} else { |
154 |
|
return $self->{subdocument_index}; |
155 |
|
} |
156 |
|
} # full_subdocument_index |
157 |
|
|
158 |
sub start_section ($$) { |
sub start_section ($$) { |
159 |
my $self = shift; |
my $self = shift; |
160 |
|
|
161 |
my $result = shift; |
my $result = shift; |
162 |
my $out = $result->output; |
my $out = $result->output; |
163 |
|
|
164 |
|
my $index = $self->full_subdocument_index; |
165 |
$out->start_section (id => $self->id_prefix, |
$out->start_section (id => $self->id_prefix, |
166 |
title => qq[Subdocument #] . $self->subdocument_index, |
title => qq[Subdocument #] . $index, |
167 |
short_title => 'Sub #' . $self->subdocument_index); |
short_title => 'Sub #' . $index); |
168 |
} # start_section |
} # start_section |
169 |
|
|
170 |
sub end_section ($$) { |
sub end_section ($$) { |