Ejemplo n.º 1
0
 def getOOoInstance(self, headless):
     # Just convert the document?
     if not self._instance:
         self._instance = OpenOfficeInstance(headless=True)
     self._headless = headless
     ctx = self._instance.getContext()
     self._smgr = ctx.ServiceManager
     self._desktop = self._smgr.createInstanceWithContext(
         'com.sun.star.frame.Desktop', ctx)