Date: prev next · Thread: first prev next last
2015 Archives by date, by thread · List index


Hi Stephan,

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

Kind regards
Regina

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
"vnd.sun.star.help", 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 vnd.sun.star.pkg 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 vnd.sun.star.pkg URLs.)

Underlying that is UNO services like css.packages.Package and
css.packages.zip.ZipFileAccess.
_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.