2020-10-29 21:37:01 -06:00
|
|
|
import uno
|
|
|
|
import unohelper
|
|
|
|
from com.sun.star.task import XJobExecutor
|
2020-12-18 23:23:29 -06:00
|
|
|
import main
|
|
|
|
|
2020-10-29 21:37:01 -06:00
|
|
|
|
|
|
|
ID_EXTENSION = 'net.elmau.zaz.latex2svg'
|
|
|
|
SERVICE = ('com.sun.star.task.Job',)
|
2020-10-30 22:22:25 -06:00
|
|
|
|
|
|
|
|
2020-10-29 21:37:01 -06:00
|
|
|
class ZAZLaTex2SVG(unohelper.Base, XJobExecutor):
|
|
|
|
|
|
|
|
def __init__(self, ctx):
|
|
|
|
self.ctx = ctx
|
|
|
|
|
2020-10-30 22:22:25 -06:00
|
|
|
def trigger(self, args=''):
|
2020-12-18 23:20:36 -06:00
|
|
|
main.ID_EXTENSION = ID_EXTENSION
|
|
|
|
main.run(args, __file__)
|
|
|
|
return
|
|
|
|
|
2020-10-29 21:37:01 -06:00
|
|
|
|
|
|
|
g_ImplementationHelper = unohelper.ImplementationHelper()
|
|
|
|
g_ImplementationHelper.addImplementation(ZAZLaTex2SVG, ID_EXTENSION, SERVICE)
|