]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/xfont_loader.C
Change glob() API to accept a dir parameter.
[lyx.git] / src / frontends / xforms / xfont_loader.C
index f1fc10359202b5031e5898537f8814064ece74a1..28030cb45beb3672fa84e5a29dfd6b4ab5416787 100644 (file)
@@ -9,25 +9,33 @@
  */
 
 #include <config.h>
-#include <cmath>       // fabs()
-
 
 #include "xfont_loader.h"
 #include "FontInfo.h"
-#include "gettext.h"
+
 #include "debug.h"
+#include "LColor.h"
 #include "lyxrc.h"     // lyxrc.font_*
-#include "BufferView.h"
-#include "frontends/LyXView.h"
+
 #include "frontends/lyx_gui.h"
-#include "support/systemcall.h"
+
 #include "support/filetools.h"
+#include "support/systemcall.h"
 
 #include "lyx_forms.h"
 
-using namespace lyx::support;
+#include <algorithm>
 
 using std::endl;
+using std::string;
+
+namespace lyx {
+
+using support::LibFileSearch;
+using support::OnlyPath;
+using support::Systemcall;
+
+namespace frontend {
 
 // The global fontloader
 xfont_loader fontloader;
@@ -376,3 +384,6 @@ bool xfont_loader::available(LyXFont const & f)
                getFontinfo(f.family(), f.series(), f.realShape());
        return fontinfo[f.family()][f.series()][f.realShape()]->exist();
 }
+
+} // namespace frontend
+} // namespace lyx