Re: [api-dev] How to lock a text model

2006-10-06 Thread Julien Galand
OOo is not multithreaded, but it's possible that two threads can work on the same OOo model as it is not locked between API calls. This will change with our new Threading Framework in the future where code executed in any thread can obtain an exclusive lock for a defined span of time. ATM you

Re: [api-dev] How to lock a text model

2006-10-05 Thread Mathias Bauer
Julien Galand wrote: Hi to all, Does someone know a way to lock/unlock the model of a text document, that is, to make it temporarily read-only (the user cannot change its content) ? My purpose is to make sure that when my add-on is currently retrieving the text and manipulating it later,