]> git.lyx.org Git - lyx.git/blob - src/mathed/math_macroarg.h
fix macro, small 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 #ifdef __GNUG__
8 #pragma interface
9 #endif
10
11 /** A macro argument
12     \author Alejandro Aguilar Sierra
13 */
14 class MathMacroArgument: public MathParInset {
15 public:
16         ///
17         MathMacroArgument();
18         ///
19         explicit
20         MathMacroArgument(int);
21         ///
22         MathedInset * Clone();
23         ///
24         void Metrics();
25         ///
26         void draw(Painter &, int x, int baseline);
27         ///
28         void Write(std::ostream &, bool fragile);
29         ///
30         void setNumber(int n);
31         /// Is expanded or not
32         void setExpand(bool e);
33         /// Is expanded or not
34         bool getExpand() const;
35 private:
36         ///
37         bool expnd_mode_;
38         ///
39         int number_;
40 };
41 #endif