]> git.lyx.org Git - lyx.git/blob - src/mathed/math_macroarg.h
small up/down tweaking
[lyx.git] / src / mathed / math_macroarg.h
1 // -*- C++ -*-
2 #ifndef MATHMACROARGUMENT_H
3 #define MATHMACROARGUMENT_H
4
5 #include "math_nestinset.h"
6
7 #ifdef __GNUG__
8 #pragma interface
9 #endif
10
11 /** A macro argument
12  *  \author Alejandro Aguilar Sierra
13  *
14  * Full author contact details are available in file CREDITS
15 */
16 class MathMacroArgument : public MathNestInset {
17 public:
18         ///
19         explicit MathMacroArgument(int);
20         ///
21         MathInset * clone() const;
22         ///
23         bool isActive() const { return false; }
24         ///
25         void metrics(MathMetricsInfo & st) const;
26         ///
27         void draw(MathPainterInfo &, int x, int y) const;
28         ///
29         void substitute(MathMacro const & macro);
30
31         ///
32         void normalize(NormalStream &) const;
33         ///
34         void write(WriteStream & os) const;
35
36 private:
37         /// A number between 1 and 9
38         int number_;
39         ///
40         char str_[3];
41         ///
42         bool expanded_;
43 };
44
45 #endif