22 lines
464 B
Python
22 lines
464 B
Python
import uno
|
|
import unohelper
|
|
from com.sun.star.task import XJobExecutor
|
|
|
|
|
|
ID_EXTENSION = 'net.elmau.zaz.doc'
|
|
SERVICE = ('com.sun.star.task.Job',)
|
|
|
|
|
|
class ZazDoc(unohelper.Base, XJobExecutor):
|
|
|
|
def __init__(self, ctx):
|
|
self.ctx = ctx
|
|
|
|
def trigger(self, args='pyUNO'):
|
|
print('Hello World', args)
|
|
return
|
|
|
|
|
|
g_ImplementationHelper = unohelper.ImplementationHelper()
|
|
g_ImplementationHelper.addImplementation(ZazDoc, ID_EXTENSION, SERVICE)
|