]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_fracinset.h
Fix to bug 2362: Deleting superscript also deletes subscript.
[lyx.git] / src / mathed / math_fracinset.h
index c0621dad00b37376cf6d8d3dba687602f51a297a..2707fe8cc0c9d4b1034f46695fd9848660e5fec9 100644 (file)
@@ -1,22 +1,27 @@
 // -*- 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);
        ///
-       virtual std::auto_ptr<InsetBase> clone() 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