Vendors Name via UNO API / Basic Macros
Miklos Vajna
vmiklos at collabora.co.uk
Fri Nov 15 05:11:25 PST 2013
Hi,
On Fri, Nov 15, 2013 at 01:43:38PM +0100, Thomas Krumbein <thomas.krumbein at documentfoundation.org> wrote:
> Thanks for this - I know the xcu files. But this is not an easy access
> for (Basic-) macros. The way to do is: Search for this file, parse this
> file and extract the vendor name... for basic marcos a very long way.
Why not use the css::configuration::ConfigurationProvider API instead?
I mean something like:
> oProvider = createUnoService("com.sun.star.configuration.ConfigurationProvider")
> Dim aParams(0) As new com.sun.star.beans.PropertyValue
> aParams(0).Name = "nodepath"
> aParams(0).Value = "/org.openoffice.Setup/Product"
> oSettings = oProvider.createInstanceWithArguments("com.sun.star.configuration.ConfigurationAccess", aParams)
> xray oSettings.getByName("ooName")
HTH,
Miklos
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20131115/1c108083/attachment.pgp>
More information about the LibreOffice
mailing list