How to add new shapes to LO Draw?

I have prepared new shapes (EPC objects), but only way to use them is copy and paste. There are pre-defined shapes in Draw, which I can use in my drawings with toolbar. Haw to add new shapes in LibreOffice Draw library to this toolbar - for example named My shapes or something like that?

You can define on own theme in the Gallery and collect your new shapes there. That is the easiest way to make your shapes available. But if you want to share your shapes, a document to collect them and using copy&paste, is actually not such a bad thing.

It is not so easy to get your shapes into a toolbar or menu. The actions, which are performed by an item there, are defined in the program code and have fixed commands of kind “.uno:xxx” . You might write a macro, that inserts your shape. With such a macro you would be able to make a toolbar or menu item. That is possible via the customize dialog. Look at the last item in the list ‘category’. Both, changes to the program code or macros, need some skills in programming.


The simplest, often the best, so @Regina +1.

Nevertheless may be you can also see “extensions”, taking inspiration from an existing one like this one.


To be completely clear, in order to add new shapes to theme that you have created, you have to copy-and-paste the shapes into the theme by right clicking or ctrl-v in the selected theme box.

You add a shape to a theme with drag-drop. But the question here is not about an own theme in the Gallery, but about toolbars.