Fixed typo, HIDE_GRIDLINES instead of HIDE_GRIDLINE
[p5sagit/Excel-Template.git] / lib / Excel / Template / Element / FreezePanes.pm
CommitLineData
5b1d7194 1package Excel::Template::Element::FreezePanes;
2
3use strict;
4
5BEGIN {
6 use vars qw(@ISA);
7 @ISA = qw(Excel::Template::Element);
8
9 use Excel::Template::Element;
10}
11
12sub render {
13 my $self = shift;
14 my ($context) = @_;
15
16 my ($row, $col) = map { $context->get( $self, $_ ) } qw( ROW COL );
17 $context->active_worksheet->freeze_panes( $row, $col );
18
19 return 1;
20}
21
221;
23__END__
24
25=head1 NAME
26
27Excel::Template::Element::FreezePanes - Excel::Template::Element::FreezePanes
28
29=head1 PURPOSE
30
31To insert an image into the worksheet
32
33=head1 NODE NAME
34
35FREEZEPANES
36
37=head1 INHERITANCE
38
39L<ELEMENT|Excel::Template::Element>
40
41=head1 EFFECTS
42
43This will not conume any columns or rows. It is a zero-width assertion.
44
45=head1 DEPENDENCIES
46
47None
48
49=head1 USAGE
50
51 <freezepanes />
52
53This will do a Freeze Pane at the current cell.
54
55=head1 AUTHOR
56
57Rob Kinyon (rob.kinyon@gmail.com)
58
59=head1 SEE ALSO
60
61Nothing
62
63=cut