Base Macros to Modify Menubars

Shared Libraries
Forum rules
For sharing working examples of macros / scripts. These can be in any script language supported by OpenOffice.org [Basic, Python, Netbean] or as source code files in Java or C# even - but requires the actual source code listing. This section is not for asking questions about writing your own macros.
Post Reply
Ratslinger
Posts: 34
Joined: Sun Mar 01, 2015 3:34 am

Base Macros to Modify Menubars

Post by Ratslinger »

This is a set of macros all written in Basic, mostly gathered from documents and postings, allowing you to modify existing menubars. Although developed for usage in Base, some can be applied to other applications. I have successfully tried Writer.

Digging deeper into the menus, it was realized there were more levels of menus than anticipated. Therefore, the document is about 10 pages along with another few for reference to the sample Base file but it does not delve deep into specific settings such as deactivating items (easy boolean setting) etc. There is just too much to cover in that respect.

The Base sample includes all the code for each of the methods discussed in the document and demonstrates the results. The code was developed for LibreOffice 4.4.7 but was also tested using OpenOffice 4.1.2 and worked the same.
Attachments
TestMenu.odb
Embedded Base sample for changing menus.
(115.98 KiB) Downloaded 390 times
LibreOffice Menus.odt
Discussion of proceedings and explanation of sample contents.
(39.04 KiB) Downloaded 501 times
LibreOffice 7.0.2.2
OpenOffice 4.0.1
Ubuntu Mate 20.04.1
Mint 20.3
Post Reply