3 * \file InsetMathMBox.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.
16 #ifndef MATH_MBOXINSET_H
17 #define MATH_MBOXINSET_H
19 #include "InsetMath.h"
28 // almost a substitute for the real text inset...
30 class InsetMathMBox : public InsetMath {
33 explicit InsetMathMBox();
34 explicit InsetMathMBox(LayoutPtr const & layout);
36 /// this stores metrics information in cache_
37 void metrics(MetricsInfo & mi, Dimension & dim) const;
38 /// draw according to cached metrics
39 void draw(PainterInfo &, int x, int y) const;
41 bool inMathed() const { return false; }
43 bool isActive() const { return true; }
46 void write(WriteStream & os) const;
48 int latex(odocstream & os, OutputParams const & runparams) const;
50 Text * getText(int) const;
52 void cursorPos(BufferView const & bv, CursorSlice const & sl,
53 bool boundary, int & x, int & y) const;
55 virtual void doDispatch(Cursor & cur, FuncRequest & cmd);
61 virtual Inset * clone() const;
68 #endif //MATH_MBOXINSET_H