How to close the document without closing Libreoffice? I tried these three ways, but they all close the document and libreoffice interface too.
Would it be possible to do this?
# coding: utf-8
from __future__ import unicode_literals
import uno
CTX = XSCRIPTCONTEXT.getComponentContext()
SM = CTX.ServiceManager
DESKTOP = XSCRIPTCONTEXT.getDesktop()
ODOC = XSCRIPTCONTEXT.getDocument()
def doc_close1(*args):
ODOC.close(True)
def doc_close2(*args):
ODOC.close(False)
def doc_close3(*args):
ODOC.dispose()