3 * \file math_mboxinset.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_MBOXINSET_H
13 #define MATH_MBOXINSET_H
15 #include "math_diminset.h"
21 // not yet a substitute for the real text inset...
23 class MathMBoxInset : public MathDimInset {
26 MathMBoxInset(BufferView & bv);
28 std::auto_ptr<InsetBase> clone() const;
29 /// this stores metrics information in cache_
30 void metrics(MetricsInfo & mi, Dimension & dim) const;
31 /// draw according to cached metrics
32 void draw(PainterInfo &, int x, int y) const;
34 void priv_dispatch(LCursor & cur, FuncRequest & cmd);
37 void write(WriteStream & os) const;
39 bool inMathed() const { return false; }
42 LyXText * getText(int) const;
44 void getCursorPos(CursorSlice const & cur, int & x, int & y) const;
47 mutable LyXText text_;
49 BufferView * const bv_;