A bit more re-organization.
[lyx.git] / src / mathed / MathMacroArgument.h
blob4a52b1a1d20fda1e63a2bae1096a095cd63f694b
1 // -*- C++ -*-
2 /**
3 * \file MathMacroArgument.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Alejandro Aguilar Sierra
8 * \author André Pönitz
10 * Full author contact details are available in file CREDITS.
13 #ifndef MATHMACROARGUMENT_H
14 #define MATHMACROARGUMENT_H
16 #include "InsetMath.h"
18 #include "support/docstring.h"
21 namespace lyx {
24 /// A macro argument.
25 class MathMacroArgument : public InsetMath {
26 public:
27 ///
28 explicit MathMacroArgument(int number);
29 ///
30 void metrics(MetricsInfo & mi, Dimension & dim) const;
31 ///
32 void draw(PainterInfo &, int x, int y) const;
33 ///
34 int number() const { return number_; }
35 ///
36 void setNumber(int n);
37 ///
38 InsetCode lyxCode() const { return MATH_MACROARG_CODE; }
40 ///
41 void normalize(NormalStream &) const;
42 ///
43 void write(WriteStream & os) const;
45 private:
46 Inset * clone() const;
47 /// A number between 1 and 9
48 int number_;
49 ///
50 docstring str_;
54 } // namespace lyx
56 #endif