2019-10-18 22:13:43 -05:00
|
|
|
import uno
|
|
|
|
import unohelper
|
|
|
|
from com.sun.star.task import XJobExecutor
|
2020-11-12 19:35:29 -06:00
|
|
|
import main
|
|
|
|
|
2019-10-18 22:13:43 -05:00
|
|
|
|
|
|
|
ID_EXTENSION = 'net.elmau.zaz.pip'
|
|
|
|
SERVICE = ('com.sun.star.task.Job',)
|
|
|
|
|
|
|
|
|
|
|
|
class ZAZPip(unohelper.Base, XJobExecutor):
|
|
|
|
|
|
|
|
def __init__(self, ctx):
|
|
|
|
self.ctx = ctx
|
|
|
|
|
2022-01-27 09:43:00 -06:00
|
|
|
def trigger(self, option):
|
2020-11-12 19:35:29 -06:00
|
|
|
main.ID_EXTENSION = ID_EXTENSION
|
2022-01-27 09:43:00 -06:00
|
|
|
main.run(__file__)
|
2019-10-18 22:13:43 -05:00
|
|
|
return
|
|
|
|
|
|
|
|
|
|
|
|
g_ImplementationHelper = unohelper.ImplementationHelper()
|
|
|
|
g_ImplementationHelper.addImplementation(ZAZPip, ID_EXTENSION, SERVICE)
|