]> 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 7886a2842320a6307682c9c98ec7b8198b0916f1..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(idx_type & idx, pos_type & pos) const;
+       bool idxFirst(LCursor & cur) const;
+       ///
+       bool idxLast(LCursor & cur) const;
        ///
-       bool idxLast(idx_type & idx, pos_type & pos) const;
+       bool idxUpDown(LCursor & cur, bool up) const;
        ///
-       bool idxUpDown(idx_type & idx, pos_type & pos, 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