2001-11-05 17:08:45 +00:00
|
|
|
|
// -*- C++ -*-
|
|
|
|
|
#ifndef MATH_STRINGINSET_H
|
|
|
|
|
#define MATH_STRINGINSET_H
|
|
|
|
|
|
2003-05-28 13:22:36 +00:00
|
|
|
|
#include "math_inset.h"
|
2001-11-05 17:08:45 +00:00
|
|
|
|
|
|
|
|
|
|
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
|
2002-09-11 08:26:02 +00:00
|
|
|
|
*
|
|
|
|
|
* Full author contact details are available in file CREDITS
|
2001-11-05 17:08:45 +00:00
|
|
|
|
*/
|
|
|
|
|
|
2003-05-28 13:22:36 +00:00
|
|
|
|
class MathStringInset : public MathInset {
|
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;
|
|
|
|
|
///
|
2003-05-28 13:22:36 +00:00
|
|
|
|
Dimension metrics(MetricsInfo & mi) const;
|
2001-11-05 17:08:45 +00:00
|
|
|
|
///
|
2003-03-21 14:20:48 +00:00
|
|
|
|
void draw(PainterInfo & pi, 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;
|
|
|
|
|
///
|
2003-02-14 14:30:09 +00:00
|
|
|
|
void octave(OctaveStream &) const;
|
2001-11-07 08:51:35 +00:00
|
|
|
|
///
|
2003-02-14 14:30:09 +00:00
|
|
|
|
void maple(MapleStream &) const;
|
2001-11-07 08:51:35 +00:00
|
|
|
|
///
|
2003-02-14 14:30:09 +00:00
|
|
|
|
void mathematica(MathematicaStream &) const;
|
2002-07-01 11:17:14 +00:00
|
|
|
|
///
|
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
|