« lib/PDF/FromHTML/Template/Container/Always.pm
↑ Summary
lib/PDF/FromHTML/Template/Container/Header.pm »
| 1 | package PDF::FromHTML::Template::Container::Footer; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | |||
| 5 | BEGIN { | ||
| 6 | use vars qw(@ISA); | ||
| 7 | @ISA = qw(PDF::FromHTML::Template::Container::Margin); | ||
| 8 | |||
| 9 | use PDF::FromHTML::Template::Container::Margin; | ||
| 10 | } | ||
| 11 | |||
| 12 | sub enter_scope | ||
| 13 | { | ||
| 14 | my $self = shift; | ||
| 15 | my ($context) = @_; | ||
| 16 | |||
| 17 | $self->SUPER::enter_scope($context); | ||
| 18 | |||
| 19 | @{$self}{qw/OLD_X OLD_Y/} = map { $context->get($self, $_) } qw(X Y); | ||
| 20 | |||
| 21 | $context->{X} = 0; | ||
| 22 | $context->{Y} = $context->get($self, 'FOOTER_HEIGHT'); | ||
| 23 | |||
| 24 | return 1; | ||
| 25 | } | ||
| 26 | |||
| 27 | 1; | ||
| 28 | __END__ |