Commit | Line | Data |
d0eafc11 |
1 | package Excel::Template::Container::Bold; |
2 | |
3 | use strict; |
4 | |
5 | BEGIN { |
6 | use vars qw(@ISA); |
7 | @ISA = qw( Excel::Template::Container::Format ); |
8 | |
9 | use Excel::Template::Container::Format; |
10 | } |
11 | |
12 | sub new |
13 | { |
14 | my $class = shift; |
15 | my $self = $class->SUPER::new(@_); |
16 | |
17 | $self->{BOLD} = 1; |
18 | |
19 | return $self; |
20 | } |
21 | |
22 | 1; |
23 | __END__ |
24 | |
25 | =head1 NAME |
26 | |
27 | Excel::Template::Container::Bold - Excel::Template::Container::Bold |
28 | |
29 | =head1 PURPOSE |
30 | |
31 | To format all children in bold |
32 | |
33 | =head1 NODE NAME |
34 | |
35 | BOLD |
36 | |
37 | =head1 INHERITANCE |
38 | |
39 | Excel::Template::Container::Format |
40 | |
41 | =head1 ATTRIBUTES |
42 | |
43 | None |
44 | |
45 | =head1 CHILDREN |
46 | |
47 | None |
48 | |
49 | =head1 EFFECTS |
50 | |
51 | None |
52 | |
53 | =head1 DEPENDENCIES |
54 | |
55 | None |
56 | |
57 | =head1 USAGE |
58 | |
59 | <bold> |
60 | ... Children here |
61 | </bold> |
62 | |
63 | In the above example, the children will be displayed (if they are displaying |
64 | elements) in a bold format. All other formatting will remain the same and the |
65 | "bold"-ness will end at the end tag. |
66 | |
67 | =head1 AUTHOR |
68 | |
c09684ff |
69 | Rob Kinyon (rob.kinyon@gmail.com) |
d0eafc11 |
70 | |
71 | =head1 SEE ALSO |
72 | |
73 | FORMAT |
74 | |
75 | =cut |