lyx_mirror/src/mathed/math_stringinset.h
André Pönitz 38fce2feac Prepare mathed for unified two-stage drawing
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7059 a592a061-630c-0410-9148-cb99ea01b6c8
2003-05-28 13:22:36 +00:00

48 lines
918 B
C++

// -*- C++ -*-
#ifndef MATH_STRINGINSET_H
#define MATH_STRINGINSET_H
#include "math_inset.h"
/** 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 {
public:
///
explicit MathStringInset(string const & s);
///
MathInset * clone() const;
///
Dimension metrics(MetricsInfo & mi) const;
///
void draw(PainterInfo & pi, int x, int y) const;
///
string str() const { return str_; }
///
MathStringInset * asStringInset() { return this; }
///
void normalize(NormalStream &) const;
///
void octave(OctaveStream &) const;
///
void maple(MapleStream &) const;
///
void mathematica(MathematicaStream &) const;
///
void mathmlize(MathMLStream &) const;
///
void write(WriteStream & os) const;
private:
/// the string
string str_;
};
#endif