.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.42) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "Excel::Template::Element::Cell 3pm" .TH Excel::Template::Element::Cell 3pm "2022-06-13" "perl v5.34.0" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" Excel::Template::Element::Cell \- Excel::Template::Element::Cell .SH "PURPOSE" .IX Header "PURPOSE" To actually write stuff to the worksheet .SH "NODE NAME" .IX Header "NODE NAME" \&\s-1CELL\s0 .SH "INHERITANCE" .IX Header "INHERITANCE" \&\s-1ELEMENT\s0 .SH "ATTRIBUTES" .IX Header "ATTRIBUTES" .IP "\(bu" 4 \&\s-1TEXT\s0 .Sp This is the text to write to the cell. This can either be text or a parameter with a dollar-sign in front of the parameter name. .IP "\(bu" 4 \&\s-1COL\s0 .Sp Optionally, you can specify which column you want this cell to be in. It can be either a number (zero-based) or an offset. See Excel::Template for more info on offset-based numbering. .IP "\(bu" 4 \&\s-1REF\s0 .Sp Adds the current cell to the a list of cells that can be backreferenced. This is useful when the current cell needs to be referenced by a formula. See \s-1BACKREF\s0 and \s-1RANGE\s0. .IP "\(bu" 4 \&\s-1WIDTH\s0 .Sp Sets the width of the column the cell is in. The last setting for a given column will win out. .IP "\(bu" 4 \&\s-1TYPE\s0 .Sp This allows you to specify what write_*() method will be used. The default is to call \fBwrite()\fR and let Spreadsheet::WriteExcel make the right call. However, you may wish to override it. Excel::Template will not do any form of validation on what you provide. You are assumed to know what you're doing. .Sp The legal types (taken from Spreadsheet::WriteExcel) are: .IP "\(bu" 4 \&\s-1COMMENT\s0 .Sp Add a comment to the cell .RS 4 .IP "\(bu" 4 blank .IP "\(bu" 4 formula .IP "\(bu" 4 number .IP "\(bu" 4 string .IP "\(bu" 4 url .IP "\(bu" 4 date_time .RE .RS 4 .Sp other write_* methods as defined defined Spreadsheet::WriteExcel would be integrated by request .RE .SH "CHILDREN" .IX Header "CHILDREN" \&\s-1FORMULA\s0 .SH "EFFECTS" .IX Header "EFFECTS" This will consume one column in the current row. .SH "DEPENDENCIES" .IX Header "DEPENDENCIES" None .SH "USAGE" .IX Header "USAGE" .Vb 2 \& \& Some other text here \& \& \& Some text here .Ve .PP In the above example, four cells are written out. The first two have text hard-coded. The second two have variables. The third and fourth items have another thing that should be noted. If you have text where you want a variable in the middle, you have to use the latter form. Variables within parameters are the entire parameter's value. .PP Please see Spreadsheet::WriteExcel for what constitutes a legal formula. .SH "AUTHOR" .IX Header "AUTHOR" Rob Kinyon (rob.kinyon@gmail.com) .SH "SEE ALSO" .IX Header "SEE ALSO" \&\s-1ROW\s0, \s-1VAR\s0, \s-1FORMULA\s0