]> git.lyx.org Git - lyx.git/blobdiff - src/support/FileFilterList.cpp
Complete the removal of the embedding stuff. Maybe. It's hard to be sure we got every...
[lyx.git] / src / support / FileFilterList.cpp
index 06272d13101b29d386f3ef7125842557d9b91213..c35eadfe1cf6eb9f0049c2dd4bc315658af75d82 100644 (file)
 #include <config.h>
 
 #include "support/FileFilterList.h"
-#include "support/lstrings.h"
 
-// FIXME Interface violation
-#include "gettext.h"
+#include "support/lstrings.h"
+#include "support/gettext.h"
 
 #include <boost/regex.hpp>
 #include <boost/tokenizer.hpp>
 
 #include <sstream>
 
-using std::distance;
-using std::ostringstream;
-using std::string;
-using std::vector;
-
+using namespace std;
 
 namespace {
 
@@ -82,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;
@@ -104,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.