The type com.sun.star.frame.Desktop
is deprecated, and it is recommended to use the com.sun.star.frame.theDesktop
singleton instead.
How can I acces this (and other) singletons?
In Java, this thread says the following works:
com.sun.star.frame.theDesktop.get(componentContext)
However, the com.sun.star.frame
namespace isn’t available under the Automation bridge; there is only the single entry point of the service manager:
var objServiceManager = new ActiveXObject('com.sun.star.ServiceManager');