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




On 2015-06-15 02:46 PM, Matthew J. Francis wrote:
Thanks for the link, that was an interesting talk - and suggested one more feature that could be 
implemented cheaply,
which is to implement a context manager for XModel to manage controller locking.

So instead of

     doc.lockControllers()
     try:
         ... # operate on the document
     finally:
         doc.unlockControllers()

You could simply

     with doc:
         ... # operate on the document

(Can anyone suggest any more interfaces which could benefit from this treatment?)



Try this:
   find . -name *.idl | xargs grep 'close()'
   find . -name *.idl | xargs grep 'unlock'
should find you a bunch like

com::sun::star::connection::XConnection
com::sun::star::connection::XBroadcaster

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.