lyx_mirror/src/mathed/math_stringinset.h
André Pönitz a31e65aa9f math-extern: some support for things like d/dx
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3031 a592a061-630c-0410-9148-cb99ea01b6c8
2001-11-15 14:14:37 +00:00

58 lines
1.0 KiB
C++

// -*- C++ -*-
#ifndef MATH_STRINGINSET_H
#define MATH_STRINGINSET_H
#include "math_inset.h"
#ifdef __GNUG__
#pragma interface
#endif
/** Some cllection of chars with similar properties
\author André Pönitz
*/
class MathStringInset : public MathInset {
public:
///
MathStringInset();
///
MathStringInset(string const & s, MathTextCodes t = LM_TC_TEXTRM);
///
MathInset * clone() const;
///
void metrics(MathMetricsInfo const & st) const;
///
void draw(Painter &, int x, int y) const;
///
int ascent() const;
///
int descent() const;
///
int width() const;
///
string str() const { return str_; }
///
MathStringInset * asStringInset() { return this; }
///
void normalize(NormalStream &) const;
///
void octavize(OctaveStream &) const;
///
void maplize(MapleStream &) const;
///
void mathmlize(MathMLStream &) const;
///
void write(WriteStream & os) const;
public:
/// the string
string str_;
/// the font to be used on screen
MathTextCodes code_;
///
mutable MathMetricsInfo mi_;
};
#endif