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 = (
|
MENUS = (
|
||||||
{
|
{
|
||||||
'title': {'en': 'From selection', 'es': 'Desde selección'},
|
'title': {'en': 'From selection', 'es': 'Desde selección'},
|
||||||
'argument': 'selection',
|
'argument': 'from_selection',
|
||||||
'context': 'calc,writer,draw,impress',
|
'context': 'calc,writer,draw,impress',
|
||||||
'icon': 'icon1',
|
'icon': 'icon1',
|
||||||
'toolbar': False,
|
'toolbar': False,
|
||||||
|
@ -119,7 +119,7 @@ MENUS = (
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'title': {'en': 'Insert...', 'es': 'Insertar...'},
|
'title': {'en': 'Insert...', 'es': 'Insertar...'},
|
||||||
'argument': 'dlg',
|
'argument': 'from_dialog',
|
||||||
'context': 'calc,writer,draw,impress',
|
'context': 'calc,writer,draw,impress',
|
||||||
'icon': 'icon1',
|
'icon': 'icon1',
|
||||||
'toolbar': False,
|
'toolbar': False,
|
||||||
|
@ -127,7 +127,7 @@ MENUS = (
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'title': {'en': 'Validate applications', 'es': 'Validar aplicaciones'},
|
'title': {'en': 'Validate applications', 'es': 'Validar aplicaciones'},
|
||||||
'argument': 'app',
|
'argument': 'validate_app',
|
||||||
'context': 'calc,writer,draw,impress',
|
'context': 'calc,writer,draw,impress',
|
||||||
'icon': 'icon2',
|
'icon': 'icon2',
|
||||||
'toolbar': False,
|
'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>
|
<value>com.sun.star.sheet.SpreadsheetDocument,com.sun.star.text.TextDocument,com.sun.star.drawing.DrawingDocument,com.sun.star.presentation.PresentationDocument</value>
|
||||||
</prop>
|
</prop>
|
||||||
<prop oor:name="URL" oor:type="xs:string">
|
<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>
|
||||||
<prop oor:name="Target" oor:type="xs:string">
|
<prop oor:name="Target" oor:type="xs:string">
|
||||||
<value>_self</value>
|
<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>
|
<value>com.sun.star.sheet.SpreadsheetDocument,com.sun.star.text.TextDocument,com.sun.star.drawing.DrawingDocument,com.sun.star.presentation.PresentationDocument</value>
|
||||||
</prop>
|
</prop>
|
||||||
<prop oor:name="URL" oor:type="xs:string">
|
<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>
|
||||||
<prop oor:name="Target" oor:type="xs:string">
|
<prop oor:name="Target" oor:type="xs:string">
|
||||||
<value>_self</value>
|
<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>
|
<value>com.sun.star.sheet.SpreadsheetDocument,com.sun.star.text.TextDocument,com.sun.star.drawing.DrawingDocument,com.sun.star.presentation.PresentationDocument</value>
|
||||||
</prop>
|
</prop>
|
||||||
<prop oor:name="URL" oor:type="xs:string">
|
<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>
|
||||||
<prop oor:name="Target" oor:type="xs:string">
|
<prop oor:name="Target" oor:type="xs:string">
|
||||||
<value>_self</value>
|
<value>_self</value>
|
||||||
|
|
|
@ -7,11 +7,21 @@ ID_EXTENSION = ''
|
||||||
_ = None
|
_ = None
|
||||||
|
|
||||||
|
|
||||||
def selection():
|
def from_selection():
|
||||||
app.debug('From selection')
|
app.debug('From selection')
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
||||||
|
def from_dialog():
|
||||||
|
app.debug('From dialog')
|
||||||
|
return
|
||||||
|
|
||||||
|
|
||||||
|
def validate_app():
|
||||||
|
app.debug('Validate app')
|
||||||
|
return
|
||||||
|
|
||||||
|
|
||||||
def run(args, path_locales):
|
def run(args, path_locales):
|
||||||
global _
|
global _
|
||||||
_ = app.install_locales(path_locales)
|
_ = app.install_locales(path_locales)
|
||||||
|
|
Loading…
Reference in New Issue