Export-dialog: Define settings variables (copy) in dialog

The application logic in the dialog should work on a local copy of the export options
Export-dialog: Write options from dialog to options object