- Code: Select all Expand viewCollapse view
context = uno.getComponentContext()
smgr = context.ServiceManager
desktop = smgr.createInstanceWithContext('com.sun.star.frame.Desktop', context)
desktopwindow = desktop.getContainerWindow()
- Code: Select all Expand viewCollapse view
context = uno.getComponentContext()
smgr = context.ServiceManager
toolkit = smgr.createInstance('com.sun.star.awt.Toolkit')
desktopwindow = toolkit.getDesktopWindow()
I tried both in openoffice and in libreoffice. Both with and without a document open.
Hika