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
_______________________________________________
LibreOffice mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice