Excel::Template::Element::FreezePanes - Excel::Template::Element::FreezePanes


Excel-Template documentation Contained in the Excel-Template distribution.

Index


Code Index:

NAME

Top

Excel::Template::Element::FreezePanes - Excel::Template::Element::FreezePanes

PURPOSE

Top

To insert an image into the worksheet

NODE NAME

Top

FREEZEPANES

INHERITANCE

Top

ELEMENT

EFFECTS

Top

This will not conume any columns or rows. It is a zero-width assertion.

DEPENDENCIES

Top

None

USAGE

Top

  <freezepanes />

This will do a Freeze Pane at the current cell.

AUTHOR

Top

Rob Kinyon (rob.kinyon@gmail.com)

SEE ALSO

Top

Nothing


Excel-Template documentation Contained in the Excel-Template distribution.

package Excel::Template::Element::FreezePanes;

use strict;

BEGIN {
    use vars qw(@ISA);
    @ISA = qw(Excel::Template::Element);

    use Excel::Template::Element;
}

sub render {
    my $self = shift;
    my ($context) = @_;

    my ($row, $col) = map { $context->get( $self, $_ ) } qw( ROW COL );
    $context->active_worksheet->freeze_panes( $row, $col );

    return 1;
}

1;
__END__