These are not applicable to FILEOPEN_SIMPLE

Change-Id: Id2668a6b30f7062e42ec60b3664b9a7490feccd1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151128
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
This commit is contained in:
Mike Kaganski
2023-04-29 21:32:11 +02:00
parent 621a7ac495
commit c395fc2ba5
-6
View File
@@ -791,12 +791,6 @@ bool implImportDialog(weld::Window* pWin, const ScriptDocument& rDocument, const
aDlg.SetContext(sfx2::FileDialogHelper::BasicImportDialog);
Reference<XFilePicker3> xFP = aDlg.GetFilePicker();
Reference< XFilePickerControlAccess > xFPControl(xFP, UNO_QUERY);
xFPControl->enableControl(ExtendedFilePickerElementIds::CHECKBOX_PASSWORD, false);
Any aValue;
aValue <<= true;
xFPControl->setValue(ExtendedFilePickerElementIds::CHECKBOX_AUTOEXTENSION, 0, aValue);
OUString aDialogStr(IDEResId(RID_STR_STDDIALOGNAME));
xFP->appendFilter( aDialogStr, "*.xdl" );
xFP->appendFilter( IDEResId(RID_STR_FILTER_ALLFILES), FilterMask_All );