marcosalpereira
marcosalpereira

Reputation: 349

How to bind a macro to a toolbar button in open office programmatically

How to bind a macro to a toolbar button in libre office programmatically.

Upvotes: 0

Views: 359

Answers (1)

Jim K
Jim K

Reputation: 13819

Example code is in Listing 5.110 of Andrew Pitonyak's Macro Document. Check out all of the toolbar information in section 5.44.

It uses the XUIConfigurationManager interface.

The standard way to add a toolbar button is to create an extension and then specify the new toolbar button in an Addons.xcu file. The add-on can also include the macro, so it is an easy way to distribute it for other people to use.

Upvotes: 1

Related Questions