X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fmath_symbolinset.h;h=679d2efb825f7b03d5d618a5da34b17cc2533e10;hb=c9c3b9b447c3f99a059730e7e4a6caf95496221a;hp=823fdf65718c15e142627d24b21e052a43d41292;hpb=811980f739cf7635c02b445d436cfe4b30edf449;p=lyx.git diff --git a/src/mathed/math_symbolinset.h b/src/mathed/math_symbolinset.h index 823fdf6571..679d2efb82 100644 --- a/src/mathed/math_symbolinset.h +++ b/src/mathed/math_symbolinset.h @@ -2,12 +2,15 @@ #ifndef MATH_SYMBOLINSET_H #define MATH_SYMBOLINSET_H -#include "math_inset.h" +#include "math_diminset.h" +#include "LString.h" struct latexkeys; -/// big operators -class MathSymbolInset : public MathInset { +// "normal" symbols that don't take limits and don't grow in displayed +// formulae + +class MathSymbolInset : public MathDimInset { public: /// explicit MathSymbolInset(latexkeys const *); @@ -18,17 +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