]> git.lyx.org Git - lyx.git/blob - src/mathed/math_macroarg.h
more mathed cleanup
[lyx.git] / src / mathed / math_macroarg.h
1 // -*- C++ -*-
2 #ifndef MATHMACROARGUMENT_H
3 #define MATHMACROARGUMENT_H
4
5 #include "math_parinset.h"
6
7 /// An argument
8 class MathMacroArgument: public MathParInset {
9 public:
10     ///
11     MathMacroArgument();
12     ///
13     explicit
14     MathMacroArgument(int);
15     ///
16     ~MathMacroArgument();
17     ///
18     MathedInset * Clone();
19     ///
20     void Metrics();
21     ///
22     void draw(Painter &, int x, int baseline);
23     ///
24     void Write(std::ostream &, bool fragile);
25     ///
26     void setNumber(int n);
27     /// Is expanded or not
28     void setExpand(bool e);
29     /// Is expanded or not
30     bool getExpand() const;
31 private:
32     ///
33     bool expnd_mode_;
34     ///
35     int number_;
36 };
37 #endif