"*.*" is not "all files" (bnc#738021)

Not on any Unix, at least. I have no idea how deep entrenched is this
mistake all over the code, so I'll play safe and just fix the KDE4 fpicker
(GNOME/KDE3 seem to handle it fine), but at least in the UI show just
"All files" instead of "All files (*.*)").
This commit is contained in:
Luboš Luňák 2011-12-22 19:27:00 +01:00
parent 78a7db0523
commit 643de3b64e
9 changed files with 12 additions and 9 deletions

View File

@ -50,7 +50,7 @@ String AVMEDIA_STR_ALL_MEDIAFILES
String AVMEDIA_STR_ALL_FILES
{
Text[en-US] = "All files (*.*)";
Text[en-US] = "All files";
};
// ------------------------------------------------------------------------------

View File

@ -473,7 +473,7 @@ TabPage RID_SVXPAGE_INET_MAIL
String STR_DEFAULT_FILENAME
{
Text [ en-US ] = "All files (*.*)" ;
Text [ en-US ] = "All files" ;
};
};

View File

@ -294,7 +294,7 @@ String RID_FILEOPEN_NOTEXISTENTFILE
String STR_FILTERNAME_ALL
{
Text [ en-US ] = "All files (*.*)" ;
Text [ en-US ] = "All files" ;
};
String STR_SVT_ALREADYEXISTOVERWRITE

View File

@ -306,6 +306,9 @@ void SAL_CALL KDE4FilePicker::appendFilter( const ::rtl::OUString &title, const
// openoffice gives us filters separated by ';' qt dialogs just want space separated
f.replace(";", " ");
// make sure "*.*" is not used as "all files"
f.replace("*.*", "*");
_filter.append(QString("%1|%2").arg(f).arg(t));
}

View File

@ -38,10 +38,10 @@ Sub OpenFileDialog()
oFilePicker = CreateUnoService( "com.sun.star.ui.dialogs.FilePicker" )
REM set filter
oFilePicker.AppendFilter( "All files (*.*)", "*.*" )
oFilePicker.AppendFilter( "All files", "*.*" )
oFilePicker.AppendFilter( "StarOffice 6.0 Text Text Document", "*.sxw" )
oFilePicker.AppendFilter( "StarOffice 6.0 Spreadsheet", "*.sxc" )
oFilePicker.SetCurrentFilter( "All files (*.*)" )
oFilePicker.SetCurrentFilter( "All files" )
REM if no file URL is set, get path settings from configuration
oTextFieldModel = oDialog.Model.TextField1

View File

@ -397,7 +397,7 @@ String STR_SD_PAGE
};
String STR_ALL_FILES
{
Text [ en-US ] = "All files (*.*)" ;
Text [ en-US ] = "All files" ;
};
String STR_UNDO_INSERT_TEXTFRAME
{

View File

@ -466,7 +466,7 @@ String RID_SVXSTR_GRAFIKLINK
};
String STR_SFX_FILTERNAME_ALL
{
Text [ en-US ] = "All files (*.*)" ;
Text [ en-US ] = "All files" ;
};
String RID_SVXSTR_EDITGRFLINK
{

View File

@ -1554,7 +1554,7 @@ String RID_SYMBOLFILESSTR
String RID_ALLFILESSTR
{
Text [ en-US ] = "All Files (*.*)" ;
Text [ en-US ] = "All files" ;
};
String RID_ERR_IDENT

View File

@ -159,7 +159,7 @@ String STR_NOTASSIGNED
};
String STR_FILTER_ALL
{
Text [ en-US ] = "All files (*.*)" ;
Text [ en-US ] = "All files" ;
};
String STR_FILTER_ALL_DATA
{