Comment 5 for bug 787539

Revision history for this message
In , Björn Michaelsen (bjoern-michaelsen) wrote :

following the discussion at http://nabble.documentfoundation.org/python-XInvocation-snafu-td2961502.html I had a look at VclStringResourceLoader and it is broken beyond repair.

With commit
http://cgit.freedesktop.org/libreoffice/components/commit/?h=feature/gsoc2011_wizards&id=264c9ed93f3d338f6aee84310135569710705783

I removed the broken service and implemented a org.libreoffice.extensions.resource.ResourceStringIndexAccess service as a replacement.

Here is a piece of Basic code that shows how to use it (inspired by http://opengrok.libreoffice.org/xref/components/wizards/com/sun/star/wizards/common/TerminateWizardException.java ):

Sub Main
dim xSM
dim xContext
dim xRSIA as Object

dim aArgs(0)
aArgs(0) = "dbw"

xSM = GetProcessServiceManager()
xContext = xSM.DefaultContext
xRSIA = xSM.createInstanceWithArguments("org.libreoffice.resource.ResourceStringIndexAccess", aArgs)
msgbox xRSIA.getByIndex(1006)
end sub

I commited the change to the feature branch gsoc2011_wizards as this change would break master because I have not yet changed the clients of VclStringResourceLoader to use ResourceStringIndexAccess instead.