initial implementation of file export.
Make uniform among users of single-text-dialog how to handle
case where the dialog value is empty. Now we always disable the
OK button.
Merge branch 'export-import'