I have a dll (ActiveX) made by bad old VB6.
This has one special object which is instantiated by a small “stub” code written in VBA and running in Excel.
After instantiation, the stub code simply calls an Init method on the special object mentioned above, this Init method contains the workbook as a reference. (The reason for the Init method is that ActiveX/COM does not support parameterized constructors).
This Init method then “goes back” to the Excel application and sets up menus and handlers for the menu items which are then run in the VB6 dll.
I would like to make something similar with LibreOffice (5.4 currently) and .net (C#).
ActiveX/COM is not mandatory, not even preferable if good alternatives exist for some kind of RPC)
It is not absolutely necessary (though preferably) that the C# code sets up menus and menu items, but it is mandatory that C# code is called as handlers for these.
Is this possible without forking LO code?
Any hint/links to tutorials on how to proceed?