zaz-favorites/source/ZAZFavorites.py

24 lines
525 B
Python
Raw Normal View History

2019-09-19 20:24:56 -05:00
import uno
import unohelper
from com.sun.star.task import XJobExecutor
2020-12-24 21:26:05 -06:00
import main
2019-09-19 20:24:56 -05:00
ID_EXTENSION = 'net.elmau.zaz.Favorites'
SERVICE = ('com.sun.star.task.Job',)
class ZAZFavorites(unohelper.Base, XJobExecutor):
def __init__(self, ctx):
self.ctx = ctx
def trigger(self, args):
2020-12-24 21:26:05 -06:00
main.ID_EXTENSION = ID_EXTENSION
main.run(args, __file__)
2019-09-19 20:24:56 -05:00
return
g_ImplementationHelper = unohelper.ImplementationHelper()
g_ImplementationHelper.addImplementation(ZAZFavorites, ID_EXTENSION, SERVICE)