Please Help: How to add DropdownButton to toolbar Item using xcu for extensions

Harish Kumar harishbhaskaruni at
Tue May 5 06:32:34 UTC 2020

Hi Team,
I am a starter and want to know on How to add a drop down button with sub
items (buttons or Text) using the xcu file that we give while creating an
extension. My xcu file for toolbar items looks like below

<node oor:name="OfficeToolBar">
        <node oor:name="org.libreoffice.example.StarterProject.toolbar"
            <prop oor:name="Title" oor:type="xs:string">
                <value>Starter Project</value>
            <node oor:name="t01" oor:op="replace">
                <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="Title" oor:type="xs:string">
                    <value xml:lang="en-US">Action One</value>

I have added ControlType property as below
<prop oor:name="ControlType" oor:type="xs:string">
 which resulted in the button to look like dropdown. But i am confused on
how to add sub items in this fashion.
For example LibreOffice uses Save DropdownButton under which we have sub
items like Save As, Export etc.

I didn't get any response from our forum too. Please guide
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the LibreOffice mailing list