Revision 439e45e4
Von Moritz Bunkus vor mehr als 14 Jahren hinzugefügt
SL/Template/Excel.pm | ||
---|---|---|
1 | 1 |
package SL::Template::Excel; |
2 | 2 |
|
3 |
use SL::Template::Simple; |
|
4 |
|
|
5 |
use vars qw(@ISA); |
|
6 |
|
|
7 |
@ISA = qw(SL::Template::Simple); |
|
3 |
use parent qw(SL::Template::Simple); |
|
8 | 4 |
|
9 | 5 |
sub new { |
10 | 6 |
my $type = shift; |
SL/Template/HTML.pm | ||
---|---|---|
1 | 1 |
package SL::Template::HTML; |
2 | 2 |
|
3 |
use SL::Template::LaTeX; |
|
4 |
|
|
5 |
use vars qw(@ISA); |
|
6 |
@ISA = qw(SL::Template::LaTeX); |
|
3 |
use parent qw(SL::Template::LaTeX); |
|
7 | 4 |
|
8 | 5 |
use strict; |
9 | 6 |
|
SL/Template/LaTeX.pm | ||
---|---|---|
1 | 1 |
package SL::Template::LaTeX; |
2 | 2 |
|
3 |
use vars qw(@ISA); |
|
4 |
|
|
5 |
use SL::Template; |
|
6 |
@ISA = qw(SL::Template::Simple); |
|
3 |
use parent qw(SL::Template::Simple); |
|
7 | 4 |
|
8 | 5 |
use strict; |
9 | 6 |
|
SL/Template/OpenDocument.pm | ||
---|---|---|
1 | 1 |
package SL::Template::OpenDocument; |
2 | 2 |
|
3 |
use SL::Template::Simple;
|
|
3 |
use parent qw(SL::Template::Simple);
|
|
4 | 4 |
|
5 | 5 |
use Archive::Zip; |
6 | 6 |
use POSIX 'setsid'; |
7 |
use vars qw(@ISA); |
|
8 | 7 |
|
9 | 8 |
use SL::Iconv; |
10 | 9 |
|
... | ... | |
14 | 13 |
# use File::Temp qw(:mktemp); |
15 | 14 |
use IO::File; |
16 | 15 |
|
17 |
@ISA = qw(SL::Template::Simple); |
|
18 |
|
|
19 | 16 |
use strict; |
20 | 17 |
|
21 | 18 |
sub new { |
SL/Template/PlainText.pm | ||
---|---|---|
1 | 1 |
package SL::Template::PlainText; |
2 | 2 |
|
3 |
use SL::Template::LaTeX; |
|
4 |
|
|
5 |
use vars qw(@ISA); |
|
6 |
|
|
7 |
@ISA = qw(SL::Template::LaTeX); |
|
3 |
use parent qw(SL::Template::LaTeX); |
|
8 | 4 |
|
9 | 5 |
use strict; |
10 | 6 |
|
SL/Template/XML.pm | ||
---|---|---|
1 | 1 |
package SL::Template::XML; |
2 | 2 |
|
3 |
use SL::Template::HTML; |
|
4 |
|
|
5 |
use vars qw(@ISA); |
|
6 |
|
|
7 |
@ISA = qw(SL::Template::HTML); |
|
3 |
use parent qw(SL::Template::HTML); |
|
8 | 4 |
|
9 | 5 |
use strict; |
10 | 6 |
|
Auch abrufbar als: Unified diff
DRY: "use parent"