2002-06-18 15:44:30 +00:00
|
|
|
|
// -*- C++ -*-
|
|
|
|
|
#ifndef MATH_NUMBERINSET_H
|
|
|
|
|
#define MATH_NUMBERINSET_H
|
|
|
|
|
|
|
|
|
|
#include "math_diminset.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** Some inset that "is" a number
|
|
|
|
|
* maily for math-extern
|
|
|
|
|
* \author Andr<EFBFBD> P<EFBFBD>nitz
|
2002-09-11 08:26:02 +00:00
|
|
|
|
*
|
|
|
|
|
* Full author contact details are available in file CREDITS
|
2002-06-18 15:44:30 +00:00
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
class MathNumberInset : public MathDimInset {
|
|
|
|
|
public:
|
|
|
|
|
///
|
|
|
|
|
explicit MathNumberInset(string const & s);
|
|
|
|
|
///
|
|
|
|
|
MathInset * clone() const;
|
|
|
|
|
///
|
|
|
|
|
void metrics(MathMetricsInfo & st) const;
|
|
|
|
|
///
|
|
|
|
|
void draw(MathPainterInfo &, int x, int y) const;
|
|
|
|
|
///
|
|
|
|
|
string str() const { return str_; }
|
|
|
|
|
///
|
|
|
|
|
MathNumberInset * asNumberInset() { return this; }
|
|
|
|
|
|
|
|
|
|
///
|
|
|
|
|
void normalize(NormalStream &) const;
|
|
|
|
|
///
|
2003-02-14 14:30:09 +00:00
|
|
|
|
void octave(OctaveStream &) const;
|
2002-06-18 15:44:30 +00:00
|
|
|
|
///
|
2003-02-14 14:30:09 +00:00
|
|
|
|
void maple(MapleStream &) const;
|
2002-06-18 15:44:30 +00:00
|
|
|
|
///
|
|
|
|
|
void mathmlize(MathMLStream &) const;
|
|
|
|
|
///
|
|
|
|
|
void write(WriteStream & os) const;
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
/// the number as string
|
|
|
|
|
string str_;
|
|
|
|
|
};
|
|
|
|
|
#endif
|