Add tools for debug

This commit is contained in:
Mauricio Baeza 2021-06-14 16:20:56 -05:00
parent 062870937b
commit 9e4664905e
15 changed files with 7060 additions and 0 deletions

1
VERSION Normal file
View File

@ -0,0 +1 @@
0.1.0

Binary file not shown.

View File

@ -0,0 +1,7 @@
<?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="ZAZEasyMacro.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:file-entry manifest:full-path="XZAZEasyMacro.rdb" manifest:media-type="application/vnd.sun.star.uno-typelibrary;type=RDB"/>
</manifest:manifest>

35
source/XZAZEasyMacro.idl Normal file
View File

@ -0,0 +1,35 @@
#ifndef __net_elmau_zaz_EasyMacro_idl__
#define __net_elmau_zaz_EasyMacro_idl__
#include <com/sun/star/uno/XInterface.idl>
/*
any, boolean, byte, char, double, float, hyper, long, short, string, void,
unsigned hyper, unsigned long, unsigned short
*/
module net { module elmau { module zaz { module EasyMacro {
interface XZAZEasyMacro : com::sun::star::uno::XInterface
{
[attribute, readonly] string OS;
[attribute, readonly] string USER;
[attribute, readonly] string INFO_DEBUG;
};
interface XDebug : com::sun::star::uno::XInterface {
void inspect([in] any obj);
void info([in] any data);
void debug([in] any data);
void error([in] any data);
};
service EasyMacro {
interface XZAZEasyMacro;
interface XDebug;
};
}; }; }; };
#endif

BIN
source/XZAZEasyMacro.rdb Normal file

Binary file not shown.

20
source/ZAZEasyMacro.py Normal file
View File

@ -0,0 +1,20 @@
import uno
import unohelper
from net.elmau.zaz.EasyMacro import XZAZEasyMacro
from libo import LIBO
ID_EXTENSION = 'net.elmau.zaz.EasyMacro'
SERVICE = ('net.elmau.zaz.EasyMacro',)
class ZAZEasyMacro(unohelper.Base, XZAZEasyMacro, LIBO):
def __init__(self, ctx):
self.ctx = ctx
super().__init__()
g_ImplementationHelper = unohelper.ImplementationHelper()
g_ImplementationHelper.addImplementation(ZAZEasyMacro, 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.EasyMacro"/>
<version value="0.1.0"/>
<display-name>
<name lang="en">Easy Macro</name>
<name lang="es">Macro Fácil</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/zazeasymacro.png"/>
</icon>
<publisher>
<name xlink:href="https://git.cuates.net/elmau/zaz-easymacro" lang="en">El Mau</name>
<name xlink:href="https://git.cuates.net/elmau/zaz-easymacro" 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 @@
Rapid develop macros

View File

@ -0,0 +1 @@
Desarrollo rápido de macros

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

File diff suppressed because it is too large Load Diff

29
source/pythonpath/libo.py Normal file
View File

@ -0,0 +1,29 @@
#!/usr/bin/env python3
from net.elmau.zaz.EasyMacro import XDebug
import easymacro as app
class Debug(XDebug):
def info(self, message):
app.info(message)
return
def debug(self, message):
app.debug(message)
return
def error(self, message):
app.error(message)
return
def inspect(self, obj):
app.inspect(obj)
return
class LIBO(Debug):
OS = app.OS
USER = app.USER
INFO_DEBUG = app.INFO_DEBUG

View File

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

View File

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

0
zaz.py Normal file → Executable file
View File