/usr/share/doc/libooolib-perl/examples/calc-example2 is in libooolib-perl 0.1.9-1.1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | #!/usr/bin/perl -I.
# calc-example2 - Set Column sizes
use ooolib;
# Set variables
$doc = new ooolib("sxc");
$doc->oooSet("builddir", ".");
$doc->oooSet("title", "Calc Column Sizes");
$doc->oooSet("subject", "Calc Example");
$doc->oooSet("comments", "Sizes are set using cm");
$doc->oooSet("author", "ooolib Example");
$doc->oooSet("meta1-name", "Programmer");
$doc->oooSet("meta1-value", "Joseph Colton");
# Write the spreadsheet data
my($x, $y);
for($x=1;$x<=5;$x++) {
$doc->oooSet("column-width", $x, $x);
for($y=1;$y<=5;$y++) {
$doc->oooSet("cell-loc", $x, $y);
$doc->oooData("cell-float", $x*$y);
}
}
my($filename) = $doc->oooGenerate("calc-example2.sxc");
exit;
|