zaz-doc/source/ZazDoc.py

24 lines
507 B
Python
Raw Normal View History

2021-04-12 12:15:05 -05:00
import uno
import unohelper
from com.sun.star.task import XJobExecutor
2021-04-12 17:44:49 -05:00
import main
2021-04-12 12:15:05 -05:00
ID_EXTENSION = 'net.elmau.zaz.doc'
SERVICE = ('com.sun.star.task.Job',)
class ZazDoc(unohelper.Base, XJobExecutor):
def __init__(self, ctx):
self.ctx = ctx
2021-04-12 17:44:49 -05:00
def trigger(self, args):
main.ID_EXTENSION = ID_EXTENSION
main.run(args, __file__)
2021-04-12 12:15:05 -05:00
return
g_ImplementationHelper = unohelper.ImplementationHelper()
g_ImplementationHelper.addImplementation(ZazDoc, ID_EXTENSION, SERVICE)