]> git.lyx.org Git - lyx.git/blobdiff - src/Trans.cpp
Update cursor and scrollbar after resize.
[lyx.git] / src / Trans.cpp
index 9d061d15eccc162032bc7284221e4bec51dbc81a..266d86765b02fe185767a3a8854e885237fd001d 100644 (file)
 #include "BufferView.h"
 #include "Cursor.h"
 #include "CutAndPaste.h"
-#include "support/debug.h"
 #include "Lexer.h"
 #include "LyXRC.h"
 #include "Text.h"
 
-#include "support/filetools.h"
-#include "support/lstrings.h"
 #include "support/convert.h"
+#include "support/debug.h"
 #include "support/docstream.h"
+#include "support/FileName.h"
+#include "support/filetools.h"
+#include "support/lstrings.h"
 
 using namespace std;
+using namespace lyx::support;
 
 namespace lyx {
 
-using support::split;
-using support::contains;
-using support::libFileSearch;
-
-
 /////////////////////////////////////////////////////////////////////
 //
 // TeXAccents
@@ -118,7 +115,7 @@ static docstring const doAccent(docstring const & s, tex_accent accent)
        if (s.length() > 1) {
                if (accent != TEX_TIE || s.length() > 2)
                        lyxerr << "Warning: Too many characters given for accent "
-                              << lyx_accent_table[accent].name << '.' << std::endl;
+                              << lyx_accent_table[accent].name << '.' << endl;
                os << s.substr(1);
        }
        return normalize_c(os.str());
@@ -390,7 +387,7 @@ docstring const Trans::process(char_type c, TransManager & k)
 
 int Trans::load(string const & language)
 {
-       support::FileName const filename = libFileSearch("kbd", language, "kmap");
+       FileName const filename = libFileSearch("kbd", language, "kmap");
        if (filename.empty())
                return -1;