Hi,
I made a complex toolbar samples based on SDK samples and source code long
time ago:
https://github.com/marklh9/ExtendingLibreOffice/tree/master/src/ComplexToolbar
HTH.
Harish Kumar <harishbhaskaruni@gmail.com> 於 2020年5月5日 週二 下午2:32寫道:
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" oor:op="replace">
<prop oor:name="Title" oor:type="xs:string">
<value>Starter Project</value>
</prop>
<node oor:name="t01" oor:op="replace">
<prop oor:name="URL" oor:type="xs:string">
<value>service:org.libreoffice.example.StarterProject?actionOne</value>
</prop>
<prop oor:name="Target" oor:type="xs:string">
<value>_self</value>
</prop>
<prop oor:name="Context" oor:type="xs:string">
<value>com.sun.star.text.TextDocument,com.sun.star.sheet.SpreadsheetDocument</value>
</prop>
<prop oor:name="Title" oor:type="xs:string">
<value xml:lang="en-US">Action One</value>
</prop>
</node>
I have added ControlType property as below
<prop oor:name="ControlType" oor:type="xs:string">
<value>DropdownButton</value>
</prop>
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
https://ask.libreoffice.org/en/question/241346/how-to-add-dropdownbutton-to-toolbar-item-using-xcu-for-extensions/
_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice
--
Mark Hung
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.