mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-09-22 07:57:22 +00:00
38fce2feac
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7059 a592a061-630c-0410-9148-cb99ea01b6c8
48 lines
918 B
C++
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
|