2001-11-05 17:08:45 +00:00
|
|
|
|
// -*- C++ -*-
|
|
|
|
|
#ifndef MATH_STRINGINSET_H
|
|
|
|
|
#define MATH_STRINGINSET_H
|
|
|
|
|
|
2002-05-30 07:09:54 +00:00
|
|
|
|
#include "math_diminset.h"
|
2001-11-05 17:08:45 +00:00
|
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
|
#pragma interface
|
|
|
|
|
#endif
|
|
|
|
|
|
2002-06-18 15:44:30 +00:00
|
|
|
|
/** Some collection of chars with similar properties
|
|
|
|
|
* maily for math-extern
|
|
|
|
|
* \author Andr<EFBFBD> P<EFBFBD>nitz
|
2001-11-05 17:08:45 +00:00
|
|
|
|
*/
|
|
|
|
|
|
2002-05-30 07:09:54 +00:00
|
|
|
|
class MathStringInset : public MathDimInset {
|
2001-11-05 17:08:45 +00:00
|
|
|
|
public:
|
|
|
|
|
///
|
2002-05-30 07:09:54 +00:00
|
|
|
|
explicit MathStringInset(string const & s);
|
2001-11-05 17:08:45 +00:00
|
|
|
|
///
|
|
|
|
|
MathInset * clone() const;
|
|
|
|
|
///
|
2002-05-30 07:09:54 +00:00
|
|
|
|
void metrics(MathMetricsInfo & st) const;
|
2001-11-05 17:08:45 +00:00
|
|
|
|
///
|
2002-05-30 07:09:54 +00:00
|
|
|
|
void draw(MathPainterInfo &, int x, int y) const;
|
2001-11-05 17:08:45 +00:00
|
|
|
|
///
|
2001-11-09 12:01:10 +00:00
|
|
|
|
string str() const { return str_; }
|
|
|
|
|
///
|
|
|
|
|
MathStringInset * asStringInset() { return this; }
|
|
|
|
|
|
|
|
|
|
///
|
|
|
|
|
void normalize(NormalStream &) const;
|
|
|
|
|
///
|
2001-11-07 17:30:26 +00:00
|
|
|
|
void octavize(OctaveStream &) const;
|
2001-11-07 08:51:35 +00:00
|
|
|
|
///
|
2001-11-07 17:30:26 +00:00
|
|
|
|
void maplize(MapleStream &) const;
|
2001-11-07 08:51:35 +00:00
|
|
|
|
///
|
2002-07-01 11:17:14 +00:00
|
|
|
|
void mathematicize(MathematicaStream &) const;
|
|
|
|
|
///
|
2001-11-07 17:30:26 +00:00
|
|
|
|
void mathmlize(MathMLStream &) const;
|
2001-11-09 12:01:10 +00:00
|
|
|
|
///
|
|
|
|
|
void write(WriteStream & os) const;
|
2001-11-05 17:08:45 +00:00
|
|
|
|
|
2002-06-18 15:44:30 +00:00
|
|
|
|
private:
|
2001-11-05 17:08:45 +00:00
|
|
|
|
/// the string
|
|
|
|
|
string str_;
|
|
|
|
|
};
|
|
|
|
|
#endif
|