It is advised to refrain from using the deprecated com.sun.star.frame.Desktop
type and opt for the com.sun.star.frame.theDesktop
singleton instead.
Various programming languages provide access to singletons. For instance, in Java, this thread mentions the use of the following line:
com.sun.star.frame.theDesktop.get(componentContext)
However, when it comes to the Automation bridge, the com.sun.star.frame
namespace is not accessible. The only available entry point is the service manager:
var objServiceManager = new ActiveXObject('com.sun.star.ServiceManager');
Is there a way to access these singletons and others?
(Originally posted on ask.libreoffice)