X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathSymbol.h;h=5382f72e85712f3fe7ed510465eefdd683070165;hb=c060a85d811674888c31db9ee0407d8b5cc37b6e;hp=1231983ae7924ffd76008b38266310dd4113d3bd;hpb=de6418f37765fe452f135f96dee6d49897bff215;p=lyx.git diff --git a/src/mathed/InsetMathSymbol.h b/src/mathed/InsetMathSymbol.h index 1231983ae7..5382f72e85 100644 --- a/src/mathed/InsetMathSymbol.h +++ b/src/mathed/InsetMathSymbol.h @@ -4,7 +4,7 @@ * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * - * \author André Pönitz + * \author André Pönitz * * Full author contact details are available in file CREDITS. */ @@ -14,7 +14,6 @@ #include "InsetMath.h" - namespace lyx { class latexkeys; @@ -36,10 +35,12 @@ public: /// void draw(PainterInfo &, int x, int y) const; /// - int width() const { return width_; } + int kerning(BufferView const *) const { return kerning_; } /// bool isRelOp() const; + /// + bool isOrdAlpha() const; /// do we take scripts? bool isScriptable() const; /// do we take \limits or \nolimits? @@ -67,15 +68,17 @@ public: void write(WriteStream & os) const; /// void infoize2(odocstream & os) const; + /// + InsetCode lyxCode() const { return MATH_SYMBOL_CODE; } private: - virtual std::auto_ptr doClone() const; + virtual Inset * clone() const; /// latexkeys const * sym_; /// mutable int h_; - /// cached width - mutable int width_; + /// cached superscript kerning + mutable int kerning_; /// mutable bool scriptable_; };