2001-11-07 13:15:59 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
#ifndef MATH_EXFUNCINSET_H
|
|
|
|
#define MATH_EXFUNCINSET_H
|
|
|
|
|
|
|
|
#include "math_nestinset.h"
|
|
|
|
|
|
|
|
// f(x) in one block (as opposed to 'f','(','x',')' or 'f','x')
|
|
|
|
// for interfacing external programs
|
|
|
|
|
|
|
|
class MathExFuncInset : public MathNestInset {
|
|
|
|
public:
|
|
|
|
///
|
|
|
|
explicit MathExFuncInset(string const & name);
|
|
|
|
///
|
|
|
|
MathInset * clone() const;
|
|
|
|
///
|
|
|
|
void write(MathWriteInfo & os) const;
|
|
|
|
///
|
2001-11-08 12:06:56 +00:00
|
|
|
void writeNormal(NormalStream &) const;
|
2001-11-07 13:15:59 +00:00
|
|
|
///
|
|
|
|
void metrics(MathMetricsInfo const & st) const;
|
|
|
|
///
|
|
|
|
void draw(Painter &, int x, int y) const;
|
|
|
|
///
|
2001-11-07 17:30:26 +00:00
|
|
|
void octavize(OctaveStream &) const;
|
2001-11-07 13:15:59 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
///
|
|
|
|
string const name_;
|
|
|
|
///
|
|
|
|
mutable MathMetricsInfo mi_;
|
|
|
|
};
|
|
|
|
#endif
|