#!/usr/bin/perl -I.
# writer-example6 - Creates a sxw Writer document with lists

use ooolib;

# Set variables
$doc = new ooolib("sxw");
$doc->oooSet("builddir", ".");
$doc->oooSet("title", "Lists and Fonts");
$doc->oooSet("subject", "Writer Examples");
$doc->oooSet("comments", "Now which list was that?");
$doc->oooSet("author", "ooolib examples");

$doc->oooData("h", "Tropical Fruit");

$list = $doc->oooSpecial("list-ordered", "new", "Pineapple");
$doc->oooSpecial("list-ordered", $list, "Papaya");
$doc->oooSpecial("list-ordered", $list, "Banana");
$doc->oooSpecial("list-ordered", $list, "Mango");

$doc->oooSet("text-font", "Bookman");
$doc->oooData("textbody", "Bookman");
$doc->oooSet("text-font", "Courier 10 Pitch");
$doc->oooData("textbody", "Courier 10 Pitch");
$doc->oooSet("text-font", "Zapf Chancery");
$doc->oooData("textbody", "Zapf Chancery");

my($filename) = $doc->oooGenerate("writer-example6.sxw");

exit;

