[Fix bug #992699] Use correct parent for the Jpeg Compression dialog.

The parent window is now passed to the file exporter, which will also
allow custom file format exporters from addins to properly create
dialogs if needed.