]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_undersetinset.h
Andreas' patch to prevent crash on click on previewd inset
[lyx.git] / src / mathed / math_undersetinset.h
index 0be7417cd08abd5c34e15cc932f8bfd3cbd67707..c80a23497e1c7f1b62ac218eab220a82e25dd199 100644 (file)
 /// Inset for underset
 class MathUndersetInset : public MathFracbaseInset {
 public:
-       ///
-       std::auto_ptr<InsetBase> clone() const;
        ///
        void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
        void draw(PainterInfo & pi, int x, int y) const;
        ///
-       bool idxFirst(LCursor &) const;
+       bool idxFirst(LCursor & cur) const;
+       ///
+       bool idxLast(LCursor & cur) const;
        ///
-       bool idxLast(LCursor &) const;
+       bool idxUpDown(LCursor & cur, bool up) const;
        ///
-       bool idxUpDown(LCursor &, bool up, int targetx) const;
+       void write(WriteStream & ws) const;
        ///
-       void write(WriteStream & os) const;
+       void normalize(NormalStream & ns) const;
        ///
-       void normalize(NormalStream &) const;
+       void validate(LaTeXFeatures & features) const;
+private:
+       virtual std::auto_ptr<InsetBase> doClone() const;
 };
 
 #endif