#!/usr/bin/perl
# calc-example4 - This program creates a SXC Calc file by name

use ooolib;

# Set variables
$doc = new ooolib("sxc");
$doc->oooSet("builddir", ".");
$doc->oooSet("title", "Title - Example 3");
$doc->oooSet("subject", "Subject - Example 3");
$doc->oooSet("comments", "Who needs comments?");
$doc->oooSet("keyword", "keyword1");
$doc->oooSet("keyword", "keyword2");
$doc->oooSet("author", "ooolib examples");
$doc->oooSet("meta1-name", "Programmer");
$doc->oooSet("meta1-value", "Joseph Colton");

# Write the spreadsheet data
$doc->oooData("cell-float", 1);
$doc->oooSet("cell-down");
$doc->oooData("cell-float", 2);
$doc->oooSet("cell-down");
$doc->oooData("cell-float", 3);
$doc->oooSet("cell-right");
$doc->oooData("cell-float", 4);
$doc->oooSet("cell-right");
$doc->oooData("cell-float", 5);
$doc->oooSet("cell-up");
$doc->oooData("cell-float", 6);
$doc->oooSet("cell-up");
$doc->oooData("cell-float", 7);
$doc->oooSet("cell-left");
$doc->oooData("cell-float", 8);

$filename = $doc->oooGenerate("calc-example4.sxc");

exit;
