Apache OpenOffice (AOO) Bugzilla – Issue 107070
direct singleton support in Basic
Last modified: 2017-05-20 09:32:05 UTC
With OOo 3.2 we have made the concept of service constructors available in Basic. That means it is possible to use the contractor methods directly. The requested feature is to provide a similar shortcut for singletons as well. In C++ or Java the user can use the generated "get" function with a component context directly. We should provide this shortcut for singletons as well. The context should be optional for potential later use. Currently only the default context is used. This would simplify the access to singletons a lot because today the user have to use something like this oContext = .... oA = oContext.getValueByName("/singletons/my.own.special.TestSingleton") easier would be oA = my.own.special.TestSingleton.get() or oA = my.own.special.TestSingleton.get(oContext) This feature should be available for well defined singletons only who have an IDL type definition (and are well documented)
STARTED, -> ab76
Created attachment 67914 [details] Test macro
FIXED
ab->jsk: Please verify
Test has been added to f_basic_issues.bas