[dev] OpenOffice mime driver

Marko Djukic marko at oblo.com
Thu Mar 6 06:34:39 PST 2003


jan,

i dumped in there an empty renderer for the moment. wanted to see what you think
of this idea... i played some more with some of the available drivers out there,
and frankly they are not that good. then had the idea to go figure out how to
unzip the file from php since OOo is essentially a zip format + xml, and there's
this LGPL class out there:
   http://www.phpconcept.net/pclzip/index.php
which allows you to unzip any .sx* file, try this script on any of your OOo files:
<?php
require './pclzip.lib.php';
$myooo = &new PclZip('/tmp/test.sxc');
$myooo->extract('/tmp/');

and once we have that then the xml >> html is straightforward! thought of either
pulling out the parts of the PclZip class which are needed to extract, or even
if a zip class would be good in horde make the whole class a horde component
(thinking uploading/downloading zips in gollem, etc. rather than just the .gz
format).

m.


More information about the dev mailing list