]> git.lyx.org Git - lyx.git/blob - src/mathed/math_macroarg.h
more IU
[lyx.git] / src / mathed / math_macroarg.h
1 // -*- C++ -*-
2 /**
3  * \file math_macroarg.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Alejandro Aguilar Sierra
8  * \author André Pönitz
9  *
10  * Full author contact details are available in file CREDITS.
11  */
12
13 #ifndef MATHMACROARGUMENT_H
14 #define MATHMACROARGUMENT_H
15
16 #include "math_nestinset.h"
17
18
19 /// A macro argument.
20 class MathMacroArgument : public MathNestInset {
21 public:
22         ///
23         explicit MathMacroArgument(int);
24         ///
25         virtual std::auto_ptr<InsetBase> clone() const;
26         ///
27         bool isActive() const { return false; }
28         ///
29         void metrics(MetricsInfo & mi, Dimension & dim) const;
30         ///
31         void draw(PainterInfo &, int x, int y) const;
32         ///
33         void substitute(MathMacro const & macro);
34
35         ///
36         void normalize(NormalStream &) const;
37         ///
38         void write(WriteStream & os) const;
39
40 private:
41         /// A number between 1 and 9
42         int number_;
43         ///
44         char str_[3];
45         ///
46         bool expanded_;
47 };
48
49 #endif