]> git.lyx.org Git - lyx.git/blobdiff - src/trans_mgr.C
ws changes only
[lyx.git] / src / trans_mgr.C
index 13561a04ffc52c361d41a6345c78bc6609be7f20..6fa53197099e6e97e1595eadf917aac04cd5c374 100644 (file)
@@ -1,23 +1,33 @@
+/**
+ * \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.
+ */
+
 #include <config.h>
 
 #include "trans_mgr.h"
 #include "trans.h"
 #include "lyxtext.h"
-#include "LString.h"
 #include "debug.h"
-#include "chset.h"
 #include "insets/insetlatexaccent.h"
-#include "BufferView.h"
-#include "buffer.h"
 #include "lyxrc.h"
 #include "support/lstrings.h"
 
+using lyx::support::split;
+
 using std::endl;
+using std::string;
 using std::pair;
 
+
 extern string const DoAccent(string const &, tex_accent);
 extern string const DoAccent(char, tex_accent);
-extern BufferView * current_view;
 
 
 // TransFSMData
@@ -255,7 +265,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]);
        }
 }
 
@@ -274,7 +284,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);