X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathSymbol.h;h=60f4028fb063264d21722472b7b9da4375ec85cf;hb=1007714d2ec380d935d59092013ea88373bfb1df;hp=1231983ae7924ffd76008b38266310dd4113d3bd;hpb=de6418f37765fe452f135f96dee6d49897bff215;p=lyx.git diff --git a/src/mathed/InsetMathSymbol.h b/src/mathed/InsetMathSymbol.h index 1231983ae7..60f4028fb0 100644 --- a/src/mathed/InsetMathSymbol.h +++ b/src/mathed/InsetMathSymbol.h @@ -14,6 +14,7 @@ #include "InsetMath.h" +#include "Font.h" namespace lyx { @@ -32,14 +33,16 @@ public: /// explicit InsetMathSymbol(docstring const & name); /// - void metrics(MetricsInfo & mi, Dimension & dim) const; + bool metrics(MetricsInfo & mi, Dimension & dim) const; /// void draw(PainterInfo &, int x, int y) const; /// - int width() const { return width_; } + int kerning() const { return kerning_; } /// bool isRelOp() const; + /// + bool isOrdAlpha() const; /// do we take scripts? bool isScriptable() const; /// do we take \limits or \nolimits? @@ -69,13 +72,13 @@ public: void infoize2(odocstream & os) const; private: - virtual std::auto_ptr doClone() const; + virtual std::auto_ptr doClone() const; /// latexkeys const * sym_; /// mutable int h_; - /// cached width - mutable int width_; + /// cached superscript kerning + mutable int kerning_; /// mutable bool scriptable_; };