Add dialog for insert
This commit is contained in:
parent
6eb11a935e
commit
e024c17de9
|
@ -11,7 +11,7 @@ Requerimientos:
|
|||
* pdf2svg
|
||||
|
||||
|
||||
## Software libre no gratis.
|
||||
## Software libre, no gratis.
|
||||
|
||||
Esta extensión tiene un costo de mantenimiento de 5 euros al año.
|
||||
|
||||
|
@ -24,7 +24,7 @@ ETH: `0x61a4f614a30ff686445751ed8328b82b77ecfc69`
|
|||
LTC: `MBcgQ3LQJA4W2wsXknTdm2fxRSysLaBJHS`
|
||||
|
||||
|
||||
* Para ArchLinux
|
||||
* En ArchLinux
|
||||
|
||||
```
|
||||
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
|
||||
|
|
Binary file not shown.
|
@ -31,6 +31,10 @@ class Controllers(object):
|
|||
def __init__(self, dlg):
|
||||
self.d = dlg
|
||||
|
||||
def cmd_close_action(self, event):
|
||||
self.d.close()
|
||||
return
|
||||
|
||||
def cmd_preview_action(self, event):
|
||||
data = self.d.text.value
|
||||
if not data:
|
||||
|
@ -41,6 +45,14 @@ class Controllers(object):
|
|||
app.msgbox(data)
|
||||
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):
|
||||
NAME = 'temp'
|
||||
|
|
Loading…
Reference in New Issue