Disable Right-Click on the toolbars

Hi,
I am using Libre Office 6.1. I want to disable the menu that opens when you right-click on any toolbar.
Any ideas on what event it is and how to capture it will be appreciated.

why do you want do that ?

i am using libre office as an applet in browser. i want to restrict the user so that he cannot customize the toolbar.