X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fmath_boxinset.h;h=59fd02d1ac3c212638df7f0570ffd254e5109bfb;hb=4bc59f21015e9151841eea3733b97d25cd616fdc;hp=8812296605840c78cc0cd38cdc9aaffc801a9ff5;hpb=0daba49b1d7493cbf76658314b7459b51f870081;p=lyx.git diff --git a/src/mathed/math_boxinset.h b/src/mathed/math_boxinset.h index 8812296605..59fd02d1ac 100644 --- a/src/mathed/math_boxinset.h +++ b/src/mathed/math_boxinset.h @@ -2,59 +2,44 @@ #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 UpdatableInset; -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(); + explicit MathBoxInset(string const & name); /// MathInset * clone() const; /// - void draw(Painter &, int x, int y) const; - /// - void write(MathWriteInfo & os) const; + void metrics(MathMetricsInfo & mi) const; /// - void writeNormal(NormalStream &) const; - /// - void metrics(MathMetricsInfo const &) const; + void draw(MathPainterInfo & pi, int x, int y) const; /// identifies BoxInsets MathBoxInset * asBoxInset() { return this; } + /// identifies BoxInsets + MathBoxInset const * asBoxInset() const { return this; } + /// + void rebreak(); /// - bool isHyperActive() const { return 1; } + void write(WriteStream & os) const; /// - void edit(BufferView * bv, int x, int y, unsigned int button); - /// identifies hyperactive insets - UpdatableInset * asHyperActiveInset() const; + void normalize(NormalStream & ns) const; private: - /// unimplemented - void operator=(MathBoxInset const &); - /// mutable MathMetricsInfo mi_; /// string name_; - /// - InsetText * text_; - /// - mutable Buffer * buffer_; }; + + #endif