]> git.lyx.org Git - lyx.git/blobdiff - src/trans_mgr.C
Point fix, earlier forgotten
[lyx.git] / src / trans_mgr.C
index 90afbc1fba149a13cde689fb2439862a05b88bd0..e8930f9235ff241bf72f39b26cf9b0453e4e7622 100644 (file)
@@ -1,8 +1,15 @@
-#include <config.h>
+/**
+ * \file trans_mgr.C
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author Lars Gullik Bjønnes
+ * \author Matthias Ettrich
+ *
+ * Full author contact details are available in file CREDITS.
+ */
 
-#ifdef __GNUG__
-#pragma implementation "trans_mgr.h"
-#endif
+#include <config.h>
 
 #include "trans_mgr.h"
 #include "trans.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 +267,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 +286,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);