#!/usr/bin/perl
# zip-example1 - This program creates a SXC Calc file using the zip command.

use ooolib;

# Set variables
$doc = new ooolib("sxc", "zip");
$doc->oooSet("builddir", ".");                   # Directory to create document in
$doc->oooSet("title", "Zip Command Calc");       # Title of document
$doc->oooSet("subject", "Zip Example");          # Subject of document
$doc->oooSet("author", "ooolib example");        # Set the author of the document

# User defined variables
$doc->oooSet("meta1-name", "Programmer");        # 1-4 user defined variables
$doc->oooSet("meta1-value", "Joseph Colton");    # 1-4 user defined variables

# Document
$doc->oooSet("cell-loc", 1, 1);
$doc->oooData("cell-text", "zip");

$filename = $doc->oooGenerate("zip-example1.sxc");

exit;
