]> git.lyx.org Git - lyx.git/blob - src/mathed/math_macroarg.h
mathed65.diff
[lyx.git] / src / mathed / math_macroarg.h
1 // -*- C++ -*-
2 #ifndef MATHMACROARGUMENT_H
3 #define MATHMACROARGUMENT_H
4
5 #include "math_inset.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 MathedInset {
15 public:
16         ///
17         explicit MathMacroArgument(int);
18         ///
19         MathedInset * Clone();
20         ///
21         void substitute(MathMacro *);
22         ///
23         void Metrics();
24         ///
25         void draw(Painter &, int x, int baseline);
26         ///
27         void Write(std::ostream &, bool fragile);
28         ///
29         void WriteNormal(std::ostream &);
30         ///
31         int number() const;
32
33 private:
34         /// A number between 1 and 9
35         int number_;
36 };
37
38 #endif