23 lines
478 B
Python
23 lines
478 B
Python
import uno
|
|
import unohelper
|
|
from com.sun.star.task import XJobExecutor
|
|
from zcompaqi import main
|
|
|
|
|
|
ID_EXTENSION = 'net.elmau.zaz.compaqi'
|
|
SERVICE = ('com.sun.star.task.Job',)
|
|
|
|
|
|
class ZAZCompaqi(unohelper.Base, XJobExecutor):
|
|
|
|
def __init__(self, ctx):
|
|
self.ctx = ctx
|
|
|
|
def trigger(self, args):
|
|
main(args)
|
|
return
|
|
|
|
|
|
g_ImplementationHelper = unohelper.ImplementationHelper()
|
|
g_ImplementationHelper.addImplementation(ZAZCompaqi, ID_EXTENSION, SERVICE)
|