]> git.lyx.org Git - lyx.git/blobdiff - src/trans_mgr.C
cosmetic fix
[lyx.git] / src / trans_mgr.C
index 90afbc1fba149a13cde689fb2439862a05b88bd0..496bdd7394071d1b37038aa380fbadf29f63b810 100644 (file)
@@ -1,9 +1,5 @@
 #include <config.h>
 
-#ifdef __GNUG__
-#pragma implementation "trans_mgr.h"
-#endif
-
 #include "trans_mgr.h"
 #include "trans.h"
 #include "lyxtext.h"
 #include "lyxrc.h"
 #include "support/lstrings.h"
 
+using namespace lyx::support;
+
 using std::endl;
 using std::pair;
 
 extern string const DoAccent(string const &, tex_accent);
 extern string const DoAccent(char, tex_accent);
-extern BufferView * current_view;
 
 
 // TransFSMData
@@ -259,7 +256,7 @@ void TransManager::insertVerbatim(string const & str, LyXText * text)
        string::size_type const l = str.length();
 
        for (string::size_type i = 0; i < l; ++i) {
-               text->insertChar(current_view, str[i]);
+               text->insertChar(str[i]);
        }
 }
 
@@ -278,7 +275,7 @@ void TransManager::insert(string const & str, LyXText * text)
                // Could not find an encoding
                InsetLatexAccent ins(str);
                if (ins.canDisplay()) {
-                       text->insertInset(current_view,
+                       text->insertInset(
                                          new InsetLatexAccent(ins));
                } else {
                        insertVerbatim(str, text);