#ifndef MATH_STRINGINSET_H
#define MATH_STRINGINSET_H
-#include "math_inset.h"
+#include "math_diminset.h"
-#ifdef __GNUG__
-#pragma interface
-#endif
-/** Some cllection of chars with similar properties
- \author André Pönitz
+/** Some collection of chars with similar properties
+ * maily for math-extern
+ * \author André Pönitz
+ *
+ * Full author contact details are available in file CREDITS
*/
-class MathStringInset : public MathInset {
+class MathStringInset : public MathDimInset {
public:
///
- MathStringInset();
- ///
- MathStringInset(string const & s, MathTextCodes t = LM_TC_TEXTRM);
+ explicit MathStringInset(string const & s);
///
MathInset * clone() const;
///
- void metrics(MathMetricsInfo const & st) const;
- ///
- void draw(Painter &, int x, int y) const;
- ///
- int ascent() const;
- ///
- int descent() const;
+ void metrics(MathMetricsInfo & mi) const;
///
- int width() const;
+ void draw(MathPainterInfo & pi, int x, int y) const;
///
string str() const { return str_; }
///
MathStringInset * asStringInset() { return this; }
- /// request "external features"
- void validate(LaTeXFeatures & features) const;
///
void normalize(NormalStream &) const;
///
- void octavize(OctaveStream &) const;
+ void octave(OctaveStream &) const;
///
- void maplize(MapleStream &) const;
+ void maple(MapleStream &) const;
+ ///
+ void mathematica(MathematicaStream &) const;
///
void mathmlize(MathMLStream &) const;
///
void write(WriteStream & os) const;
-public:
+private:
/// the string
string str_;
- /// the font to be used on screen
- MathTextCodes code_;
- ///
- mutable MathMetricsInfo mi_;
};
#endif