mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 13:46:43 +00:00
34 lines
646 B
C
34 lines
646 B
C
|
// -*- 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;
|
||
|
///
|
||
|
void writeNormal(std::ostream &) const;
|
||
|
///
|
||
|
void metrics(MathMetricsInfo const & st) const;
|
||
|
///
|
||
|
void draw(Painter &, int x, int y) const;
|
||
|
///
|
||
|
string octavize() const;
|
||
|
|
||
|
private:
|
||
|
///
|
||
|
string const name_;
|
||
|
///
|
||
|
mutable MathMetricsInfo mi_;
|
||
|
};
|
||
|
#endif
|