It seems like a good solution. I implemented a listener to XDispatchProviderInterceptor an register it in the frame. I've intercepted the urls uno:CloseWin and .uno:CloseFrame and forced a save fo the current document (if is one loaded from the database). That way I'll still have the document modifications locally in the temporary file in case the ooffice crashes before the user is saving it to the database. I think it can be done using the modify interceptor also. Anyway if is to use the document only in memory your solution is ok. Thank you.
Yes it works :). I'll have to decide which to use. Christoph Jopp wrote: > > Hello Elvis, > > I don't know if this is what you are looking for, but I think you could > implement an css.util.XModifyListener and catch the modified() event. > f.e. to set the modified-flag of the document to the desired value. > The setModified method is accessible via the css.util.XModifiable > interface. > > Hope that helps > Christoph > > Am Montag, 18. Mai 2009 21:15:43 schrieb Elvis Ciocoiu: >> I'm want to load/save documents in ooffice from a database. From the >> documentation it seems that this it will work using a temporary file. My >> problem is that after loading the document and after the user did some >> modifications to it the document is dirty. And if the user is trying to >> close the document first it will appear a confirmation dialog asking to >> save the modifications on disk. Can I inhibit this behaviour? I'd like to >> show my own dialog asking if for database saving. Is there a sample for >> loading/saving documents without using temporary fils (using streams)? >> Thank you. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > > -- View this message in context: http://www.nabble.com/In-memory-documents-tp23603652p23606186.html Sent from the openoffice - api dev mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
