]> git.lyx.org Git - lyx.git/blob - src/mathed/math_macroarg.h
use stream-like syntax for LaTeX output
[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         void metrics(MathMetricsInfo const & st) const;
22         ///
23         void draw(Painter &, int x, int y) const;
24         ///
25         void write(MathWriteInfo & os) const;
26         ///
27         void writeNormal(std::ostream &) const;
28         ///
29         void substitute(MathMacro const & macro);
30         ///
31         bool isActive() const { return false; }
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