I have created an extension for Libre that I think others may find useful. It includes toolbars, menus, and shortcut keys for both Writer and BASIC IDE. I know how to automate its installation by editing registrymodifications.xcu, menubar.xml, and files under config/soffice.cfg/modules. I could write a macro to do all of this but there must be a packager available that would work or at least an XML editor extension to reduce the amount of original coding required. I tried BasicAddonBuilder (Extensions Packagers - Apache OpenOffice Wiki) but installing the package it created for my library completely destroyed Libre. Any suggestions?
Extensions Packagers - Apache OpenOffice Wiki > General Options > “Add custom office toolbar: Compatible up to AOO 3.4” is what you need with LibreOffice. LO never changed the menu bar structure.
The Extension Compiler should work well. It is perplexing complicated, though. Personally, I gave up on this. I made my own installer for Python scripts and I distribute pure Basic code via export from the libraries organizer. Users who want to use my macros can add their own buttons and menues.
Bernard Marcelly put such a macro into a template named ExtensionCompiler.ott. The document contains detailed instructions for use and all the service code.
Try it, it works for me.
Thanks for that reference. It works for me too but doesn’t seem to support context menus or keyboard shortcuts. I followed a different model indicated by Bernard’s XrayTool installer, which treats my thing as a user library rather than extension. My installer can do everything that the user can do but is based on reverse engineering of registrymodifications.xcu and other files and requires killing soffice to replace the files (using bat file in Windows and Bash script in LInux). I would like to offer the less Draconian solution of a standard extension as an alternative but it seems to be less complete.