Add function from dialog
This commit is contained in:
parent
30a755a748
commit
a7501bad5f
6
conf.py
6
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,
|
||||
|
|
Binary file not shown.
|
@ -20,7 +20,7 @@
|
|||
<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.latex2svg?selection</value>
|
||||
<value>service:net.elmau.zaz.latex2svg?from_selection</value>
|
||||
</prop>
|
||||
<prop oor:name="Target" oor:type="xs:string">
|
||||
<value>_self</value>
|
||||
|
@ -38,7 +38,7 @@
|
|||
<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.latex2svg?dlg</value>
|
||||
<value>service:net.elmau.zaz.latex2svg?from_dialog</value>
|
||||
</prop>
|
||||
<prop oor:name="Target" oor:type="xs:string">
|
||||
<value>_self</value>
|
||||
|
@ -56,7 +56,7 @@
|
|||
<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.latex2svg?app</value>
|
||||
<value>service:net.elmau.zaz.latex2svg?validate_app</value>
|
||||
</prop>
|
||||
<prop oor:name="Target" oor:type="xs:string">
|
||||
<value>_self</value>
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue