]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/gtk/ghelpers.C
Change glob() API to accept a dir parameter.
[lyx.git] / src / frontends / gtk / ghelpers.C
index 2527c847b151472fd146978b6f735a447c3bc804..5d1e540ee1f1554508958bca6bbb738fdc31f3fe 100644 (file)
 
 #include <config.h>
 
+// Too hard to make concept checks work with this file
+#ifdef _GLIBCPP_CONCEPT_CHECKS
+#undef _GLIBCPP_CONCEPT_CHECKS
+#endif
+
 #include "ghelpers.h"
 
 #include "lyxrc.h"
@@ -112,6 +117,19 @@ vector<string> const buildLengthUnitList()
 }
 
 
+vector<string> const buildLengthNoRelUnitList()
+{
+       vector<string> data;
+       for (int i = 0; i < num_units; ++i) {
+               string str(unit_name_gui[i]);
+               if (str.find("%") == -1)
+                       data.push_back(unit_name_gui[i]);
+       }
+
+       return data;
+}
+
+
 string const findGladeFile(string const & name)
 {
        // First, search in the installation directories.