Apache OpenOffice (AOO) Bugzilla – Issue 118815
[API] Deprecate "com.sun.star.configuration.bootstrap.BootstrapContext"
Last modified: 2017-05-20 09:32:08 UTC
the following vb script will fail with aoo3. it worked with oo 3.2. workaround for aoo3.4: use "Set oContext = oSM.DefaultContext" instead of "Set oContext = oSM.createInstance("com.sun.star.configuration.bootstrap.BootstrapContext")" ' vb script Set oSM = WScript.CreateObject("com.sun.star.ServiceManager") Set oContext = oSM.createInstance("com.sun.star.configuration.bootstrap.BootstrapContext") Set oTDM = oContext.getValueByName("/singletons/com.sun.star.reflection.theTypeDescriptionManager") MsgBox "HARD_SPACE: " & oTDM.getByHierarchicalName("com.sun.star.text.ControlCharacter.HARD_SPACE")
(In reply to comment #0) > the following vb script will fail with aoo3. > it worked with oo 3.2. > > workaround for aoo3.4: > use "Set oContext = oSM.DefaultContext" > instead of "Set oContext = > oSM.createInstance("com.sun.star.configuration.bootstrap.BootstrapContext")" I don't get the issue here. Is it that you can't instantiate this service in particular? If so, testing in Basic shows this service has been removed: Sub Main Dim oBootstrapContext BootstrapContext = CreateUnoService("com.sun.star.configuration.bootstrap.BootstrapContext") End Sub it has been removed when the cfgmgr was rewritten.
> Is it that you can't instantiate this service in particular? yes, seems to be removed in aoo3.4. if removal of this service was intended, i suggest to fix the api documentation, for example: http://www.openoffice.org/api/docs/common/ref/com/sun/star/configuration/bootstrap/BootstrapContext.html
Fixed in revision 1233320