Fixed MANIFEST
[p5sagit/Excel-Template.git] / lib / Excel / Template / Container / Format.pm
CommitLineData
d0eafc11 1package Excel::Template::Container::Format;
2
3use strict;
4
5BEGIN {
6 use vars qw(@ISA);
7 @ISA = qw( Excel::Template::Container );
8
9 use Excel::Template::Container;
10}
11
12use Excel::Template::Format;
13
14sub render
15{
16 my $self = shift;
17 my ($context) = @_;
18
19 my $old_format = $context->active_format;
20 my $format = Excel::Template::Format->copy(
21 $context, $old_format,
22
23 %{$self},
24 );
25 $context->active_format($format);
26
27 my $child_success = $self->iterate_over_children($context);
28
29 $context->active_format($old_format);
30}
31
321;
33__END__
34
35=head1 NAME
36
37Excel::Template::Container::Format - Excel::Template::Container::Format
38
39=head1 PURPOSE
40
41To format all children according to the parameters
42
43=head1 NODE NAME
44
45FORMAT
46
47=head1 INHERITANCE
48
49Excel::Template::Container
50
51=head1 ATTRIBUTES
52
53=over 4
54
55=item * bold
56
57This will set bold to on or off, depending on the boolean value.
58
59=item * hidden
60
61This will set whether the cell is hidden to on or off, depending on the boolean
62value. (q.v. BOLD tag)
63
64=item * italic
65
66This will set italic to on or off, depending on the boolean value. (q.v. ITALIC
67tag)
68
69=item * font_outline
70
71This will set font_outline to on or off, depending on the boolean value. (q.v.
72OUTLINE tag)
73
74=item * font_shadow
75
76This will set font_shadow to on or off, depending on the boolean value. (q.v.
77SHADOW tag)
78
79=item * font_strikeout
80
81This will set font_strikeout to on or off, depending on the boolean value. (q.v.
82STRIKEOUT tag)
83
84=back 4
85
86=head1 CHILDREN
87
88None
89
90=head1 EFFECTS
91
92None
93
94=head1 DEPENDENCIES
95
96None
97
98=head1 USAGE
99
100 <format bold="1">
101 ... Children here
102 </format>
103
104In the above example, the children will be displayed (if they are displaying
105elements) in a bold format. All other formatting will remain the same and the
106"bold"-ness will end at the end tag.
107
108=head1 AUTHOR
109
110Rob Kinyon (rkinyon@columbus.rr.com)
111
112=head1 SEE ALSO
113
114BOLD, HIDDEN, ITALIC, OUTLINE, SHADOW, STRIKEOUT
115
116=cut