From The Document Foundation Wiki
Jump to: navigation, search

We should allow extensions to register their own tabs in the Notebookbar.

This page is a work-in-progress scratch pad for the extension format.


Must have

  • Tab title
  • Tab can be grouped in sections
  • Each section can contain multiple controls
    • These controls are laid out in two rows (for now)
    • The control can have one of (text, icon+text, icon)
    • More options will come later (double height buttons etc.)

Nice to have


Instead of creating a new format, we should integrate the Notebookbar UI definition in the Addons.xcu file where also the menubar and toolbar are defined.

So this proposal tries to stay as close as possible to the current toolbar format. See for reference:


  • The AddonUI node contains one OfficeNotebookbar node.
  • The OfficeNotebookbar contains a Title and a NotebookbarSections node.
  • The NotebookbarSections node contains one or more section.
  • Each section contains one or more buttons.


<?xml version='1.0' encoding='UTF-8'?>
<oor:component-data xmlns:oor=""
  <node oor:name="AddonUI">
    <node oor:name="OfficeNotebookbar">
      <node oor:name="org.libreoffice.addon.example" oor:op="replace">
        <prop oor:name="Title" oor:type="xs:string">
          <value xml:lang="en-US">Tab Title</value>
        <node oor:name="NotebookbarSections">
          <node oor:name="section1" oor:op="replace">
            <node oor:name="button1" oor:op="replace">
              <prop oor:name="Title" oor:type="xs:string">
                <value xml:lang="en-US">Action 1</value>
              <prop oor:name="URL" oor:type="xs:string">
              <prop oor:name="Target" oor:type="xs:string">
              <prop oor:name="Context" oor:type="xs:string">
              <prop oor:name="Style" oor:type="xs:string">

Additional notes

Images are defined in an extra section and associated via the URL: