Re: Programmatically (C++) closing frame with chance to save

2014-10-28 Thread Bernard Marcelly
Hi Keith, Method close() does what it says... You have to verify if the document was modified. Use method isModified() from interface com.sun.star.util.XModifiable. Then you ask for saving, and store it with interface com.sunstar.frame.XStorable. See

Re: Programmatically (C++) closing frame with chance to save

2014-10-28 Thread Keith Alcock
Thanks. So are you saying that I need to reprogram the actions that the Close menu item seems to invoke? I was hoping that there was more direct access to that functionality, perhaps by dispatching a .uno:CloseDoc somewhere. The xCloseable-close() in combination with CloseVetoException matches

Re: Programmatically (C++) closing frame with chance to save

2014-10-28 Thread Ariel Constenla-Haile
On Tue, Oct 28, 2014 at 10:31:56PM +0100, Keith Alcock wrote: Thanks. So are you saying that I need to reprogram the actions that the Close menu item seems to invoke? I was hoping that there was more direct access to that functionality, perhaps by dispatching a .uno:CloseDoc somewhere. Yes,