Created
March 12, 2024 10:50
-
-
Save varshneydevansh/3f1df11f6b98820d768e8324012dcdb9 to your computer and use it in GitHub Desktop.
generated output for the https://gerrit.libreoffice.org/c/core/+/163382/ for this input - https://git.libreoffice.org/sdk-examples/+/a0e4edacc44b21e0477b758413228d30939f4e87/TuesdayPython/Addons.xcu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[~/libreoffice] | |
devansh 97448_pyHelper_addons_generator cd /home/devansh/libreoffice ; /usr/bin/env /bin/python3 /home/devansh/.vscode/extensions/ms-python.debugpy-2024.2.0-linux-x64/bundled/libs/debugpy/adapter/../../debugpy/launcher 43529 -- /home/devansh/libreoffice/odk/source/helper/addon_console.py | |
Welcome to the LibreOffice Addons Configuration Tool! | |
Enter addon name (extID name, e.g., com.<companyname>.<company-namespace>.<extension-namespace>): org.libreoffice.TuesdayPrinter | |
Do you want to create the 'AddonMenu' item (Tools > Add-ons)? (y/n): n | |
Do you want to create the 'OfficeHelp' item (Help menu)? (y/n): n | |
Images attribute defines the icons that appear next to the text in the menu and toolbar items. | |
Do you want to provide images? (y/n): n | |
Enter merge type (menu or toolbar): menu | |
Enter merge name (m<No> name for menu, label[] for toolbar): menu1 | |
Enter merge point: .uno:PickList\.uno:Print | |
Enter merge command (possible merge commands are: AddAfter, AddBefore, Replace, Remove): Replace | |
Enter merge fallback (possible merge fallbacks are: AddAfter, AddBefore, Replace, Remove): AddAfter | |
Select the application module context for the merge instruction: | |
1. Writer | |
2. Spreadsheet | |
3. Presentation | |
4. Draw | |
5. Formula | |
6. Chart | |
7. Bibliography | |
Enter your choice (1-7): 1 | |
Enter menu item name (or 'done' to finish): submenu1 | |
Enter menu item item title (use '~' before the accelerator key, e.g., '~File'): Print on Tuesdays | |
Enter menu item URL (can be a macro path or dispatch command): service:org.libreoffice.TuesdayPrinter?printontuesday | |
Enter menu item target (_self, _default, _top, _parent, or _blank): _self | |
Enter path to menu item image (optional, or 'skip' to skip): skip | |
Add submenu for this menu item? (y/n): n | |
Enter menu item name (or 'done' to finish): done | |
Continue to modify Menu or Toolbar? ( y or n ): y | |
Enter merge type (menu or toolbar): toolbar | |
Enter merge name (m<No> name for menu, label[] for toolbar): toolbar1 | |
Enter merge point: .uno:PrintDefault | |
Enter merge command (possible merge commands are: AddAfter, AddBefore, Replace, Remove): Replace | |
Enter merge fallback (possible merge fallbacks are: AddAfter, AddBefore, Replace, Remove): | |
Select the application module context for the merge instruction: | |
1. Writer | |
2. Spreadsheet | |
3. Presentation | |
4. Draw | |
5. Formula | |
6. Chart | |
7. Bibliography | |
Enter your choice (1-7): 1 | |
Enter toolbar item name (or 'done' to finish): button1 | |
Enter toolbar item item title (use '~' before the accelerator key, e.g., '~File'): Print on Tuesdays | |
Enter toolbar item URL (can be a macro path or dispatch command): service:org.libreoffice.TuesdayPrinter?printontuesday | |
Enter toolbar item target (_self, _default, _top, _parent, or _blank): _self | |
Enter path to toolbar item image (optional, or 'skip' to skip): skip | |
Add submenu for this toolbar item? (y/n): n | |
Enter the Merge ToolBar name | |
(specifies the appearance of the floating toolbar reached via View > Toolbars > Add-on) : org.libreoffice.TuesdayPrinter.standardbar | |
Do you want to add a button separator? | |
1. Before the first button | |
2. Between the buttons | |
3. No separator | |
Enter your choice (1-3): 3 | |
Enter toolbar item name (or 'done' to finish): previewobjectbar | |
Enter toolbar item item title (use '~' before the accelerator key, e.g., '~File'): Print on Tuesdays | |
Enter toolbar item URL (can be a macro path or dispatch command): service:org.libreoffice.TuesdayPrinter?printontuesday | |
Enter toolbar item target (_self, _default, _top, _parent, or _blank): _self | |
Enter path to toolbar item image (optional, or 'skip' to skip): skip | |
Add submenu for this toolbar item? (y/n): n | |
Enter the Merge ToolBar name | |
(specifies the appearance of the floating toolbar reached via View > Toolbars > Add-on) : org.libreoffice.TuesdayPrinter.previewobjectbar | |
Do you want to add a button separator? | |
1. Before the first button | |
2. Between the buttons | |
3. No separator | |
Enter your choice (1-3): 3 | |
Enter toolbar item name (or 'done' to finish): done | |
Continue to modify Menu or Toolbar? ( y or n ): n | |
Save Addons.xcu file to desktop or specify a path to custom directory? (d/c): d | |
Thank you for using the Addons.xcu file generation. Have a Nice Day! | |
--------------------------------- | |
<?xml version='1.0' encoding='UTF-8'?> | |
<oor:component-data oor:package="org.openoffice.Office" oor:name="Addons" | |
xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema"> | |
<node oor:name="AddonUI"> | |
<node oor:name="OfficeMenuBar"> | |
<node oor:name="org.libreoffice.TuesdayPrinter" oor:op="replace" xmlns:oor="http://openoffice.org/2001/registry"> | |
<node oor:name="menu1" oor:op="replace"> | |
<prop oor:name="MergePoint"> | |
<value>.uno:PickList\.uno:Print</value> | |
</prop> | |
<prop oor:name="MergeCommand"> | |
<value>Replace</value> | |
</prop> | |
<prop oor:name="MergeFallback"> | |
<value>AddAfter</value> | |
</prop> | |
<prop oor:name="Context" oor:type="xs:string"> | |
<value>com.sun.star.text.TextDocument</value> | |
</prop> | |
<node oor:name="MenuItems"> | |
<node oor:name="submenu1" oor:op="replace"> | |
<prop oor:name="Title"> | |
<value xml:lang="en-US">Print on Tuesdays</value> | |
</prop> | |
<prop oor:name="URL"> | |
<value>service:org.libreoffice.TuesdayPrinter?printontuesday</value> | |
</prop> | |
<prop oor:name="ImageIdentifier"> | |
<value>None</value> | |
</prop> | |
<prop oor:name="Target" oor:type="xs:string"> | |
<value>_self</value> | |
</prop> | |
</node> | |
</node> | |
</node> | |
</node> | |
</node> | |
<node oor:name="OfficeToolBar"> | |
<node oor:name="org.libreoffice.TuesdayPrinter" oor:op="replace" xmlns:oor="http://openoffice.org/2001/registry"> | |
<node oor:name="toolbar1" oor:op="replace"> | |
<prop oor:name="MergeToolBar"> | |
<value>org.libreoffice.TuesdayPrinter.previewobjectbar</value> | |
</prop> | |
<prop oor:name="MergePoint"> | |
<value>.uno:PrintDefault</value> | |
</prop> | |
<prop oor:name="MergeCommand"> | |
<value>Replace</value> | |
</prop> | |
<prop oor:name="MergeFallback"> | |
<value></value> | |
</prop> | |
<prop oor:name="Context" oor:type="xs:string"> | |
<value>com.sun.star.text.TextDocument</value> | |
</prop> | |
<node oor:name="ToolBarItems"> | |
<node oor:name="button1" oor:op="replace" xmlns:oor="http://openoffice.org/2001/registry"> | |
<prop oor:name="Title" oor:type="xs:string"> | |
<value xml:lang="en-US">Print on Tuesdays</value> | |
</prop> | |
<prop oor:name="URL" oor:type="xs:string"> | |
<value>service:org.libreoffice.TuesdayPrinter?printontuesday</value> | |
</prop> | |
<prop oor:name="ImageIdentifier" oor:type="xs:string"> | |
<value>None</value> | |
</prop> | |
<prop oor:name="Target" oor:type="xs:string"> | |
<value>_self</value> | |
</prop> | |
</node> | |
<prop oor:name="SeparatorPosition"><value>none</value></prop> | |
<node oor:name="previewobjectbar" oor:op="replace" xmlns:oor="http://openoffice.org/2001/registry"> | |
<prop oor:name="Title" oor:type="xs:string"> | |
<value xml:lang="en-US">Print on Tuesdays</value> | |
</prop> | |
<prop oor:name="URL" oor:type="xs:string"> | |
<value>service:org.libreoffice.TuesdayPrinter?printontuesday</value> | |
</prop> | |
<prop oor:name="ImageIdentifier" oor:type="xs:string"> | |
<value>None</value> | |
</prop> | |
<prop oor:name="Target" oor:type="xs:string"> | |
<value>_self</value> | |
</prop> | |
</node> | |
<prop oor:name="SeparatorPosition"><value>none</value></prop> | |
</node> | |
</node> | |
</node> | |
</node> | |
</node> | |
</oor:component-data> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is working only problem is improper indentation and some repeating merging options as seen in the o/p file attaching at the last -