]> git.lyx.org Git - lyx.git/blob - src/mathed/math_funcinset.h
iterators for MathArray; cosmetics;
[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(MathStyles st) const;
23         ///
24         void draw(Painter &, int x, int y) const;
25         ///
26         void write(std::ostream &, bool fragile) const;
27         ///
28         void writeNormal(std::ostream &) const;
29         ///
30         string const & name() const;
31         ///
32         void setName(string const & n);
33 private:
34         ///
35         string name_;
36 };
37 #endif