]> git.lyx.org Git - lyx.git/blob - src/mathed/math_macroarg.h
several smallish changes/bugfixes/left overs from Porto
[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 class MathMacroArgument : public MathNestInset {
15 public:
16         ///
17         explicit MathMacroArgument(int);
18         ///
19         MathInset * clone() const;
20         ///
21         bool isActive() const { return false; }
22         ///
23         void metrics(MathMetricsInfo & st) const;
24         ///
25         void draw(MathPainterInfo &, int x, int y) const;
26         ///
27         void substitute(MathMacro const & macro);
28
29         ///
30         void normalize(NormalStream &) const;
31         ///
32         void write(WriteStream & os) const;
33
34 private:
35         /// A number between 1 and 9
36         int number_;
37         ///
38         char str_[3];
39         ///
40         bool expanded_;
41 };
42
43 #endif