2 #ifndef MATH_BOXINSET_H
3 #define MATH_BOXINSET_H
5 #include "math_diminset.h"
18 /// Support for \\mbox
20 class MathBoxInset : public MathDimInset {
23 explicit MathBoxInset(string const &);
25 MathBoxInset(MathBoxInset const &);
29 MathInset * clone() const;
31 void draw(Painter &, int x, int y) const;
33 void write(MathWriteInfo & os) const;
35 void writeNormal(std::ostream &) const;
37 void metrics(MathMetricsInfo const &) const;
38 /// identifies BoxInsets
39 MathBoxInset * asBoxInset() { return this; }
41 bool isHyperActive() const { return 1; }
43 void edit(BufferView * bv, int x, int y, unsigned int button);
44 /// identifies hyperactive insets
45 UpdatableInset * asHyperActiveInset() const;
49 void operator=(MathBoxInset const &);
52 mutable MathMetricsInfo mi_;
58 mutable Buffer * buffer_;