There was a problem with XModifiable: when modifying the document no event was fired (only at load time). I solved the problem using XEventBroadcaster and listening to events named OnModifyChanged.
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: dev-unsubscr...@api.openoffice.org > For additional commands, e-mail: dev-h...@api.openoffice.org > > > -- View this message in context: http://www.nabble.com/In-memory-documents-tp23603652p23612698.html Sent from the openoffice - api dev mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org For additional commands, e-mail: dev-h...@api.openoffice.org