X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathSymbol.h;h=60f4028fb063264d21722472b7b9da4375ec85cf;hb=1007714d2ec380d935d59092013ea88373bfb1df;hp=3c13afe24cd7228c20933bfc8def279c7e1442c8;hpb=6c300f72a217722652dc27db9108e1050028979c;p=lyx.git diff --git a/src/mathed/InsetMathSymbol.h b/src/mathed/InsetMathSymbol.h index 3c13afe24c..60f4028fb0 100644 --- a/src/mathed/InsetMathSymbol.h +++ b/src/mathed/InsetMathSymbol.h @@ -14,6 +14,7 @@ #include "InsetMath.h" +#include "Font.h" namespace lyx { @@ -30,16 +31,18 @@ public: /// explicit InsetMathSymbol(char const * name); /// - explicit InsetMathSymbol(std::string const & name); + 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? @@ -47,7 +50,7 @@ public: /// identifies SymbolInset as such InsetMathSymbol const * asSymbolInset() const { return this; } /// the LaTeX name of the symbol (without the backslash) - std::string name() const; + docstring name() const; /// request "external features" void validate(LaTeXFeatures & features) const; @@ -60,26 +63,26 @@ public: /// void mathematica(MathematicaStream &) const; /// - void mathmlize(MathMLStream &) const; + void mathmlize(MathStream &) const; /// void octave(OctaveStream &) const; /// void write(WriteStream & os) const; /// - void infoize2(std::ostream & os) const; + 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_; }; - } // namespace lyx + #endif