]> git.lyx.org Git - lyx.git/blobdiff - src/tex-accent.h
Add margin to paragraph dialog.
[lyx.git] / src / tex-accent.h
index 7f7ec3d533608542eed9082d1069309fea9cbc18..201266075c692733c2cddaed35e470606e66cf0f 100644 (file)
 #define TEX_ACCENT
 
 #include "lfuns.h"
+#include "support/docstring.h"
 
 
 namespace lyx {
 
+// FIXME This file has nothing to do with TeX anymore
+
 /* the names used by TeX and XWindows for deadkeys/accents are not the same
    so here follows a table to clearify the differences. Please correct this
    if I got it wrong
@@ -90,18 +93,11 @@ enum tex_accent {
 };
 
 
-/** the native is so we know what characters TeX can write in a decent way
- it should be up to the user if _all_ characters should be allowed to
- be accented. Lgb. */
 struct tex_accent_struct {
        ///
        tex_accent accent;
-       ///
-       char const * cmd;
-#if 0
-       ///
-       char const * native;
-#endif
+       /// UCS4 code point of this accent
+       char_type ucs4;
        ///
        char const * name;
        ///
@@ -111,6 +107,12 @@ struct tex_accent_struct {
 ///
 extern tex_accent_struct lyx_accent_table[];
 
+///
+extern docstring const DoAccent(docstring const &, tex_accent);
+///
+extern docstring const DoAccent(char_type, tex_accent);
+///
+extern tex_accent_struct get_accent(kb_action action);
 
 } // namespace lyx