From a7501bad5f952febd1cb1b41f80905391544c2ef Mon Sep 17 00:00:00 2001 From: Mauricio Baeza Date: Fri, 18 Dec 2020 23:26:16 -0600 Subject: [PATCH] Add function from dialog --- conf.py | 6 +++--- files/ZAZLaTex2SVG_v0.2.0.oxt | Bin 73673 -> 73716 bytes source/Addons.xcu | 6 +++--- source/pythonpath/main.py | 12 +++++++++++- 4 files changed, 17 insertions(+), 7 deletions(-) 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 271833fad8cb570f2a428365de72ad1a9ed44981..6c2c6fbb4e0c08382336353af7e8a8c88e1c47ff 100644 GIT binary patch delta 1319 zcmX@PpXJMbmihp1W)=|!1_llW>)n$A+s?Tj31(toSj5Y~zy%a_Oi9VlE7q$>E`1w* zHt&{$z`oBS)0Ws~h`7(G#v+fhHW_niHX#fj<@f`0of z^WqZtX0v3P6^F>N_?eBnH-!D1w>?Jhs6LYRxaRIStu4(JNbC1Ul4B$uhzoXEZ6j=Ok4Hr(X87n zS`B-{cWgAWyC>qgu2EpxWtHY8UHgTuj1D^v@9wrv_gZiGLZ_d3y@@4{(fLNE^(Wpt z>^sAnp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IB(A}!!YQ>r?Q>N zGu8-2ToEtoE6TVw|3S{{L*9ow-GBc-bhBD*&g}PJw;%s_Sc9+pzd!G}e+=+c#|%t% zo7Jx+B@C5r{ZFAo9FZy^UZNfFYexw zQR?-JcN>52MeAd?&PjKiRwN;F=e# z^F*dDG>uZJW;@J#XWJsBYfba#zN}-M=d*9Iz}$J6;#(cUfAdE0^oA^RajnZ+HB~d9 zan8KLvNd^I`Bz*q*AlxU|IGE1#O(P=hQAr%J_dQXyJY@ipoh2XNHE$n0vXeDB^lp< z=x8a%NDfd&eErJ$^z=k2M!D&?q!`V4QS#<=IcY|1kZNyfMj6JU=^4_DHufGY3=C0@ zQ9g+wsTD@SVeY^%3h-uR5@AMU?pCG@->?h@1|J|62ZkyPENOhnHJOiFa{3=>Mjm-= z;g3*RGF@GUQ4wUhmkgr}Q%K3=*(H+G8)X=^7*|bSBg1IRyp4--`adp4`RUxUj9ScJ zxWPQx=@xQ~eAAO<8ReKy@-j{rm@Y2BC;%*MAYe)3J$|sH#B@6WMz-niKt|jU z1Pg(U&|yj!nZ90*QDS!&j=BxPhA99S!Aik_TqYSf|B;)it wNk$26^pJ3BW-L+zTB!oWs3D;;ycom.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)