Re: Macro in JS: How to access ThisComponent-equivalent, run findAll

2017-03-20 Thread Michael Stahl
On 15.03.2017 22:32, jan wrote: > Hello, > > I would like to execute the command "findAll" in a Javascript Macro. In > Basic, one can access thisComponent and access its findAll method (See [1]) > > However, the exposed Javascript API does not have thisComponent. I tried > > importClass(Packag

Macro in JS: How to access ThisComponent-equivalent, run findAll

2017-03-15 Thread jan
Hello, I would like to execute the command "findAll" in a Javascript Macro. In Basic, one can access thisComponent and access its findAll method (See [1]) However, the exposed Javascript API does not have thisComponent. I tried importClass(Packages.com.sun.star.frame.XDesktop) var currentCom