Delete source test

This commit is contained in:
Mauricio Baeza 2019-09-14 18:19:38 -05:00
parent 1a5c2031f3
commit 563ac48a6b
11 changed files with 0 additions and 1646 deletions

View File

@ -1,58 +0,0 @@
<?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="OfficeMenuBar">
<node oor:name="org.myextension.test" oor:op="replace">
<prop oor:name="Title" oor:type="xs:string">
<value xml:lang="en">My Extension</value>
<value xml:lang="es">Mi Extensión</value>
</prop>
<prop oor:name="Target" oor:type="xs:string">
<value>_self</value>
</prop>
<node oor:name="Submenu">
<node oor:name="org.myextension.test.101" oor:op="replace">
<prop oor:name="Title" oor:type="xs:string">
<value xml:lang="en">Option 1</value>
<value xml:lang="es">Opción 1</value>
</prop>
<prop oor:name="URL" oor:type="xs:string">
<value>service:org.myextension.test?option1</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.sheet.SpreadsheetDocument,com.sun.star.text.TextDocument</value>
</prop>
<prop oor:name="ImageIdentifier" oor:type="xs:string">
<value>%origin%/images/icon</value>
</prop>
</node>
</node>
</node>
</node>
<node oor:name="OfficeToolBar">
<node oor:name="org.myextension.test" oor:op="replace">
<node oor:name="org.myextension.test.t1" oor:op="replace">
<prop oor:name="Title" oor:type="xs:string">
<value xml:lang="en">Option 1</value>
<value xml:lang="es">Opción 1</value>
</prop>
<prop oor:name="URL" oor:type="xs:string">
<value>service:org.myextension.test?option1</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.sheet.SpreadsheetDocument,com.sun.star.text.TextDocument</value>
</prop>
<prop oor:name="ImageIdentifier" oor:type="xs:string">
<value>%origin%/images/icon</value>
</prop>
</node>
</node>
</node>
</node>
</oor:component-data>

View File

@ -1,5 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<manifest:manifest>
<manifest:file-entry manifest:full-path="TestMacro.py" manifest:media-type="application/vnd.sun.star.uno-component;type=Python"/>
<manifest:file-entry manifest:full-path="Addons.xcu" manifest:media-type="application/vnd.sun.star.configuration-data"/>
</manifest:manifest>

View File

@ -1,33 +0,0 @@
import gettext
import uno
import unohelper
from com.sun.star.task import XJobExecutor
import easymacro as app
ID_EXTENSION = 'org.myextension.test'
SERVICE = ('com.sun.star.task.Job',)
p, *_ = app.get_info_path(__file__)
path_locales = app.join(p, 'locales')
try:
lang = gettext.translation('base', path_locales, languages=[app.LANG])
lang.install()
_ = lang.gettext
except Exception as e:
app.error(e)
class TestMacro(unohelper.Base, XJobExecutor):
def __init__(self, ctx):
self.ctx = ctx
def trigger(self, args='pyUNO'):
print('Hello World', args)
return
g_ImplementationHelper = unohelper.ImplementationHelper()
g_ImplementationHelper.addImplementation(TestMacro, ID_EXTENSION, SERVICE)

View File

@ -1,26 +0,0 @@
<?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="org.myextension.test" />
<version value="0.1.0" />
<display-name>
<name lang="en">Test Macro</name>
<name lang="es">Macro de Prueba</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/testmacro.png" />
</icon>
<publisher>
<name xlink:href="https://elmau.net" lang="en">El Mau</name>
<name xlink:href="https://elmau.net" 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

@ -1 +0,0 @@
My great extension

View File

@ -1 +0,0 @@
Mi gran extensión

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

File diff suppressed because it is too large Load Diff

View File

@ -1,14 +0,0 @@
This file is part of TestMacro.
TestMacro 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.
TestMacro 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 TestMacro. If not, see <https://www.gnu.org/licenses/>.

View File

@ -1,14 +0,0 @@
This file is part of TestMacro.
TestMacro 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.
TestMacro 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 TestMacro. If not, see <https://www.gnu.org/licenses/>.