]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_oversetinset.h
Fix math cursor positioning bug
[lyx.git] / src / mathed / math_oversetinset.h
index a0dea822b6a6d03505f671f1eac03d28d97c9b4e..f73ac6149b6c541a538bfad6b7db742509ca459a 100644 (file)
 /// Inset for overset
 class MathOversetInset : 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 &) const;
        ///
-       bool idxLast(idx_type & idx, pos_type & pos) const;
-
+       bool idxLast(LCursor &) const;
        ///
        void write(WriteStream & os) const;
        ///
        void normalize(NormalStream &) const;
+       ///
+       void validate(LaTeXFeatures & features) const;
+private:
+       virtual std::auto_ptr<InsetBase> doClone() const;
 };
 
 #endif