SteveC wrote: > * @ 02/12/06 02:39:27 PM [EMAIL PROTECTED] wrote: >> SteveC wrote: >> >> > Found it >> > >> > Document.close(true) >> > >> > works for me. >> > >> > Is this guarenteed to work? >> >> close(true) will close the document if possible. If it isn't possible >> (e.g. because the document is still printing) it will close itself >> immediately if it will be so. > > Is there a method to find if the document has been saved before closing?
Use the isModified() method of the document. Ciao, Mathias -- Mathias Bauer (mba) - Project Lead OpenOffice.org Writer OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS Please don't reply to "[EMAIL PROTECTED]". I use it for the OOo lists and only rarely read other mails sent to it. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
