]> git.lyx.org Git - lyx.git/blob - src/mathed/math_funcinset.h
don't #include too much stuff in .h
[lyx.git] / src / mathed / math_funcinset.h
1 // -*- C++ -*-
2 #ifndef MATH_FUNCINSET_H
3 #define MATH_FUNCINSET_H
4
5 #include "math_diminset.h"
6 #include "math_defs.h"
7
8 #ifdef __GNUG__
9 #pragma interface
10 #endif
11
12 /**
13  Functions or LaTeX names for objects that I don't know how to draw.
14  */
15 class MathFuncInset : public MathDimInset {
16 public:
17         ///
18         explicit MathFuncInset(string const & nm);
19         ///
20         MathInset * clone() const;
21         ///
22         void metrics(MathMetricsInfo const & st) const;
23         ///
24         void draw(Painter &, int x, int y) const;
25         ///
26         void write(MathWriteInfo &) const;
27         ///
28         void writeNormal(NormalStream &) const;
29         ///
30         string const & name() const;
31         ///
32         void setName(string const &);
33         ///
34         void maplize(MapleStream &) const;
35         ///
36         void mathmlize(MathMLStream &) const;
37         ///
38         void octavize(OctaveStream &) const;
39 private:
40         ///
41         string name_;
42         ///
43         mutable MathMetricsInfo mi_;
44 };
45 #endif