The StarDesktop object represents %PRODUCTNAME application. Some routines or user interface objects such as current window can be used via StarDesktop.
Example:
Dim docURL As StringDim doc As Object, docProperties()docURL = ConvertToURL("C:\My Documents\example.odt")Rem com.sun.star.frame.Desktopdoc = StarDesktop.LoadComponentFromURL(docURL, "_blank", 0, docProperties)