Toolbars: how to insert static information?

Hello,
I can change the toolbars contents and add or remove toolbuttons then make them point to uno functions or to macros. But I don’t know how to add static information, like a label (ex : the current font name) in a given existing toolbar.
I don’t know of any UI option for that, but any macro pointer would be appreciated.
My current need is to add the current font name and size in the “Formatting (Styles)” toolbar.

LibreOffice 7.5.8 under Linux Mint 21.3 Cinnamon.

TIA

  • Do you want only to display the actual font name of the edited text on your own toolbar? - There is a function for that on the default toolbar (Font select list).
  • Do you want to set the font of the edited (selected) text by some static toolbar item? Name your macros as the desired Font is named, add the macros to the toolbar, and do not assign any icon to it.

.
(It is better to use the Character Styles and the Paragraph Styles instead of the direct formatting method.)

Thanks @Zizi64. Precisely, I just wish to see the information, not to set it (I’m a promoter of styles myself). Thus the need to add this to the “Formatting (Styles)” toolbar (I got rid ot the standard format toolbar a long while ago and don’t regret it :slight_smile: .

Notebookbar part 1: custom widgets for the tabbed interface - LibreOffice Development Blog

Thanks for the suggestion @fpy. But, nope, sorry, no notebookbar here. I prefer keeping with the standard menu and toolbars.

@KamilLanda I don’t want to create a toolbar from scratch, just add a label in an existing one, if possible. Thanks for the pointer, anyway: very interesting!

It is possible to make the extension with Complex Toolbar.