Compare commits

...

2 Commits

Author SHA1 Message Date
Mauricio Baeza e43b1fb1c9 Start dialog 2021-07-12 21:52:54 -05:00
Mauricio Baeza e972238342 Start develop 2021-07-12 21:45:13 -05:00
16 changed files with 7549 additions and 0 deletions

1
VERSION Normal file
View File

@ -0,0 +1 @@
0.1.0

Binary file not shown.

25
source/Addons.xcu Normal file
View File

@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<oor:component-data xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:oor="http://openoffice.org/2001/registry" oor:name="Addons" oor:package="org.openoffice.Office">
<node oor:name="AddonUI">
<node oor:name="AddonMenu">
<node oor:name="net.elmau.zaz.extensions" oor:op="fuse">
<prop oor:name="Title" oor:type="xs:string">
<value xml:lang="en">ZAZ Wizard</value>
<value xml:lang="es">ZAZ Asistente</value>
</prop>
<prop oor:name="Context" oor:type="xs:string">
<value>com.sun.star.sheet.SpreadsheetDocument,com.sun.star.text.TextDocument,com.sun.star.drawing.DrawingDocument,com.sun.star.presentation.PresentationDocument</value>
</prop>
<prop oor:name="URL" oor:type="xs:string">
<value>service:net.elmau.zaz.extensions?wizard</value>
</prop>
<prop oor:name="Target" oor:type="xs:string">
<value>_self</value>
</prop>
<prop oor:name="ImageIdentifier" oor:type="xs:string">
<value>%origin%/images/icon</value>
</prop>
</node>
</node>
</node>
</oor:component-data>

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" xmlns:loext="urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0" manifest:version="1.2">
<manifest:file-entry manifest:full-path="ZAZExtensions.py" manifest:media-type="application/vnd.sun.star.uno-component;type=Python"/>
<manifest:file-entry manifest:full-path="Office/Accelerators.xcu" manifest:media-type="application/vnd.sun.star.configuration-data"/>
<manifest:file-entry manifest:full-path="Addons.xcu" manifest:media-type="application/vnd.sun.star.configuration-data"/>
</manifest:manifest>

View File

@ -0,0 +1,35 @@
<?xml version="1.0" encoding="utf-8"?>
<oor:component-data xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:oor="http://openoffice.org/2001/registry" oor:name="Accelerators" oor:package="org.openoffice.Office">
<node oor:name="PrimaryKeys">
<node oor:name="Modules">
<node oor:name="com.sun.star.sheet.SpreadsheetDocument">
<node oor:name="W_SHIFT_MOD1_MOD2" oor:op="fuse">
<prop oor:name="Command">
<value xml:lang="en-US">service:net.elmau.zaz.extensions?wizard</value>
</prop>
</node>
</node>
<node oor:name="com.sun.star.text.TextDocument">
<node oor:name="W_SHIFT_MOD1_MOD2" oor:op="fuse">
<prop oor:name="Command">
<value xml:lang="en-US">service:net.elmau.zaz.extensions?wizard</value>
</prop>
</node>
</node>
<node oor:name="com.sun.star.drawing.DrawingDocument">
<node oor:name="W_SHIFT_MOD1_MOD2" oor:op="fuse">
<prop oor:name="Command">
<value xml:lang="en-US">service:net.elmau.zaz.extensions?wizard</value>
</prop>
</node>
</node>
<node oor:name="com.sun.star.presentation.PresentationDocument">
<node oor:name="W_SHIFT_MOD1_MOD2" oor:op="fuse">
<prop oor:name="Command">
<value xml:lang="en-US">service:net.elmau.zaz.extensions?wizard</value>
</prop>
</node>
</node>
</node>
</node>
</oor:component-data>

22
source/ZAZExtensions.py Normal file
View File

@ -0,0 +1,22 @@
import uno
import unohelper
from com.sun.star.task import XJobExecutor
from main import main
ID_EXTENSION = 'net.elmau.zaz.extensions'
SERVICE = ('com.sun.star.task.Job',)
class ZAZExtensions(unohelper.Base, XJobExecutor):
def __init__(self, ctx):
self.ctx = ctx
def trigger(self, args):
main(args)
return
g_ImplementationHelper = unohelper.ImplementationHelper()
g_ImplementationHelper.addImplementation(ZAZExtensions, ID_EXTENSION, SERVICE)

26
source/description.xml Normal file
View File

@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<description xmlns="http://openoffice.org/extensions/description/2006" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:d="http://openoffice.org/extensions/description/2006">
<identifier value="net.elmau.zaz.extensions"/>
<version value="0.1.0"/>
<display-name>
<name lang="en">ZAZ Extensions</name>
<name lang="es">ZAZ Extensiones</name>
</display-name>
<extension-description>
<src lang="en" xlink:href="description/desc_en.txt"/>
<src lang="es" xlink:href="description/desc_es.txt"/>
</extension-description>
<icon>
<default xlink:href="images/zazextensions.png"/>
</icon>
<publisher>
<name xlink:href="https://git.cuates.net/elmau/zaz-extensions" lang="en">El Mau</name>
<name xlink:href="https://git.cuates.net/elmau/zaz-extensions" lang="es">El Mau</name>
</publisher>
<registration>
<simple-license accept-by="user" suppress-on-update="true">
<license-text xlink:href="registration/license_en.txt" lang="en"/>
<license-text xlink:href="registration/license_es.txt" lang="es"/>
</simple-license>
</registration>
</description>

View File

@ -0,0 +1 @@
Wizard for make LibreOffice extensions

View File

@ -0,0 +1 @@
Asistenten para generar extensiones para LibreOffice

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

View File

@ -0,0 +1,2 @@
#!/usr/bin/env python3

File diff suppressed because it is too large Load Diff

11
source/pythonpath/main.py Normal file
View File

@ -0,0 +1,11 @@
#!/usr/bin/env python3
from ui import dialog_main
def main(args):
dialog = dialog_main()
dialog.open()
return

14
source/pythonpath/ui.py Normal file
View File

@ -0,0 +1,14 @@
#!/usr/bin/env python3
import easymacro as app
def dialog_main():
args = dict(
Name = 'dialog',
Width = 200,
Height = 200,
)
dialog = app.create_dialog(args)
return dialog

View File

@ -0,0 +1,14 @@
This file is part of ZAZExtensions.
ZAZExtensions is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
ZAZExtensions is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with ZAZExtensions. If not, see <https://www.gnu.org/licenses/>.

View File

@ -0,0 +1,14 @@
This file is part of ZAZExtensions.
ZAZExtensions is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
ZAZExtensions is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with ZAZExtensions. If not, see <https://www.gnu.org/licenses/>.