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
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"
25 class MathMacroArgument : public InsetMath {
28 explicit MathMacroArgument(int number);
30 void metrics(MetricsInfo & mi, Dimension & dim) const;
32 void draw(PainterInfo &, int x, int y) const;
34 int number() const { return number_; }
36 void setNumber(int n);
38 InsetCode lyxCode() const { return MATHMACROARG_CODE; }
41 void normalize(NormalStream &) const;
43 void write(WriteStream & os) const;
46 Inset * clone() const;
47 /// A number between 1 and 9