'Use writer instead of calc to run a macro

I am trying to write an extension to install a macro. I have followed all the steps mentioned in the tutorial.

https://github.com/luane-aquino/helloworld-libreoffice-extension

It is working as expected. The only problem is that I need the icon to be available in writer and not in calc.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source