As TDF Wiki page “Development/NotebookBar/Extensions”, an extension can register their own tabs in the Notebookbar. But this is not enough, LO should provide more APIs to allow extension to register not only own tab but also buttons within a tab as File, Home, Insert, etc. to give developers convenience if they don’t want to create a custom tab but want to just create a button.
I guess it's reasonable -> NEW
*** Bug 116532 has been marked as a duplicate of this bug. ***
On this page you will see what happened if a MS Office add-in registered icons on Ribbon interface in Excel 2016:
*** Bug 122316 has been marked as a duplicate of this bug. ***
Is "adding button to existing toolbar" something that already works with current "old-style" toolbars? Or would extensions always create their own toolbar and add their button there? Could be relevant to keep very similar API for both toolbars and notebookbars and reuse an established (XML)format.
(In reply to jan d from comment #5)
> Is "adding button to existing toolbar" something that already works with
> current "old-style" toolbars?
Yes, the following extension works with this:
DCM Direct Colour Management
Firstly, I can see the special button after I install this extension. But when I switched to tabbed toolbar, the button is disappeared.
CPU 线程：4; 操作系统：Windows 10.0; UI 渲染：默认; VCL: win;
区域语言：zh-CN (zh_CN); UI 语言: zh-CN
If you look at the example on the page cited in comment #1, which in fact is only a proposal how it could look like when it will be developped, there is already included the request for buttons (simply search for button), even though the title does not state this. Otherwise, as I agree with you, the proposal would not be very helpful.
But there seems to be no realisation yet, at least I could not find one where I would think it should be placed, namely in parallel to menubar, toolbar etc.
You may also note that the text is dated 2016 and has not been edited since.
I would gladly add buttons to the notebokbars, even though I do not like seem, if I could.
as there is not only tabbed toolbar the request for extension support in LibreOffice has to be more generic.
when you have a look at the notebookbar*.ui files all uno commands are in an sfxlo-NotebookbarToolBox widget, because with an sfxlo-NotebookbarToolBox widget you can define the Toolbar Style (Text only, Icon only, Text below icons, Text beside icons) and the Icon size (no setting use the default setting which the user can change in LibO Settings, Large Toolbar, Menubar, ...)
So my request for extension support would be to define extensions with the sfxlo-NotebookbarToolBox widget.
Tabbed Toolbar: own Tab where you have sfxlo-NotebookbarToolBox with settings Text below Icons and Large Toolbar icon size
Tabbed compact Toolbar: own Tab where you have sfxlo-NotebookbarToolBox with settings Text beside Icons
Groupedbar compact Toolbar: own Group called extensions where you have sfxlo-NotebookbarToolBox with icons only layout
sfxlo-NotebookbarToolBox widget have an specific name e.g. extension1, extension2, ... so everywhere an sfxlo-NotebookbarToolBox widget called extension1 was available in the .ui file the commands from the extension will be shown.
- would be cool if the user can rearrange the extensions (define which is extension1, extension2, ...
- it's not possible to say specific command's are more importend and can than be arranged on the home tab.
Use NotebookbarToolBox widget with an specific name would be an easy solution and will have an good first implementation, it wan't save all issues (like rearrange commands), but customize the notebookbar is another bug.
I am all for this. It would be essential to improve Notebookbar functionality. By having these functions we could probably even start considering making Notebookbar versions of the traditional layouts.