Thanks for the help.  It turned out to be .uno:CloseDoc and the
com::sun::star::frame::XDispatchHelper.  If I dispatch the URL on my
own, it doesn't work, so perhaps I am not creating all the redundant
fields of the URL correctly.  When the Save/Discard/Cancel dialog
appears, both Save and Cancel result in dispatchResultEvent.State ==
DispatchResultState::FAILURE.  I'm not sure why that is.  To
distinguish between Save & Cancel, I check to see if the still
existing document has been modified.  If it is no longer modified,
then I resend the .uno:CloseDoc again and it closes without the
dialog.  It's close enough for now.

2014-10-28 23:03 GMT+01:00 Ariel Constenla-Haile <arie...@apache.org>:
> 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, if you want user interaction, it is better to dispatch
> a ".uno:Close", every Frame is a DispatchProvider - note it's simpler to
> use the css.frame.DispatchHelper.
>
>
> Regards
> --
> Ariel Constenla-Haile
> La Plata, Argentina

---------------------------------------------------------------------
To unsubscribe, e-mail: api-unsubscr...@openoffice.apache.org
For additional commands, e-mail: api-h...@openoffice.apache.org

Reply via email to