[Solved] Packaging as .zip vs .oxt

Java, C++, C#, Delphi... - Using the UNO bridges
Post Reply
saleem145
Posts: 130
Joined: Mon Jul 02, 2012 4:47 pm

[Solved] Packaging as .zip vs .oxt

Post by saleem145 »

Hello,

I have a simple Addon -- just one python file and one xcu file. When I zip the two and produce a .zip file I am able to call the macro embedded in the python code. However, if I rename the same file as an .oxt the macro no longer seems to work. Any ideas?? I tried including a manifest file with no luck.

Saleem

XCU is below...

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<oor:component-data xmlns:oor="http://openoffice.org/2001/registry"
             xmlns:xs="http://www.w3.org/2001/XMLSchema"
             oor:name="Addons" oor:package="org.openoffice.Office">
</oor:component-data>
Last edited by Hagar Delest on Wed Aug 01, 2012 8:12 am, edited 1 time in total.
Reason: tagged [Solved].
OpenOffice 3.4.0
Mac OS X 10.5.8
saleem145
Posts: 130
Joined: Mon Jul 02, 2012 4:47 pm

Re: .zip vs .oxt

Post by saleem145 »

It seems with an oxt a manifest file is needed. Adding two entries

<manifest:file-entry manifest:media-type="application/vnd.sun.star.uno-component;type=Python"
manifest:full-path="MakeChart.py"/>
<manifest:file-entry manifest:media-type="application/vnd.sun.star.configuration-data"
manifest:full-path="Addons.xcu"/>

seem to have done the job. But no manifest file is needed with a zip.

Saleem
OpenOffice 3.4.0
Mac OS X 10.5.8
Post Reply