1 package Excel::Template::Container::Format;
7 @ISA = qw( Excel::Template::Container );
9 use Excel::Template::Container;
12 use Excel::Template::Format;
19 my $old_format = $context->active_format;
20 my $format = $context->format_object->copy(
21 $context, $old_format,
25 $context->active_format($format);
27 my $child_success = $self->iterate_over_children($context);
29 $context->active_format($old_format);
31 return $child_success;
39 Excel::Template::Container::Format - Excel::Template::Container::Format
43 To format all children according to the parameters
51 Excel::Template::Container
55 Boolean attributes should be set to 1, 0, true, or false.
57 Color values can be the color name or the color index. See http://search.cpan.org/~jmcnamara/Spreadsheet-WriteExcel-2.11/lib/Spreadsheet/WriteExcel.pm#COLOURS_IN_EXCEL
63 Set to either left, center, right, fill, or justify. Default is left. See also valign.
67 Set to a color value. Default is none.
71 This will set bold to on or off, depending on the boolean value.
75 Set the border for all for edges of a cell. Also see bottom, top, left, and right.
76 Valid values are 0 - 7.
78 http://search.cpan.org/~jmcnamara/Spreadsheet-WriteExcel-2.11/lib/Spreadsheet/WriteExcel.pm#set_border()
82 Sets the color value for the border. See also border, top_color, bottom_color, left_color
95 This will set the color of the text, depending on color value. Default is black.
99 Set to a color value. This color will be used in foreground of some patterns. See color
100 to change the color of text. Also see bg_color and pattern.
104 This will sent the font face. Default is Arial.
108 This will set font_outline to on or off, depending on the boolean value. (q.v.
113 This will set font_shadow to on or off, depending on the boolean value. (q.v.
114 SHADOW tag). This only applies to Excel for Macintosh.
116 =item * font_strikeout
118 This will set font_strikeout to on or off, depending on the boolean value. (q.v.
123 This will set whether the cell is hidden to on or off, depending on the boolean
128 Set the indentation level for a cell. Positive integers are allowed.
132 This will set italic to on or off, depending on the boolean value. (q.v. ITALIC
145 Set to the index of one of Excel's built-in number formats. See http://search.cpan.org/~jmcnamara/Spreadsheet-WriteExcel-2.11/lib/Spreadsheet/WriteExcel.pm#set_num_format()
149 Set to an integer, 0 - 18. Sets the background fill pattern of a ell. Default is 1, solid.
161 Set the rotation of the text in a cell. The rotation can be any angle in the range -90 to 90 degrees.
162 The angle 270 is also supported. This indicates text where the letters run from top to bottom.
166 A boolean value. If true, text will shrink to fit a cell.
170 This will set the size of the font. Default is 10. Unless a row height is
171 specifically set, the row will grow taller as necessary.
173 =item * text_justlast
175 A boolean value to justify the last line. Only applies to Far Eastern versions of Excel.
179 A boolean value. When set to true, text will wrap in a cell instead of crossing over
180 into empty cells. If the row height is not set, the row will grow taller to accomodate
193 Set to top, vcenter, bottom, or vjustify. Default is vcenter. See also align.
215 In the above example, the children will be displayed (if they are displaying
216 elements) in a bold format. All other formatting will remain the same and the
217 "bold"-ness will end at the end tag.
221 Rob Kinyon (rob.kinyon@gmail.com)
225 BOLD, HIDDEN, ITALIC, OUTLINE, SHADOW, STRIKEOUT