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"
23 class MathMacroArgument : public InsetMath {
26 explicit MathMacroArgument(std::size_t);
28 bool metrics(MetricsInfo & mi, Dimension & dim) const;
30 void draw(PainterInfo &, int x, int y) const;
32 std::size_t number() const { return number_; }
34 Inset::Code lyxCode() const { return MATHMACROARG_CODE; }
37 void normalize(NormalStream &) const;
39 void write(WriteStream & os) const;
42 virtual std::auto_ptr<Inset> doClone() const;
43 /// A number between 1 and 9