Skip to content

Commit

Permalink
Release 0.20: add menu entry File > Export as Factur-X
Browse files Browse the repository at this point in the history
  • Loading branch information
alexis-via committed Jan 7, 2020
1 parent d65cdb1 commit 36175df
Show file tree
Hide file tree
Showing 7 changed files with 62 additions and 2 deletions.
4 changes: 4 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ A video tutorial that shows how to install and use this LibreOffice extension is
Release notes
=============

* Version 0.20 dated January 8th 2020:

* Add menu entry *File > Export as Factur-X*

* Version 0.19 dated January 7th 2020:

* Auto-open PDF after saving it
Expand Down
54 changes: 54 additions & 0 deletions extension/Addons.xcu
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<?xml version="1.0" encoding="UTF-8"?>
<oor:component-data
xmlns:oor="http://openoffice.org/2001/registry"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
oor:name="Addons"
oor:package="org.openoffice.Office">
<node oor:name="AddonUI">
<node oor:name="OfficeMenuBarMerging">
<node oor:name="facturx" oor:op="replace">
<node oor:name="S1" oor:op="replace">
<prop oor:name="MergePoint">
<value>.uno:PickList\.uno:ExportToPDF</value>
</prop>
<prop oor:name="MergeCommand">
<value>AddAfter</value>
</prop>
<prop oor:name="MergeFallback">
<value>AddPath</value>
</prop>
<prop oor:name="MergeContext" oor:type="xs:string">
<value>com.sun.star.sheet.SpreadsheetDocument</value>
</prop>
<node oor:name="MenuItems">
<node oor:name="M1" oor:op="replace">
<prop oor:name="URL" oor:type="xs:string">
<!-- https://wiki.openoffice.org/wiki/Documentation/DevGuide/Scripting/Scripting_Framework_URI_Specification -->
<value>vnd.sun.star.script:factur-x_macro.oxt|package|libreoffice_facturx_macro.py$generate_facturx_invoice_v1?language=Python&amp;location=user:uno_packages</value>
</prop>
<prop oor:name="Title" oor:type="xs:string">
<value xml:lang="en-US">Export as Factur-X...</value>
<value xml:lang="fr-FR">Exporter au format Factur-X...</value>
</prop>
<prop oor:name="Target" oor:type="xs:string">
<value>_self</value>
</prop>
</node>
</node>
</node>
</node>
</node>
<node oor:name="Images">
<node oor:name="facturx.image" oor:op="replace">
<prop oor:name="URL" oor:type="xs:string">
<value>vnd.sun.star.script:factur-x_macro.oxt|package|libreoffice_facturx_macro.py$generate_facturx_invoice_v1?language=Python&amp;location=user:uno_packages</value>
</prop>
<node oor:name="UserDefinedImages">
<prop oor:name="ImageSmallURL">
<value>%origin%/icon_16.png</value>
</prop>
</node>
</node>
</node>
</node>
</oor:component-data>
2 changes: 2 additions & 0 deletions extension/META-INF/manifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@

<manifest:file-entry manifest:full-path="package"
manifest:media-type="application/vnd.sun.star.framework-script"/>
<manifest:file-entry manifest:full-path="Addons.xcu"
manifest:media-type="application/vnd.sun.star.configuration-data"/>

</manifest:manifest>
4 changes: 2 additions & 2 deletions extension/description.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
xmlns:d="http://openoffice.org/extensions/description/2006">

<identifier value="com.akretion.factur-x" />
<version value="0.19" />
<version value="0.20" />
<platform value="all" />
<display-name>
<name lang="en">Factur-X Invoice Generator</name>
Expand All @@ -14,7 +14,7 @@
<name xlink:href="mailto:alexis@via.ecp.fr">Alexis de Lattre</name>
</publisher>
<icon>
<default xlink:href="icon.png" />
<default xlink:href="icon_42.png" />
</icon>
<extension-description>
<src xlink:href="https://github.com/akretion/factur-x-libreoffice-extension" lang="en" />
Expand Down
Binary file added extension/icon_16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file modified factur-x_macro.oxt
Binary file not shown.

0 comments on commit 36175df

Please sign in to comment.