Add global variables
This commit is contained in:
parent
9e4664905e
commit
f8c4e3c3ee
6808
easymacro.py
6808
easymacro.py
File diff suppressed because it is too large
Load Diff
Binary file not shown.
BIN
images/logo.png
BIN
images/logo.png
Binary file not shown.
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 9.0 KiB |
|
@ -15,11 +15,19 @@ module net { module elmau { module zaz { module EasyMacro {
|
||||||
interface XZAZEasyMacro : com::sun::star::uno::XInterface
|
interface XZAZEasyMacro : com::sun::star::uno::XInterface
|
||||||
{
|
{
|
||||||
[attribute, readonly] string OS;
|
[attribute, readonly] string OS;
|
||||||
|
[attribute, readonly] string DESKTOP;
|
||||||
|
[attribute, readonly] string PC;
|
||||||
[attribute, readonly] string USER;
|
[attribute, readonly] string USER;
|
||||||
|
[attribute, readonly] boolean IS_WIN;
|
||||||
|
[attribute, readonly] boolean IS_MAC;
|
||||||
|
[attribute, readonly] string NAME;
|
||||||
|
[attribute, readonly] string VERSION;
|
||||||
|
[attribute, readonly] string LANGUAGE;
|
||||||
|
[attribute, readonly] string LANG;
|
||||||
[attribute, readonly] string INFO_DEBUG;
|
[attribute, readonly] string INFO_DEBUG;
|
||||||
};
|
};
|
||||||
|
|
||||||
interface XDebug : com::sun::star::uno::XInterface {
|
interface XZAZDebug : com::sun::star::uno::XInterface {
|
||||||
void inspect([in] any obj);
|
void inspect([in] any obj);
|
||||||
void info([in] any data);
|
void info([in] any data);
|
||||||
void debug([in] any data);
|
void debug([in] any data);
|
||||||
|
@ -28,7 +36,7 @@ module net { module elmau { module zaz { module EasyMacro {
|
||||||
|
|
||||||
service EasyMacro {
|
service EasyMacro {
|
||||||
interface XZAZEasyMacro;
|
interface XZAZEasyMacro;
|
||||||
interface XDebug;
|
interface XZAZDebug;
|
||||||
};
|
};
|
||||||
|
|
||||||
}; }; }; };
|
}; }; }; };
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 9.0 KiB |
File diff suppressed because it is too large
Load Diff
|
@ -1,10 +1,10 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
from net.elmau.zaz.EasyMacro import XDebug
|
from net.elmau.zaz.EasyMacro import XZAZDebug
|
||||||
import easymacro as app
|
import easymacro as app
|
||||||
|
|
||||||
|
|
||||||
class Debug(XDebug):
|
class Debug(XZAZDebug):
|
||||||
|
|
||||||
def info(self, message):
|
def info(self, message):
|
||||||
app.info(message)
|
app.info(message)
|
||||||
|
@ -25,5 +25,13 @@ class Debug(XDebug):
|
||||||
|
|
||||||
class LIBO(Debug):
|
class LIBO(Debug):
|
||||||
OS = app.OS
|
OS = app.OS
|
||||||
|
DESKTOP = app.DESKTOP
|
||||||
|
PC = app.PC
|
||||||
USER = app.USER
|
USER = app.USER
|
||||||
|
IS_WIN = app.IS_WIN
|
||||||
|
IS_MAC = app.IS_MAC
|
||||||
|
NAME = app.NAME
|
||||||
|
VERSION = app.VERSION
|
||||||
|
LANGUAGE = app.LANGUAGE
|
||||||
|
LANG = app.LANG
|
||||||
INFO_DEBUG = app.INFO_DEBUG
|
INFO_DEBUG = app.INFO_DEBUG
|
||||||
|
|
Loading…
Reference in New Issue