Now that LO has customizable context menus (5.2), we are open to conveniently adding website lookups! I pieced together this macro for a dictionary lookup:
Sub Dictionary_Lookup ' TFD
Dim SysShell As Object
Dim oCursor, oSeL
oCursor = ThisComponent.CurrentController.ViewCursor
oSel = oCursor.getString()
SysShell = createUNOService("com.sun.star.system.SystemShellExecute")
SysShell.execute("/usr/bin/flashpeak-slimjet", "www.thefreedictionary.com/" & oSel, 0)
End Sub
I would be open to any suggestions for improving the macro. In particular, I would like to know how to call the system browser rather than spec the browser path, if that is possible. I’m on Linux.