]> git.lyx.org Git - lyx.git/blobdiff - src/tex-accent.C
implement getLabelList
[lyx.git] / src / tex-accent.C
index f5e84708643735ff2efe95268a06bb999f9a6214..2ad2d0d84cb7e09dbb99f399e2f4335973568024 100644 (file)
@@ -1,5 +1,19 @@
+/* This file is part of
+ * ====================================================== 
+ * 
+ *           LyX, The Document Processor
+ *        
+ *           Copyright 1995 Matthias Ettrich
+ *           Copyright 1995-2000 The LyX Team.
+ *
+ * ====================================================== */
+
 #include <config.h>
 
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
 #include <cstdlib>
 #include "tex-accent.h"
 #include "commandtags.h"
@@ -36,7 +50,6 @@
    */
 // I am not sure how some of the XWindows names coresponds to the TeX ones.
 
-//static
 tex_accent_struct lyx_accent_table[18] = {
        { static_cast<tex_accent>(0), "", "", "", static_cast<kb_action>(0)},
        {TEX_ACUTE,      "\\'",  " AEIOUYaeiouySZszRLCNrlcn", "acute",   LFUN_ACUTE},
@@ -57,7 +70,7 @@ tex_accent_struct lyx_accent_table[18] = {
        {TEX_DOT,        "\\.",  " ZzICGicgEe",           "dot",    LFUN_DOT},
        {TEX_OGONEK,     "\\k",  " AaEe",                 "ogonek",    LFUN_OGONEK},
        { static_cast<tex_accent>(0), "", "", "", static_cast<kb_action>(0)}};
-        
+
 
 tex_accent_struct get_accent(kb_action action)
 {
@@ -76,13 +89,13 @@ string DoAccent(string const & s, tex_accent accent)
 {
        string res;
        
-       res+= lyx_accent_table[accent].cmd;
-       res+= '{';
+       res += lyx_accent_table[accent].cmd;
+       res += '{';
        if (s == "i" || s == "j") {
-               res+= '\\';
+               res += '\\';
        }
-       res+= s;
-       res+= '}';
+       res += s;
+       res += '}';
        return res;
 }