* 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.
*/
#include "InsetMath.h"
-
namespace lyx {
class latexkeys;
///
explicit InsetMathSymbol(docstring const & name);
///
- bool metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const;
///
void draw(PainterInfo &, int x, int y) const;
///
- int width() const { return width_; }
- ///
- int kerning() const { return kerning_; }
+ int kerning(BufferView const *) const { return kerning_; }
///
- bool isRelOp() const;
+ mode_type currentMode() const;
+ ///
+ bool isMathRel() const;
+ ///
+ bool isMathBin() const;
+ ///
+ bool isMathPunct() const;
+ ///
+ bool isOrdAlpha() const;
/// do we take scripts?
bool isScriptable() const;
/// do we take \limits or \nolimits?
///
void mathmlize(MathStream &) const;
///
+ void htmlize(HtmlStream &) const;
+ /// \param spacing controls whether we print spaces around
+ /// "operator"-type symbols or just print them raw
+ void htmlize(HtmlStream &, bool spacing) const;
+ ///
void octave(OctaveStream &) const;
///
void write(WriteStream & os) const;
///
void infoize2(odocstream & os) const;
+ ///
+ InsetCode lyxCode() const { return MATH_SYMBOL_CODE; }
private:
- virtual std::auto_ptr<InsetBase> doClone() const;
+ virtual Inset * clone() const;
///
latexkeys const * sym_;
///
mutable int h_;
- /// cached width
- mutable int width_;
/// cached superscript kerning
mutable int kerning_;
///