PyUNO usability improvements
Noel Grandin
noelgrandin at gmail.com
Mon Jun 15 05:53:03 PDT 2015
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
More information about the LibreOffice
mailing list