File: writer-example2

package info (click to toggle)
ooolib 0.1.7-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 312 kB
  • ctags: 65
  • sloc: perl: 1,661; makefile: 88; sh: 78
file content (21 lines) | stat: -rwxr-xr-x 642 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
#!/usr/bin/perl
# writer-example2 - Creates a sxw Writer document

use ooolib;

# Set variables
$doc = new ooolib("sxw");
$doc->oooSet("builddir", ".");
$doc->oooSet("title", "Another Simple Writer Document");
$doc->oooSet("subject", "Writer Examples");
$doc->oooSet("comments", "Special characters are handled differently");
$doc->oooSet("author", "ooolib example");

$doc->oooData("default", "This is some simple text");
$doc->oooData("default"); # A blank line
$doc->oooData("default", "Special Characters: ");
$doc->oooData("default", "\t!\"#\$%\&'()`{}[];:+*\\_,.<>?|");

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

exit;