diff --git a/conf.py b/conf.py
index 3e5f623..72b99da 100644
--- a/conf.py
+++ b/conf.py
@@ -111,7 +111,7 @@ MENU_MAIN = {
MENUS = (
{
'title': {'en': 'From selection', 'es': 'Desde selección'},
- 'argument': 'selection',
+ 'argument': 'from_selection',
'context': 'calc,writer,draw,impress',
'icon': 'icon1',
'toolbar': False,
@@ -119,7 +119,7 @@ MENUS = (
},
{
'title': {'en': 'Insert...', 'es': 'Insertar...'},
- 'argument': 'dlg',
+ 'argument': 'from_dialog',
'context': 'calc,writer,draw,impress',
'icon': 'icon1',
'toolbar': False,
@@ -127,7 +127,7 @@ MENUS = (
},
{
'title': {'en': 'Validate applications', 'es': 'Validar aplicaciones'},
- 'argument': 'app',
+ 'argument': 'validate_app',
'context': 'calc,writer,draw,impress',
'icon': 'icon2',
'toolbar': False,
diff --git a/files/ZAZLaTex2SVG_v0.2.0.oxt b/files/ZAZLaTex2SVG_v0.2.0.oxt
index 271833f..6c2c6fb 100644
Binary files a/files/ZAZLaTex2SVG_v0.2.0.oxt and b/files/ZAZLaTex2SVG_v0.2.0.oxt differ
diff --git a/source/Addons.xcu b/source/Addons.xcu
index b025717..44b7d04 100644
--- a/source/Addons.xcu
+++ b/source/Addons.xcu
@@ -20,7 +20,7 @@
com.sun.star.sheet.SpreadsheetDocument,com.sun.star.text.TextDocument,com.sun.star.drawing.DrawingDocument,com.sun.star.presentation.PresentationDocument
- service:net.elmau.zaz.latex2svg?selection
+ service:net.elmau.zaz.latex2svg?from_selection
_self
@@ -38,7 +38,7 @@
com.sun.star.sheet.SpreadsheetDocument,com.sun.star.text.TextDocument,com.sun.star.drawing.DrawingDocument,com.sun.star.presentation.PresentationDocument
- service:net.elmau.zaz.latex2svg?dlg
+ service:net.elmau.zaz.latex2svg?from_dialog
_self
@@ -56,7 +56,7 @@
com.sun.star.sheet.SpreadsheetDocument,com.sun.star.text.TextDocument,com.sun.star.drawing.DrawingDocument,com.sun.star.presentation.PresentationDocument
- service:net.elmau.zaz.latex2svg?app
+ service:net.elmau.zaz.latex2svg?validate_app
_self
diff --git a/source/pythonpath/main.py b/source/pythonpath/main.py
index d7efc51..6c5c863 100644
--- a/source/pythonpath/main.py
+++ b/source/pythonpath/main.py
@@ -7,11 +7,21 @@ ID_EXTENSION = ''
_ = None
-def selection():
+def from_selection():
app.debug('From selection')
return
+def from_dialog():
+ app.debug('From dialog')
+ return
+
+
+def validate_app():
+ app.debug('Validate app')
+ return
+
+
def run(args, path_locales):
global _
_ = app.install_locales(path_locales)