Is it possible to remove menu items like insert, format using java uno api?

I am working on a libreoffice project where i have to remove these menu items and toolbar from libreoffice impress and add my custom menus and toolbars. I only know java and i don’t have enough time to learn c++. My question is, is it possible to remove menus and toolbars and add my custom menus inside libreoffice impress at application level using java uno api only?

Hello,

Have done this myself in basic & can easily convert to python but don’t really use Java. Java shouldn’t be a problem. Menus can be modified at various levels (Base has five levels of menu priority). The biggest problem I had was that documentation is scattered. No one place for everything on menus.

Also:

This should get you started.

If this answers your question please tick the :heavy_check_mark: (upper left area of answer). It helps others to know there was an accepted answer.