NAME
PBib::Document::OpenOffice - Base Class for OpenOffice documents
SYNOPSIS
use PBib::Document;
my $doc = new PBib::Document(
'filename' => 'test.sxw',
'mode' => 'r',
);
print $doc->filename();
my @paragraphs = $doc->paragraphs();
$doc->close();
DESCRIPTION
Base class for OpenOffice documents.
All OpenOffice documents have a similar structure: They are a zip archive that contains a content.xml file with the content.
METHODS
File Handling Methods
- $doc->zip()
-
Handle to Archive::Zip, used to (de)compress the OpenOffice file.
- $doc->close();
-
Close the file. Does nothing?
- $doc->read()
- $doc->write()
-
Write the document back to disk, if the document has been opened and it contains paragraphs().
Converting Methods
Methods used by PBib::ReferenceConverter::convert().
Formatting Methods
Methods used by PBib to create formatted text.