zip/unzip jar archive or add/remove file using a Basic macro?

Regina Henschel rb.henschel at
Mon Oct 12 08:56:49 PDT 2015

Hi Stephan,

thank you for your answer. I will try that service and report back in 
some days.

Kind regards

Stephan Bergmann schrieb:
> On 10/11/2015 08:31 PM, Regina Henschel wrote:
>> I want to write a Basic macro to preview an .xhp file while editing it.
>> Viewing such file works fine with LoadComponentFromUrl with protocol
>> "", if the file is inside a .jar container.
>> But how can I modify or create or zip/unzip the content of such
>> container using a Basic macro? A SimpleFileAccess sees it only as file,
>> not as folder.
> There is a UCP for a URL scheme, to access content
> within a (zip, jar) package.  See the documentation of the
> css.ucb.PackageContentProvider UNO service for details.  (There is also
> a css.uri.VndSunStarPkgUrlReferenceFactory UNO service that helps create
> such URLs.)
> Underlying that is UNO services like css.packages.Package and
> _______________________________________________
> LibreOffice mailing list
> LibreOffice at

More information about the LibreOffice mailing list