How can I disable right mouse from source code?

I’m building source code Libreoffice 4.3. I want disable right mouse form source code, but I don’t know file control mouse in source code. Can you help me?

This is a question better asked of the Developers rather than here. You are probably looking for GetMouseEvent() or similar, but please ask the developers.