File: writer-example6

package info (click to toggle)
ooolib-perl 0.1.9-1.1
  • links: PTS
  • area: main
  • in suites: buster, stretch
  • size: 256 kB
  • ctags: 59
  • sloc: perl: 1,657; makefile: 90; sh: 78
file content (31 lines) | stat: -rwxr-xr-x 927 bytes parent folder | download | duplicates (4)
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
29
30
31
#!/usr/bin/perl
# 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;