]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_symbolinset.h
move things around
[lyx.git] / src / mathed / math_symbolinset.h
index 88a3414bac0f2188cd6675adc7ee9236ff927768..679d2efb825f7b03d5d618a5da34b17cc2533e10 100644 (file)
@@ -3,10 +3,13 @@
 #define MATH_SYMBOLINSET_H
 
 #include "math_diminset.h"
+#include "LString.h"
 
 struct latexkeys;
 
-/// big operators
+// "normal" symbols that don't take limits and don't grow in displayed
+// formulae
+
 class MathSymbolInset : public MathDimInset {
 public:
        ///
@@ -18,18 +21,16 @@ public:
        ///
        void writeNormal(std::ostream &) const;
        ///
-       void metrics(MathStyles st);
+       void metrics(MathStyles st) const;
        ///
-       void draw(Painter &, int, int);
+       void draw(Painter &, int x, int y) const;
        ///
-       bool isScriptable() const { return true; }
+       bool isRelOp() const;
 
 private:
        ///
        latexkeys const * sym_;
-       ///
-       string ssym_;
-       ///
-       MathTextCodes code_;
+       /// cache for the symbol's onscreen string representation
+       mutable string ssym_;
 };
 #endif