3 * \file math_makeboxinset.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS.
12 #ifndef MATH_MAKEBOXINSET_H
13 #define MATH_MAKEBOXINSET_H
15 #include "math_nestinset.h"
17 /// Extra nesting: \\makebox.
18 // consolidate with MathFrameboxInset?
20 class MathMakeboxInset : public MathNestInset {
25 void metrics(MetricsInfo & mi, Dimension & dim) const;
27 void draw(PainterInfo & pi, int x, int y) const;
29 void write(WriteStream & os) const;
30 /// write normalized content
31 void normalize(NormalStream & ns) const;
33 mode_type currentMode() const { return TEXT_MODE; }
35 void infoize(std::ostream & os) const;
37 virtual std::auto_ptr<InsetBase> doClone() const;
38 /// width of '[' in current font