Excel::Template::Container::Strikeout - Excel::Template::Container::Strikeout


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

Index


Code Index:

NAME

Top

Excel::Template::Container::Strikeout - Excel::Template::Container::Strikeout

PURPOSE

Top

To format all children in bold

NODE NAME

Top

STRIKEOUT

INHERITANCE

Top

Excel::Template::Container::Format

ATTRIBUTES

Top

None

CHILDREN

Top

None

EFFECTS

Top

None

DEPENDENCIES

Top

None

USAGE

Top

  <bold>
    ... Children here
  </bold>

In the above example, the children will be displayed (if they are displaying elements) in a bold format. All other formatting will remain the same and the "bold"-ness will end at the end tag.

AUTHOR

Top

Rob Kinyon (rob.kinyon@gmail.com)

SEE ALSO

Top

FORMAT


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

package Excel::Template::Container::Strikeout;

use strict;

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

    use Excel::Template::Container::Format;
}

sub new
{
    my $class = shift;
    my $self = $class->SUPER::new(@_);

    $self->{FONT_STRIKEOUT} = 1;

    return $self;
}

1;
__END__