]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormMathsDeco.C
Yet more dialog tweaking from Rob.
[lyx.git] / src / frontends / xforms / FormMathsDeco.C
index 69fd92bc4c4afa4f99a2ca7f2a5abb9b1aa11100..ec0c43a6fe49e0d8f2057819f2a4e24f0fa320fd 100644 (file)
@@ -17,6 +17,7 @@
 #pragma implementation
 #endif
 
+#include "ControlMath.h"
 #include "FormMathsDeco.h"
 #include "forms/form_maths_deco.h"
 #include "bmtable.h"
 #include "deco.xbm"
 
 
-static char const * decoration_names[] = {
-       "widehat", "widetilde", "overbrace", "overleftarrow", "overrightarrow",
-       "overline", "underbrace", "underline", "underleftarrow", "underrightarrow",
-       "underleftrightarrow", "overleftrightarrow",
-       "hat", "acute", "bar", "dot",
-       "check", "grave", "vec", "ddot",
-       "breve", "tilde"
-};
-
-
-static int const nr_decoration_names = sizeof(decoration_names) / sizeof(char const *);
-
 FormMathsDeco::FormMathsDeco(LyXView & lv, Dialogs & d,
                             FormMathsPanel const & p)
        : FormMathsSub(lv, d, p, _("Maths Decorations & Accents"), false)
@@ -71,8 +60,8 @@ void FormMathsDeco::build()
 
 void FormMathsDeco::apply()
 {
-       if (deco_ < nr_decoration_names)
-               parent_.insertSymbol(decoration_names[deco_]);
+       if (deco_ < nr_latex_deco)
+               parent_.insertSymbol(latex_deco[deco_]);
 }