Date: prev next · Thread: first prev next last
2015 Archives by date, by thread · List index


On 26.02.2015 01:16, Jens Tröger wrote:
Thanks Michael.  Looking at 13. in this FAQ

  http://www.openoffice.org/udk/python/python-bridge.html#faq

it seems that queryInterface() is not needed.  Thus, I'm using the

that is true if you know that the interface is implemented (and very
convenient), but i don't know what happens in case the service does not
actually support the interface you want to call (i.e. looking up the
method fails).  probably you get some kind of exception.

but as i said i think XCloseable should be implemented for every LO
document.

following code now

    document.close(True)
    document.dispose()

and that seems to work too.

if you call close() then unconditionally calling dispose() is not a good
idea, the requirement is apparently to call dispose() *only* if close()
does not exist.


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.