]> git.lyx.org Git - lyx.git/blobdiff - src/support/FileFilterList.cpp
Use *.* to select all files in the file selection dialog on Windows. Using shortcuts...
[lyx.git] / src / support / FileFilterList.cpp
index 4b39efdfdad3adf8b03300ce5dbe48c3666c3d85..c35eadfe1cf6eb9f0049c2dd4bc315658af75d82 100644 (file)
 
 #include <sstream>
 
-using std::distance;
-using std::ostringstream;
-using std::string;
-using std::vector;
-
+using namespace std;
 
 namespace {
 
@@ -81,7 +77,7 @@ namespace lyx {
 namespace support {
 
 FileFilterList::Filter::Filter(docstring const & description,
-                              std::string const & globs)
+                              string const & globs)
        : desc_(description)
 {
        typedef boost::tokenizer<boost::char_separator<char> > Tokenizer;
@@ -103,7 +99,12 @@ FileFilterList::FileFilterList(docstring const & qt_style_filter)
        // FIXME UNICODE
        string const filter = to_utf8(qt_style_filter)
                + (qt_style_filter.empty() ? string() : ";;")
-               + to_utf8(_("All files (*)"));
+               + to_utf8(_("All Files "))
+#if defined(_WIN32)            
+               + ("(*.*)");
+#else
+               + ("(*)");
+#endif
 
        // Split data such as "TeX documents (*.tex);;LyX Documents (*.lyx)"
        // into individual filters.