]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_fracinset.h
Fix math cursor positioning bug
[lyx.git] / src / mathed / math_fracinset.h
index 14ca4d4c40c491a3af62a0faa5d100bb70211bf8..2707fe8cc0c9d4b1034f46695fd9848660e5fec9 100644 (file)
@@ -1,23 +1,28 @@
 // -*- C++ -*-
+/**
+ * \file math_fracinset.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author Alejandro Aguilar Sierra
+ * \author André Pönitz
+ *
+ * Full author contact details are available in file CREDITS.
+ */
+
 #ifndef MATH_FRACINSET_H
 #define MATH_FRACINSET_H
 
 #include "math_fracbase.h"
 
 
-/** Fraction like objects (frac, binom)
- *  \author Alejandro Aguilar Sierra
- *
- * Full author contact details are available in file CREDITS
- */
+/// Fraction like objects (frac, binom)
 class MathFracInset : public MathFracbaseInset {
 public:
        ///
        explicit MathFracInset(bool atop = false);
        ///
-       MathInset * clone() const;
-       ///
-       Dimension metrics(MetricsInfo & mi) const;
+       void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
        void draw(PainterInfo &, int x, int y) const;
        ///
@@ -29,7 +34,7 @@ public:
        /// identifies FracInsets
        MathFracInset const * asFracInset() const;
        ///
-       string name() const;
+       std::string name() const;
 
        ///
        void write(WriteStream & os) const;
@@ -42,8 +47,9 @@ public:
        ///
        void mathmlize(MathMLStream &) const;
 public:
+       virtual std::auto_ptr<InsetBase> doClone() const;
        ///
-       const bool atop_;
+       bool const atop_;
 };
 
 #endif