Quit application
This function closes the current document and closes the application.
If the document has been modified and the changes have not been saved, the confirmation dialog is displayed:
•Save: the document is saved and the application is closed
•Don't save: Changes are not saved and the application is closed
•Cancel: the application is not closed