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.
following the discussion at http:// nabble. documentfoundat ion.org/ python- XInvocation- snafu-td2961502 .html I had a look at VclStringResour ceLoader and it is broken beyond repair.
With commit cgit.freedeskto p.org/libreoffi ce/components/ commit/ ?h=feature/ gsoc2011_ wizards& id=264c9ed93f3d 338f6aee8431013 5569710705783
http://
I removed the broken service and implemented a org.libreoffice .extensions. resource. ResourceStringI ndexAccess 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/ TerminateWizard Exception. java ):
Sub Main
dim xSM
dim xContext
dim xRSIA as Object
dim aArgs(0)
aArgs(0) = "dbw"
xSM = GetProcessServi ceManager( ) nceWithArgument s("org. libreoffice. resource. ResourceStringI ndexAccess" , aArgs) x(1006)
xContext = xSM.DefaultContext
xRSIA = xSM.createInsta
msgbox xRSIA.getByInde
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 VclStringResour ceLoader to use ResourceStringI ndexAccess instead.