#!/usr/bin/perl
# zip-example2 - This program creates a SXW Writer file using the zip command.

use ooolib;

# Set variables
$doc = new ooolib("sxw", "zip");
$doc->oooSet("builddir", ".");                   # Directory to create document in
$doc->oooSet("title", "Zip Command Writer");     # 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->oooData("textbody", "Created using the zip command.");

$filename = $doc->oooGenerate("zip-example2.sxw");

exit;
