File: zip-example1

package info (click to toggle)
ooolib-perl 0.1.9-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, lenny, squeeze, wheezy
  • size: 256 kB
  • ctags: 58
  • sloc: perl: 1,657; makefile: 89; sh: 78
file content (23 lines) | stat: -rwxr-xr-x 781 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/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;