]> git.lyx.org Git - lyx.git/blob - src/mathed/math_macroarg.h
fix #1073
[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
8 /** A macro argument
9  *  \author Alejandro Aguilar Sierra
10  *
11  * Full author contact details are available in file CREDITS
12 */
13 class MathMacroArgument : public MathNestInset {
14 public:
15         ///
16         explicit MathMacroArgument(int);
17         ///
18         MathInset * clone() const;
19         ///
20         bool isActive() const { return false; }
21         ///
22         void metrics(MetricsInfo & st) const;
23         ///
24         void draw(PainterInfo &, int x, int y) const;
25         ///
26         void substitute(MathMacro const & macro);
27
28         ///
29         void normalize(NormalStream &) const;
30         ///
31         void write(WriteStream & os) const;
32
33 private:
34         /// A number between 1 and 9
35         int number_;
36         ///
37         char str_[3];
38         ///
39         bool expanded_;
40 };
41
42 #endif