]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/MathParser.h
Assure correct spacing of colored items in mathed
[lyx.git] / src / mathed / MathParser.h
index 63e1be259805ba96de904448c572a9a023d715fb..20403de5fb66fa11ed1683eef07889d7fd3d8f34 100644 (file)
@@ -30,12 +30,14 @@ class Lexer;
 ///
 class latexkeys {
 public:
+       ///
+       latexkeys() : hidden(false) {}
        ///
        char const * MathMLtype() const;
        /// name of the macro or primitive
        docstring name;
        /// name of a inset that handles that macro
-       docstring inset;
+       std::string inset;
        /**
         * The string or symbol to draw.
         * This is a string of length 1 if \p name is a known symbol, and
@@ -50,12 +52,20 @@ public:
         * on screen.
         */
        docstring draw;
+       /// the same thing, but as an alternative in display mode
+       // Useful for \sum operator, for example
+       docstring dsp_draw;
        /// operator/..., fontname e
        docstring extra;
+       /// how is this called as HTML entity in MathML?
+       docstring htmlname;
        /// how is this called as XML entity in MathML?
        docstring xmlname;
        /// required LaTeXFeatures
-       docstring requires;
+       std::string required;
+       /// Should this macro be hidden from autocompletion (since it requires
+       /// user preamble code)?
+       bool hidden;
 };