summaryrefslogtreecommitdiff
path: root/fpicker
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-03-23 09:55:53 +0200
committerNoel Grandin <noel@peralex.com>2016-03-23 10:19:43 +0200
commitf8a7bbdacbf00d85745281b843ed01d29657d109 (patch)
treebad0d2f304a3d774197d4aa83ff681f9fabb2000 /fpicker
parent2f804099b7daa42aecb8fa445072a381671f3385 (diff)
remove unused AUTOSELECT_USERFILTER code
added in commit 90fcf5718668f0f9f41ac141a7fc4306633e693a Author: Oliver Bolte <obo@openoffice.org> Date: Wed Apr 13 07:54:11 2005 +0000 and untouched since then Change-Id: I995c094edbd3d85a6f637f7cb3e7aa4a0326c8bb
Diffstat (limited to 'fpicker')
-rw-r--r--fpicker/source/office/iodlg.cxx33
1 files changed, 0 insertions, 33 deletions
diff --git a/fpicker/source/office/iodlg.cxx b/fpicker/source/office/iodlg.cxx
index 3bc68a12741c..ec41f7305060 100644
--- a/fpicker/source/office/iodlg.cxx
+++ b/fpicker/source/office/iodlg.cxx
@@ -87,11 +87,6 @@
#include <functional>
#include <vector>
-//#define AUTOSELECT_USERFILTER
- // define this for the experimental feature of user-filter auto selection
- // means if the user enters e.g. *.doc<enter>, and there is a filter which is responsible for *.doc files (only),
- // then this filter is selected automatically
-
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::frame;
using namespace ::com::sun::star::ui::dialogs;
@@ -855,15 +850,6 @@ sal_uInt16 SvtFileDialog::adjustFilter( const OUString& _rFilter )
// search for a corresponding filter
SvtFileDialogFilter_Impl* pFilter = FindFilter_Impl( _rFilter, false, bFilterChanged );
-#ifdef AUTOSELECT_USERFILTER
- // if we found a filter which without allowing multi-extensions -> select it
- if ( pFilter )
- {
- _pImp->SelectFilterListEntry( pFilter->GetName() );
- _pImp->SetCurFilter( pFilter );
- }
-#endif // AUTOSELECT_USERFILTER
-
// look for multi-ext filters if necessary
if ( !pFilter )
pFilter = FindFilter_Impl( _rFilter, true, bFilterChanged );
@@ -875,30 +861,11 @@ sal_uInt16 SvtFileDialog::adjustFilter( const OUString& _rFilter )
{
nReturn |= FLT_USERFILTER;
// no filter found : use it as user defined filter
-#ifdef AUTOSELECT_USERFILTER
- if ( createNewUserFilter( _rFilter, sal_True ) )
-#else
if ( createNewUserFilter( _rFilter, false ) )
-#endif
{ // it's the "all files" filter
nReturn |= FLT_ALLFILESFILTER;
-#ifdef AUTOSELECT_USERFILTER
- // select the "all files" entry
- OUString sAllFilesFilter( SvtResId( STR_FILTERNAME_ALL ) );
- if ( _pImp->HasFilterListEntry( sAllFilesFilter ) )
- {
- _pImp->SelectFilterListEntry( sAllFilesFilter );
- _pImp->SetCurFilter( _pImp->GetSelectedFilterEntry( sAllFilesFilter ) );
- }
- else
- _pImp->SetNoFilterListSelection( ); // there is no "all files" entry
-#endif // AUTOSELECT_USERFILTER
}
-#ifdef AUTOSELECT_USERFILTER
- else
- _pImp->SetNoFilterListSelection( );
-#endif // AUTOSELECT_USERFILTER
}
}