]> git.lyx.org Git - lyx.git/blob - src/mathed/math_macroarg.h
fix typo that put too many include paths for most people
[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, MathTextCodes = LM_TC_MIN);
18         ///
19         MathInset * clone() const;
20         ///
21         bool isActive() const { return false; }
22         ///
23         void metrics(MathMetricsInfo const & st) const;
24         ///
25         void draw(Painter &, 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         mutable LyXFont font_;
43         ///
44         MathTextCodes code_;
45 };
46
47 #endif