Date: prev next · Thread: first prev next last


hi Lars,

On 01.11.21 15:51, lars.werner@agentes.de wrote:

Dear developer team,

since a few days I am successfully using the ODFToolkit (1.0.0-beta) to
read data from .ods files. So far I have easily found all the functions I
need.
Now I want to read macro/script code from Open/Libre-Office files.

What is the most elegant way to read such macro/script code with the
ODFToolkit?

So far I have only found the way to open streams of the macro files via the
ODFPackage.
Is there a simpler way than parsing the XML files by myself?

probably not, the BASIC macros are stored wrapped in XML, i don't know if it's also the case for Python etc. macros in documents.

so i don't think there's anything more convenient than opening the stream via the package-layer API and then extracting the text via an XML parser.

because ODF Toolkit can't do anything sensible with UNO based macros anyway, that's unlikely to change.

regards,
 michael

--
To unsubscribe e-mail to: dev+unsubscribe@odftoolkit.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.odftoolkit.org/dev/
Privacy Policy: https://www.documentfoundation.org/privacy

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.