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.
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 "math_diminset.h"
20 class MathMacroArgument : public MathDimInset {
23 explicit MathMacroArgument(std::size_t);
25 void metrics(MetricsInfo & mi, Dimension & dim) const;
27 void draw(PainterInfo &, int x, int y) const;
29 std::size_t number() const { return number_; }
31 InsetBase::Code lyxCode() const { return MATHMACROARG_CODE; }
34 void normalize(NormalStream &) const;
36 void write(WriteStream & os) const;
39 virtual std::auto_ptr<InsetBase> doClone() const;
40 /// A number between 1 and 9