Configure notebookbar.ui via extension


I would like to set the notebookbar.ui interface via an extension. I have already tried a few things, but have failed so far. I also looked at the XML file from the sample extension provided by The Document Foundation, but it seems to be outdated and not compatible with current LibreOffice versions.

Does anyone have a working XML structure that sets the notebookbar as default?


In the newer versions of LibreOffice you don’t need an extension.
You can easily make the setting in the View>User Interface menu.
See also:

User interface in Writer

With me:
Version: (x64) / LibreOffice Community
Build ID: d1d0ea68f081ee2800a922cac8f79445e4603348
CPU threads: 8; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: de-DE
Calc: CL

Thanks for the answer. However, I need to set this setting in a corporate environment for a larger number of computers. Therefore I would like to go the XML way with an extension.