Add dialog for insert

This commit is contained in:
Mauricio Baeza 2020-10-31 22:45:30 -06:00
parent 6eb11a935e
commit e024c17de9
3 changed files with 15 additions and 3 deletions

View File

@ -11,7 +11,7 @@ Requerimientos:
* pdf2svg * pdf2svg
## Software libre no gratis. ## Software libre, no gratis.
Esta extensión tiene un costo de mantenimiento de 5 euros al año. Esta extensión tiene un costo de mantenimiento de 5 euros al año.
@ -24,7 +24,7 @@ ETH: `0x61a4f614a30ff686445751ed8328b82b77ecfc69`
LTC: `MBcgQ3LQJA4W2wsXknTdm2fxRSysLaBJHS` LTC: `MBcgQ3LQJA4W2wsXknTdm2fxRSysLaBJHS`
* Para ArchLinux * En ArchLinux
``` ```
sudo pacman -S texlive-core sudo pacman -S texlive-core
@ -32,7 +32,7 @@ sudo pacman -S pdf2svg
``` ```
* Para Ubuntu 20.04 * En Ubuntu 20.04
``` ```
sudo apt install texlive-latex-base sudo apt install texlive-latex-base

Binary file not shown.

View File

@ -31,6 +31,10 @@ class Controllers(object):
def __init__(self, dlg): def __init__(self, dlg):
self.d = dlg self.d = dlg
def cmd_close_action(self, event):
self.d.close()
return
def cmd_preview_action(self, event): def cmd_preview_action(self, event):
data = self.d.text.value data = self.d.text.value
if not data: if not data:
@ -41,6 +45,14 @@ class Controllers(object):
app.msgbox(data) app.msgbox(data)
return return
def cmd_insert_action(self, event):
msg = _('You shure insert this equation')
if not app.question(msg):
return
self.d.close()
return
class ZAZLaTex2SVG(unohelper.Base, XJobExecutor): class ZAZLaTex2SVG(unohelper.Base, XJobExecutor):
NAME = 'temp' NAME = 'temp'