2021-07-06 21:52:12 -05:00
|
|
|
import uno
|
|
|
|
import unohelper
|
|
|
|
from com.sun.star.task import XJobExecutor
|
2021-07-15 21:44:29 -05:00
|
|
|
from zcompaqi import main
|
2021-07-06 21:52:12 -05:00
|
|
|
|
2021-07-15 21:44:29 -05:00
|
|
|
|
|
|
|
ID_EXTENSION = 'net.elmau.zaz.compaqi'
|
2021-07-06 21:52:12 -05:00
|
|
|
SERVICE = ('com.sun.star.task.Job',)
|
|
|
|
|
|
|
|
|
2021-07-15 21:44:29 -05:00
|
|
|
class ZAZCompaqi(unohelper.Base, XJobExecutor):
|
2021-07-06 21:52:12 -05:00
|
|
|
|
|
|
|
def __init__(self, ctx):
|
|
|
|
self.ctx = ctx
|
|
|
|
|
|
|
|
def trigger(self, args):
|
|
|
|
main(args)
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
|
|
g_ImplementationHelper = unohelper.ImplementationHelper()
|
2021-07-15 21:44:29 -05:00
|
|
|
g_ImplementationHelper.addImplementation(ZAZCompaqi, ID_EXTENSION, SERVICE)
|