]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_charinset.h
whichFont down to 5.3%
[lyx.git] / src / mathed / math_charinset.h
index 20d5e472f1f3fc6a95653fd4af2b31082e7d2138..325990280aa516142a41091246e1a6d124d434f4 100644 (file)
@@ -2,7 +2,7 @@
 #ifndef MATH_CHARINSET_H
 #define MATH_CHARINSET_H
 
-#include "math_inset.h"
+#include "math_diminset.h"
 
 #ifdef __GNUG__
 #pragma interface
@@ -12,7 +12,7 @@
     \author André Pönitz
  */
 
-class MathCharInset : public MathInset {
+class MathCharInset : public MathDimInset {
 public:
        ///
        explicit MathCharInset(char c);
@@ -36,12 +36,6 @@ public:
        void writeRaw(std::ostream &) const;
        ///
        void normalize(NormalStream &) const;
-       /// 
-       int ascent() const;
-       ///
-       int descent() const;
-       ///
-       int width() const;
        /// identifies Charinsets
        MathCharInset const * asCharInset() const { return this; }
        ///
@@ -51,9 +45,13 @@ public:
        ///
        bool isRelOp() const;
        ///
+       void validate(LaTeXFeatures & features) const;
+       ///
        void handleFont(MathTextCodes t);
        ///
        bool match(MathInset *) const;
+       /// identifies complicated things that need braces if used as arg
+       bool needsBraces() const { return false; }
 
 private:
        /// the character