]> git.lyx.org Git - lyx.git/blob - src/mathed/math_funcinset.h
fix typo that put too many include paths for most people
[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         string const & name() const;
27         /// identifies FuncInsets
28         MathFuncInset * asFuncInset() { return this; }
29         ///
30         void setName(string const &);
31         ///
32         bool match(MathInset * p) const;
33
34         ///
35         void normalize(NormalStream &) const;
36         ///
37         void maplize(MapleStream &) const;
38         ///
39         void mathmlize(MathMLStream &) const;
40         ///
41         void octavize(OctaveStream &) const;
42         ///
43         void write(WriteStream &) const;
44 private:
45         ///
46         string name_;
47         ///
48         mutable LyXFont font_;
49 };
50 #endif