On 20.02.2015 18:11, Jens Tröger wrote:
Hello,
I've seen a lot of examples of how to start soffice in server mode, and
then how to connect to it.  I'm using PyUNO and it works.  However, I am
unclear on how to close down the connection cleanly, so that I won't
have the "Document Recovery" dialog pop up next time around.  (I assume
that something wasn't cleaned up correctly, or else the dialog wouldn't
show?)
that indicates that documents were still open at shutdown time.
I've asked that same questions with short code examples in the forum, to
no avail.  Any takers?  Help would be greatly appreciated :-)
  https://forum.openoffice.org/en/forum/viewtopic.php?f=25&t=75367
i think the general idea is to first close all open documents (via
XClosable::close() - only use XComponent::dispose() if the document does
not implement XClosable), and then call XDesktop::terminate()
Context
   
 
  Privacy Policy |
  
Impressum (Legal Info) |
  
Copyright information: Unless otherwise specified, all text and images
  on this website are licensed under the
  
Creative Commons Attribution-Share Alike 3.0 License.
  This does not include the source code of LibreOffice, which is
  licensed under the Mozilla Public License (
MPLv2).
  "LibreOffice" and "The Document Foundation" are
  registered trademarks of their corresponding registered owners or are
  in actual use as trademarks in one or more countries. Their respective
  logos and icons are also subject to international copyright laws. Use
  thereof is explained in our 
trademark policy.