zaz-extensions/source/ZAZExtensions.py

23 lines
483 B
Python

import uno
import unohelper
from com.sun.star.task import XJobExecutor
from main import main
ID_EXTENSION = 'net.elmau.zaz.extensions'
SERVICE = ('com.sun.star.task.Job',)
class ZAZExtensions(unohelper.Base, XJobExecutor):
def __init__(self, ctx):
self.ctx = ctx
def trigger(self, args):
main(args)
return
g_ImplementationHelper = unohelper.ImplementationHelper()
g_ImplementationHelper.addImplementation(ZAZExtensions, ID_EXTENSION, SERVICE)