#ifndef MATH_BOXINSET_H
#define MATH_BOXINSET_H
-#include "math_diminset.h"
+#include "math_gridinset.h"
#include "LString.h"
#ifdef __GNUG__
#pragma interface
#endif
-class InsetText;
-class BufferView;
-class Buffer;
class LyXFont;
/// Support for \\mbox
-class MathBoxInset : public MathDimInset {
+class MathBoxInset : public MathGridInset {
public:
///
explicit MathBoxInset(string const &);
///
- MathBoxInset(MathBoxInset const &);
- ///
- ~MathBoxInset();
- ///
MathInset * clone() const;
+ /// identifies BoxInsets
+ MathBoxInset * asBoxInset() { return this; }
+ /// identifies BoxInsets
+ MathBoxInset const * asBoxInset() const { return this; }
///
- void draw(Painter &, int x, int y) const;
+ void rebreak();
///
- void write(MathWriteInfo & os) const;
+ void write(WriteStream & os) const;
///
- void writeNormal(std::ostream &) const;
+ void normalize(NormalStream &) const;
///
- void metrics(MathMetricsInfo const & st) const;
- /// identifies BoxInsets
- MathBoxInset * asBoxInset() { return this; }
+ void draw(Painter &, int x, int y) const;
private:
- /// unimplemented
- void operator=(MathBoxInset const &);
-
///
- string name_;
- ///
- InsetText * text_;
+ mutable MathMetricsInfo mi_;
///
- mutable Buffer * buffer_;
+ string name_;
};
#endif